💠

Quantum Computing

Qubits on the Bloch sphere, quantum gates, superposition and entanglement — visualised. From the fundamentals of quantum mechanics to Grover's search and quantum cryptography.

3 simulations Schrödinger · Hilbert space QFT · Gates · Bloch sphere

Category Simulations

Open a simulation — it runs right in your browser

Learning Resources

Deep dives into quantum computing concepts

About Quantum Computing Simulations

Qubits, gates, superposition, and quantum algorithms — interactively

Quantum computing simulations model the behaviour of quantum circuits built from qubits and unitary gates. Gate-circuit simulators track the 2ⁿ-dimensional complex state vector of n qubits as Hadamard, CNOT, Toffoli, and phase gates are applied, visualising amplitude and phase on Bloch spheres. Algorithm simulations show Grover's search algorithm achieving √N query complexity and Deutsch-Jozsa returning the global parity of a black-box function in one query.

Quantum error correction simulations demonstrate how the three-qubit bit-flip code and Shor's nine-qubit code detect and correct decoherence errors. These models are computationally exact for small qubit counts and run entirely in the browser using JavaScript complex-number arithmetic. They are ideal for developing an operational understanding of quantum speedup, entanglement, and measurement before working with real quantum hardware APIs.

Quantum computing simulations run on classical hardware by tracking the full 2ⁿ-dimensional state vector — which is why simulating more than ~30 qubits becomes infeasible classically. Real quantum computers from IBM, Google, and IonQ achieve quantum advantage by maintaining physical qubit coherence. These simulations let you build intuition for quantum circuits, interference, and algorithmic speedup without requiring a dilution refrigerator.

Key Concepts

Topics and algorithms you'll explore in this category

QubitSuperposition of |0⟩ and |1⟩ states on the Bloch sphere
Quantum GatesHadamard, CNOT, Pauli gates as unitary matrices
EntanglementBell states and non-local correlations
Grover's AlgorithmO(√N) unstructured database search
Shor's AlgorithmPolynomial-time integer factorisation
Bloch SphereGeometric representation of a single qubit state

Frequently Asked Questions

Common questions about this simulation category

What is quantum superposition?
A qubit can exist in a linear combination α|0⟩ + β|1⟩ of both basis states simultaneously, where |α|² + |β|² = 1. Measurement collapses the superposition to |0⟩ with probability |α|² or |1⟩ with probability |β|². This is not the same as classical probability — interference between α and β is possible.
How does Grover's algorithm speed up search?
Grover's algorithm uses amplitude amplification: the phase oracle marks the solution state, and the diffusion operator inverts amplitudes around their average. After O(√N) iterations, the solution state's amplitude is amplified to near-certainty, giving a quadratic speedup over classical O(N) search.
What is quantum entanglement?
Entanglement is a correlation between qubits that cannot be explained by classical probability. A Bell state |Φ+⟩ = (|00⟩ + |11⟩)/√2 has perfectly correlated measurement outcomes regardless of the distance between qubits — the basis of quantum cryptography and teleportation protocols.

Other Categories