Advanced Integrated Development Environment for Quantum Computing

Getting Started

There are a few ways to get started with the AIDE-QC stack: the prebuilt Docker-based browser IDE, the binary package installations, and building everything from source.

NOTE: If any of the below instructions do not work for you, please file a bug at AIDE-QC Issues with a detailed explanation of the failure you observed.

Install the aide-qc command line tool

We provide a command line utility (aide-qc) that enables one to quickly spin up
a web-based IDE pre-packaged with the AIDE-QC software stack, as well as demonstrative examples. This tool requires a valid Docker installation on your local machine. To install Docker, please see Docker Desktop for Windows/Mac or Docker for Linux .

To install the aide-qc tool, run the following from your local terminal.

/bin/bash -c "$(curl -fsSL"

Once you have aide-qc, install the latest IDE and start a new instance via

aide-qc --install
aide-qc --start my_first_quantum_ide

This will open a browser-based IDE with the AIDE-QC software stack ready for use.

For more details on the aide-qc command line tool, click here .

Install AIDE-QC

To install the AIDE-QC binaries, run the following command from your local terminal (will require sudo credentials):

/bin/bash -c "$(curl -fsSL"

NOTE: You may need to evaluate your $HOME/.bashrc (or .bash_profile on MacOS) in order to configure your install. E.g., if brew list fails, run source ~/.bashrc or source ~/.bash_profile.

This will install the AIDE-QC software stack, including the qcor compiler, the underlying xacc framework, as well as pertinent Python bindings. If you are going to use the Python API, you may need to export your PYTHONPATH

export PYTHONPATH=$(qcor -pythonpath):$PYTHONPATH

We recommend you add this to your .bashrc or .bash_profile.

NOTE: On Ubuntu, the installation script will attempt to use apt-get over our custom Homebrew installer. If you would rather use Homebrew instead of apt-get, run the following command: /bin/bash -c "$(curl -fsSL '$1'" bash --use-brew

Install AIDE-QC Rigetti QCS

If you are using the Rigetti QCS platform, and have access to the provided JupyterLab IDE, open a terminal and run the following:

bash -qcs
export PYTHONPATH=$(qcor -pythonpath):$PYTHONPATH

Test out your install

Test out your install by compiling and executing the following simple qcor code:

printf "__qpu__ void f(qreg q) {
int main() {
  auto q = qalloc(1);
}  " | qcor -qpu qpp -shots 1024 -x c++ -

You can also test out the Python API by putting the following script in a file:

from qcor import qjit, qalloc, qreg

# Define a Bell kernel
def bell(q : qreg):
    CX(q[0], q[1])
    for i in range(q.size()):

# Allocate 2 qubits
q = qalloc(2)

# Run the bell experiment

# Print the results

and run it with

python3 -qpu qpp -shots 1024
{'00': 548, '11': 476}

Build from Souce

If the above binary installs do not work for your system, checkout how to build from source .