Inspect eight canonical quantum circuits and algorithms across OpenQASM 3.0, Qiskit, Cirq, PennyLane, and Modern Q#; verify exact mathematical state vectors and launch any blueprint directly inside the 16-qubit Qubit Lab.
The canonical two-qubit circuit preparing the maximally entangled |Φ⁺⟩ Bell pair via a single Hadamard and CNOT gate. Each individual qubit has a maximally mixed reduced state (I/2), while joint Z-basis measurements yield perfectly correlated |00⟩ or |11⟩ outcomes.
Engineering Note: Because |00⟩ and |11⟩ are bit-reversal symmetric, Qiskit's little-endian bit ordering and Cirq/PennyLane/Q#'s big-endian ordering produce identical output distributions.
Maintainer: IBM Quantum & Open-Source Contributors
Industry-standard open-source quantum SDK initiated by IBM Quantum with a Rust-accelerated transpiler core. Modern Qiskit 1.x/2.x replaces legacy backend execution with standardized SamplerV2 (bitstring distributions) and EstimatorV2 (Pauli observable expectation values) primitives.
$ pip install qiskit qiskit-aer
Key Engineering Strengths
Rust-backed multi-pass transpiler with SABRE qubit routing, layout synthesis, and unitary gate cancellation
Comprehensive operator algebra (qiskit.quantum_info) and error-mitigation workflows viaV2 primitives
Hardware Ecosystem: IBM Quantum superconducting processors (Heron, Eagle) plus IonQ, Quantinuum, IQM, Rigetti, and AQT backends through community provider packages.
Show Runnable Quickstart Snippet
from qiskit import QuantumCircuit
from qiskit.quantum_info import SparsePauliOp
from qiskit.primitives import StatevectorEstimator
qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
zz = SparsePauliOp.from_list([("ZZ", 1.0), ("XX", 1.0)])
ev = StatevectorEstimator().run([(qc, zz)]).result()[0].data.evs
print("<ZZ + XX> on |Phi+> =", float(ev)) # 2.0
Python framework engineered by Google Quantum AI to expose processor lattice geometry (GridQubit / LineQubit), explicit parallel gate slices (Moments), and realistic Kraus/depolarizing noise models.
$ pip install cirq
Key Engineering Strengths
Explicit Moment time-slice scheduling and native 2D lattice placement via cirq.GridQubit
Fine-grained Kraus channel, readout error, and DensityMatrixSimulator noise modeling
Seamless interoperability with Stim (QEC), OpenFermion (chemistry), and Qualtran (fault-tolerant algorithms)
Hardware Ecosystem: Google Quantum AI superconducting processors (Sycamore, Willow) alongside IonQ, Pasqal neutral-atom arrays, Rigetti, and AQT trapped-ion devices.
Standards-based Quantum Intermediate Representation (QIR) emission and zero-dependency Rust/WASM execution
Hardware Ecosystem: Azure Quantum hardware targets including Quantinuum H-Series trapped ions, IonQ, Rigetti, Pasqal, Atom Computing, and QIR-compliant control stacks.
Show Runnable Quickstart Snippet
import qsharp
qsharp.eval("""
operation ApplyControlledPhaseKick(ctrl : Qubit, target : Qubit) : Unit is Adj + Ctl {
within { H(target); }
apply { Controlled Z([ctrl], target); }
}
""")
out = qsharp.run("{ use (a, b) = (Qubit(), Qubit()); X(a); ApplyControlledPhaseKick(a, b); MResetZ(b) }", shots=8)
print("Deterministic kickback outcomes:", out)
Open specification governed under the Linux Foundation that extends static quantum assembly into a full real-time quantum-classical language supporting typed classical variables, loops, low-latency mid-circuit conditionals, timing boxes, and pulse-level defcal blocks.
$ pip install openqasm3
Key Engineering Strengths
Portable circuit interchange format across Qiskit, Cirq, PennyLane, Quantinuum TKET, and cloud hardware providers
Native sub-coherence-time classical control flow (if/else, for, while) essential for active QEC and repeat-until-success protocols
Hardware Ecosystem: IBM Quantum, Amazon Braket, Quantinuum TKET, FPGA/AWG quantum control systems (Zurich Instruments, Qblox), and cross-SDK transpilers.
Show Runnable Quickstart Snippet
OPENQASM 3.0;
include "stdgates.inc";
// Repeat-until-success state reset using real-time control flow
qubit q;
bit m = 1;
h q;
m = measure q;
if (m == 1) {
x q;
}
Authored by Craig Gidney (Quantum 5, 497, 2021), Stim exploits Gottesman–Knill stabilizer tableaux and 256-bit SIMD bit-packing to sample noisy thousand-qubit surface-code and qLDPC syndrome circuits at megahertz shot rates—orders of magnitude faster than statevector simulators.
$ pip install stim pymatching
Key Engineering Strengths
Built-in noisy circuit generators for rotated surface codes, color codes, and repetition codes under circuit-level Pauli noise
Automatic Detector Error Model (DEM) extraction feeding directly into PyMatching minimum-weight perfect matching decoders
Simulates thousands of Clifford qubits and millions of syndrome rounds in seconds on a single CPU core
Hardware Ecosystem: De facto standard QEC benchmarking and syndrome-decoding backbone across superconducting (Google Willow, IBM), neutral-atom (QuEra/Harvard), and trapped-ion fault-tolerance research.