Site Tools


ket-10

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 the SWAP of , reached from by a single gate on qubit 0.

Measuring qubit 0 yields with certainty; measuring qubit 1 yields with certainty. Applying then CX maps directly to , because and .

Qiskit

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

qc = QuantumCircuit(2)
qc.x(0)  # |00⟩ → |10⟩

print(Statevector(qc).data)

Applying gates

Single-qubit gates act on qubit 0, which is in . 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 a phase factor; .
Z gate Qubit 0 is in , an eigenstate of with eigenvalue ; the overall sign flips.
Hadamard gate ; qubit 0 enters the superposition. A subsequent CX produces .
S gate ; the result is up to global phase .
T gate ; global phase only.
Rx gate Tilts qubit 0 from toward with an imaginary phase on the component.
Ry gate Real amplitudes; at gives , same as up to a sign.
Rz gate Global phase only; .
CX gate (CNOT) Control is qubit 0 = ; CX fires and flips qubit 1 from to .
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 0 flips it from back to .
X on qubit 1 flips the second bit.
X on both qubits; equivalent to SWAP.
Bell preparation: , then CX produces directly.
Bell preparation then Z on qubit 0 cancels the relative sign.
Flip qubit 1 first to reach , then apply Bell preparation.
As above, then Z on qubit 0.
ket-10.md · Last modified: