Ket
∣ψ⟩=(ψ0ψ1)
∣0⟩=(10)
∣1⟩=(01)
∣ψ⟩=ψ0∣0⟩+ψ1∣1⟩=ψ0(10)+ψ1(01)
Matrices
- Matrices represent linear transformations (quantum gates). A general 2x2 matrix is:
A=(α00α10α01α11)
- Identity matrix:
I=(1001)
- Linearity:
A(∣ψ⟩+∣ϕ⟩)=A∣ψ⟩+A∣ϕ⟩
Bra and Daggers
Dagger
- Conjugate Transpose: swap rows/columns and complex-conjugates every entry.
- Ket becomes Bra:
∣ψ⟩†=(ψ0ψ1)†=(ψ0ψ1)=⟨ψ∣
- For a matrix:
A†=(α00α01α10α11)
- Key Identities:
- (αA)†=αA†
- (A†)†=A
- (AB)†=B†A†
Hermitian and Unitary Matrices
- Hermitian: H†=H
- Self-adjoint matrices, their eigenvalues are always real.
- Observables in quantum mechanics are Hermitian.
- Unitary: U†U=UU†=I
- The inverse of a unitary matrix is its conjugate transpose.
- Unitary matrices preserve norms
Inner Product
- The angle between two vectors ∣ψ⟩ and ∣ϕ⟩ is defined as bra-ket:
⟨ψ∣ϕ⟩=(ψ0ψ1)(ϕ0ϕ1)=ψ0ϕ0+ψ1ϕ1
- Important properties:
- Order Matters: ⟨ψ∣ϕ⟩=⟨ϕ∣ψ⟩
- But ⟨ψ∣ϕ⟩=⟨ϕ∣ψ⟩ (Complex Conjugate)
- The modulus is symmetric: ∣⟨ψ∣ϕ⟩∣=∣⟨ϕ∣ψ⟩∣
- The Magnitude of a vector is given by:
∥∣ψ⟩∥2=⟨ψ∣ψ⟩=∣ψ0∣2+∣ψ1∣2
Orthonormal of the Computational Basis
- The basis states ∣0⟩ and ∣1⟩ are orthonormal:
⟨0∣0⟩=1,⟨1∣1⟩=1,⟨0∣1⟩=0,⟨1∣0⟩=0
- This simplifies inner products enormously when working with the computational basis:
⟨ψ∣ϕ⟩=(ψ0⟨0∣+ψ1⟨1∣)(ϕ0∣0⟩+ϕ1∣1⟩)
- All corss terms vanish due to orthogonality, leaving:
=ψ0ϕ0⟨0∣0⟩+ψ0ϕ1⟨0∣1⟩+ψ1ϕ0⟨1∣0⟩+ψ1ϕ1⟨1∣1⟩
=ψ0ϕ0+ψ1ϕ1
Outer Products
- The outer product of two vectors produces a matrix:
∣ψ⟩⟨ϕ∣=(ψ0ψ1)(ϕ0ϕ1)=(ψ0ϕ0ψ1ϕ0ψ0ϕ1ψ1ϕ1)
- Basis outer products:
∣0⟩⟨1∣=(0010),∣1⟩⟨0∣=(0100)
- Any matrix can be expanded in terms of outer products of the computational basis:
A=α00∣0⟩⟨0∣+α01∣0⟩⟨1∣+α10∣1⟩⟨0∣+α11∣1⟩⟨1∣
The Qubit
A qubit is the fundamental unit of quantum information
∣ψ⟩=α∣0⟩+β∣1⟩
- where α,β∈C are complex numbers such that ∣α∣2+∣β∣2=1 (normalization condition).
- Any normalized single-qubit state can be parameterized using two angles θ and ϕ (real numbers):
∣ψ⟩=cosθ∣0⟩+eiϕsinθ∣1⟩
- Key difference from a bit: a bit is either 0 or 1, while a qubit can be in a superposition of both states simultaneously until measured.
Measurement
- When you measure a qubit ∣ψ⟩=α∣0⟩+β∣1⟩ in the computational basis, you get:
- ∣0⟩ with probability ∣α∣2
- ∣1⟩ with probability ∣β∣2
| Outcome | Probability | Post-measurement State |
|---|
| 0 | $ | \alpha |
| 1 | $ | \beta |
- The result of measuring a qubit is a single classical bit.
- For ∣ψ⟩=cosθ∣0⟩+eiϕsinθ∣1⟩:
- Probability of measuring ∣0⟩: cos2θ
- Probability of measuring ∣1⟩: sin2θ
- The phase ϕ does not affect measurement outcomes.
One-Qubit Gates
Pauli Matrices
Unitary matrics
I=(1001),X=(0110),Y=(0i−i0),Z=(100−1)
- X is the quantum NOT gate:
- X∣0⟩=∣1⟩
- X∣1⟩=∣0⟩
- Z filps the phase of ∣1⟩:
- Z∣0⟩=∣0⟩
- Z∣1⟩=−∣1⟩
- All three (X,Y,Z) are both Hermitian and unitary.
Hadamard Gate
H=21(111−1)
- H creates superpositions:
- H∣0⟩=2∣0⟩+∣1⟩
- H∣1⟩=2∣0⟩−∣1⟩
- H also "un-does" superpositions:
- H(2∣0⟩+∣1⟩)=∣0⟩
- H(2∣0⟩−∣1⟩)=∣1⟩
Rotation Gate
R(θ)=(cosθ−sinθsinθcosθ)
- R(θ) rotates the state vector by an angle θ in the ∣0⟩-∣1⟩ plane.
The Bloch Sphere
Every single-qubit state ∣ψ⟩=cosθ∣0⟩+eiϕsinθ∣1⟩ maps to a point on the surface of a unit sphere
- θ is polar angle from north pole
- ϕ is azimuthal angle around equator
- ∣0⟩ is at the north pole
- ∣1⟩ is at the south pole
- 2∣0⟩+∣1⟩ is on the equator at ϕ=0
Exercises
- For any two-dimensional state vector ∣ψ⟩=α∣0⟩+β∣1⟩, it holds that ∣α∣2+∣β∣2=1.
- Measuring a qubit in the {∣0⟩,∣1⟩} basis yields a probabilistic outcome when both α and β are non-zero.
- A global phase factor eiγ applied to a qubit state does not change the probabilities of measurement outcomes in the computational basis.
- The Bloch sphere represents all pure single-qubit states as points on the surface of the sphere.
- A real 2×2 matrix is a valid quantum gate only if it is unitary, not merely invertible.
- The Pauli-X gate flips ∣0⟩ to ∣1⟩ and ∣1⟩ to ∣0⟩.
- When a qubit is measured in a given basis, the state collapses to the basis state corresponding to the measurement outcome.
- Unitary matrices preserve the norm of any vector they act on.
- If ∣ψ⟩=cos(θ)∣0⟩+eiϕsin(θ)∣1⟩, then the probability of measuring ∣0⟩ is cos2(θ).
- The state 21∣0⟩+23∣1⟩ is properly normalized.
- If ∣ψ⟩=31∣0⟩+32eiπ/4∣1⟩, then the probability of measuring ∣0⟩ is 31.
- The states 21(∣0⟩+∣1⟩) and 21(∣0⟩−∣1⟩) are orthogonal.
- The Pauli-X matrix X=(0110) satisfies X2=I, where I is the 2×2 identity matrix.
- Applying the Pauli-Z gate Z=(100−1) to 21(∣0⟩+i∣1⟩) produces 21(∣0⟩−i∣1⟩).