Home

Awesome

Quantum Gate Language (QGL)

Build Status Coverage Status

Overview

Quantum Gate Language (QGL) is a domain specific language embedded in python for specifying pulse sequences.

Our "getting started" documentation is published online from the local file. This documentation includes dependency, installation and basic programming information. The documentation is organized into the following sections:

  1. What is QGL
  2. Dependencies
  3. Installation
  4. Examples
  5. Channels and Qubits
  6. Gate Primitives
  7. Sequences and Concurrent Operations
  8. Pulse Shapes and Waveforms
  9. Compiling and Plotting
  10. Built-in Basic Sequences

Usage

There are a number of QGL example Jupyer notebooks in the QGL/doc folder:

  1. ex1_basic_QGL.ipynb: Basic setup of 'qubit' objects, defining sequences of pulses on qubits, and visualizing these pulse sequences.
  2. ex2_single_qubit_sequences.ipynb: Simple spectroscopy and coherence experiments on a single qubit.
  3. ex3_two_qubit_sequences.ipynb: Examples of two-qubit sequences, including CR gates.

Obviously, we suggest that you start with ex1_basic_QGL.

QGL requires the installation and use of bbndb. bbndb is a shared, versioned, means of storing instrument, qubit, and other configuration information. It is based on the SQLAlchemy framework.

QGL is typically used with Auspex -- an experiment management framework. More sophisticated uses of bbndb, especially usage of a channel library, can be found in the Auspex documentation

Dependencies

Note additional setup information in setup.py. This file is typically used by pip and other package managers.