Discover Circuits

24 public circuits shared by the community

OpenQASM
Quantum Approximate Counting
Simple amplitude estimation circuit estimating the probability of a marked state.
@quantumcomputer3q7g00
OpenQASM
GHZ State (5 qubit)
5-qubit GHZ state (|00000⟩ + |11111⟩)/√2. Tests entanglement across all qubits of a small processor.
@quantumcomputer5q5g00
OpenQASM
Quantum Counting
Combines Grover's oracle with QPE to count the number of solutions without knowing them.
@quantumcomputer3q7g00
OpenQASM
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.
@quantumcomputer4q8g00
OpenQASM
Quantum Walk (4 positions)
Discrete-time quantum walk on 4 positions using a coin qubit and position register.
@quantumcomputer3q4g00
OpenQASM
Hadamard Test
Estimates ⟨ψ|U|ψ⟩ using an ancilla qubit, controlled-U, and measurement. Fundamental for many quantum algorithms.
@quantumcomputer2q3g00
OpenQASM
Quantum Entanglement Swapping
Entangles two qubits that never directly interact by performing a Bell measurement on intermediary qubits.
@quantumcomputer4q6g00
OpenQASM
QAOA (MaxCut, 2 nodes)
QAOA circuit for the MaxCut problem on a 2-node graph. Uses alternating problem and mixer layers.
@quantumcomputer2q7g00
OpenQASM
Variational Quantum Eigensolver (VQE)
A simple VQE ansatz for finding the ground state energy of H₂. Uses parameterized Ry and CNOT gates.
@quantumcomputer2q5g00
OpenQASM
Quantum Half Adder
A quantum half adder that computes sum and carry of two input qubits using CNOT and Toffoli gates.
@quantumcomputer3q4g00
OpenQASM
Toffoli Gate (CCNOT)
The Toffoli gate (CCNOT) flips the target qubit only when both control qubits are |1⟩. Fundamental for reversible computing.
@quantumcomputer3q3g00
OpenQASM
Quantum Random Number Generator
Generates a truly random 4-bit number using quantum superposition. Each qubit is placed in superposition via Hadamard.
@quantumcomputer4q4g00
OpenQASM
W State (3 qubit)
Creates the 3-qubit W state |W⟩ = (|001⟩ + |010⟩ + |100⟩)/√3. Robust to single-qubit loss.
@quantumcomputer3q5g00
OpenQASM
SWAP Test
Determines the overlap between two quantum states without measuring them. Ancilla qubit reads |0⟩ if states are identical.
@quantumcomputer3q3g00
OpenQASM
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.
@quantumcomputer3q7g00
OpenQASM
Superdense Coding
Sends 2 classical bits using 1 qubit by leveraging a shared Bell pair.
@quantumcomputer2q6g00
OpenQASM
Quantum Phase Estimation (2+1)
Estimates the phase θ in U|ψ⟩ = e^{2πiθ}|ψ⟩ using 2 counting qubits and inverse QFT.
@quantumcomputer3q10g00
OpenQASM
Grover's Search (2 qubit)
Grover's algorithm on 2 qubits searching for |11⟩. Achieves quadratic speedup over classical search.
@quantumcomputer2q10g00
OpenQASM
Quantum Fourier Transform (3 qubit)
The 3-qubit Quantum Fourier Transform (QFT), a key subroutine in Shor's algorithm and quantum phase estimation.
@quantumcomputer3q7g00
OpenQASM
Bernstein-Vazirani
Finds a hidden binary string s in a single query to f(x) = s·x mod 2.
@quantumcomputer4q11g00
OpenQASM
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.
@quantumcomputer2q6g00
OpenQASM
Quantum Teleportation
Teleports the state of qubit 0 to qubit 2 using an entangled Bell pair and classical communication.
@quantumcomputer3q7g00
OpenQASM
GHZ State (3 qubits)
Creates a 3-qubit GHZ state |GHZ⟩ = (|000⟩ + |111⟩)/√2, extending entanglement across three qubits.
@quantumcomputer3q3g00
OpenQASM
Bell State
Creates a maximally entangled Bell state |Φ+⟩ = (|00⟩ + |11⟩)/√2 using a Hadamard gate followed by a CNOT.
@quantumcomputer2q2g00