Level 2

Quantum Gates

Quantum gates are reversible operations that rotate, flip, phase, or connect qubits.

Try it now

Visualize

Read circuits left to right: each box changes the state before the next box acts.

Understand

H spreads amplitude, X flips, Z/S/T change phase, and CX links qubits.

Why it matters

Algorithms are built by arranging gates so useful amplitudes grow.

Misconception

A gate is not a measurement unless the circuit explicitly says MEASURE.

Apply

Try S and T between two H gates and watch probabilities shift.

Example DSL

# Phase kick with S and T
qubits 1
H 0
S 0
T 0
H 0
MEASURE 0

Quick check

Which statement is true?