skip to content
Ivan's wiki
Site Tools
Search
Tools
Show pagesource
Backlinks
Recent Changes
Media Manager
Sitemap
>
Recent Changes
Media Manager
Sitemap
ket-01
This page is read only. You can view the source, but not change it.
# $\lvert 01\rangle$ The **$\lvert 01\rangle$ state** is a two-qubit computational basis state with qubit 0 in $\lvert 0\rangle$ and qubit 1 in $\lvert 1\rangle$. It is the tensor product $\lvert 0\rangle\otimes\lvert 1\rangle$ — an unentangled product state. It is reached from [$\lvert 00\rangle$](/ket-00) by a single $X$ gate on qubit 1. $$\lvert 01\rangle = \lvert 0\rangle\otimes\lvert 1\rangle = \begin{pmatrix}0\\1\\0\\0\end{pmatrix}$$ Measuring qubit 0 yields $0$ with certainty; measuring qubit 1 yields $1$ with certainty. Applying $H\otimes I$ then CX maps $\lvert 01\rangle$ directly to [$\lvert\Psi^+\rangle$](/ket-psi-plus), making it the natural starting state for the $\Psi$-type Bell states. ## Qiskit ```python # 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 $\lvert 1\rangle$, so gates on qubit 1 follow the [$\lvert 1\rangle$](/ket-1) single-qubit rules with qubit 0 unchanged. | Gate | Result | Comment | | --- | --- | --- | | [I gate](/i-gate) | $I_0\lvert 01\rangle = \lvert 01\rangle$ | Identity leaves the state unchanged. | | [X gate](/x-gate) | $X_0\lvert 01\rangle = \lvert 11\rangle$ | Flips qubit 0 from $\lvert 0\rangle$ to $\lvert 1\rangle$; qubit 1 is unchanged. | | [Y gate](/y-gate) | $Y_0\lvert 01\rangle = i\lvert 11\rangle$ | Bit flip with an imaginary phase factor on qubit 0. | | [Z gate](/z-gate) | $Z_0\lvert 01\rangle = \lvert 01\rangle$ | Qubit 0 is in $\lvert 0\rangle$, an eigenstate of $Z$ with eigenvalue $+1$; no effect. | | [Hadamard gate](/h-gate) | $H_0\lvert 01\rangle = \tfrac{1}{\sqrt{2}}(\lvert 01\rangle + \lvert 11\rangle)$ | Puts qubit 0 into equal superposition; qubits remain unentangled. | | [S gate](/s-gate) | $S_0\lvert 01\rangle = \lvert 01\rangle$ | Phase gate only affects $\lvert 1\rangle$; qubit 0 is in $\lvert 0\rangle$ so nothing changes. | | [T gate](/t-gate) | $T_0\lvert 01\rangle = \lvert 01\rangle$ | Same as $S$: no effect when the target qubit is in $\lvert 0\rangle$. | | [Rx gate](/rx-gate) | $R_x(\theta)_0\lvert 01\rangle = \cos\tfrac{\theta}{2}\lvert 01\rangle - i\sin\tfrac{\theta}{2}\lvert 11\rangle$ | Tilts qubit 0 toward $\lvert 1\rangle$; qubit 1 is unchanged throughout. | | [Ry gate](/ry-gate) | $R_y(\theta)_0\lvert 01\rangle = \cos\tfrac{\theta}{2}\lvert 01\rangle + \sin\tfrac{\theta}{2}\lvert 11\rangle$ | Real amplitudes; at $\theta=\pi/2$ gives $\tfrac{1}{\sqrt{2}}(\lvert 01\rangle + \lvert 11\rangle)$, the same result as $H_0$. | | [Rz gate](/rz-gate) | $R_z(\theta)_0\lvert 01\rangle = e^{-i\theta/2}\lvert 01\rangle$ | Global phase only; qubit 0 is on the $z$-axis so a $z$-rotation has no observable effect. | | [CX gate (CNOT)](/cx-gate) | $\text{CX}_{0\to 1}\lvert 01\rangle = \lvert 01\rangle$ | Control is qubit 0 = $\lvert 0\rangle$; CX only fires on $\lvert 1\rangle$, so qubit 1 is unchanged. | | [SWAP gate](/swap-gate) | $\text{SWAP}\lvert 01\rangle = \lvert 10\rangle$ | Exchanges the two qubits. | | [iSWAP gate](/iswap-gate) | $\text{iSWAP}\lvert 01\rangle = i\lvert 10\rangle$ | Exchanges $\lvert 01\rangle$ and $\lvert 10\rangle$ with a phase of $i$. | ## Reaching other states | State | Gates | Comment | | --- | --- | --- | | $\lvert 01\rangle$ | $I\lvert 01\rangle = \lvert 01\rangle$ | The identity leaves $\lvert 01\rangle$ unchanged. | | [$\lvert 00\rangle$](/ket-00) | $X_1\lvert 01\rangle = \lvert 00\rangle$ | X on qubit 1 flips it from $\lvert 1\rangle$ back to $\lvert 0\rangle$. | | $\lvert 11\rangle$ | $X_0\lvert 01\rangle = \lvert 11\rangle$ | X on qubit 0 flips the first bit. | | [$\lvert 10\rangle$](/ket-10) | $X_0 X_1\lvert 01\rangle = \lvert 10\rangle$ | X on both qubits; equivalent to SWAP. | | [$\lvert\Psi^+\rangle$](/ket-psi-plus) | $\text{CX}\cdot(H_0\otimes I)\lvert 01\rangle$ | Bell preparation: H on qubit 0, then CX. The standard starting state for $\lvert\Psi^+\rangle$. | | [$\lvert\Psi^-\rangle$](/ket-psi-minus) | $Z_0\cdot\text{CX}\cdot(H_0\otimes I)\lvert 01\rangle$ | Bell preparation then Z on qubit 0 flips the relative sign. | | [$\lvert\Phi^+\rangle$](/ket-phi-plus) | $\text{CX}\cdot(H_0\otimes I)\cdot X_1\lvert 01\rangle$ | Flip qubit 1 first to reach $\lvert 00\rangle$, then apply the standard Bell preparation. | | [$\lvert\Phi^-\rangle$](/ket-phi-minus) | $Z_0\cdot\text{CX}\cdot(H_0\otimes I)\cdot X_1\lvert 01\rangle$ | As $\lvert\Phi^+\rangle$ above, then Z on qubit 0. |
Page Tools
Show pagesource
Backlinks
Back to top