Quantum Gate Language (QGL) is a domain specific language embedded in python for specifying pulse sequences.
Project description
Quantum Gate Language
Quantum Gate Language (QGL) is a domain specific language embedded in python for specifying pulse sequences.
Read the online documentation and see example usage in this Jupyter notebook.
Setup instructions
The most straightforward way to get up and running is to use the Anaconda Python distribution. This includes nearly all the dependencies. The remaining dependencies can be installed from the terminal or Anaconda Command Prompt on Windows. While QGL can be run on windows, our experiment control software Auspex relies on linux when running qubit experiments.
Python 3.6+
cd QGL/
pip install .
Alternatively, if you plan to modify the source code it will be easier to perform a developer install using:
pip install -e .
If you'd like to use some of the built-in gate-set-tomography functionality, you can grab the PyGSTi package during the install:
pip install '.[gst]'
If the QGL
module is not installed, the repository path needs to be in the
PYTHONPATH
. On Windows machines, you add/modify this environment variable by
going to System -> Advanced Settings -> Environment variables. On Mac/Linux
machines add the following line to your .bashrc or .bash_profile: export PYTHONPATH=/path/to/QGL/repo:$PYTHONPATH
Usage
QGL is designed to be utilized alongside Auspex, and most of the usage example, including how to define a channel library, can be found in the Auspex documentation
Dependencies
- Python 3.6+
- Numpy/Scipy
- networkx 2.0
- iPython/Jupyter 4.0 (only for Jupyter notebooks)
- bbndb
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.