Skip to main content

Quantum Gate Visualizer

Every single-qubit gate is a 2×22\times 2 unitary matrix. Acting on the basis states 0\lvert 0 \rangle and 1\lvert 1 \rangle, the columns of the matrix tell you exactly where each basis state goes.

Select a gate to see its matrix and its action:

Gate H

0.7070.7070.707−0.707

Hadamard — creates equal superposition.

InputOutput
|0⟩(|0⟩+|1⟩)/√2
|1⟩(|0⟩−|1⟩)/√2

The gate cheat-sheet

  • X, Y, Z — the Pauli gates. XX is the quantum NOT, ZZ flips the phase of 1\lvert 1 \rangle, and Y=iXZY = iXZ does both.
  • H (Hadamard) — turns basis states into superpositions and back. It maps the zz-axis to the xx-axis on the Bloch sphere.
  • S and T — phase gates. S=ZS = \sqrt{Z} adds a π/2\pi/2 phase; T=ST = \sqrt{S} adds π/4\pi/4. The set {H,T,CNOT}\{H, T, \text{CNOT}\} is universal — it can approximate any quantum computation.
Unitarity

A matrix UU is a valid quantum gate iff UU=IU^\dagger U = I. This guarantees the total probability stays 11 and the operation is reversible.

Now build multi-qubit circuits in the Circuit Builder.