Quantum Circuit Simulator
Design and simulate quantum circuits with real quantum gates. Perfect for learning quantum computing concepts.
Circuit Design
Drag and drop gates to build your quantum circuit
Circuit Steps
Available Gates
Example Quantum Circuits
Bell State
beginnerCreates entangled qubits (maximal correlation)
GHZ State
intermediate3-qubit Greenberger-Horne-Zeilinger state
Quantum Teleportation
advancedTeleport quantum state using entanglement
Superposition
beginnerPut all qubits in superposition state
Quantum Fourier Transform
advancedSimple QFT on 3 qubits
Measurement Results
Quantum state measurement outcomes
Run simulation to see results
About Quantum Circuits
Common Gates:
- H (Hadamard): Creates superposition states
- X, Y, Z: Pauli gates for qubit rotations
- CNOT: Controlled-NOT for entanglement
- T, S: Phase gates for complex amplitudes
- Measure: Collapses quantum state to classical bit
Key Concepts:
- Qubits: Quantum bits that can be in superposition
- Superposition: Qubits can be 0 and 1 simultaneously
- Entanglement: Correlated quantum states
- Measurement: Collapses quantum state to classical
About the Quantum Circuit Simulator
Design and simulate quantum circuits with real quantum gates. Build circuits with Hadamard, Pauli, CNOT, and measurement gates.
Drag and drop gates to build a circuit, then run the simulation to see measurement results. Educational and experimental.
- Real quantum gates: Hadamard, Pauli-X/Y/Z, CNOT, SWAP, T, S, and rotation gates
- Pre-built circuits: Bell State, Quantum Teleportation, Fourier Transform, Grover Search
- Complex state vector simulation with amplitude visualization
- Measurement with probabilistic collapse to classical bits
- Supports 1-8 qubits with full entanglement modeling
- Export circuit configuration as JSON
How to use
- Select gates from the palette.
- Place them on the qubit wires.
- Run the simulation to see results.
Frequently Asked Questions
What is a Bell State and why is it important? ▾
A Bell State is a pair of maximally entangled qubits. When you measure one, you instantly know the state of the other regardless of distance. This is the foundation of quantum teleportation and superdense coding.
How does quantum simulation work in a browser? ▾
The simulator represents the quantum state as a complex vector of 2^n amplitudes (where n is the number of qubits). Each gate applies a unitary matrix transformation to this vector. For 3 qubits, that is an 8-dimensional complex vector — easily computed in JavaScript.
What is the difference between superposition and entanglement? ▾
Superposition is a single qubit being in multiple states simultaneously (like a coin spinning). Entanglement is when multiple qubits share a correlated state — measuring one affects the others. The Bell State demonstrates both.
Can I build my own circuits? ▾
Yes — select gates from the palette and place them on qubit wires. Connect qubits with CNOT gates for entanglement. Add measurements to see probabilistic results. Start with the pre-built examples to learn the patterns.