Q-CTRL Open Controls is an open-source Python package that makes it easy to create and deploy established error-robust quantum control protocols from the open literature. The aim of the package is to be the most comprehensive library of published and tested quantum control techniques developed by the community, with easy to use export functions allowing users to deploy these controls on:
- Custom quantum hardware
- Publicly available cloud quantum computers
- The Q-CTRL product suite
Anyone interested in quantum control is welcome to contribute to this project.
Q-CTRL Open Controls 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.
To use Q-CTRL Open Controls 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.
Use pip to install the latest version of Q-CTRL Open Controls.
pip install qctrl-open-controlsThe source code is hosted on Github. The repository can be cloned using
git clone git@github.com:qctrl/python-open-controls.gitOnce the clone is complete, you have two options:
-
Using setup.py
cd python-open-controls python setup.py developNote: We recommend installing using
developto point your installation at the source code in the directory where you cloned the repository. -
Using Poetry
Follow the instructions from the Poetry documentation to install Poetry.
After you have installed Poetry, use:
cd python-open-controls poetry install
Once installed via one of the above methods, test your installation by running
pytest
in the python-open-controls directory.
pytestSee the Jupyter notebooks.
For general guidelines, see Contributing.
Documentation generation relies on Sphinx. Automated builds are done by Read The Docs.
To build locally:
-
Ensure you have used one of the install options above.
-
Execute the make file from the docs directory:
If using Poetry:
cd docs poetry run make htmlIf using setuptools:
cd docs # Activate your virtual environment if required make html
The generated HTML will appear in the docs/_build/html directory.
See Contributors.
See LICENSE.