zero-state
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| zero-state [June 12, 2026 at 22:31] – Ivan Janevski | zero-state [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # $\lvert 0\rangle$ (Zero state) | ||
| - | The **zero state** $\lvert 0\rangle$ is one of the two computational basis states of a qubit. It is the quantum analogue of a classical `0` bit, and it is the standard initial state used in most quantum circuits. The other computational basis state is [[one-state|$\lvert 1\rangle$]]. | ||
| - | |||
| - | $$\lvert 0\rangle = \begin{pmatrix}1\\0\end{pmatrix}$$ | ||
| - | |||
| - | On the [[bloch-sphere]], | ||
| - | |||
| - | ## Applying gates | ||
| - | *See also*: [[applying-gates-to-zero-state]] | ||
| - | |||
| - | ^ Gate ^ Result ^ Comment ^ | ||
| - | | [[i-gate]] | $I\lvert 0\rangle = \lvert 0\rangle$ | The identity gate leaves $\lvert 0\rangle$ unchanged. | | ||
| - | | [[x-gate]] | $X\lvert 0\rangle = \lvert 1\rangle$ | Flips $\lvert 0\rangle$ to $\lvert 1\rangle$; quantum analogue of classical NOT. | | ||
| - | | [[y-gate]] | $Y\lvert 0\rangle = i\lvert 1\rangle$ | Bit flip with an imaginary phase factor. | | ||
| - | | [[z-gate]] | $Z\lvert 0\rangle = \lvert 0\rangle$ | $\lvert 0\rangle$ is an eigenstate of $Z$ with eigenvalue $+1$. | | ||
| - | | [[h-gate]] | $H\lvert 0\rangle = \lvert +\rangle$ | Rotates the north pole to the $+x$ equatorial point of the Bloch sphere. | | ||
| - | | [[s-gate]] | $S\lvert 0\rangle = \lvert 0\rangle$ | Phase only affects the $\lvert 1\rangle$ component; $\lvert 0\rangle$ is unchanged. | | ||
| - | | [[t-gate]] | $T\lvert 0\rangle = \lvert 0\rangle$ | Phase only affects the $\lvert 1\rangle$ component; $\lvert 0\rangle$ is unchanged. | | ||
| - | | [[rx-gate|$R_x(\theta)$]] | $R_x(\theta)\lvert 0\rangle = \cos\tfrac{\theta}{2}\lvert 0\rangle - i\sin\tfrac{\theta}{2}\lvert 1\rangle$ | Tilts the state from $\lvert 0\rangle$ toward $\lvert 1\rangle$ with an imaginary phase on the $\lvert 1\rangle$ component. | | ||
| - | | [[ry-gate|$R_y(\theta)$]] | $R_y(\theta)\lvert 0\rangle = \cos\tfrac{\theta}{2}\lvert 0\rangle + \sin\tfrac{\theta}{2}\lvert 1\rangle$ | Real amplitudes; at $\theta=\pi/ | ||
| - | | [[rz-gate|$R_z(\theta)$]] | $R_z(\theta)\lvert 0\rangle = e^{-i\theta/ | ||
| - | | [[u-gate|$U(\theta, | ||
| - | | [[cnot-gate|CNOT]] (as control) | $\text{CNOT}\lvert 0\rangle\lvert t\rangle = \lvert 0\rangle\lvert t\rangle$ | Control is off; target qubit $\lvert t\rangle$ is always left unchanged. | | ||
| - | | [[cnot-gate|CNOT]] (as target) | $\text{CNOT}\lvert c\rangle\lvert 0\rangle = \lvert c\rangle\lvert c\rangle$ | Flipped to $\lvert 1\rangle$ only when the control qubit is $\lvert 1\rangle$. | | ||
| - | | [[swap-gate|SWAP]] | $\text{SWAP}\lvert 0\rangle\lvert\psi\rangle = \lvert\psi\rangle\lvert 0\rangle$ | Exchanges the two qubit states; the $\lvert 0\rangle$ moves to the second register. | | ||
| - | | [[iswap-gate|iSWAP]] | $\text{iSWAP}\lvert 00\rangle = \lvert 00\rangle$; $\text{iSWAP}\lvert 01\rangle = i\lvert 10\rangle$ | Adds a phase of $i$ when states are exchanged; trivial when both qubits are $\lvert 0\rangle$. | | ||
| - | | [[toffoli-gate|Toffoli]] (as control) | $\text{CCX}\lvert 0\rangle\lvert c_2\rangle\lvert t\rangle = \lvert 0\rangle\lvert c_2\rangle\lvert t\rangle$ | Control is off; target is always unchanged regardless of the second control. | | ||
| - | | [[toffoli-gate|Toffoli]] (as target) | $\text{CCX}\lvert 1\rangle\lvert 1\rangle\lvert 0\rangle = \lvert 1\rangle\lvert 1\rangle\lvert 1\rangle$ | Flipped to $\lvert 1\rangle$ only when both controls are $\lvert 1\rangle$. | | ||
| - | |||
| - | ## Relationship with other states | ||
| - | ^ State ^ Process ^ Comment ^ | ||
| - | | $\lvert 0\rangle$ | $I \lvert 0\rangle = \lvert 0\rangle$ | The identity gate leaves $\lvert 0\rangle$ unchanged | | ||
| - | |||
| - | ^ State ^ Relationship ^ | ||
| - | | $\lvert 0\rangle$ | This state. The north pole of the [[bloch-sphere|Bloch sphere]] at $(0,0,1)$, with vector $\begin{pmatrix}1\\0\end{pmatrix}$. It is an eigenstate of $Z$ with eigenvalue $+1$, and measuring it always yields outcome $0$ with probability $1$. | | ||
| - | | [[one-state|$\lvert 1\rangle$]] | The other computational basis state, at the south pole of the Bloch sphere. $\lvert 0\rangle$ and $\lvert 1\rangle$ are orthogonal ($\langle 0\vert 1\rangle = 0$) and together span the qubit Hilbert space. The X gate (quantum NOT) swaps them: $X\lvert 0\rangle = \lvert 1\rangle$ and $X\lvert 1\rangle = \lvert 0\rangle$. | | ||
| - | | [[plus-state|$\lvert +\rangle$]] | The equal superposition $\tfrac{1}{\sqrt{2}}(\lvert 0\rangle + \lvert 1\rangle)$, produced by the Hadamard gate: $H\lvert 0\rangle = \lvert +\rangle$. The Bloch vector moves from the north pole to the $+x$ equatorial point. In reverse, $\lvert 0\rangle = \tfrac{1}{\sqrt{2}}(\lvert +\rangle + \lvert -\rangle)$ — the symmetric superposition of both X-basis eigenstates. | | ||
| - | | [[minus-state|$\lvert -\rangle$]] | Obtained by the two-gate sequence $ZH$: Hadamard maps $\lvert 0\rangle$ to $\lvert +\rangle$, then $Z$ flips the relative phase to give $\lvert -\rangle = \tfrac{1}{\sqrt{2}}(\lvert 0\rangle - \lvert 1\rangle)$. Like $\lvert +\rangle$, it carries equal weight on $\lvert 0\rangle$ and $\lvert 1\rangle$; the sign is the only difference. | | ||
| - | | [[i-state|$\lvert +i\rangle$]] | The $+y$ pole of the Bloch sphere, $\lvert +i\rangle = \tfrac{1}{\sqrt{2}}(\lvert 0\rangle + i\lvert 1\rangle)$. Prepared from $\lvert 0\rangle$ by $SH$: the Hadamard rotates to the $+x$ equatorial point, and $S$ then rotates 90° around the $z$-axis to reach the $+y$ pole. | | ||
| - | | [[minus-i-state|$\lvert -i\rangle$]] | The $-y$ pole, $\lvert -i\rangle = \tfrac{1}{\sqrt{2}}(\lvert 0\rangle - i\lvert 1\rangle)$. Prepared by $S^\dagger H\lvert 0\rangle$ — the same two steps with the inverse phase rotation. $\lvert 0\rangle = \tfrac{1}{\sqrt{2}}(\lvert +i\rangle + \lvert -i\rangle)$, | ||
| - | | [[phi-plus-state|$\lvert\Phi^+\rangle$]] | The Bell state $\tfrac{1}{\sqrt{2}}(\lvert 00\rangle + \lvert 11\rangle)$, | ||
| - | | [[phi-minus-state|$\lvert\Phi^-\rangle$]] | The Bell state $\tfrac{1}{\sqrt{2}}(\lvert 00\rangle - \lvert 11\rangle)$, | ||
| - | | [[psi-plus-state|$\lvert\Psi^+\rangle$]] | The Bell state $\tfrac{1}{\sqrt{2}}(\lvert 01\rangle + \lvert 10\rangle)$, | ||
| - | | [[psi-minus-state|$\lvert\Psi^-\rangle$]] | The singlet Bell state $\tfrac{1}{\sqrt{2}}(\lvert 01\rangle - \lvert 10\rangle)$. Measuring qubit 1 and finding $\lvert 0\rangle$ collapses qubit 2 to $\lvert 1\rangle$, the same anti-correlation as $\lvert\Psi^+\rangle$, | ||
| - | |||
| - | |||
| - | ## List of code implementations | ||
| - | |||
| - | - [[zero-state-qiskit|Qiskit]] | ||
zero-state.1781303463.txt.gz · Last modified: by Ivan Janevski
