MonarQ/en-ca
MonarQ Status Update
MonarQ is currently undergoing maintenance and is expected to be operational in February 2026. In the meantime, Calcul Québec can offer access to a similar but smaller machine with 6 qubits.
Connection Node: https://monarq.calculquebec.ca
MonarQ is a 24-qubit superconducting quantum computer developed in Montreal by Anyon Systèmes and located at the École de technologie supérieure. For more information on MonarQ's specifications and performance, see Technical Specifications below.
Accessing MonarQ¶
- To begin the MonarQ access process, fill out this form. It must be completed by the principal investigator.
- You must have an Alliance account to access MonarQ.
- Meet with our team to discuss your project's specific needs, access, and billing details.
- Receive access to the MonarQ dashboard and generate your access token.
- To get started, see Getting Started with MonarQ below.
Contact our quantum team at quantique@calculquebec.ca if you have any questions or would like a more general discussion before requesting access.
Technical Specifications¶
Similar to other quantum processors available today, MonarQ operates in an environment where noise remains a significant factor. Performance metrics, updated with each calibration, are accessible via the Thunderhead portal. Access to this portal requires approved MonarQ access.
Among others, the following metrics are available:
- 24-qubit quantum processor
- Single-qubit gate with 99.8% fidelity and 32ns duration
- Two-qubit gate with 96% fidelity and 90ns duration
- Coherence time of 4-10μs (depending on state)
- Maximum circuit depth of approximately 350 for single-qubit gates and 115 for two-qubit gates
Quantum Computing Software¶
Several specialized software libraries exist for quantum computing and developing quantum algorithms. These libraries allow for the construction of circuits that are executed on simulators imitating the performance and results obtained on a quantum computer like MonarQ. They can be used on all Alliance clusters.
- PennyLane, Python command library
- Snowflurry, Julia command library
- Qiskit, Python command library
MonarQ's quantum logic gates are called through the Snowflurry software library, written in Julia. Although MonarQ is natively compatible with Snowflurry, a PennyLane-CalculQuébec plugin developed by Calcul Québec allows for executing circuits on MonarQ while benefiting from the features and development environment offered by PennyLane.
Getting Started with MonarQ¶
Prerequisites: Ensure you have MonarQ access and your login credentials (username, API token). For any questions, write to quantique@calculquebec.ca.
-
Step 1: Connect to Narval
- MonarQ is only accessible from Narval, a Calcul Québec cluster. Access to Narval is via the connection node
narval.alliancecan.ca. - For help connecting to Narval, consult the SSH page.
- MonarQ is only accessible from Narval, a Calcul Québec cluster. Access to Narval is via the connection node
-
Step 2: Create the environment
- Create a Python virtual environment (3.11 or later) to use PennyLane and the PennyLane-CalculQuébec plugin. These are already installed on Narval, and you will only need to import the software libraries you wish to use.
module load python/3.11
virtualenv --no-download --clear ~/ENV && source ~/ENV/bin/activate
pip install --no-index --upgrade pip
pip install --no-index --upgrade pennylane-calculquebec
python -c "import pennylane; import pennylane_calculquebec"
- Step 3: Configure your MonarQ credentials and define MonarQ as a device
- Open a Python
.pyfile and import the necessary dependencies, PennyLane and CalculQuebecClient, as shown in the example below. - Create a client with your credentials. Your token is available from the Thunderhead portal. The host is
https://monarq.calculquebec.ca. - Create a PennyLane device with your client. You can also specify the number of qubits (wires) to use and the number of samples (shots).
- For help, consult pennylane_calculquebec.
- Open a Python
- Step 4: Create your circuit
- In the same Python file, you can now code your quantum circuit.
| my_circuit.py | |
|---|---|
- Step 5: Execute your circuit from the scheduler
- The
sbatchcommand is used to submit ansbatchjob.
- The
With a Slurm script resembling this:
| simple_job.sh | |
|---|---|
- The circuit's result is written to a file whose name starts with
slurm-, followed by the job ID and the.outsuffix, for example, slurm-123456.out. - In this file, you will find the result of our circuit in a dictionary
{'000': 496, '001': 0, '010': 0, '011': 0, '100': 0, '101': 0, '110': 0, '111': 504}. - For more information on how to submit jobs on Narval, see Running Jobs.
Common Questions¶
Other Tools¶
Applications¶
MonarQ is suitable for computations requiring small numbers of high-fidelity qubits, making it an ideal tool for the development and testing of quantum algorithms. Other possible applications include modeling small quantum systems; testing new quantum programming methods, error correction techniques; and more generally, fundamental research in quantum computing.
Technical Support¶
If you have questions about our quantum services, write to quantique@calculquebec.ca. Sessions on quantum computing and programming with MonarQ are listed here.