Site Tools


ket-01

Table of Contents

The state is a two-qubit computational basis state with qubit 0 in and qubit 1 in . It is the tensor product — an unentangled product state. It is reached from by a single gate on qubit 1.

Measuring qubit 0 yields with certainty; measuring qubit 1 yields with certainty. Applying then CX maps directly to , making it the natural starting state for the -type Bell states.

Qiskit

# Prepare |01⟩ — flip qubit 1 from the default |00⟩ state.
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector

qc = QuantumCircuit(2)
qc.x(1)  # |00⟩ → |01⟩

print(Statevector(qc).data)

Applying gates

Single-qubit gates act on qubit 0. Qubit 1 is in , so gates on qubit 1 follow the single-qubit rules with qubit 0 unchanged.

Gate Result Comment
I gate Identity leaves the state unchanged.
X gate Flips qubit 0 from to ; qubit 1 is unchanged.
Y gate Bit flip with an imaginary phase factor on qubit 0.
Z gate Qubit 0 is in , an eigenstate of with eigenvalue ; no effect.
Hadamard gate Puts qubit 0 into equal superposition; qubits remain unentangled.
S gate Phase gate only affects ; qubit 0 is in so nothing changes.
T gate Same as : no effect when the target qubit is in .
Rx gate Tilts qubit 0 toward ; qubit 1 is unchanged throughout.
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 qubit 0 = ; CX only fires on , so qubit 1 is unchanged.
SWAP gate Exchanges the two qubits.
iSWAP gate Exchanges and with a phase of .

Reaching other states

State Gates Comment
The identity leaves unchanged.
X on qubit 1 flips it from back to .
X on qubit 0 flips the first bit.
X on both qubits; equivalent to SWAP.
Bell preparation: H on qubit 0, then CX. The standard starting state for .
Bell preparation then Z on qubit 0 flips the relative sign.
Flip qubit 1 first to reach , then apply the standard Bell preparation.
As above, then Z on qubit 0.
ket-01.md · Last modified: