Skip to main content

Q-CTRL Cirq Adapter

Project description

Q-CTRL Cirq Adaptor

The aim of the Q-CTRL Cirq Adaptor package is to provide export functions allowing users to deploy established error-robust quantum control protocols from the open literature and defined in Q-CTRL Open Controls on Google quantum devices and simulators.

Anyone interested in quantum control is welcome to contribute to this project.

Table of Contents

Installation

Q-CTRL Cirq Adaptor can be installed through pip or from source. We recommend the pip distribution to get the most recent stable release. If you want the latest features then install from source.

Requirements

To use Q-CTRL Cirq Adaptor you will need an installation of Python. We recommend using the Anaconda distribution of Python. Anaconda includes standard numerical and scientific Python packages which are optimally compiled for your machine. Follow the Anaconda Installation instructions and consult the Anaconda User guide to get started.

We use interactive jupyter notebooks for our usage examples. The Anaconda python distribution comes with editors for these files, or you can install the jupyter notebook editor on its own.

Using PyPi

Use pip to install the latest version of Q-CTRL Cirq Adaptor.

pip install qctrl-cirq

From Source

The source code is hosted on Github. The repository can be cloned using

git clone git@github.com:qctrl/python-cirq.git

Once the clone is complete, you have two options:

  1. Using setup.py

    cd python-cirq
    python setup.py develop
    

    Note: We recommend installing using develop to point your installation at the source code in the directory where you cloned the repository.

  2. Using Poetry

    cd python-cirq
    ./setup-poetry.sh
    

    Note: if you are on Windows, you'll need to install Poetry manually, and use:

    cd python-cirq
    poetry install
    

Once installed via one of the above methods, test your installation by running pytest in the python-cirq directory.

pytest

Usage

See the Jupyter notebooks.

Contributing

For general guidelines, see Contributing.

Building documentation

Documentation generation relies on Spinx. Automated builds are done by Read The Docs.

To build locally:

  1. Ensure you have used one of the install options above.

  2. Execute the make file from the docs directory:

    If using Poetry:

    cd docs
    poetry run make html
    

    If using setuptools:

    cd docs
    # Activate your virtual environment if required
    make html
    

The generated HTML will appear in the docs/_build/html directory.

Credits

See Contributors.

License

See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qctrl-cirq-0.0.2.tar.gz (10.8 kB view hashes)

Uploaded Source

Built Distribution

qctrl_cirq-0.0.2-py3-none-any.whl (12.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page