Fundamental Mathematics of Quantum Computing I

Abstract

From Hilbert spaces and operators to projective state spaces, the Bloch sphere, and SU(2).

Published
Reading time
10 min
Level
Introductory

Share article

Fundamental Mathematics of Quantum Computing I

Quantum computing is often introduced through circuits: Hadamard gates, CNOTs, measurements, and perhaps a few algorithms.

That is useful, but it hides the structure underneath.

A quantum state is not fundamentally a bit string. It is a vector in a complex Hilbert space. A measurement is not fundamentally a readout operation. It is tied to the spectral structure of a Hermitian operator. A quantum gate is not merely a box in a circuit diagram. It is a unitary transformation preserving the geometry of the state space.

And once global phase is removed, even the space of states itself becomes geometric.

1. Quantum states live in Hilbert space

Let H\mathcal H be a complex Hilbert space.

A pure quantum state is represented by a normalized vector

∣ψ⟩∈H,|\psi\rangle \in \mathcal H,

satisfying

⟨ψ∣ψ⟩=1.\langle \psi|\psi\rangle = 1.

For a single qubit,

H=C2,\mathcal H = \mathbb C^2,

with computational basis

∣0⟩=(10),∣1⟩=(01).|0\rangle = \begin{pmatrix} 1\\ 0 \end{pmatrix}, \qquad |1\rangle = \begin{pmatrix} 0\\ 1 \end{pmatrix}.

A general qubit is therefore

∣ψ⟩=α∣0⟩+β∣1⟩,|\psi\rangle = \alpha |0\rangle + \beta |1\rangle,

where

∣α∣2+∣β∣2=1.|\alpha|^2+|\beta|^2=1.

The coefficients are amplitudes, not probabilities.

Probabilities appear only after taking absolute squares.

2. Inner products determine the geometry

The inner product between two states is written

⟨ϕ∣ψ⟩.\langle \phi|\psi\rangle.

It determines both lengths and angles.

The norm of a vector is

∥ψ∥=⟨ψ∣ψ⟩.\|\psi\| = \sqrt{\langle\psi|\psi\rangle}.

Two states are orthogonal when

⟨ϕ∣ψ⟩=0.\langle\phi|\psi\rangle=0.

For example,

⟨0∣1⟩=0.\langle0|1\rangle=0.

The computational basis therefore consists of two orthogonal directions in C2\mathbb C^2.

More generally, if {∣i⟩}\{|i\rangle\} is an orthonormal basis,

∑i∣i⟩⟨i∣=I.\sum_i |i\rangle\langle i| = I.

Hence every state may be reconstructed as

∣ψ⟩=∑i∣i⟩⟨i∣ψ⟩.|\psi\rangle = \sum_i |i\rangle\langle i|\psi\rangle.

The coefficient of ∣i⟩|i\rangle is simply

⟨i∣ψ⟩.\langle i|\psi\rangle.

3. Linear operators act on quantum states

A linear operator

A:H→HA:\mathcal H\rightarrow\mathcal H

satisfies

A(α∣ψ⟩+β∣ϕ⟩)=αA∣ψ⟩+βA∣ϕ⟩.A\left( \alpha|\psi\rangle+\beta|\phi\rangle \right) = \alpha A|\psi\rangle + \beta A|\phi\rangle.

The adjoint of AA is denoted by

A†.A^\dagger.

For a finite-dimensional matrix,

A†=A‾ T.A^\dagger = \overline A^{\,T}.

For example,

A=(1i23)A= \begin{pmatrix} 1&i\\ 2&3 \end{pmatrix}

has adjoint

A†=(12−i3).A^\dagger = \begin{pmatrix} 1&2\\ -i&3 \end{pmatrix}.

This operation separates two important classes of quantum operators.

4. Hermitian operators describe observables

An operator is Hermitian when

A=A†.A=A^\dagger.

The significance of this condition is spectral.

Suppose

A∣ψ⟩=λ∣ψ⟩.A|\psi\rangle = \lambda|\psi\rangle.

Then

⟨ψ∣A∣ψ⟩=λ⟨ψ∣ψ⟩.\langle\psi|A|\psi\rangle = \lambda\langle\psi|\psi\rangle.

Since AA is Hermitian,

⟨ψ∣A∣ψ⟩=⟨Aψ∣ψ⟩.\langle\psi|A|\psi\rangle = \langle A\psi|\psi\rangle.

Using

A∣ψ⟩=λ∣ψ⟩,A|\psi\rangle = \lambda|\psi\rangle,

taking the adjoint gives (This is because scalars are complex conjugated when moved to the bra)

⟨Aψ∣=λ∗⟨ψ∣\langle A\psi|=\lambda^*\langle\psi|

we obtain

⟨Aψ∣ψ⟩=λ∗⟨ψ∣ψ⟩.\langle A\psi|\psi\rangle = \lambda^* \langle\psi|\psi\rangle.

Therefore,

λ⟨ψ∣ψ⟩=λ∗⟨ψ∣ψ⟩.\lambda \langle\psi|\psi\rangle = \lambda^* \langle\psi|\psi\rangle.

Since ∣ψ⟩≠0|\psi\rangle\neq0,

λ=λ∗.\lambda=\lambda^*.

Hence

λ∈R\lambda\in\mathbb R

The eigenvalues of a Hermitian operator are real.

This is precisely what we need if eigenvalues are to represent possible measurement outcomes.

5. Distinct eigenvalues produce orthogonal states

Let

A∣ψ⟩=λ∣ψ⟩A|\psi\rangle = \lambda|\psi\rangle

and

A∣ϕ⟩=μ∣ϕ⟩,A|\phi\rangle = \mu|\phi\rangle,

where

λ≠μ.\lambda\neq\mu.

Then

⟨ϕ∣A∣ψ⟩=λ⟨ϕ∣ψ⟩.\langle\phi|A|\psi\rangle = \lambda \langle\phi|\psi\rangle.

Hermiticity also gives

⟨ϕ∣A∣ψ⟩=⟨Aϕ∣ψ⟩=μ⟨ϕ∣ψ⟩.\langle\phi|A|\psi\rangle = \langle A\phi|\psi\rangle = \mu \langle\phi|\psi\rangle.

Thus

(λ−μ)⟨ϕ∣ψ⟩=0.(\lambda-\mu) \langle\phi|\psi\rangle = 0.

Because λ≠μ\lambda\neq\mu,

⟨ϕ∣ψ⟩=0\langle\phi|\psi\rangle=0

Eigenstates corresponding to distinct eigenvalues are orthogonal.

This is more than a convenient algebraic fact. It means that different measurement outcomes correspond to geometrically distinguishable directions in Hilbert space.

6. Measurement and the Born rule

Suppose

A∣an⟩=an∣an⟩A|a_n\rangle = a_n|a_n\rangle

for an observable AA.

If the system is in state ∣ψ⟩|\psi\rangle, the probability of obtaining the measurement outcome ana_n is

P(an)=∣⟨an∣ψ⟩∣2.P(a_n) = |\langle a_n|\psi\rangle|^2.

For a qubit

∣ψ⟩=α∣0⟩+β∣1⟩,|\psi\rangle = \alpha|0\rangle + \beta|1\rangle,

measurement in the computational basis gives

P(0)=∣α∣2P(0)=|\alpha|^2

and

P(1)=∣β∣2.P(1)=|\beta|^2.

The condition

∣α∣2+∣β∣2=1|\alpha|^2+|\beta|^2=1

is therefore exactly the normalization of total probability.

7. Unitary operators preserve quantum states

A unitary operator satisfies

U†U=UU†=I.U^\dagger U = UU^\dagger = I.

Equivalently,

U−1=U†.U^{-1}=U^\dagger.

Let

∣ψ′⟩=U∣ψ⟩.|\psi'\rangle = U|\psi\rangle.

Then

⟨ψ′∣ψ′⟩=⟨ψ∣U†U∣ψ⟩.\langle\psi'|\psi'\rangle = \langle\psi| U^\dagger U |\psi\rangle.

Since

U†U=I,U^\dagger U=I,

we have

⟨ψ′∣ψ′⟩=⟨ψ∣ψ⟩.\langle\psi'|\psi'\rangle = \langle\psi|\psi\rangle.

Thus

∥Uψ∥=∥ψ∥.\boxed{ \|U\psi\|=\|\psi\| }.

Unitary transformations preserve the normalization of quantum states.

Geometrically, they preserve inner products, lengths, and angles.

8. Commutators and compatible structure

For two operators AA and BB, define the commutator

[A,B]=AB−BA.[A,B] = AB-BA.

If

[A,B]=0,[A,B]=0,

then the operators commute.

For commuting Hermitian operators, one may choose a common eigenbasis.

To see the basic idea, suppose

A∣a⟩=a∣a⟩.A|a\rangle = a|a\rangle.

Then

A(B∣a⟩)=AB∣a⟩.A(B|a\rangle) = AB|a\rangle.

If AB=BAAB=BA,

A(B∣a⟩)=BA∣a⟩=aB∣a⟩.A(B|a\rangle) = BA|a\rangle = aB|a\rangle.

So B∣a⟩B|a\rangle remains inside the eigenspace of AA associated with eigenvalue aa.

This is the algebraic reason simultaneous diagonalization becomes possible.


9. Composite quantum systems require tensor products

A single qubit lives in

C2.\mathbb C^2.

Two qubits do not live in another copy of C2\mathbb C^2.

Their joint state space is

C2⊗C2.\mathbb C^2\otimes\mathbb C^2.

In general,

dim⁡(V⊗W)=dim⁡(V)dim⁡(W).\dim(V\otimes W) = \dim(V)\dim(W).

Therefore,

dim⁡(C2⊗C2)=4.\dim( \mathbb C^2\otimes\mathbb C^2 ) = 4.

The natural basis is

∣00⟩,∣01⟩,∣10⟩,∣11⟩.|00\rangle, \quad |01\rangle, \quad |10\rangle, \quad |11\rangle.

Explicitly,

∣00⟩=(1000),∣01⟩=(0100),|00\rangle = \begin{pmatrix} 1\\ 0\\ 0\\ 0 \end{pmatrix}, \qquad |01\rangle = \begin{pmatrix} 0\\ 1\\ 0\\ 0 \end{pmatrix}, ∣10⟩=(0010),∣11⟩=(0001).|10\rangle = \begin{pmatrix} 0\\ 0\\ 1\\ 0 \end{pmatrix}, \qquad |11\rangle = \begin{pmatrix} 0\\ 0\\ 0\\ 1 \end{pmatrix}.

A general two-qubit state is

∣ψ⟩=c00∣00⟩+c01∣01⟩+c10∣10⟩+c11∣11⟩,|\psi\rangle = c_{00}|00\rangle + c_{01}|01\rangle + c_{10}|10\rangle + c_{11}|11\rangle,

with

∣c00∣2+∣c01∣2+∣c10∣2+∣c11∣2=1.|c_{00}|^2 + |c_{01}|^2 + |c_{10}|^2 + |c_{11}|^2 = 1.

For nn qubits,

Hn=(C2)⊗n,\mathcal H_n = (\mathbb C^2)^{\otimes n},

and therefore

dim⁡Hn=2n\dim\mathcal H_n=2^n

10. Operators also tensor together

If AA acts on one subsystem and BB acts on another, the combined operator is

A⊗B.A\otimes B.

For

A=(abcd),A= \begin{pmatrix} a&b\\ c&d \end{pmatrix},

we have

A⊗B=(aBbBcBdB).A\otimes B = \begin{pmatrix} aB&bB\\ cB&dB \end{pmatrix}.

This is the Kronecker product representation of the tensor product.

It provides the basic language for writing operations on multi-qubit systems.

11. The Pauli operators

Three matrices appear repeatedly in the structure of a qubit:

X=(0110),X= \begin{pmatrix} 0&1\\ 1&0 \end{pmatrix}, Y=(0−ii0),Y= \begin{pmatrix} 0&-i\\ i&0 \end{pmatrix},

and

Z=(100−1).Z= \begin{pmatrix} 1&0\\ 0&-1 \end{pmatrix}.

Each is Hermitian and unitary.

Their eigenvalues are

±1.\pm1.

They also satisfy the commutation relations

[σi,σj]=2iϵijkσk.[\sigma_i,\sigma_j] = 2i\epsilon_{ijk}\sigma_k.

In particular,

[X,Y]=2iZ,[X,Y]=2iZ, [Y,Z]=2iX,[Y,Z]=2iX,

and

[Z,X]=2iY.[Z,X]=2iY.

The Pauli matrices therefore encode both observables and transformations within the same algebraic structure.

12. Global phase is physically redundant

Consider

∣ψ⟩|\psi\rangle

and

eiα∣ψ⟩.e^{i\alpha}|\psi\rangle.

For any state ∣ϕ⟩|\phi\rangle,

∣⟨ϕ∣eiα∣ψ⟩∣2=∣eiα∣2∣⟨ϕ∣ψ⟩∣2.\left| \langle\phi| e^{i\alpha} |\psi\rangle \right|^2 = |e^{i\alpha}|^2 |\langle\phi|\psi\rangle|^2.

Since

∣eiα∣=1,|e^{i\alpha}|=1,

we obtain

∣⟨ϕ∣eiα∣ψ⟩∣2=∣⟨ϕ∣ψ⟩∣2.\left| \langle\phi| e^{i\alpha} |\psi\rangle \right|^2 = |\langle\phi|\psi\rangle|^2.

Thus

∣ψ⟩∼eiα∣ψ⟩|\psi\rangle \sim e^{i\alpha}|\psi\rangle

Vectors that differ only by a global phase represent the same physical state.

So a physical state is not quite a vector.

It is a ray.


13. Quantum states form a projective space

Let

z∼λz,λ∈C\*.z\sim\lambda z, \qquad \lambda\in\mathbb C^\*.

Then the space of rays in Cm\mathbb C^m is

CPm−1=Cm∖{0}C\*.\boxed{ \mathbb{CP}^{m-1} = \frac{ \mathbb C^m\setminus\{0\} }{ \mathbb C^\* } }.

A point in complex projective space can be written using homogeneous coordinates

[z0:z1:⋯:zn].[z_0:z_1:\cdots:z_n].

The equivalence relation is

[z0:⋯:zn]=[λz0:⋯:λzn][z_0:\cdots:z_n] = [\lambda z_0:\cdots:\lambda z_n]

for every nonzero

λ∈C.\lambda\in\mathbb C.

This quotient is the natural state space once physically irrelevant scaling is removed.

14. The geometry of a single qubit

For a qubit,

∣ψ⟩=z∣0⟩+w∣1⟩,|\psi\rangle = z|0\rangle+w|1\rangle,

with

∣z∣2+∣w∣2=1.|z|^2+|w|^2=1.

The pair

(z,w)∈C2≃R4(z,w)\in\mathbb C^2\simeq\mathbb R^4

therefore lies on

S3.S^3.

But states differing by global phase are equivalent:

(z,w)∼(eiαz,eiαw).(z,w) \sim (e^{i\alpha}z,e^{i\alpha}w).

Write

z=r0eiϕ0,w=r1eiϕ1.z=r_0e^{i\phi_0}, \qquad w=r_1e^{i\phi_1}.

Multiplying the whole state by

e−iϕ0e^{-i\phi_0}

gives

∣ψ⟩∼r0∣0⟩+r1ei(ϕ1−ϕ0)∣1⟩.|\psi\rangle \sim r_0|0\rangle + r_1e^{i(\phi_1-\phi_0)}|1\rangle.

Only the relative phase remains.

Let

r0=cos⁡θ,r1=sin⁡θ.r_0=\cos\theta, \qquad r_1=\sin\theta.

Then

∣ψ⟩=cos⁡θ∣0⟩+eiϕsin⁡θ∣1⟩.\boxed{ |\psi\rangle = \cos\theta|0\rangle + e^{i\phi}\sin\theta|1\rangle }.

The pure-state space of a qubit is therefore

CP1.\mathbb{CP}^1.

And geometrically,

CP1≃S2\mathbb{CP}^1 \simeq S^2

This is the Bloch sphere.

15. From U(2)U(2) to SU(2)SU(2)

The unitary group is

U(2)={U∈M2(C):U†U=I}.U(2) = \{ U\in M_2(\mathbb C) : U^\dagger U=I \}.

Restricting to unit determinant gives the special unitary group

SU(2)={U∈U(2):det⁡U=1}.SU(2) = \{ U\in U(2): \det U=1 \}.

Every matrix in SU(2)SU(2) can be written as

U=(zw−w‾z‾),U= \begin{pmatrix} z&w\\ -\overline w&\overline z \end{pmatrix},

with

∣z∣2+∣w∣2=1.|z|^2+|w|^2=1.

Write

z=a+ib,w=c+id.z=a+ib, \qquad w=c+id.

Then

a2+b2+c2+d2=1.a^2+b^2+c^2+d^2=1.

Thus

SU(2)≃S3.\boxed{ SU(2)\simeq S^3 }.

The same three-sphere that appeared when normalizing a two-component complex state now appears as a Lie group of transformations.

16. Quaternions and SU(2)SU(2)

A quaternion has the form

q=a+bi+cj+dk,q=a+bi+cj+dk,

where

i2=j2=k2=−1.i^2=j^2=k^2=-1.

The multiplication rules include

ij=k,jk=i,ki=j,ij=k, \qquad jk=i, \qquad ki=j,

while reversing the order changes the sign.

The conjugate is

qˉ=a−bi−cj−dk.\bar q = a-bi-cj-dk.

Its norm satisfies

qqˉ=a2+b2+c2+d2.q\bar q = a^2+b^2+c^2+d^2.

Unit quaternions therefore satisfy

a2+b2+c2+d2=1.a^2+b^2+c^2+d^2=1.

Hence the unit quaternions also form

S3.S^3.

This gives another realization of

SU(2).SU(2).

17. From SU(2)SU(2) to rotations

Consider a purely imaginary quaternion

v=xi+yj+zk.v=xi+yj+zk.

Such quaternions may be identified with

R3.\mathbb R^3.

For a unit quaternion qq, define

Rq(v)=qvqˉ.R_q(v) = qv\bar q.

Because

q−1=qˉq^{-1}=\bar q

for a unit quaternion,

Rq(v)=qvq−1.R_q(v) = qvq^{-1}.

This transformation preserves lengths and acts as a rotation of R3\mathbb R^3.

It gives a map

SU(2)⟶SO(3).SU(2)\longrightarrow SO(3).

But

qq

and

−q-q

produce the same rotation:

Rq=R−q.R_q=R_{-q}.

Therefore the map is two-to-one.

This is the familiar double-cover relation

SU(2)→SO(3)SU(2)\rightarrow SO(3)

18. The Hopf fibration

Several spaces that have appeared separately now fit together:

S1≃U(1),S^1\simeq U(1), S3≃SU(2),S^3\simeq SU(2),

and

S2≃CP1.S^2\simeq\mathbb{CP}^1.

They are related by the Hopf fibration

S1⟶S3⟶S2 S^1 \longrightarrow S^3 \longrightarrow S^2

For a normalized qubit, S3S^3 contains the state vector together with its global phase.

Quotienting by the phase

S1≃U(1)S^1\simeq U(1)

leaves the physical state space

S2.S^2.

Schematically,

S3S1≃S2.\frac{S^3}{S^1} \simeq S^2.

The Bloch sphere is therefore not merely a convenient visualization.

It arises naturally from removing the physically redundant U(1)U(1) phase from the normalized state space.

19. Why Lie groups appear naturally

A group GG has

  • an associative multiplication,
  • an identity,
  • and inverses.

A Lie group is additionally a smooth manifold for which multiplication and inversion are smooth.

Thus

Lie group=group+smooth manifold\text{Lie group} = \text{group} + \text{smooth manifold}

Groups such as

U(n),SU(n),SO(n)U(n), \qquad SU(n), \qquad SO(n)

are therefore simultaneously algebraic objects and geometric spaces.

Their local structure near the identity is captured by the tangent space

TeG.T_eG.

This tangent space is the Lie algebra of the group:

g=TeG.\boxed{ \mathfrak g = T_eG }.

This point of view turns continuous quantum transformations into geometry.


20. The emerging picture

The mathematics developed above can be organized into three layers.

State space

∣ψ⟩∈H|\psi\rangle\in\mathcal H

with

⟨ψ∣ψ⟩=1.\langle\psi|\psi\rangle=1.

After removing global phase,

physical states=P(H).\text{physical states} = \mathbb P(\mathcal H).

For a qubit,

P(C2)=CP1≃S2.\mathbb P(\mathbb C^2) = \mathbb{CP}^1 \simeq S^2.

Observables

A=A†.A=A^\dagger.

Hermitian operators have real eigenvalues and orthogonal eigenspaces.

Measurement probabilities are determined by projection amplitudes.

Transformations

U†U=I.U^\dagger U=I.

Unitary operators preserve the geometry of Hilbert space.

For a qubit, the structure naturally leads to

SU(2)≃S3,SU(2)\simeq S^3,

with

SU(2)⟶SO(3)SU(2)\longrightarrow SO(3)

connecting quantum transformations to ordinary rotations.

Comments

Loading…

When we write, it can land here.