Basic
量子叠加(superposition)、量子纠缠(entanglement)、量子干涉(interference)
单个 qubit
基态(Deterministic State)
- ∣0⟩
- ∣1⟩
∣⟩ is called a ket.
叠加态(Superposition State)
∣φ⟩=a∣0⟩+b∣1⟩=(ab)
表示:对这个 qubit 进行「测量」操作的时候,有 ∣a∣2 的概率得到 0,有 ∣b∣2 的概率得到 1,其中 ∣a∣2+∣b∣2=1。
两个常见的叠加态:
- ∣+⟩=21(∣0⟩+∣1⟩)
- ∣−⟩=21(∣0⟩−∣1⟩)
其他:
- ∣±⟩=21(∣0⟩±∣1⟩)
- ∣0⟩=21(∣+⟩+∣−⟩)
- ∣1⟩=21(∣+⟩−∣−⟩)
- ∣μ⟩=21(∣0⟩+i∣1⟩)
- ∣ν⟩=21(∣0⟩−i∣1⟩)
布洛赫球面(Bloch Sphere)

Qubit state: cos(θ/2)∣0⟩+eiφsin(θ/2)∣1⟩
Polar angle: θ
Azimuthal Angle: φ
- ∣0⟩:θ=0,φ=0
- ∣1⟩:θ=π,φ=0
- ∣+⟩:θ=π/2,φ=0
- ∣−⟩:θ=π/2,φ=π
- ∣μ⟩:θ=π/2,φ=3π/2
- ∣ν⟩:θ=π/2,φ=π/2
单量子门
- Hadamard Gate - H
- Identity Gate - I
- 非门 - X
- Z Gate - Z
- S Gate - S (S=Z)
Every quantum gate must always be reversible.
H=[111−1],I=[1001],X=[0110],Z=[100−1],S=[100i]
- H∣0⟩=∣+⟩, H∣1⟩=∣−⟩, H∣+⟩=∣0⟩, H∣−⟩=∣1⟩
- H⋅H=I
- I∣0⟩=∣0⟩, I∣1⟩=∣1⟩, I∣+⟩=∣+⟩, I∣−⟩=∣−⟩
- X∣0⟩=∣1⟩, X∣1⟩=∣0⟩
- Z∣0⟩=∣0⟩, Z∣1⟩=−∣1⟩, Z∣+⟩=∣−⟩, Z∣−⟩=∣+⟩
- S∣+⟩=∣μ⟩, S∣−⟩=∣ν⟩
The phase gate S and Z are 90° and 180° rotations around the vertical axis, often referred to as the z-axis.
The quantum NOT gate X is a 180° rotation around the horizontal axis between the Hadamard states, often referred to as the x-axis.
The Hadamard gate H is a 180° rotation around a diagonal between the x and z axes.
Rx(θ)=[cos(θ/2)−isin(θ/2)−isin(θ/2)cosθ/2]
Rz(φ)=[100eiφ/2]
Entanglement 纠缠
The Bell state is the prototypical example of anentangledstate.
∣φ⟩bell=21(∣00⟩+∣11⟩)