Flips |0⟩ ↔ |1⟩ for the target qubit.
The measured bit result flips.
Rotates 180° around the X axis. Swaps north and south poles.
13 gates and measurement. Each card shows the matrix representation, Bloch sphere geometry, truth table (where applicable), and a link to try it in the simulator.
Flips |0⟩ ↔ |1⟩ for the target qubit.
The measured bit result flips.
Rotates 180° around the X axis. Swaps north and south poles.
Adds a phase flip to |1⟩ without flipping the bit.
Histogram may look unchanged right now.
Phase shift — a later Hadamard reveals it.
Rotates 180° around the Z axis. Flips equatorial phase without moving the poles.
Creates equal superposition from a basis state.
Measurement odds spread more evenly.
Relative phase may affect later interference.
Rotates 180° around the axis halfway between X and Z. Maps north pole to equator.
Flips the target when the control is |1⟩.
Joint two-qubit probability structure changes.
Creates entanglement when control is in superposition.
Conditional rotation of target qubit. Creates entanglement from superposed control.
Flips target only when both controls are |1⟩.
Classical AND logic applied to amplitudes.
Still acts on superpositions — not purely classical.
Conditional X on target when both controls are |1⟩.
Exchanges the quantum states of two qubits.
Qubit roles swap in the output.
Exchanges the Bloch vectors of two qubits.
Adds a quarter-turn of phase to the |1⟩ branch.
Measurement odds stay the same.
Quarter-turn phase — visible only after another mixing gate.
Rotates 90° around the Z axis. Quarter-turn of equatorial phase.
Rotates around the X axis by angle θ.
Gradually mixes |0⟩ and |1⟩ amplitudes.
At θ=π this becomes the X gate.
Rotates by θ around the X axis. At θ=π, becomes X gate.
Rotates around the Y axis by angle θ.
Creates real-valued superpositions.
At θ=π this becomes the Y gate (up to phase).
Rotates by θ around the Y axis. Stays in the XZ plane.
Rotates around the Z axis by angle θ.
Adjusts relative phase between |0⟩ and |1⟩.
Phase-only change — visible after mixing gates.
Rotates by θ around the Z axis. At θ=π, becomes Z gate.
Most general single-qubit gate — any rotation via θ, φ, λ.
Can change both probabilities and phase simultaneously.
Subsumes all single-qubit gates as special cases.
Arbitrary rotation. Three parameters cover any point on the sphere.
Applies Z to target when control is |1⟩.
Joint two-qubit phase structure changes.
Creates entanglement when control is in superposition.
Conditional phase flip. Symmetric between qubits — no control/target distinction.
Applies a configurable phase rotation to the |11⟩ state.
Joint phase structure changes by angle θ.
At θ=π this becomes the CZ gate.
Conditional phase rotation by θ. At θ=π, becomes CZ.
Collapses quantum state to a classical result.
One outcome is sampled from the distribution.
The full superposition information is discarded.
Projects the Bloch vector to the nearest pole. The sphere collapses to |0⟩ or |1⟩.
Matrices are in the computational basis {|0\u27E9, |1\u27E9} for single-qubit gates and {|00\u27E9, |01\u27E9, |10\u27E9, |11\u27E9} for two-qubit gates. Rotation angles are in radians. Parameterized gates (RX, RY, RZ, U3, CP) accept user-defined parameters through the inline editor. Reference: Nielsen & Chuang, Quantum Computation and Quantum Information (Cambridge University Press, 2010).