Site Tools


applying-gates-to-zero-state

Table of Contents

Applying gates to (Zero state)

Gate Matrix form Derivation
I gate
X gate
Y gate
Z gate
Hadamard gate
S gate
T gate

Gates

1-qubit

Gate Result Comment
I gate The identity gate leaves unchanged.
X gate Flips to ; quantum analogue of classical NOT.
Y gate Bit flip with an imaginary phase factor.
Z gate is an eigenstate of with eigenvalue .
Hadamard gate Rotates the north pole to the equatorial point of the Bloch sphere.
S gate Phase only affects the component; is unchanged.
T gate Phase only affects the component; is unchanged.
Tilts the state from toward with an imaginary phase on the component.
Real amplitudes; at gives , the same result as the Hadamard gate up to global phase.
Global phase only; is on the -axis so a -rotation has no observable effect.
drops out; every single-qubit state is reachable from with appropriate .

2-qubits

Gate Result Comment
CX (as control) Control is off; target qubit is always left unchanged.
CX (as target) Flipped to only when the control qubit is .
SWAP Exchanges the two qubit states; the moves to the second register.
iSWAP ; Adds a phase of when states are exchanged; trivial when both qubits are .

3-qubits

Gate Result Comment
Toffoli (as control) Control is off; target is always unchanged regardless of the second control.
Toffoli (as target) Flipped to only when both controls are .

Reaching other states

1-qubit

State Gates Comment
The identity gate leaves unchanged.
X flips the qubit; the quantum analogue of classical NOT. is its own inverse: .
Hadamard rotates the north pole to the equatorial point, creating the equal superposition .
H first produces , then Z flips its relative phase to give .
H rotates to the equatorial point, then S rotates 90° around to land on the pole.
Same as but with the inverse phase rotation, landing on the pole instead.

2-qubits

State Gates Comment
H puts qubit 1 into superposition; CX entangles qubit 2 conditionally. The simplest Bell state circuit, starting from two qubits.
Same as with a final on qubit 1 to flip the relative sign between and .
X first flips qubit 2 to ; H and CX then entangle in the anti-correlated subspace .
Same as with a final to introduce the minus sign. The singlet state, antisymmetric under qubit exchange.
applying-gates-to-zero-state.md · Last modified: