Discover Circuits

24 public circuits shared by the community

Quantum Approximate Counting
Simple amplitude estimation circuit estimating the probability of a marked state.
@quantumcomputeropenqasm3q7 gates0 dl0 saves
GHZ State (5 qubit)
5-qubit GHZ state (|00000⟩ + |11111⟩)/√2. Tests entanglement across all qubits of a small processor.
@quantumcomputeropenqasm5q5 gates0 dl0 saves
Quantum Counting
Combines Grover's oracle with QPE to count the number of solutions without knowing them.
@quantumcomputeropenqasm3q7 gates0 dl0 saves
Simon's Algorithm (2-bit)
Simon's algorithm for a 2-bit input. Finds hidden period s of f(x) = f(x ⊕ s) exponentially faster than classical.
@quantumcomputeropenqasm4q8 gates0 dl0 saves
Quantum Walk (4 positions)
Discrete-time quantum walk on 4 positions using a coin qubit and position register.
@quantumcomputeropenqasm3q4 gates0 dl0 saves
Hadamard Test
Estimates ⟨ψ|U|ψ⟩ using an ancilla qubit, controlled-U, and measurement. Fundamental for many quantum algorithms.
@quantumcomputeropenqasm2q3 gates0 dl0 saves
Quantum Entanglement Swapping
Entangles two qubits that never directly interact by performing a Bell measurement on intermediary qubits.
@quantumcomputeropenqasm4q6 gates0 dl0 saves
QAOA (MaxCut, 2 nodes)
QAOA circuit for the MaxCut problem on a 2-node graph. Uses alternating problem and mixer layers.
@quantumcomputeropenqasm2q7 gates0 dl0 saves
Variational Quantum Eigensolver (VQE)
A simple VQE ansatz for finding the ground state energy of H₂. Uses parameterized Ry and CNOT gates.
@quantumcomputeropenqasm2q5 gates0 dl0 saves
Quantum Half Adder
A quantum half adder that computes sum and carry of two input qubits using CNOT and Toffoli gates.
@quantumcomputeropenqasm3q4 gates0 dl0 saves
Toffoli Gate (CCNOT)
The Toffoli gate (CCNOT) flips the target qubit only when both control qubits are |1⟩. Fundamental for reversible computing.
@quantumcomputeropenqasm3q3 gates0 dl0 saves
Quantum Random Number Generator
Generates a truly random 4-bit number using quantum superposition. Each qubit is placed in superposition via Hadamard.
@quantumcomputeropenqasm4q4 gates0 dl0 saves
W State (3 qubit)
Creates the 3-qubit W state |W⟩ = (|001⟩ + |010⟩ + |100⟩)/√3. Robust to single-qubit loss.
@quantumcomputeropenqasm3q5 gates0 dl0 saves
SWAP Test
Determines the overlap between two quantum states without measuring them. Ancilla qubit reads |0⟩ if states are identical.
@quantumcomputeropenqasm3q3 gates0 dl0 saves
Quantum Error Correction (Bit Flip)
The 3-qubit bit flip code. Encodes 1 logical qubit into 3 physical qubits to correct a single X error.
@quantumcomputeropenqasm3q7 gates0 dl0 saves
Superdense Coding
Sends 2 classical bits using 1 qubit by leveraging a shared Bell pair.
@quantumcomputeropenqasm2q6 gates0 dl0 saves
Quantum Phase Estimation (2+1)
Estimates the phase θ in U|ψ⟩ = e^{2πiθ}|ψ⟩ using 2 counting qubits and inverse QFT.
@quantumcomputeropenqasm3q10 gates0 dl0 saves
Grover's Search (2 qubit)
Grover's algorithm on 2 qubits searching for |11⟩. Achieves quadratic speedup over classical search.
@quantumcomputeropenqasm2q10 gates0 dl0 saves
Quantum Fourier Transform (3 qubit)
The 3-qubit Quantum Fourier Transform (QFT), a key subroutine in Shor's algorithm and quantum phase estimation.
@quantumcomputeropenqasm3q7 gates0 dl0 saves
Bernstein-Vazirani
Finds a hidden binary string s in a single query to f(x) = s·x mod 2.
@quantumcomputeropenqasm4q11 gates0 dl0 saves
Deutsch-Jozsa (2 qubit)
The simplest Deutsch-Jozsa algorithm on a 2-qubit oracle. Determines if a function is constant or balanced in one query.
@quantumcomputeropenqasm2q6 gates0 dl0 saves
Quantum Teleportation
Teleports the state of qubit 0 to qubit 2 using an entangled Bell pair and classical communication.
@quantumcomputeropenqasm3q7 gates0 dl0 saves
GHZ State (3 qubits)
Creates a 3-qubit GHZ state |GHZ⟩ = (|000⟩ + |111⟩)/√2, extending entanglement across three qubits.
@quantumcomputeropenqasm3q3 gates0 dl0 saves
Bell State
Creates a maximally entangled Bell state |Φ+⟩ = (|00⟩ + |11⟩)/√2 using a Hadamard gate followed by a CNOT.
@quantumcomputeropenqasm2q2 gates0 dl0 saves