CoChat

ProjectQ: an open source software framework for quantum computing

Open access

The DOI matches its Crossref record; 17 of the 18 references it cites were found in a registry or an index.

Abstract

We introduce ProjectQ, an open source software effort for quantum computing. The first release features a compiler framework capable of targeting various types of hardware, a high-performance simulator with emulation capabilities, and compiler plug-ins for circuit drawing and resource estimation. We introduce our Python-embedded domain-specific language, present the features, and provide example implementations for quantum algorithms. The framework allows testing of quantum algorithms through simulation and enables running them on actual quantum hardware using a back-end connecting to the IBM Quantum Experience cloud service. Through extension mechanisms, users can provide back-ends to further quantum hardware, and scientists working on quantum compilation can provide plug-ins for additional compilation, optimization, gate synthesis, and layout strategies.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.22331/q-2018-01-31-49

Cites

17 of 17 references verified0 citation errors · 0 not checkable

Statistics

Figures

Figure 1 High-level picture of what a compiler does: It transforms the high-level user code to gate sequences satisfying the constraints dictated by the target hardware (supported gate set, connectivity, ...) while optimizing the circuit. The resulting low-level instructions are then translated to, e.g., pulse sequences.
Figure 1 High-level picture of what a compiler does: It transforms the high-level user code to gate sequences satisfying the constraints dictated by the target hardware (supported gate set, connectivity, ...) while optimizing the circuit. The resulting low-level instructions are then translated to, e.g., pulse sequences.CC-BY · From the PDF
Figure 2 Circuit for carrying out two controlled Fourier transform additions in sequence: An optimizer can identify the QFT with its inverse, allowing to cancel those two operations. This identification is much harder or even impossible after decomposing operations and synthesizing rotation gates. Furthermore, since QFT † QFT = ✶ , the quantum Fourier transform does not need to be controlled, which can be achieved using our Compute/Uncompute meta-instructions (see Sec. 4.1.3).
Figure 2 Circuit for carrying out two controlled Fourier transform additions in sequence: An optimizer can identify the QFT with its inverse, allowing to cancel those two operations. This identification is much harder or even impossible after decomposing operations and synthesizing rotation gates. Furthermore, since QFT † QFT = ✶ , the quantum Fourier transform does not need to be controlled, which can be achieved using our Compute/Uncompute meta-instructions (see Sec. 4.1.3).CC-BY · From the PDF
Figure 3 ProjectQ's full stack software framework. Users write their quantum programs in a high-level domain-specific language embedded in Python. The quantum program is then sent to the MainEngine , which is the front end of the modular compiler. The compiler consists of individual compiler engines which transform the code to the low-level instruction sets supported by the various back-ends, such as interfaces to quantum hardware, a high-performance quantum simulator and emulator, as well as a circuit drawer and a resource counter.
Figure 3 ProjectQ's full stack software framework. Users write their quantum programs in a high-level domain-specific language embedded in Python. The quantum program is then sent to the MainEngine , which is the front end of the modular compiler. The compiler consists of individual compiler engines which transform the code to the low-level instruction sets supported by the various back-ends, such as interfaces to quantum hardware, a high-performance quantum simulator and emulator, as well as a circuit drawer and a resource counter.CC-BY · From the PDF
Figure 4 A compute/action/uncompute section. Since U † U = ✶ , the U and U † gate can be executed unconditionally when control qubits are added to an operation of this form. These sections can be annotated using our Compute , Uncompute , and CustomUncompute meta-instructions, see Sec. 4.1.3.
Figure 4 A compute/action/uncompute section. Since U † U = ✶ , the U and U † gate can be executed unconditionally when control qubits are added to an operation of this form. These sections can be annotated using our Compute , Uncompute , and CustomUncompute meta-instructions, see Sec. 4.1.3.CC-BY · From the PDF
Figure 5 Individual stages of compiling an entangling operation for the IBM back-end. The high-level Entangle-gate is decomposed into its definition (Hadamard gate on the first qubit, followed by a sequence of controlled NOT gates on all other qubits). Then, the CNOT gates are remapped to satisfy the logical constraint that controlled NOT gates are allowed to act on one qubit only, followed by optimizing and mapping the circuit to the actual hardware.
Figure 5 Individual stages of compiling an entangling operation for the IBM back-end. The high-level Entangle-gate is decomposed into its definition (Hadamard gate on the first qubit, followed by a sequence of controlled NOT gates on all other qubits). Then, the CNOT gates are remapped to satisfy the logical constraint that controlled NOT gates are allowed to act on one qubit only, followed by optimizing and mapping the circuit to the actual hardware.CC-BY · From the PDF
Figure 6 Measurement outcomes with their respective probabilities when running an entangle operation on three qubits of the IBM Quantum Experience chip and simulator. The entangle operation corresponds to applying a Hadamard gate to the first qubit, followed by CNOT gates on all other qubits conditioned on the first qubit. The perfect outcome would be 50% all-zeros and 50% all-ones, as it is the case for the (noise-less) simulation.
Figure 6 Measurement outcomes with their respective probabilities when running an entangle operation on three qubits of the IBM Quantum Experience chip and simulator. The entangle operation corresponds to applying a Hadamard gate to the first qubit, followed by CNOT gates on all other qubits conditioned on the first qubit. The perfect outcome would be 50% all-zeros and 50% all-ones, as it is the case for the (noise-less) simulation.CC-BY · From the PDF
Figure 7 Runtime comparison of the simulator from [4] to the simulator in ProjectQ. The timed circuit consists a Hadamard-transform, a chain of controlled z-rotations, and a final Hadamard transform. The lazy evaluation of gates in combination with intrinsics instructions allows the ProjectQ simulator to execute this circuit between 3 and 5 times faster. Both simulators were run on both cores of an Intel R © Core TM i7-5600U CPU.
Figure 7 Runtime comparison of the simulator from [4] to the simulator in ProjectQ. The timed circuit consists a Hadamard-transform, a chain of controlled z-rotations, and a final Hadamard transform. The lazy evaluation of gates in combination with intrinsics instructions allows the ProjectQ simulator to execute this circuit between 3 and 5 times faster. Both simulators were run on both cores of an Intel R © Core TM i7-5600U CPU.CC-BY · From the PDF
Image 8
CC-BY · From the PDF

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 17 references

Cited by

Items 401–500 of 559

Metadata

Authors
Steiger, D. S., Häner, T., & Troyer, M.
Affiliations
ETH Zurich (CH)
Venue
Quantum
Published
2018-01-31
Volume
2
Pages
49
ISSN
2521-327X (ISSN-L)
OpenAlex
W2566002283
Cited by
428
References
18
Citations by year
2026: 23 · 2025: 53 · 2024: 48 · 2023: 52 · 2022: 47 · 2021: 70 · 2020: 59 · 2019: 41 · 2018: 25
FWCI
27.47
Type
journal article
Language
en
Open access
Locations
  • Quantum (publishedVersion, cc-by)
  • Repository for Publications and Research Data (ETH Zurich) (publishedVersion, cc-by)
  • arXiv (Cornell University) (acceptedVersion)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
  • arXiv (Cornell University) (cc-by)
  • ETH Zürich Research Collection
Funders
  • National Science Foundation
  • Microsoft Research
  • Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung
  • Eidgenössische Technische Hochschule Zürich
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Quantum Computing Algorithms and Architecture
  • Physical Sciences › Computer Science › Hardware and Architecture › Parallel Computing and Optimization Techniques
  • Physical Sciences › Physics and Astronomy › Atomic and Molecular Physics, and Optics › Quantum Information and Cryptography
Keywords
quantum computing software, quantum circuit compilation, quantum circuit simulation, domain-specific languages, quantum algorithms, IBM Quantum Experience, gate synthesis, circuit optimization, resource estimation, open source software

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.