ket-psi-plus
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ket-psi-plus [June 13, 2026 at 01:59] – Ivan Janevski | ket-psi-plus [June 13, 2026 at 03:13] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| $$\lvert\Psi^+\rangle = \frac{1}{\sqrt{2}}(\lvert 01\rangle + \lvert 10\rangle) = \frac{1}{\sqrt{2}}\begin{pmatrix}0\\1\\1\\0\end{pmatrix}$$ | $$\lvert\Psi^+\rangle = \frac{1}{\sqrt{2}}(\lvert 01\rangle + \lvert 10\rangle) = \frac{1}{\sqrt{2}}\begin{pmatrix}0\\1\\1\\0\end{pmatrix}$$ | ||
| - | It is prepared from $\lvert 01\rangle$ by applying $H\otimes I$ then CNOT, or equivalently from $\lvert 00\rangle$ by first flipping qubit 1 with $X$, then applying $H\otimes I$ and CNOT. Applying $X$ to either qubit of [[ket-phi-plus|$\lvert\Phi^+\rangle$]] also reaches $\lvert\Psi^+\rangle$. In the X basis, $\lvert\Psi^+\rangle = \tfrac{1}{\sqrt{2}}(\lvert ++\rangle - \lvert --\rangle)$, | + | It is prepared from $\lvert 01\rangle$ by applying $H\otimes I$ then CX, or equivalently from $\lvert 00\rangle$ by first flipping qubit 1 with $X$, then applying $H\otimes I$ and CX. Applying $X$ to either qubit of [[ket-phi-plus|$\lvert\Phi^+\rangle$]] also reaches $\lvert\Psi^+\rangle$. In the X basis, $\lvert\Psi^+\rangle = \tfrac{1}{\sqrt{2}}(\lvert ++\rangle - \lvert --\rangle)$, |
| ## Qiskit | ## Qiskit | ||
| ```python | ```python | ||
| - | # Prepare |Ψ+⟩ = (|01⟩ + |10⟩)/ | + | # Prepare |Ψ+⟩ = (|01⟩ + |10⟩)/ |
| from qiskit import QuantumCircuit | from qiskit import QuantumCircuit | ||
| from qiskit.quantum_info import Statevector | from qiskit.quantum_info import Statevector | ||
| Line 16: | Line 16: | ||
| qc.x(1) | qc.x(1) | ||
| qc.h(0) | qc.h(0) | ||
| - | qc.cx(0, 1) # CNOT: → (|01⟩ + |10⟩)/ | + | qc.cx(0, 1) # CX: → (|01⟩ + |10⟩)/ |
| print(Statevector(qc).data) | print(Statevector(qc).data) | ||
| Line 30: | Line 30: | ||
| | [[y-gate]] | $Y_1\lvert\Psi^+\rangle = i\lvert\Phi^-\rangle$ | Bit-flip with phase; the $-i$ on the $\lvert 00\rangle$ term introduces a relative minus sign, giving $\lvert\Phi^-\rangle$ up to global phase. | | | [[y-gate]] | $Y_1\lvert\Psi^+\rangle = i\lvert\Phi^-\rangle$ | Bit-flip with phase; the $-i$ on the $\lvert 00\rangle$ term introduces a relative minus sign, giving $\lvert\Phi^-\rangle$ up to global phase. | | ||
| | [[z-gate]] | $Z_1\lvert\Psi^+\rangle = \lvert\Psi^-\rangle$ | Negates the $\lvert 1\rangle$ component of qubit 1, which appears only in $\lvert 10\rangle$, flipping the relative sign to antisymmetric. | | | [[z-gate]] | $Z_1\lvert\Psi^+\rangle = \lvert\Psi^-\rangle$ | Negates the $\lvert 1\rangle$ component of qubit 1, which appears only in $\lvert 10\rangle$, flipping the relative sign to antisymmetric. | | ||
| - | | [[h-gate]] | $H_1\lvert\Psi^+\rangle$ (not a Bell state) | Bell measurement circuit: | + | | [[h-gate]] | $H_1\lvert\Psi^+\rangle$ (not a Bell state) | Bell measurement circuit: |
| | [[s-gate]] | $S_1\lvert\Psi^+\rangle = \tfrac{1}{\sqrt{2}}(\lvert 01\rangle + i\lvert 10\rangle)$ | Adds a phase of $i$ to the $\lvert 10\rangle$ term; not a standard Bell state. | | | [[s-gate]] | $S_1\lvert\Psi^+\rangle = \tfrac{1}{\sqrt{2}}(\lvert 01\rangle + i\lvert 10\rangle)$ | Adds a phase of $i$ to the $\lvert 10\rangle$ term; not a standard Bell state. | | ||
| | [[t-gate]] | $T_1\lvert\Psi^+\rangle = \tfrac{1}{\sqrt{2}}(\lvert 01\rangle + e^{i\pi/ | | [[t-gate]] | $T_1\lvert\Psi^+\rangle = \tfrac{1}{\sqrt{2}}(\lvert 01\rangle + e^{i\pi/ | ||
| Line 36: | Line 36: | ||
| | [[ry-gate]] | Mixes $\lvert\Psi^+\rangle$ with $\lvert\Phi^-\rangle$ | Y-type rotations couple the $\lvert\Psi^+\rangle$ and $\lvert\Phi^-\rangle$ Bell states. | | | [[ry-gate]] | Mixes $\lvert\Psi^+\rangle$ with $\lvert\Phi^-\rangle$ | Y-type rotations couple the $\lvert\Psi^+\rangle$ and $\lvert\Phi^-\rangle$ Bell states. | | ||
| | [[rz-gate]] | $R_z(\theta)_1\lvert\Psi^+\rangle = \tfrac{e^{-i\theta/ | | [[rz-gate]] | $R_z(\theta)_1\lvert\Psi^+\rangle = \tfrac{e^{-i\theta/ | ||
| - | | [[cnot-gate]] | $\text{CNOT}\lvert\Psi^+\rangle = \lvert +\rangle\lvert 1\rangle$ | Disentangles $\lvert\Psi^+\rangle$ back to the product state used to prepare it. | | + | | [[cx-gate]] | $\text{CX}\lvert\Psi^+\rangle = \lvert +\rangle\lvert 1\rangle$ | Disentangles $\lvert\Psi^+\rangle$ back to the product state used to prepare it. | |
| - | | [[cwap-gate]] | $\text{SWAP}\lvert\Psi^+\rangle = \lvert\Psi^+\rangle$ | Symmetric under qubit exchange; eigenstate of SWAP with eigenvalue $+1$. | | + | | [[swap-gate]] | $\text{SWAP}\lvert\Psi^+\rangle = \lvert\Psi^+\rangle$ | Symmetric under qubit exchange; eigenstate of SWAP with eigenvalue $+1$. | |
| | [[iswap-gate]] | $\text{iSWAP}\lvert\Psi^+\rangle = i\lvert\Psi^+\rangle$ | Both terms pick up a factor of $i$; eigenstate of iSWAP with eigenvalue $i$. | | | [[iswap-gate]] | $\text{iSWAP}\lvert\Psi^+\rangle = i\lvert\Psi^+\rangle$ | Both terms pick up a factor of $i$; eigenstate of iSWAP with eigenvalue $i$. | | ||
ket-psi-plus.1781315978.txt.gz · Last modified: by Ivan Janevski
