Site Tools


ket-00

Table of Contents

The state is the two-qubit computational basis state where both qubits are . It is the tensor product — a product state with no entanglement between the qubits. It is the default initial state of every qubit register in a quantum circuit.

Measuring either qubit of yields with certainty and leaves the state unchanged. Applying then CX prepares directly; all four Bell states are reachable from by that circuit plus at most one additional Pauli gate.

Qiskit

# Prepare |00⟩ — default state; qiskit initializes all qubits to |0⟩, no gates needed.
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector

qc = QuantumCircuit(2)
print(Statevector(qc).data)

Applying gates

Single-qubit gates act on qubit 0. By symmetry of , applying the same gate to qubit 1 gives the same result with the qubit labels swapped.

Gate Result Comment
I gate Identity leaves the state unchanged.
X gate Flips qubit 0; the quantum analogue of flipping the first bit of a classical 00.
Y gate Bit flip with an imaginary phase factor on qubit 0.
Z gate is an eigenstate of with eigenvalue ; no observable effect.
Hadamard gate Puts qubit 0 into equal superposition; the two qubits remain unentangled. A subsequent CX entangles them into .
S gate Phase gate only affects the component; qubit 0 is in so nothing changes.
T gate Same as : no effect when the target qubit is in .
Rx gate Tilts qubit 0 from toward with an imaginary phase on the component.
Ry gate Real amplitudes; at gives , the same result as .
Rz gate Global phase only; qubit 0 is on the -axis so a -rotation has no observable effect.
CX gate (CNOT) Control is ; CX only fires on , so the target qubit is unchanged.
SWAP gate Swapping two qubits leaves the state unchanged.
iSWAP gate No or terms to exchange; the state is unchanged.

Reaching other states

State Gates Comment
The identity leaves unchanged.
X on qubit 1 flips the second bit.
X on qubit 0 flips the first bit.
X on both qubits; quantum analogue of classical NOT NOT 00 = 11.
The standard Bell state preparation circuit: H on qubit 0, then CX.
Bell preparation then Z on qubit 0 flips the relative sign.
Flip qubit 1 first to get , then apply the Bell preparation circuit.
As above, then Z on qubit 0.
ket-00.md · Last modified: