3-qubit repetition code that encodes 1 logical qubit and corrects single bit-flip (X) errors.
-
Updated
Feb 19, 2026
3-qubit repetition code that encodes 1 logical qubit and corrects single bit-flip (X) errors.
Demonstrate the phase kickback trick: a CNOT with ancilla in |-> imprints a phase on the control qubit.
3-qubit code that corrects single phase-flip (Z) errors by encoding in the X basis.
Teleport an arbitrary single-qubit state from Alice to Bob using a shared Bell pair and two classical bits.
W state: symmetric 3-qubit entangled state (|001> + |010> + |100> )/3.
Count the number of solutions to a 2-qubit oracle (marks |11> ) using QPE applied to Grover's operator.
Find the hidden period s='11' of a 2-to-1 function f(x) = f(xs) with exponential quantum speedup.
Quadratic speedup for unstructured search: finds |11> among 4 basis states with one Grover iteration.
Fair coin flipping over a quantum channel: Alice and Bob each contribute randomness via entanglement.
One first-order Trotter step simulating the 1D transverse-field Ising model on 4 qubits (J=1, h=0.5, dt=0.1).
Reversible quantum half-adder: computes sum = a XOR b and carry = a AND b for 1-bit inputs.
Estimate the eigenphase ph=1/8 of the T gate: U|ps> =e^{i2pph}|ps> using 3 counting qubits.
Generate 4 truly random bits using quantum superposition and measurement.
4-qubit Quantum Fourier Transform (QFT): the quantum analogue of the discrete Fourier transform.
3-party quantum secret sharing using a GHZ state: Alice distributes a secret that requires Bob and Charlie to cooperate.
Core period-finding subroutine of Shor's algorithm: find the period r of f(x) = 7^x mod 15.
Estimate Re(
Preparation of the maximally entangled two-qubit Bell state |Ph+> = (|00> + |11> )/2.
Estimate the amplitude a = sin2(p/8) 0.146 using 3 precision qubits via quantum phase estimation.
First quantum error-correcting code: encodes 1 logical qubit into 9 physical qubits, correcting any single-qubit error.
Add a description, image, and links to the openqc-algorithm topic page so that developers can more easily learn about it.
To associate your repository with the openqc-algorithm topic, visit your repo's landing page and select "manage topics."