Chapter 1: Mathematical Foundations for Quantum Computing
Chapter 1: Mathematical Foundations for Quantum Computing
Chapter Guide: The underlying language of quantum computing is linear algebra and complex analysis. This chapter selects the three most essential and irreplaceable mathematical toolkits — complex numbers, vector spaces, and linear operators — to lay the mathematical groundwork for the rigorous formulation of quantum states, quantum gates, and quantum measurement. Readers do not need any background in quantum mechanics; familiarity with complex numbers from high school mathematics and basic college-level linear algebra will suffice. Our expository strategy proceeds from the concrete to the abstract, from the familiar to the novel: we first review complex numbers and render them geometric, then naturally extend real vector spaces to the complex field, and finally introduce the linear operators that describe quantum evolution.
1.1 Complex Numbers & Euler’s Formula
1.1.1 Basic Construction of Complex Numbers
We begin with the simplest algebraic observation: the equation has no solution in the real numbers . No matter what real number we choose, is always non-negative, so is always greater than zero. To remedy this “defect,” mathematicians introduced an entirely new number, called the imaginary unit, denoted , with the defining property
This is not “derived” from the real numbers but is a creative definition. Once we accept the existence of , we can construct a complex number:
where is called the real part, denoted ; is called the imaginary part, denoted . When , reduces to a real number; when and , is purely imaginary. The set of all complex numbers is denoted .
Every complex number can be placed in one-to-one correspondence with a point on the complex plane: the horizontal axis represents the real part, and the vertical axis represents the imaginary part. For example, the complex number corresponds to the point on the complex plane, located in the first quadrant. The complex number corresponds to the point , located in the third quadrant. This method of visualizing algebraic objects as geometric points is key to understanding the essence of complex number operations.
1.1.2 Arithmetic Operations and Conjugation
Addition and subtraction of complex numbers are performed component-wise on the real and imaginary parts, much like vector component operations:
Geometrically, this corresponds to the parallelogram law for two vectors on the complex plane. For instance, ; geometrically, this means adding the position vectors of points and to obtain the point .
Multiplication makes use of and expands as follows:
This formula may appear somewhat cumbersome at first glance, but it becomes very intuitive when expressed in polar coordinates.
Division is the operation among complex arithmetic that requires the most technique. To compute , we need to introduce the complex conjugate. Given , its conjugate is defined as
The geometric meaning of the conjugate is a mirror reflection of the complex number across the real axis: the real part remains unchanged, and the imaginary part flips sign. A crucially important property is , which is always a non-negative real number, equal to .
Using this property, complex division can be accomplished by “rationalizing the denominator”:
The denominator becomes the real number , and the entire expression splits cleanly into real and imaginary parts.
Example 1.1: Compute .
Multiply numerator and denominator by the denominator’s conjugate :
Thus, . As a check, we can multiply by : , which matches the original numerator.
1.1.3 Polar Representation and Modulus
Beyond the rectangular form , complex numbers can also be represented in polar coordinates. This representation reveals the geometric essence of complex multiplication and division. On the complex plane, the distance from the point to the origin is called the modulus or absolute value:
The angle that the point makes with the positive real axis is called the argument:
(When , one must adjust by according to the quadrant to ensure the angle falls in the correct half-plane.) A complex number can then be written as
This is the trigonometric form of a complex number. For example, has modulus and argument (i.e., ), so .
1.1.4 Derivation of Euler’s Formula
Euler’s formula is the bridge connecting the exponential function to trigonometric functions, and one of the most astonishing identities in all of mathematics:
We shall derive this remarkable identity rigorously from Taylor series, which is one of the core derivations readers are expected to master.
First, recall the Taylor expansions of three functions about (convergent for all real ):
Now substitute for in . This is mathematically legitimate because the power series of the exponential function converges on the entire complex plane (a property of entire functions):
Using the cyclic powers of : , , , , and so on:
Now separate the real part (terms without ) and the imaginary part (terms with ):
The series in parentheses are precisely the Taylor expansions of and , respectively. We thus obtain Euler’s formula:
Combining this with the polar representation, any complex number can be written in the compact exponential form:
Euler’s identity is the special case when :
It ties together five of the most important constants in mathematics — , , , , — in a breathtakingly concise relationship, celebrated as “the most beautiful formula in mathematics.” The beauty of this formula lies not only in its simplicity but also in how it reveals the profound inner connection among exponential functions, trigonometric functions, and imaginary numbers.
1.1.5 Geometric Meaning of Complex Multiplication: Rotation and Scaling
The true power of Euler’s formula lies in revealing the geometric essence of complex multiplication, which is one of the reasons complex numbers appear so frequently in quantum computing.
Let and . Their product is
This equation tells us: when multiplying two complex numbers, their moduli multiply () and their arguments add (). This geometric rule is remarkably elegant.
In particular, multiplying by has the effect of: preserving the modulus while rotating counterclockwise by an angle . For example:
- : multiplying by is equivalent to a counterclockwise rotation
- : multiplying by is equivalent to a rotation
- : a rotation
- : a rotation, i.e., the identity operation
If , scaling accompanies the rotation. For instance, rotates the target complex number by and magnifies it by a factor of 2. If , the effect is a shrinking.
Geometric interpretation example: Multiply by .
First, has modulus and argument . Meanwhile, has modulus and argument . By the multiplication rule, the product has modulus and argument . Hence
Direct algebraic verification: , which agrees. This example clearly demonstrates the dual effect of complex multiplication: rotation (from to ) and scaling (from to ).
1.1.6 Why Quantum Mechanics Needs Complex Numbers
In classical physics, almost all observable quantities — position, momentum, energy, temperature — can be described by real numbers. But quantum mechanics is fundamentally different: the evolution of a quantum state involves phase, and phase must be represented by complex numbers. The wave function of a quantum state is itself a complex-valued function.
Complex phases play a central role in quantum interference. When two probability amplitudes are added, their relative phase determines whether the resulting probability is enhanced (constructive interference) or canceled (destructive interference). Without complex numbers, this wave-like behavior cannot be described. While classical wave interference can be described with real sine functions, the “probability amplitude” in quantum mechanics is a more fundamental concept that must be complex.
Rotation operations on the complex plane also correspond directly to the transformations that quantum gates apply to qubits — for example, the phase gate applies a rotation to a particular basis state on the complex plane. The and Pauli matrices are, in essence, rotation operations on the complex plane.
Moreover, the fundamental equation of quantum mechanics — the Schrödinger equation — explicitly contains the imaginary unit :
The left-hand side of the equation explicitly features , which means that even if the initial condition is real-valued, time evolution will naturally generate an imaginary part. Complex numbers are not a “decoration” of quantum mechanics but an inseparable part of its structure.
Summary:
- The complex number extends the real number field; is its defining cornerstone; the set of all complex numbers is denoted
- Among the four arithmetic operations, addition and subtraction proceed component-wise, multiplication requires expanding , and division relies on the complex conjugate
- Polar form is the geometric language for describing complex numbers, where is the modulus and is the argument
- Euler’s formula can be rigorously derived from the Taylor expansions of the exponential, cosine, and sine functions
- Complex multiplication = moduli multiply + arguments add, i.e., a composition of rotation and scaling; multiplying by is equivalent to a rotation by angle
- Quantum mechanics fundamentally requires complex numbers to describe indispensable phase information and the interference behavior of probability amplitudes
Connection to Quantum Computing: The state of a qubit is a unit vector in a complex vector space. The general state of a single qubit is , where and . The relative phase between the complex numbers and directly determines the probability distribution of measurement outcomes and is the mathematical root of quantum parallelism and quantum interference. Euler’s formula provides the most compact exponential form for describing the rotation operations of quantum gates; for example, the single-qubit phase gate explicitly uses the complex exponential.
1.2 Vector Spaces & Hilbert Spaces
1.2.1 From to : Generalizing Vector Spaces
In elementary linear algebra, we are familiar with the real vector space , where vectors such as consist of real components and support addition and scalar multiplication. For example, the vector in can represent a point in three-dimensional space or a directed line segment from the origin.
In quantum computing, the components of vectors must be complex numbers. This is not an arbitrary choice but a necessity, because the amplitudes (probability amplitudes) of quantum states are inherently complex, as discussed in the previous section. This brings us to the complex vector space : an -dimensional complex vector is an ordered -tuple of complex numbers
Vector addition proceeds component-wise:
Scalar multiplication allows scaling by complex numbers:
Note that the scalar here can be any complex number, including purely imaginary numbers like or general complex numbers like . For example:
A rigorous definition of a vector space must satisfy eight axioms: commutativity of addition, associativity of addition, existence of a zero vector, existence of additive inverses, associativity of scalar multiplication, distributivity of scalar multiplication over vector addition, distributivity of scalar multiplication over scalar addition, and the identity element . These axioms ensure that vector operations behave in accordance with our geometric intuition. In quantum computing, we almost always work in , so these axioms are automatically satisfied.
1.2.2 Linear Independence, Basis, and Dimension
A set of vectors is called linearly independent if the equation
has only the trivial solution . Intuitively, no vector can be “expressed” in terms of the others; each vector contributes a “new direction.”
If a set of linearly independent vectors can “span” (i.e., represent through linear combinations) the entire space, that set is called a basis for the space. The number of vectors in a basis is called the dimension of the space. The dimension of a space is unique and does not depend on the choice of basis.
The standard basis of consists of vectors:
Any can be uniquely expressed as
where the coefficient is precisely the -th component of the vector. This representation is unique — given a basis, each vector has one and only one way of being written as a linear combination of the basis vectors.
1.2.3 Inner Products and Bra-ket Notation
To discuss the “length” of a vector and the “angle” between vectors, we need the inner product. In , the inner product is the dot product: . In , however, the definition requires adjustment — we must take the conjugate of one vector, otherwise might not be a non-negative real number (for instance, if , a naive dot product gives , which clearly cannot serve as a squared length).
Dirac notation, also known as bra-ket notation, is a notation system tailor-made for the inner product in quantum mechanics. It was invented by physicist Paul Dirac in 1939 and has become the standard language of quantum computing and quantum information.
We begin with the familiar column vector and progressively introduce this notation:
- Ket: denotes a column vector. The symbol "" resembles half of an angle bracket, suggesting a “closed” column vector.
- Bra: denotes a row vector, the “conjugate transpose” of some ket.
The concrete correspondence is as follows. If
then the corresponding bra is
That is, going from ket to bra requires two operations: transpose (column to row) and complex conjugation (star each component).
The inner product is defined as the matrix product of a bra and a ket:
Note that it is the components of the first vector (the bra) that receive the conjugation. This guarantees that is a non-negative real number, allowing us to define length.
Example 1.2: Let and . Compute .
First, write the bra:
Then perform the matrix multiplication:
The result is a complex number. If we swap the order to compute :
Note that , which is a general property of the inner product.
From the inner product we can define the norm, i.e., the length of a vector:
This is formally identical to the Euclidean length formula in , except that each component is now squared in modulus. We can also define the angle between two non-zero vectors:
When , the two vectors are said to be orthogonal. Orthogonality means the two vectors are geometrically “perpendicular,” with no overlapping “component.”
1.2.4 Hilbert Space: A Complete Inner Product Space
A Hilbert space is the stage on which quantum mechanics unfolds. Its rigorous definition is a “complete inner product space,” where “completeness” is a concept from analysis meaning that the space has no “holes” — the limit of any Cauchy sequence still lies within the space.
For the purposes of quantum computing, this abstract concept admits an eminently practical simplification:
A finite-dimensional Hilbert space is simply equipped with the standard inner product.
This is because finite-dimensional spaces are automatically complete. The quantum systems covered in this book (finite numbers of qubits) all operate in finite-dimensional spaces, so the reader may intuitively regard a Hilbert space as “a complex vector space with an inner product, in which one can discuss length and angle.”
An orthonormal basis is a set of basis vectors that are pairwise orthogonal and each have norm 1. The standard basis of is an orthonormal basis because
where is the Kronecker delta. The advantage of an orthonormal basis is that the components of any vector can be read off directly through inner products: .
1.2.5 : The Simplest Qubit Space
The most fundamental unit of information in quantum computing is the quantum bit or qubit, whose state space is precisely the two-dimensional complex vector space . This stands in sharp contrast to the classical bit: the state space of a classical bit consists of only two discrete points , whereas the state space of a qubit is a continuous two-dimensional complex vector space.
The standard orthonormal basis of is customarily denoted
This uses the same symbols and as classical bits, but the meaning is entirely different: a classical bit can only take the value or , whereas a qubit can exist in a superposition of both:
Because a global phase (an overall factor of ) does not affect physical observations (since probabilities depend only on squared moduli), we customarily require states to be normalized:
This means that a quantum state is a unit vector in Hilbert space, lying on the “unit sphere.”
Example 1.3: Verify that is normalized.
Verification passed. is an important quantum state representing an equal-probability superposition of and .
Another important state is , which is orthogonal to : . The set forms another orthonormal basis for .
Geometrically, the state space of a qubit corresponds to the three-dimensional unit sphere — the Bloch sphere. The north pole of the Bloch sphere is , the south pole is , and the points on the equator correspond to various equal-weight superposition states. This geometric representation will be discussed in detail in later chapters.
Summary:
- Quantum computing uses the complex vector space , the natural complex generalization of the real vector space , where scalar multiplication can involve any complex number
- The core structures of a vector space: addition, scalar multiplication, linear independence, basis, dimension; the standard basis of has vectors
- Bra-ket notation / is the standard language of quantum mechanics; the inner product defines length and angle
- Hilbert space = complete inner product space; in the finite-dimensional case it is simply with the standard inner product
- , with as its standard basis, is the state space of a single qubit; a qubit can be in a superposition state but must be normalized
Connection to Quantum Computing: Quantum states are normalized vectors in a Hilbert space. The joint state space of qubits is the -dimensional Hilbert space , which is the mathematical root of the exponential parallelism of quantum computing — classical bits can represent only one of states, whereas qubits can simultaneously be in a superposition of all basis states. Bra-ket notation makes the expression of quantum states, inner products, and operators extremely compact and is an essential tool for reading the quantum computing literature. For example, the famous Bell state is precisely a normalized vector in .
1.3 Linear Operators & Matrix Representation
1.3.1 Definition of a Linear Operator
On a vector space, we are interested in maps that preserve the linear structure. Such maps are called linear operators. Rigorously, a linear operator is a map satisfying the following two conditions:
for all vectors and all scalars . In other words, “respects” the structure of addition and scalar multiplication — applying a linear combination and then mapping is the same as mapping first and then taking the same linear combination. This property guarantees that does not destroy the algebraic structure of the vector space.
Example 1.4: Verify that is linear.
Let and :
Expand and regroup:
Hence is a linear operator. As a counterexample, is not linear because .
1.3.2 Matrix Representation: The One-to-One Correspondence Between Operators and Matrices
A fundamental theorem of linear algebra tells us: in a finite-dimensional space, once a basis is chosen, each linear operator uniquely corresponds to a matrix, and vice versa. This correspondence is the bridge that converts abstract “operators” into computable “matrices” in quantum computing.
Concretely, let be the standard basis of . The result of applying an operator to a basis vector is still a vector in and can therefore be expanded as a linear combination of the basis vectors:
The coefficients form an matrix , which is the matrix representation of in this basis. Note that the column index corresponds to the input basis vector and the row index to the output coefficient — this is the standard convention for matrix representations.
Example 1.5: What is the matrix of given above?
Compute the action of on each basis vector:
Taking these results as the columns of the matrix (because gives the first column as the components of the result vector), we obtain:
Verification: , which matches the definition of . This verification is important: it confirms that the matrix does correctly encode the operator .
1.3.3 Special Matrix Types
In quantum computing, three categories of matrices are especially important. Understanding their properties and physical significance is key to mastering quantum gates and quantum measurement.
Identity Matrix and Diagonal Matrices
The identity matrix (often abbreviated ) is the square matrix with ones on the diagonal and zeros elsewhere:
It corresponds to the “do nothing” identity operator: for all . In quantum circuits, the identity gate is usually not drawn explicitly but is indispensable in mathematical derivations.
A diagonal matrix has non-zero entries only on the main diagonal: . The action of a diagonal matrix on a basis vector simply scales it by : . Thus, the basis vectors of a diagonal matrix are its eigenvectors, and the diagonal entries are the corresponding eigenvalues.
Hermitian Matrices
The conjugate transpose of a matrix , also called the Hermitian conjugate, is denoted (read “A dagger”) and is defined as: first take the transpose, then take the complex conjugate of each entry. That is, .
If , then is called a Hermitian matrix.
Core property: The eigenvalues of a Hermitian matrix are all real numbers. Proof: Let . Then
At the same time,
Therefore , i.e., is a real number.
In quantum mechanics, observables — quantities that can be measured, such as energy, spin, and position — correspond to Hermitian operators / Hermitian matrices, whose eigenvalues are the possible measurement outcomes. Since measurement outcomes must be real numbers, the real-eigenvalue property of Hermitian matrices perfectly satisfies this physical requirement.
Example 1.6: Verify that is Hermitian.
First take the transpose:
Then take the conjugate:
Thus is a Hermitian matrix. One can verify that its eigenvalues are real (approximately and ).
Unitary Matrices
If , i.e., (the conjugate transpose equals the inverse), then is called a unitary matrix.
Core property: Unitary transformations preserve the inner product. For any :
In particular, unitary transformations preserve the norm: . This means that if is a unit vector (a normalized quantum state), then is also a unit vector.
In quantum mechanics, quantum gates correspond to unitary transformations — they map normalized quantum states to other normalized quantum states, guaranteeing that the total probability remains 1. Every step of unitary evolution in quantum computation is reversible, a fact reflected in the invertibility of unitary matrices.
Hermitian vs. Unitary comparison:
| Property | Hermitian Matrix | Unitary Matrix |
|---|---|---|
| Definition | ||
| Eigenvalues | Real | Modulus 1 (can be written ) |
| Physical meaning | Observable (measurement outcomes) | Quantum gate (state evolution) |
| Preserves what? | — | Inner product / norm / probability conservation |
| Typical examples | Pauli (also unitary) | Hadamard gate, phase gate, CNOT |
1.3.4 Pauli Matrices
In operations on a single qubit (), the four Pauli matrices are the most fundamental and frequently used matrices. Named after physicist Wolfgang Pauli, they play central roles in quantum gates, quantum measurement, and quantum error correction.
| Symbol | Name | Matrix Form | Type |
|---|---|---|---|
| or | Identity | Both Hermitian and unitary | |
| or | Pauli-X / NOT Gate | Both Hermitian and unitary | |
| or | Pauli-Y | Both Hermitian and unitary | |
| or | Pauli-Z / Phase Flip Gate | Both Hermitian and unitary |
Let us understand their physical actions one by one:
-
(Identity): Does nothing. , . It does not change the state in any basis.
-
(NOT Gate / Pauli-X): Swaps and , i.e., , . It is the quantum analogue of the classical NOT gate and corresponds to a rotation by about the -axis on the Bloch sphere.
-
(Phase Flip Gate / Pauli-Z): Leaves unchanged and attaches a minus sign to : , . Note that and represent the same physical state up to a global phase (which does not affect measurement), but changes the relative phase when is part of a superposition. corresponds to a rotation by about the -axis on the Bloch sphere.
-
(Pauli-Y): Can be regarded as a combination of and (), corresponding to a rotation by about the -axis on the Bloch sphere. Its effect is , .
Verifying unitarity: Taking as an example, we verify that it is unitary:
Thus is unitary. The other three can be verified similarly. It is noteworthy that all Pauli matrices are simultaneously Hermitian () and unitary (). This dual property allows them to serve both as observables (measurement operators) and as quantum gates (evolution operators).
Example 1.7: Compute the effect of acting on the superposition state .
Here is another superposition state orthogonal to . The gate transforms into , which is equivalent to a rotation in the - plane of the Bloch sphere. Applying again to returns it to : .
1.3.5 Basic Rules of Matrix Operations
Matrix multiplication is used extensively in quantum computing. For matrices and , the entry of the product is:
i.e., “row times column.” Written out explicitly:
Matrix multiplication does not generally satisfy the commutative law: . This is a key distinction between quantum mechanics and classical mechanics — the order of operators (the sequence of operations) carries physical meaning. For example:
Interestingly, — the Pauli matrices anticommute. This property finds important applications in quantum error correction, fermion simulation, and quantum random walks.
The Pauli matrices also satisfy the famous algebraic relations:
and the square identities: .
Summary:
- Linear operators preserve the linear structure: ; this is the fundamental constraint on quantum evolution
- Once a basis is chosen, operators and matrices are in one-to-one correspondence; matrix multiplication corresponds to operator composition (note the order: means “do first, then ”)
- Hermitian matrices : eigenvalues are real, corresponding to observables (measurement operators)
- Unitary matrices : preserve inner product / norm, corresponding to quantum gates (evolution operators)
- Pauli matrices are the most fundamental set of operators on , all simultaneously Hermitian and unitary; they anticommute and satisfy
- Matrix multiplication is generally non-commutative; operator order corresponds to the physical sequence of operations
Connection to Quantum Computing: The entire framework of quantum computing rests on three mathematical pillars — and this chapter happens to cover all three:
- Complex numbers (Section 1.1): the amplitudes of quantum states are complex numbers; the phase drives quantum interference
- Hilbert space (Section 1.2): quantum states are normalized vectors in a Hilbert space; bra-ket notation is the standard language
- Linear operators (Section 1.3): quantum gates are unitary operators, observables are Hermitian operators; their eigenvalues correspond respectively to “evolved states” and “possible measurement outcomes”
The Pauli matrices , together with the identity , form the “alphabet” of all single-qubit operations — any single-qubit unitary gate can be composed from them (with appropriate phase rotations). For example, the Hadamard gate is a superposition of and . This is the mathematical starting point for understanding quantum circuits and quantum algorithms. Subsequent chapters will build on this foundation by introducing the postulates of quantum mechanics and formally establishing the theoretical framework of quantum computing.
Next Chapter Preview: Having mastered complex numbers, vector spaces, and linear operators, Chapter 2 will introduce the core postulates of quantum mechanics — including quantum state evolution (the Schrodinger equation), the projection postulate for measurement, and the tensor product structure of composite systems — thereby completing the transition from “mathematical tools” to “quantum theory” and laying the physical foundation for subsequent study of quantum algorithms and quantum information theory.
1.4 Inner Products, Norms & Orthogonality
In Section 1.2, we introduced the basic concepts of vector spaces and Hilbert spaces and learned the ket and bra of Dirac notation. These symbols are not merely compact notation; they embody a profound mathematical structure — the inner product. This section begins with the familiar dot product in the complex vector space , generalizes the inner product to arbitrary abstract vector spaces, and builds from it rigorous definitions of norm and orthogonality. These concepts are the central pillars of quantum mechanical formalism: the “length” of a quantum state, the “angle” between different states, and the calculation of measurement probabilities all depend on the inner product structure. Understanding the inner product is not only the foundation for the subsequent study of eigenvalue problems and spectral decomposition but also a crucial step in mastering the superposition principle of quantum states and the measurement postulate. Without an inner product structure, a vector space is merely an abstract algebraic object; once endowed with an inner product, the space acquires a rich geometric structure including metrics, angles, and projections.
Definition and Basic Properties of the Inner Product
Recall the ket we defined in Section 1.2, written in component form as:
The corresponding bra is the conjugate transpose of that vector:
In , the inner product of two vectors and is defined as:
This is a complex number. For example, if and , then:
Here one must pay special attention to the role of the complex conjugate: the inner product takes the conjugate of the first vector, and this is to guarantee positive definiteness (see below). If the definition lacked this conjugation, then for a vector such as , we would have , violating the requirement of positive definiteness. Introducing the complex conjugate yields , thereby ensuring a sound mathematical structure. This point is especially important in quantum mechanics, because the normalization of quantum states directly depends on a positive-definite inner product.
From , we can abstractly define an inner product on an arbitrary complex vector space . An inner product is a map satisfying the following three basic properties:
First, conjugate symmetry: For any ,
This property guarantees that is a real number, because . When , the result of the inner product is the inner product of the vector with itself and must be a real number. This is a prerequisite for defining the norm, since the norm is required to be a non-negative real number. Conjugate symmetry also implies that if the inner product is a pure real number, swapping the order of the two vectors does not affect the result; if the inner product is a complex number, swapping the order yields its complex conjugate.
Second, linearity in the second argument: For any and any complex numbers ,
Note that the inner product is antilinear in the first argument: . This is consistent with the behavior of a bra as a row vector in matrix multiplication and with the linearity properties of the bra as an element of the dual space in quantum mechanics. Physically, linearity ensures that the inner product calculation for a superposition of quantum states can be decomposed according to the superposition principle.
Third, positive definiteness: For any non-zero vector ,
and if and only if . This property is crucial: it allows us to define the “length” of a vector and rules out the possibility of any vector other than the zero vector having zero length. Positive definiteness is directly related to the probability interpretation in quantum mechanics: the inner product of a quantum state with itself must be positive to guarantee the positivity of probabilities. If non-zero vectors were allowed to have zero length, the probability interpretation would lose its mathematical foundation.
Norm and Distance
From the inner product we can naturally define the norm, i.e., the “length” or “magnitude” of a vector:
For vectors in , this gives:
where is the squared modulus of the complex number . For example, computing the norm of :
If , then is called a unit vector. The way to normalize an arbitrary non-zero vector is to divide it by its norm:
The normalized vector satisfies . In quantum mechanics, a quantum state must be normalized, which corresponds to the physical requirement that the total probability is 1. For example, normalizing above gives:
Verification: .
From the norm we can derive two important inequalities. The Cauchy-Schwarz inequality states:
with equality if and only if the two vectors are linearly dependent. The triangle inequality states:
These two inequalities are very useful in analyzing the superposition and evolution of quantum states, for instance in bounding the fidelity between two quantum states. A direct corollary of the Cauchy-Schwarz inequality is that for normalized quantum states, the squared modulus of the inner product satisfies , which guarantees that probabilities in the Born rule never exceed 1. In addition, we can define the “angle” between two non-zero vectors by . When two quantum states are orthogonal, , meaning they are “perpendicular,” completely distinguishable states.
Orthogonality and Orthonormal Bases
Two vectors and are said to be orthogonal if their inner product is zero:
Orthogonality means the two vectors are in some sense “perpendicular.” In quantum mechanics, orthogonal states have an extremely important physical meaning: they represent physically distinct states that can be unambiguously told apart. If two quantum states are orthogonal, a measurement can never simultaneously yield non-zero probabilities for both states. This property is part of the foundation of quantum measurement theory: orthogonal states correspond to mutually exclusive measurement outcomes.
A set of vectors forms an orthogonal basis if they are pairwise orthogonal and linearly independent. If, further, each basis vector is a unit vector:
then it is called an orthonormal basis, where is the Kronecker delta. The computational basis and mentioned in Section 1.2 is an orthonormal basis for , because:
The importance of an orthonormal basis lies in how dramatically it simplifies the expansion of vectors and the calculation of inner products. In an orthonormal basis, the components of a vector can be obtained directly through inner products: if , then . The inner product of any two vectors can also be written as the sum of products of corresponding components: . This simplicity makes the orthonormal basis the preferred basis representation in quantum computing.
For any set of linearly independent vectors, one can construct an orthonormal basis through the Gram-Schmidt orthogonalization process. The core idea of this process is to iteratively subtract from each vector its projection onto the already-constructed orthogonal vectors. Taking two dimensions as an example, given two linearly independent vectors and , the construction proceeds as follows:
First, let . Then construct , which amounts to subtracting from its component along the direction of . Finally, normalize: . One can verify that and both are unit vectors. This process generalizes to spaces of arbitrary dimension and is a universal algorithm for constructing orthonormal bases.
Projection Operators
In Section 1.3 we learned about linear operators and matrix representations. Now, using the inner product structure, we can define a particularly important type of operator — the projection operator. Given a normalized vector , define:
This operator projects an arbitrary vector onto the one-dimensional subspace spanned by :
The result is a vector parallel to whose coefficient is precisely the inner product . This coefficient has a profound physical meaning in quantum mechanics: its squared modulus gives the probability that the quantum state collapses to upon measurement. The projection operator thus serves as a bridge connecting the mathematical inner product to the physical measurement probability.
Taking as an example, let . Then the matrix representation of the projection operator is:
Similarly, . It is easy to verify that and , which is the characteristic property of a projection operator: projecting again does not change the result, i.e., . Moreover, projection operators are Hermitian operators: . These two properties — idempotence and Hermiticity — are the necessary and sufficient conditions for a projection operator.
If is an orthonormal basis, then for any vector we have the expansion:
This is called the completeness relation. The corresponding operator form is:
where is the identity operator. This identity is ubiquitous in quantum computing and is an important tool for performing basis transformations and deriving formulas. For example, inserting the completeness relation on either side of an arbitrary operator : , where is precisely the matrix element of in the orthonormal basis. The completeness relation can also be used to expand a state in a new basis: , which is the abstract vector-space analogue of a Fourier expansion.
Let us examine one more explicit example to consolidate the calculation of inner products. Consider the quantum state and compute its norm:
The state is already normalized. Now compute its inner product with : , so the probability of measuring is . Similarly, the probability of measuring is . The two probabilities sum to 1, satisfying the normalization condition. This example clearly shows how the inner product directly connects mathematical calculation to physical measurement outcomes.
From a geometric perspective, the inner product can also be used to define the angle between two vectors. For non-zero vectors and , the angle satisfies:
The Cauchy-Schwarz inequality guarantees that the right-hand side does not exceed 1. When , the two vectors are parallel; when , they are orthogonal. In quantum mechanics, orthogonal states correspond to perfectly distinguishable measurement outcomes, while parallel states represent the same physical state (differing only by an overall phase).
Summary:
This section built up the mathematical framework required by quantum mechanics, starting from the definition of the inner product. The inner product generalizes the dot product on a complex vector space to an abstract vector space. Its three properties — conjugate symmetry, linearity in the second argument, and positive definiteness — guarantee that the norm is well defined. The concept of orthogonality allows us to define orthonormal bases, and the projection operator provides an explicit operation for projecting onto a one-dimensional subspace. The completeness relation shows that an orthonormal basis suffices to represent any vector in the space, providing the mathematical guarantee for expanding quantum states in different bases. The Cauchy-Schwarz and triangle inequalities, derived from the inner product, furnish basic constraints on relations among vectors.
Connection to Quantum Computing:
The inner product is the mathematical root of the probability interpretation in quantum mechanics. The normalization condition for quantum states directly corresponds to the physical conservation of total probability. The squared modulus of the inner product between two states, , gives the Born rule probability of obtaining a particular measurement outcome. Orthogonal states mean the two quantum states can be perfectly distinguished — a measurement can never simultaneously yield non-zero probabilities for both orthogonal states. Orthonormal bases constitute the set of possible measurement outcomes, and projection operators are the central mathematical objects of the quantum measurement postulate: the spectral decomposition of a measurement operator is precisely built from a family of projection operators. Thus, every concept in this section directly underpins the description of qubit states and the mathematical formalism of quantum measurement, forming the foundation for understanding quantum algorithms and quantum information theory. From quantum gate operations to quantum error correction, from quantum state tomography to quantum machine learning, the inner product structure is everywhere.
1.5 Eigenvalues & Eigenvectors
In Section 1.3, we studied linear operators and matrix representations and became familiar with concrete operator examples such as the Pauli matrices. This section delves into the eigenstructure of linear operators — eigenvalues and eigenvectors. For quantum mechanics, this is the most crucial section: the possible measurement outcomes of a quantum observable correspond to the eigenvalues of a Hermitian operator, and the state of the system after measurement collapses to the corresponding eigenvector. The spectral theorem will reveal the profound symmetries of the eigenstructure of Hermitian and unitary operators, laying the cornerstone for the mathematical formalism of quantum mechanics. Mastering the content of this section is an essential prerequisite for understanding quantum measurement, quantum evolution, and quantum error-correcting codes. The eigenvalue problem is not only a central topic of linear algebra but also the key link connecting abstract mathematics to physically measurable quantities.
The Characteristic Equation
Given a linear operator acting on a vector space , if there exists a non-zero vector and a scalar such that:
then is called an eigenvalue of , and is the corresponding eigenvector. The meaning of this equation is very intuitive: eigenvectors are those vectors that, under the action of the operator , are merely stretched or compressed (multiplied by a scalar ) while their direction remains unchanged. Physically, this means that eigenvectors represent states that remain “stable” under the operation described by that operator. For instance, if describes a rotation operation, then vectors along the rotation axis are eigenvectors with eigenvalue 1 (since their length does not change).
Rewrite the equation as , where is the identity operator. A necessary and sufficient condition for a non-zero solution to exist is that the operator be singular, i.e.:
This is called the characteristic equation. The left-hand side is a polynomial in , called the characteristic polynomial. For an matrix, the characteristic polynomial is of degree , so there are eigenvalues (counting multiplicities). Eigenvalues can be real or complex, simple or repeated roots, depending on the specific structure of the matrix.
Consider the example of a matrix:
Its characteristic polynomial is:
The coefficient is the trace of the matrix, and is the determinant. This yields important properties of eigenvalues: the sum of the eigenvalues equals the trace, and the product of the eigenvalues equals the determinant. This provides a convenient way to verify eigenvalue calculations.
Explicit Calculation: The Pauli Matrix
Let us compute the eigenvalues and eigenvectors of the Pauli matrix introduced in Section 1.3:
The characteristic equation is:
Solving yields two eigenvalues: and . Verification: the trace is , equal to the sum of the eigenvalues; the determinant is , equal to the product of the eigenvalues.
For , solve :
Thus the normalized eigenvector is .
For , solve :
The normalized eigenvector is .
Notice that the eigenvectors of the matrix are precisely the computational basis and . This is no coincidence: the Pauli matrix in quantum mechanics corresponds to a spin measurement along the -axis, and its eigenvalues represent the spin-up and spin-down measurement outcomes, respectively. The eigenvectors are the final states to which the system collapses after measurement. This correspondence is a direct manifestation of the quantum measurement postulate.
The Spectral Theorem: Diagonalization of Hermitian Operators
We now arrive at the core content of this section — the spectral theorem. In quantum mechanics, operators representing observables are all Hermitian operators, i.e., those satisfying (as defined in Section 1.3). The spectral theorem tells us that Hermitian operators possess a series of elegant properties, which endow quantum measurement with a clear physical meaning. Understanding the spectral theorem is key to mastering the mathematical structure of quantum mechanics.
Property 1: The eigenvalues of a Hermitian operator are all real.
The proof proceeds as follows. Let be a Hermitian operator, , with . Consider :
On the one hand, from the eigenvalue equation:
On the other hand, from the Hermitian property :
Comparing the two expressions, since , we have , i.e., . This conclusion is of paramount importance: the results of quantum measurements must be real numbers, and the real eigenvalues of Hermitian operators guarantee precisely this. If eigenvalues were complex, measurement results would be complex, contradicting the physical fact that we can only read real values from experiments. This proof also demonstrates how the inner product structure, combined with the Hermitian property of the operator, yields a profound physical conclusion.
Property 2: Eigenvectors corresponding to distinct eigenvalues are mutually orthogonal.
Let and , with . Consider :
At the same time:
The last step uses the fact that is real. Hence:
Since , we must have , i.e., the two eigenvectors are orthogonal. This means that the eigenvectors of a Hermitian operator naturally form an orthogonal basis. Combined with normalization, they form an orthonormal basis, which is the mathematical guarantee that “after measurement the system is in a certain eigenstate” in the quantum measurement postulate. Orthogonality guarantees that different measurement outcomes are distinguishable, which is the foundation of quantum measurement theory.
Property 3: A Hermitian operator admits a spectral decomposition.
For a Hermitian operator in a finite-dimensional space, let its eigenvalues be (repetitions allowed) with corresponding normalized eigenvectors . The spectral theorem asserts:
This is the spectral decomposition. It expresses the operator as a weighted sum of projection operators, with the eigenvalues as weights. This decomposition is of fundamental importance in quantum mechanics, because it represents an abstract operator in a form that can be directly mapped to physical measurements. Each projection operator corresponds to a possible measurement outcome, and the weight is the numerical value of that outcome.
Explicit Calculation: Spectral Decomposition of the Pauli Matrix
Let us verify the spectral decomposition of the Pauli matrix:
The characteristic equation is , so the eigenvalues are , .
For , solve :
Normalizing gives .
For , solve :
Normalizing gives .
Verify orthogonality: , indeed orthogonal.
Now perform the spectral decomposition:
Compute the matrices of the projection operators:
Therefore:
Verification holds. The states and are called the basis or Hadamard basis and are widely used in quantum computing for constructing superposition states. For example, the action of the Hadamard gate transforms the computational basis to the basis.
Eigenvalues of Unitary Operators
In Section 1.3 we defined unitary operators: those satisfying . Unitary operators describe the time evolution of quantum states, and their eigenvalues have a special property. Let . Then:
At the same time:
Therefore , i.e., the eigenvalues of a unitary operator are complex numbers of modulus 1, which can be written as with . For example, the phase gate has eigenvalues and . This property guarantees that unitary evolution does not alter the normalization condition of quantum states. The phase plays a central role in quantum interference phenomena, where different phases can lead to constructive or destructive interference.
Let us examine one more non-Pauli example to deepen our understanding. Consider the Hermitian matrix:
The characteristic equation is . Solving yields , . For , the eigenvector satisfies , normalized to . For , the eigenvector satisfies , normalized to . Verify orthogonality: . The spectral decomposition is . This example illustrates that any Hermitian matrix can be diagonalized by finding its eigenvector basis, which is the foundation of quantum measurement theory: if we measure the system using the physical quantity corresponding to , the possible outcomes are 4 or 2, with probabilities determined by the projection of the system state onto and .
Regarding degenerate eigenvalues: when a Hermitian operator has repeated eigenvalues, the eigenvectors belonging to that eigenvalue are not unique but span a subspace. For instance, the identity operator has all eigenvalues equal to 1, and any vector is an eigenvector. In such cases, we may arbitrarily choose an orthonormal basis within that subspace. Degeneracy reflects symmetries of the quantum system: when the system possesses a certain symmetry, different quantum states may have the same energy eigenvalue. Handling degeneracy requires additional conserved quantities or symmetries to determine a suitable basis.
The concepts of eigenvalues and eigenvectors can also be generalized to differential operators in function spaces. For example, the position operator and the momentum operator in quantum mechanics are operators in infinite-dimensional spaces. The “eigenvectors” of the position operator are Dirac delta functions , with corresponding eigenvalues being the position coordinate ; the eigenvectors of the momentum operator are plane waves , with corresponding eigenvalues being the momentum . Although strictly speaking these objects do not belong to the Hilbert space, the framework of rigged Hilbert spaces can make the mathematics rigorous. This perspective reveals the universality of the eigenvalue problem: it is not merely a property of finite-dimensional matrices but a fundamental structure of all linear operators.
Summary:
This section systematically studied the eigenstructure of linear operators, starting from the eigenvalue equation . The spectral theorem reveals three core properties of Hermitian operators: eigenvalues are real, eigenvectors corresponding to distinct eigenvalues are mutually orthogonal, and the operator can be decomposed as . We also proved that the eigenvalues of a unitary operator must be complex numbers of modulus 1 of the form . Through explicit calculations for the Pauli and matrices, we verified these abstract theorems on concrete operators and demonstrated how to construct spectral decompositions and verify the results. The eigenvalue problem not only provides the “fingerprint” of an operator but furnishes the complete mathematical framework for quantum measurement theory.
Connection to Quantum Computing:
The spectral theorem is the mathematical cornerstone of the quantum measurement postulate. In quantum mechanics, every physical observable corresponds to a Hermitian operator , and its possible measurement outcomes are precisely the real eigenvalues of . After measurement, the quantum state collapses to the corresponding eigenvector . The projection operators in the spectral decomposition directly give the probability of obtaining measurement outcome : if the system is in state , the probability of measuring is , which is precisely the Born rule. The eigenvalues of unitary operators correspond to the phase factors accumulated during quantum evolution and play a key role in quantum interference and quantum algorithms. Thus, the content of this section is an indispensable theoretical foundation for understanding quantum measurement, quantum gate operations, and quantum algorithms. From quantum simulation to quantum chemistry calculations, from quantum optimization to quantum machine learning, solving eigenvalue problems is a core computational task.
1.6 Tensor Products & Composite Systems
In the preceding sections, we studied the mathematical description of a single qubit, whose state space is the two-dimensional Hilbert space . Real quantum computers, however, contain multiple qubits, and the state space of the entire system is no longer simply but a much larger space constructed via the tensor product. The tensor product is the mathematical language for describing multi-body quantum systems and the necessary path to understanding quantum entanglement, a core quantum characteristic. This section builds on the vector spaces of Section 1.2 and the linear operators of Section 1.3 to systematically introduce the definition of the tensor product, its matrix representation (the Kronecker product), and the distinction between separable and entangled states. The tensor product is the key mathematical tool that takes quantum computing from single qubits to multiple qubits, from theory to practical application. Without the tensor product, we could not describe the joint state of multiple qubits, nor understand those core phenomena of quantum computing that transcend classical computational capabilities.
Definition of the Tensor Product
Given two vector spaces and with dimensions and , their tensor product is a new vector space whose dimension is:
For vectors and , their tensor product is denoted , often abbreviated as or . The tensor product differs from the direct sum: the dimension of a direct sum space is the sum of the dimensions, while the dimension of a tensor product space is the product of the dimensions. This exponential growth is the mathematical root of the enormous computational power of quantum computing. For example, a two-qubit system requires a four-dimensional space to describe, three qubits require eight dimensions, and one hundred qubits require dimensions — a number far exceeding the total number of atoms in the universe. It is precisely this exponentially growing state space that enables quantum systems to encode and process information volumes that classical computers cannot simulate.
The tensor product satisfies the distributive law with respect to addition and scalar multiplication:
In general, however, . The correct expansion should contain four terms, reflecting the richness of the tensor product state space structure.
The Basis of a Two-Qubit System
Consider the most important case for quantum computing: . Let be the computational basis of . A natural basis for consists of the following four basis vectors:
where the column vector form follows from the concrete construction of the tensor product: if and , then:
For example:
Verification of :
These four basis vectors form an orthonormal basis for , satisfying . A general two-qubit state can be expanded in this basis:
where the complex coefficients satisfy the normalization condition . A normalized vector in this four-dimensional complex vector space is a two-qubit quantum state. Notably, one overall phase among the four complex coefficients can be ignored, so a pure state of two qubits is actually described by six real parameters — far more than the two binary parameters of two classical bits.
Matrix Tensor Product: The Kronecker Product
Operators can also be combined via the tensor product. Given an matrix and an matrix , their Kronecker product is an block matrix:
That is, each element of is replaced by . The Kronecker product satisfies the following important properties:
and:
The first property says that a tensor product operator acting on a tensor product state is equivalent to each operator acting on its respective subsystem. This accords with physical intuition: if two subsystems evolve independently, the overall evolution is the tensor product of the individual evolutions. The second property guarantees that multi-step evolution can proceed by sequential matrix multiplication.
Explicit Calculation: Kronecker Product
Let us compute a concrete example. Take the Pauli matrix and the Pauli matrix:
Compute :
Expanded as a matrix:
Let us verify how this matrix acts on the tensor product state , where .
First compute . Using the property of the Kronecker product, this equals , because ( is an eigenvector of with eigenvalue ) and ( is an eigenvector of with eigenvalue ; see Section 1.5).
Verify with matrix multiplication: .
Verification holds. This shows that is an eigenvector of with eigenvalue .
Now compute :
Note that the tensor product does not generally satisfy the commutative law: . This is consistent with physical intuition about quantum systems: a operation on the first qubit and an operation on the second qubit is different from an operation on the first qubit and a operation on the second qubit. Different ordering of operations leads to different physical results. This non-commutativity is the mathematical embodiment of why quantum gate operations cannot be freely reordered.
The Controlled-NOT (CNOT) Matrix
One of the most important two-qubit gates in quantum computing is the Controlled-NOT gate, or CNOT. Its physical meaning is: if the first qubit (the control) is in the state, apply the gate (i.e., flip) to the second qubit (the target); if the control is in the state, leave the target unchanged. The CNOT gate is one of the fundamental gates for achieving universal quantum computation. Without the CNOT gate, single-qubit gates alone cannot realize arbitrary quantum computations, because single-qubit gates can only operate on each qubit independently and cannot establish correlations between qubits.
Using the projection operators and introduced in Section 1.4, the CNOT gate can be compactly expressed as:
where is the identity matrix. The physical meaning of this expression is very clear: when the control is 0 (projected onto ), the target remains unchanged (); when the control is 1 (projected onto ), the target is flipped (). This method of expressing conditional operations using projection operators can be generalized to more complex multi-controlled gates.
Let us expand this expression:
Adding these yields the matrix of the CNOT gate:
Verify the action of the CNOT gate on the basis states:
- (control is 0, target unchanged)
- (control is 0, target unchanged)
- (control is 1, target flipped)
- (control is 1, target flipped)
This is perfectly consistent with the definition of the CNOT gate. It is worth noting that the CNOT gate itself is a unitary matrix, satisfying , which guarantees that the normalization condition of the quantum state is preserved after evolution.
Separable States and Entangled States
In multi-body quantum systems, state vectors fall into two categories. A separable state can be written as a single tensor product:
For example, is a separable state. In such states, the properties of the two subsystems are “independent”: a measurement on one subsystem does not immediately affect the other. The measurement statistics of separable states can be described by classical probability theory. Any composite system in classical physics can be regarded as a statistical mixture of separable states.
However, not all states are separable. An entangled state is one that cannot be written as a single tensor product. The most classic example is the Bell state:
Let us verify that this is an entangled state. Suppose it can be decomposed as , where and . Expanding:
To match , we need and , but also , which is impossible. Hence cannot be decomposed as a single tensor product; it is an entangled state. The existence of entangled states is one of the most fundamental differences between quantum mechanics and classical physics.
Entangled states exhibit non-classical correlation properties: even if two qubits are spatially far apart, measuring one instantaneously affects the state of the other. Einstein called this “spooky action at a distance.” It is important to emphasize that this correlation cannot be used for superluminal communication, because measurement outcomes are random, and the two parties must compare results via a classical channel to discover the correlation. Entanglement is a core resource for quantum computing and quantum communication; quantum teleportation, superdense coding, and quantum error correction all depend on the manipulation of entangled states. We will develop the theory and applications of entanglement in detail in Section 3.3. Bell states are not only theoretically important but have been prepared and verified in numerous experiments and are among the most fundamental resource states in quantum information science.
Let us further examine how the tensor product manifests in a three-qubit system. The computational basis for three qubits is , eight basis vectors in total, spanning the space. A general pure state is:
The normalization condition requires . This exponential growth means that describing the quantum state of qubits requires complex amplitudes, and even moderately sized quantum systems already far exceed the simulation capacity of classical computers. This is the precise mathematical root of the enormous computational potential of quantum computing: quantum systems naturally operate in an exponentially large space.
For three-qubit systems, we can also construct more complex entangled states. For example, the Greenberger-Horne-Zeilinger state (GHZ state):
This state is also entangled, and its entanglement structure is more complex than that of the two-qubit Bell state. In multi-body quantum systems, the forms and measures of entanglement constitute a rich field of study involving concepts such as entanglement entropy and entanglement spectrum. These tools play important roles in quantum error correction and quantum many-body physics.
The concept of the tensor product can also be generalized to two subsystems of different dimensions. For example, a composite system of one qubit and one qutrit (a three-level quantum system) has state space . Tensor products of mixed dimensions have important applications in quantum communication and quantum cryptography. More generally, for any two finite-dimensional Hilbert spaces and , the state space of the composite system is always their tensor product . This construction is the mathematical core of quantum mechanics as a fundamental physical theory, because it allows us to combine independent subsystems into a more complex whole while preserving the individual characteristics of each subsystem.
Summary:
This section introduced the tensor product as the mathematical tool for describing multi-body quantum systems. The dimension of the tensor product of two vector spaces is the product of their individual dimensions; the explicit basis of is . The tensor product of operators is realized via the Kronecker product, and we gave the complete matrix expansions of and . We derived the matrix representation of the most important two-qubit gate in quantum computing — the CNOT gate — and verified its action on the computational basis. Finally, we distinguished between the concepts of separable and entangled states, introduced the Bell state as the paradigmatic example of entanglement, and briefly discussed the central role of entanglement in quantum information. The tensor product is not merely a mathematical construction but the indispensable path to understanding the exponentially large state space of quantum computing and the non-classical correlations of quantum systems.
Connection to Quantum Computing:
The tensor product is the mathematical foundation of multi-qubit systems in quantum computing. The joint state space of qubits is ; the dimension grows exponentially with the number of qubits, which is the source of the potential computational power of quantum computing. Describing an -bit system on a classical computer requires bits, whereas describing qubits on a quantum computer requires complex amplitudes — this exponential growth allows quantum systems to encode and process exponentially large amounts of information in parallel. The CNOT gate, together with single-qubit gates (such as the Hadamard gate , the phase gate , and the gate), forms a universal gate set: any quantum computation can be approximated to arbitrary precision by gates from this set. Entangled states such as Bell states are key resources for quantum algorithms (such as Shor’s algorithm and Grover’s algorithm) and quantum communication protocols. Understanding the tensor product and entanglement is the necessary path to mastering quantum computing as it moves from single qubits to multiple qubits, from theory to application. Every frontier area of modern quantum computing — from quantum error correction to quantum simulation, from quantum machine learning to quantum cryptography — is deeply rooted in the mathematical structures of the tensor product and entanglement.
1.7 Probability Theory Foundations
If you have ever tossed a coin, you have already encountered the intuition of probability: the chance of heads is , and tails is also . Quantum computing is equally inseparable from probability, but the probability system it uses differs fundamentally from the classical world. This section begins with familiar classical probability and progressively reveals the distinctive character of quantum probability. Probability theory is not only the foundation of modern statistics but also an indispensable path to understanding the mathematical framework of quantum mechanics. In quantum computing, we will frequently encounter concepts such as “the probability of a measurement outcome” and “the expectation value of a quantum state,” all of which rest on the axiomatic foundation of probability theory.
1.7.1 Probability Spaces
The set of all possible outcomes of a random experiment constitutes the sample space, denoted . For example, when tossing a fair coin, ; when rolling a six-sided die, . Any subset of is called an event.
A probability measure assigns to each event a number between and , satisfying two axioms:
- Non-negativity and boundedness: For any event ,
- Normalization: The probability of the entire sample space is , i.e.,
- Additivity: If and are mutually exclusive (cannot occur simultaneously), then
These three axioms are the cornerstone of all of classical probability theory.
To gain a more intuitive understanding, we can imagine the sample space as a large box containing all possible outcomes. Each outcome is like a small ball in the box, and an event is a set composed of several balls. The role of the probability measure is to assign a “weight” to each such set — a weight that tells us the relative frequency with which the outcomes in that set appear when the random experiment is repeated. When two events are mutually exclusive, the probability of their union is simply the sum of their individual probabilities, which perfectly matches our everyday intuition: a coin cannot simultaneously land both heads and tails, so the probability of “heads or tails” is simply the sum of the two probabilities.
In quantum computing, the concept of the sample space will be generalized to a Hilbert space, and events will correspond to subspaces or projection operators in that space. This generalization preserves the core idea of the probability measure — assigning numerical values to “possibilities” — while endowing it with a much richer algebraic structure.
1.7.2 Random Variables
To describe random phenomena using numbers, we introduce the random variable , which is a map from the sample space to the real numbers. Random variables fall into two categories:
Discrete random variables: take countably many values (such as the faces of a die). Their distribution is described by a probability mass function (PMF):
Continuous random variables: take continuous values (such as the lifetime of an electronic component). Their distribution is described by a probability density function (PDF) , with the probability of the event given by
The introduction of random variables was a crucial step in making probability theory practical. By converting abstract “events” into concrete “numerical values,” we can quantitatively analyze and compute random phenomena. Discrete random variables are suited to describing countable outcomes, such as the number of times a particular eigenvalue appears in a quantum measurement; continuous random variables are suited to describing continuous variations in physical quantities, such as the position coordinate of a particle in space.
In quantum mechanics, an observable is essentially a special kind of random variable — except that its values are no longer fixed real numbers but are associated with the eigenvalues of measurement outcomes on a quantum state. When we measure a quantum system, the measurement outcome is a random variable whose probability distribution is determined by the expansion coefficients of the quantum state in the eigenbasis of that observable.
1.7.3 Expectation and Variance
The expectation describes the “average value” of a random variable. For a discrete random variable, the explicit definition of the expectation is For a continuous random variable,
The variance measures the degree to which a random variable deviates from its expectation:
The second equality for the variance is a commonly used convenient form for calculations: first compute the expectation of , then subtract the square of the expectation.
Expectation and variance are the two most important numerical characteristics for describing a random variable. The expectation tells us the “central location” of the random variable — if we were to repeat the experiment infinitely many times and take the average, that average would converge to the expectation. The variance tells us the “degree of dispersion” of the random variable — the larger the variance, the more the random variable’s values deviate from its center; the smaller the variance, the more concentrated the values are around the expectation.
In quantum mechanics, the concept of expectation corresponds to the quantum expectation value. For a quantum state and an observable , the expectation value is . This is precisely the mathematical object we frequently need to compute in quantum computing. Variance in quantum mechanics corresponds to uncertainty — the famous Heisenberg uncertainty principle is essentially an inequality relationship between the variances of two non-commuting observables. When we say “the measurement result of a certain physical quantity is uncertain,” mathematically we are saying that the variance of the random variable corresponding to that physical quantity is non-zero.
1.7.4 Conditional Probability and Bayes’ Theorem
Conditional probability describes the probability of one event occurring given that another event has occurred:
Bayes’ theorem reverses the conditional probability and occupies a central position in statistical inference:
Conditional probability and Bayes’ theorem are among the most philosophically profound concepts in probability theory. Conditional probability answers the question: when we acquire new information (that event has occurred), how should we update our belief about the probability of other events (event )? Bayes’ theorem provides a mathematical framework for reversing the direction of inference — from the probability of “effect given cause” (, the likelihood) to the probability of “cause given effect” (, the posterior). This framework is not only the foundation of modern statistics and machine learning but also has deep connections to quantum measurement theory.
Numerical example: Suppose the prevalence of a certain disease is (), and the test accuracy is: probability of testing positive given the disease , probability of testing positive given no disease . Then the probability of actually having the disease given a positive test result is
This seemingly counterintuitive result (only about actually have the disease despite testing positive) is a testament to the power of conditional probability. Let us unpack this calculation in more detail: the numerator is the “true positive” probability — the joint probability of both having the disease and testing positive. The denominator consists of two parts: the first part is the true positive probability , and the second part is the “false positive” probability , the probability of a healthy person being erroneously flagged as positive. The total denominator is , representing all cases that test positive (true or false). Thus, the probability of actually having the disease given a positive test is the proportion of true positives among all positives: . The reason this result is so low is that the disease itself is rare (only prevalence), and the absolute number of false positives far exceeds that of true positives.
In quantum computing, the concept of conditional probability corresponds to quantum measurement update. When we perform a partial measurement on a quantum system and obtain a certain result, the quantum state of the system “collapses,” and the quantum state of the unmeasured part is also updated. Although this update process differs in mathematical form from classical conditional probability, both embody the idea of “revising the state of the system after acquiring new information” at the conceptual level.
1.7.5 Classical Probability vs. Quantum Probability
The most crucial distinction between classical probability and quantum probability is that the quantum world uses probability amplitudes rather than probabilities directly.
In classical probability, if an event can occur in two mutually exclusive ways, the total probability is the sum of the two:
In quantum mechanics, each way corresponds to a complex probability amplitude and , and the observed probability is the squared modulus of the probability amplitude:
When both ways coexist, the total probability amplitude is , and the corresponding probability is
Note the appearance of the cross term (interference term)! This means
Using a simpler algebraic analogy: let , be two complex numbers, then
If and are real numbers, the cross term is ; if , this term partially cancels the probability, leading to destructive interference; if , we get constructive interference. It is precisely this interference effect that makes quantum particles behave like waves.
Double-slit analogy: Imagine a particle reaching a certain point on the screen via the left slit with probability amplitude and via the right slit with . Classical thinking would tell you the total probability is ; but quantum mechanics gives . When the path-length difference between the two slits to that point causes , the cross term nearly cancels entirely, and the probability at that point approaches zero — this is the famous dark fringe of double-slit interference.
This distinction is the mathematical root of all the magic of quantum computing. The key to understanding this distinction is recognizing that in quantum mechanics, probability amplitudes are the fundamental physical quantities, and probabilities are merely derivatives of probability amplitudes. Probability amplitudes satisfy the linear superposition principle — two probability amplitudes can be added to obtain a new probability amplitude — but probabilities themselves do not satisfy this principle. This is why quantum systems can simultaneously exist in a “superposition state” of multiple states, whereas classical systems can only be in one state at a time.
At a deeper level, classical probability theory is built on the foundation of set theory — the sample space is a set of outcomes, events are subsets, and probability is a measure on sets. Quantum probability theory, by contrast, is built on the foundation of linear algebra — quantum states are vectors in a Hilbert space, observables are Hermitian operators, and probabilities are given by the inner product of the state vector and the operator. This transition from “sets” to “vector spaces” is the most fundamental mathematical difference between quantum mechanics and classical physics.
Summary:
This section constructed the basic framework of classical probability theory: probability spaces , random variables and their expectations and variances, conditional probability, and Bayes’ theorem. The core point is that classical probability is a measure on sets of events, and the probabilities of mutually exclusive events simply add. The key distinction of quantum probability is that probabilities are given by the squared modulus of complex probability amplitudes, and superposition produces an interference term , so that the total probability does not equal the sum of the individual probabilities. The concepts of expectation and variance correspond in quantum mechanics to quantum expectation values and uncertainty, and are mathematical tools used frequently in the subsequent study of quantum algorithms. Conditional probability and Bayes’ theorem provide classical analogues for understanding quantum measurement updates.
Connection to Quantum Computing:
The state of a qubit in quantum computing is described by probability amplitudes, such as , where the probability of measuring is . The design of quantum algorithms is essentially the precise manipulation of probability amplitudes, using interference effects to amplify the probability amplitudes of correct answers and suppress those of incorrect answers. For example, Grover’s search algorithm, through constructive amplitude amplification, boosts the probability amplitude of the target state from to nearly . The calculation of quantum expectation values is an important means of evaluating the performance of quantum algorithms — we often need to compute the expectation value of some observable on the output state of an algorithm to determine whether the algorithm has achieved its intended optimization goal. Understanding the fundamental distinction between classical probability and quantum probability is an essential prerequisite for mastering the design philosophy of quantum algorithms.
1.8 Fourier Analysis Primer
If you have ever used music software to view the frequency spectrum of an audio clip, you have already encountered the intuition behind Fourier analysis: any complex sound can be decomposed into a superposition of sine waves of different frequencies. This idea of “decomposition and superposition” is the mathematical engine behind several key speedups in quantum algorithms. Fourier analysis is not only ubiquitous in signal processing, image compression, and communication engineering, but also plays a core role in quantum computing — the Quantum Fourier Transform (QFT) is the cornerstone of algorithms such as Shor’s algorithm and quantum phase estimation.
1.8.1 From Periodic Functions to Fourier Series
The astonishing insight of the Fourier series is that any sufficiently well-behaved periodic function (with period ) can be written as an infinite series of complex exponentials:
where the coefficients are given by an integral. This is equivalent to saying that the function space has an “orthonormal basis” , and any periodic function can be expanded in this basis. Physically, this amounts to decomposing a signal into pure tones of different frequencies.
The core idea of the Fourier series is orthogonal decomposition. In three-dimensional space, any vector can be decomposed into the sum of its projections onto three mutually perpendicular coordinate axes. The Fourier series generalizes this idea to infinite-dimensional function spaces: the complex exponential functions act like “coordinate axes” in the function space, being mutually “orthogonal” (under a suitable inner product definition), and the Fourier coefficients are the “projected lengths” of the function along these “coordinate axes.”
From a more intuitive perspective, the Fourier series tells us: a complex periodic waveform, no matter how irregular it may appear, is essentially a superposition of simple sine and cosine waves. The fundamental frequency corresponds to the “basic contour” of the waveform, while higher harmonics are responsible for depicting the “fine texture.” In quantum mechanics, this idea of “decomposition into fundamental modes” corresponds to expanding a quantum state in an energy eigenbasis — each energy eigenstate is like a “pure tone,” and any arbitrary quantum state of the system is a superposition of these “pure tones.”
1.8.2 The Continuous Fourier Transform
For non-periodic functions, we push the period to infinity and obtain the Fourier transform:
The inverse transform restores the time-domain (or spatial-domain) representation from the frequency-domain representation:
This section does not delve into computational techniques; one need only remember the core intuition: the Fourier transform is a coordinate transformation between the “position basis” and the “frequency basis.”
The Fourier transform reveals a profound mathematical symmetry: the time domain and the frequency domain are two equivalent ways of describing the same signal, but with different emphases. In the time domain, we focus on the concrete variation of the signal over time; in the frequency domain, we focus on which frequency components the signal contains and the strength of each component. This is like describing the same person either by physical attributes such as “height, weight, age” or by social attributes such as “personality, hobbies, occupation” — the two descriptive approaches contain equivalent information but are suited to different analytical scenarios.
In quantum mechanics, this “time-frequency duality” corresponds to position-momentum duality. The wave function of a quantum particle is the probability amplitude distribution in position space, and its Fourier transform is the probability amplitude distribution in momentum space. The Heisenberg uncertainty principle is a direct mathematical corollary of this duality: the more localized a wave packet is in position space (the smaller ), the more spread out it is in momentum space (the larger ), and vice versa. This principle is equally important in quantum computing — when we try to read out quantum phase information with precision, we must strike a trade-off between measurement accuracy and the number of measurements.
1.8.3 The Discrete Fourier Transform (Focus)
In computation, we deal with a finite number of discrete data points. The Discrete Fourier Transform (DFT) acts on a complex vector of length and outputs another vector of length , defined as
where
is the primitive -th root of unity.
The DFT can be written in a compact matrix form. Define the DFT matrix , whose element at row , column is
Then the DFT is the matrix-vector multiplication: .
The DFT is the bridge connecting the continuous world to discrete computation. In practical applications, we cannot process continuous functions; we can only sample them to obtain a finite number of discrete data points. The DFT tells us how to achieve a “frequency decomposition” similar to the continuous Fourier transform on discrete data points. The root of unity is the core of the DFT — it is uniformly distributed on the unit circle in the complex plane, like the tick marks on a clock face, with each tick corresponding to a “frequency component.”
The DFT also has an important property: it is the foundation of the circular convolution theorem. In the time domain, the circular convolution of two sequences corresponds to their pointwise product in the frequency domain. This property makes the DFT a powerful tool for fast convolution computation, with wide applications in digital filtering, pattern recognition, and other areas. In quantum computing, this property corresponds to the conversion of quantum states between the computational basis and the Fourier basis — the QFT can transform problems that are hard to analyze in the computational basis into ones that become simple and intuitive in the Fourier basis.
Explicit Example: The DFT Matrix
When , . The matrix elements are :
Verification: for input ,
This is precisely the famous Hadamard transform, which is ubiquitous in quantum computing.
This simple example reveals the most direct connection between the DFT and quantum computing. In quantum computing, the single-qubit Hadamard gate corresponds precisely to the normalized matrix: . The Hadamard gate is one of the most fundamental gates in quantum computing; it converts the computational basis state into the uniform superposition state , and vice versa. From the perspective of Fourier analysis, the Hadamard gate is the “minimal DFT” on two points, converting information from the “time domain” (computational basis) to the “frequency domain” (superposition basis).
Explicit Example: The DFT Matrix
When , . The matrix elements are . Computing element by element (noting that , ):
1 & 1 & 1 & 1 \\ 1 & i & -1 & -i \\ 1 & -1 & 1 & -1 \\ 1 & -i & -1 & i \end{pmatrix}Observe this matrix: row 1 is all ‘s (the DC component); row 2 corresponds to frequency ; row 3 to frequency (the Nyquist frequency); row 4 to frequency , equivalent to frequency . The elements of each column (except column 1) sum to zero, reflecting orthogonality.
The example reveals the richer structure of the DFT matrix. Note that each row of the matrix corresponds to a different “frequency mode”: row 1 is all equal elements (zero frequency, the DC component); row 2 is (sampled complex exponential of one full cycle); row 3 is (sampled cosine of two full cycles, the Nyquist frequency); row 4 is (equivalent to sampling at negative frequency ). This regularity endows the DFT matrix with strong symmetries — indeed, the column vectors of the DFT matrix are pairwise orthogonal, though their norms are rather than .
1.8.4 Complexity and Quantum Advantage
In classical computation, directly computing the DFT by definition requires complex multiplications and additions, i.e., a time complexity of . The Fast Fourier Transform (FFT) exploits the symmetries of to reduce the complexity to — a landmark achievement in digital signal processing.
The core idea of the FFT is divide and conquer. It cleverly decomposes a DFT of length into a combination of two DFTs of length — one acting on the even-indexed samples, the other on the odd-indexed samples. This decomposition can be applied recursively until the subproblems become trivially simple. Since each decomposition halves the problem size and the number of decomposition layers is , the total complexity drops from to . This “divide and conquer” strategy is one of the most powerful ideas in algorithm design, and the FFT is one of its most elegant applications to mathematical structure.
Quantum computing, however, provides an exponentially greater speedup. The Quantum Fourier Transform (QFT) is implemented on qubits and requires only quantum gate operations.
Note a subtle but crucial distinction: the DFT matrix itself is not a unitary matrix — its column vectors, though orthogonal, have norm rather than . The normalized QFT matrix
is the unitary matrix, satisfying . This is a direct manifestation of the requirement in quantum mechanics that evolution must be unitary. The QFT, as a unitary transformation, can be naturally implemented on a quantum circuit.
The reason the QFT can achieve exponential speedup is fundamentally quantum parallelism. In classical computation, processing data points requires operating on those values sequentially or in parallel; in quantum computation, qubits can simultaneously represent a superposition of states. The QFT exploits this exponentially large state space, using a clever sequence of quantum gates, to “simultaneously” perform the Fourier transform on all basis states. This is not truly “parallel computation” — we do not have independent processors working simultaneously — but rather an exploitation of the mathematical structure of quantum superposition states, so that a quantum circuit containing only gates equivalently performs a transform on an -dimensional vector.
The table below compares the complexities of the three approaches:
| Method | Time / Gate Complexity | Note |
|---|---|---|
| Direct DFT | Classical | |
| FFT | Classical optimal | |
| QFT | Quantum, exponential speedup |
The QFT is a subroutine of core algorithms such as Shor’s algorithm and quantum phase estimation. Section 3.6 will later unfold in detail the quantum circuit construction and analysis of the QFT.
Summary:
Fourier analysis provides a systematic toolkit for converting functions/signals from the “time domain” to the “frequency domain.” The DFT generalizes this transform to finite discrete data; its matrix form has the primitive -th root of unity as its elements. The classical FFT reduces the DFT complexity from to , while the quantum Fourier transform requires only gate operations, achieving an exponential speedup. The key point is that the normalized QFT matrix is unitary and can be directly embedded into a quantum circuit. Understanding the matrix structure of the DFT, the properties of the roots of unity, and the divide-and-conquer philosophy of the FFT is the mathematical foundation for mastering the quantum Fourier transform.
Connection to Quantum Computing:
The QFT is one of the most powerful general-purpose subroutines in the quantum algorithm library. Shor’s algorithm uses the QFT to extract the period from a periodic function, thereby breaking RSA encryption; Quantum Phase Estimation uses the QFT to read out the binary representation of a quantum eigenvalue; the core step of the HHL algorithm (quantum linear system solver) also relies on the QFT to perform frequency-domain operations. Understanding the matrix structure of the DFT and the properties of the roots of unity is an essential prerequisite for mastering these quantum algorithms. In particular, the direct correspondence between the DFT matrix and the Hadamard gate, along with the periodic patterns exhibited by the DFT matrix, are key intuitions for understanding the quantum circuit construction of the QFT. The quantum Fourier transform is not merely a mathematical tool but an exemplary demonstration of the exponential speedup capability of quantum computing — it proves to us that when an algorithm can fully exploit the mathematical structures of quantum superposition and interference, complexity barriers that appear unavoidable in classical computation can be exponentially broken.
Appendix
Common Misconceptions & FAQ: Companion Document for the Quantum Computing Primer
This document accompanies Quantum Computing Primer — From First Principles and aims to address the most frequently encountered confusions and misconceptions during the learning process. Each entry is structured as: “Common Misconception -> Correct Understanding -> Why It Matters -> Detailed Explanation,” with references to specific sections of the tutorial where appropriate.
Part I: Mathematical Foundations (5 Items)
Q1. Squared modulus of a complex number: Are and the same thing?
Common Misconception: Thinking that , because for real numbers does hold.
Correct Understanding: For a complex number , (always a non-negative real number), while , and its modulus . The two happen to be numerically equal, but they have entirely different meanings: is the square of the modulus, while is the modulus after squaring. The reason they are numerically equal is (moduli multiply under complex multiplication).
Why It Matters: Quantum measurement probability uses the square of the modulus of the inner product, not the modulus after squaring the inner product. Distinguishing these two is crucial for subsequently understanding the Born rule.
Detailed Explanation: Complex multiplication corresponds to rotation and scaling (Section 1.1.5). The modulus is the scaling factor, and . Hence . But note that can be computed directly (multiply by its conjugate), while computing requires squaring first, then taking the modulus. In quantum computing, we almost always encounter (squared modulus of a probability amplitude), not . Remember that taking the squared modulus after the inner product is the standard operation of the Born rule (Section 1.4).
Q2. Are the inner products and equal?
Common Misconception: Thinking that the inner product is symmetric, i.e., (a habit carried over from the real dot product).
Correct Understanding: The complex inner product satisfies conjugate symmetry: . They are equal only when the result happens to be a real number. For example, Example 1.2 in Section 1.2.3: , while .
Why It Matters: The conjugation of the first vector (the bra) in the inner product is the key to guaranteeing (Section 1.4) and is the mathematical foundation of the normalization condition for quantum states. Getting the order wrong when computing would lead to an incorrect conjugate relationship.
Detailed Explanation: From the definition: , while . The two are precisely complex conjugates of each other. In quantum mechanics, is interpreted as “the probability of measuring the state and finding it in state ,” so the order does not affect the final probability. However, the correct order must be used in intermediate calculations — conjugate the bra’s components first. A common mistake is to confuse the bra-ket order in a projection : is a scalar, whereas is an operator; the two are completely different (Section 1.4).
Q3. Are matrix products and the same?
Common Misconception: Thinking that matrix multiplication is commutative, because scalar multiplication is.
Correct Understanding: Matrix multiplication is generally not commutative: . Section 1.3.5 gives the example: , while . More generally, is called the commutator and is one of the most fundamental algebraic structures in quantum mechanics.
Why It Matters: In quantum mechanics, the order of operators corresponds to the order of physical operations. Doing then () versus then () differs by a sign (Section 2.4). The Heisenberg uncertainty principle is, at its core, a consequence of non-commutativity. In quantum circuits, the order of gates cannot be arbitrarily swapped.
Detailed Explanation: The entry of a matrix product is the dot product of the -th row of with the -th column of : . The commutation relations of the Pauli matrices are central to quantum computing: , , (Section 1.3.5). More broadly, two observables and can be simultaneously measured with precision if and only if . This is the mathematical foundation for understanding the complementarity principle: position and momentum do not commute, and therefore cannot be simultaneously known with precision.
Q4. Eigenvectors are just vectors that get “stretched,” right?
Common Misconception: Interpreting the definition of eigenvectors as “the vector is stretched by a factor of ” and assuming must be a positive real number.
Correct Understanding: Eigenvalues can be complex (for general matrices), can be negative, and can even be 0. The eigenvalues of unitary operators are complex numbers of modulus 1, , corresponding to rotation rather than stretching (Section 1.5). The Pauli matrix has eigenvalues and , corresponding to remaining unchanged and flipping sign.
Why It Matters: The eigenvalues of quantum gates (unitary operators) are all of the form , which guarantees that state normalization is not destroyed (Section 1.3). The phase of the eigenvalues is a core resource for quantum interference. Misunderstanding the “magnitude” of eigenvalues leads to an inability to understand why quantum gates do not alter the total probability amplitude.
Detailed Explanation: The true meaning of the eigenvalue equation is: under the action of , does not change direction (the output of is parallel to ). For Hermitian operators, is real and represents a measurement outcome (Section 1.5, spectral theorem). For unitary operators, means that merely adds a global phase factor to . For example, the gate (Section 3.2) acting on gives ; this is not “stretching” but a phase rotation. Beginners often mistakenly think eigenvalues must be positive, and therefore find the eigenvalue of the Pauli strange — but physically this is precisely the mathematical formulation of a “phase flip.”
Q5. The tensor product is just “putting two vectors side by side,” right?
Common Misconception: Thinking that the state space dimension of qubits is (e.g., 2 qubits = 4 dimensions), or confusing it with the direct sum .
Correct Understanding: The dimension of a tensor product space is the product of the dimensions of the subsystems: . The state space of qubits is , not . For example, 2 qubits require 4 complex coefficients to describe (Section 1.6).
Why It Matters: The exponential growth of the state space is the fundamental source of the potential advantage of quantum computing. The state space of 50 qubits has dimensions (Section 3.1), which classical computers cannot simulate directly. If one mistakenly thinks it is dimensions, the mathematical root of quantum advantage is entirely lost.
Detailed Explanation: The tensor product and the direct sum are two different ways of constructing spaces. The direct sum has dimension , with 4 basis vectors, while the tensor product has dimension ; the two happen to coincide numerically in this case but have different meanings. The difference becomes glaring at 3 qubits: the direct sum has dimension 6, while the tensor product has dimension 8. At , the direct sum is 20, and the tensor product is 1024. The basis vectors of the tensor product are of the form where each , giving arrangements (Section 1.6).
Part II: Physical Foundations (7 Items)
Q6. Is the superposition state just “50% probability of and 50% probability of ”?
Common Misconception: Equating quantum superposition with a classical probabilistic mixture, thinking that is the same state as “with 50% probability in and 50% probability in .”
Correct Understanding: The two are fundamentally different. is a pure state (a point on the surface of the Bloch sphere, Section 2.5), possessing a definite quantum phase relationship. “50% + 50% ” is the mixed state (the center of the Bloch sphere), which has completely lost coherence. The crucial test: measuring in the basis deterministically yields (because is an eigenstate of ), whereas measuring the mixed state in the basis yields with equal probability (Section 2.6).
Why It Matters: Superposition states preserve the relative phase between probability amplitudes, which is the foundation of quantum interference. If were merely a classical mixture, the double-slit experiment would not produce interference fringes (Section 2.1). Virtually all quantum algorithms (such as Grover’s search) rely on the coherent manipulation of probability amplitudes — if superposition were just a classical mixture, these algorithms could not work.
Detailed Explanation: Section 2.6 of the tutorial thoroughly clarifies this issue using density matrices. The density matrix of is , which has off-diagonal elements , the hallmark of quantum coherence. The mixed state has no off-diagonal elements. Measuring : it is 1 for and 0 for . Although both yield identical statistics when measured in the basis (50% each), they are fundamentally different. The Bloch sphere picture (Section 2.5) illustrates this intuitively: pure states lie on the surface, mixed states lie in the interior.
Q7. Measurement is just “reading out information,” right?
Common Misconception: Equating quantum measurement with classical measurement — thinking that measurement passively reads out pre-existing properties of the system without affecting the system’s state.
Correct Understanding: Quantum measurement irreversibly changes the state of the system. According to the measurement postulate (Section 2.2, Postulate 4), measurement causes the state to collapse to the corresponding eigenstate. The probability of measurement outcome is given by the Born rule , but the state after measurement becomes , and the original state is destroyed.
Why It Matters: This property profoundly influences the design of quantum algorithms — measurement is typically placed at the end of the algorithm (Section 3.4), because once measurement occurs, the phase information in the quantum state is permanently lost. Quantum error correction faces the same challenge: we cannot directly “check” a quantum state without destroying it. Quantum cryptography (BB84), on the other hand, exploits this property to detect eavesdropping (Section 3.6).
Detailed Explanation: Section 3.5 of the tutorial discusses this property in detail. Take measured in the basis: the probability of obtaining 0 is , and after measurement the state becomes . Even knowing the measurement result, one cannot recover from — the information is irreversibly lost. This is not because our “measurement precision is insufficient” but is a fundamental principle of quantum mechanics. The state after measurement, , is the projection onto the eigenspace, and all the coherence information of the original superposition state is gone.
Q8. Does entanglement of two qubits imply superluminal communication?
Common Misconception: Since measuring one qubit in an entangled state “instantly affects” the other (regardless of distance), one can use it to achieve superluminal communication.
Correct Understanding: Superluminal communication is not possible. Although measuring one particle in an entangled state does instantly affect the state of the other particle (quantum mechanics recognizes this as nonlocal correlation), the outcome of a single measurement is completely random, and the sender cannot control the measurement result. To make use of entanglement, both parties must exchange measurement basis and outcome information via a classical channel (at or below the speed of light) (Section 3.6, teleportation). Without a classical channel, entanglement alone cannot transmit any information.
Why It Matters: The Bell state demonstrates the nonlocality of quantum mechanics, but this property does not violate special relativity (Section 2.6). Understanding this point is crucial for correctly appreciating how quantum communication (such as quantum key distribution and quantum teleportation) works. Entanglement + classical communication = quantum information transfer; neither is sufficient alone.
Detailed Explanation: The reduced density matrix in Section 2.6 of the tutorial reveals the reason clearly. For the Bell state, the reduced density matrix of the subsystem is , a maximally mixed state — no measurement Alice can perform will change her own reduced density matrix, nor can it convey information to Bob. In the Bell state , if Alice measures her qubit and gets 0, she knows Bob’s qubit is also 0, but without Alice telling him, Bob still measures his qubit and gets 0 with 50% probability — Bob cannot distinguish “Alice has already measured” from “Alice has not measured yet” (Section 3.3). Classical communication of the measurement outcome is necessary for both parties to establish correlations.
Q9. Can both the global phase and the relative phase be ignored?
Common Misconception: The tutorial mentions that “the global phase does not affect physical observations,” leading beginners to think that all phases are unimportant.
Correct Understanding: The global phase (multiplying the entire state by ) is unobservable, because — the squared modulus cancels the global factor. But the relative phase (the phase difference between two components) is crucial; it directly determines measurement probabilities and interference patterns (Section 2.4). For example, and differ only by a relative phase of , yet when measured in the basis, the former deterministically yields and the latter deterministically yields .
Why It Matters: The entire power of quantum algorithms comes from the precise manipulation of relative phases. Grover’s algorithm marks the target state through a “phase flip” (Section 3.6), and Shor’s algorithm extracts phase information through the QFT (Section 1.8). If relative phases were unimportant, these algorithms would completely fail.
Detailed Explanation: On the Bloch sphere (Section 2.5), the global phase corresponds to rotating the entire sphere about the -axis without changing the position of a point (equivalent to multiplying all states by the same ). The relative phase corresponds to the azimuthal angle of the point — changing does move the point’s position on the sphere. Concretely: yields a probability of when measured in the basis of ; when the probability is 1, and when it is 0 — the relative phase directly determines the measurement outcome.
Q10. Is quantum mechanical probability just due to our “ignorance” of the system’s true state?
Common Misconception: Drawing an analogy between the probabilistic nature of quantum mechanics and classical statistical mechanics, thinking that probability stems from “ignorance” of the system’s microscopic state (a hidden-variable viewpoint).
Correct Understanding: In standard quantum mechanics (the Copenhagen interpretation), the probabilities of measurement outcomes are intrinsic and independent of the observer’s knowledge. Even with complete knowledge of the quantum state , one cannot predict the outcome of a single measurement — quantum mechanics allows multiple possible outcomes to coexist with definite probabilities. Bell inequality experiments (though not covered in detail in the tutorial) have confirmed that no local hidden-variable theory can reproduce all the predictions of quantum mechanics.
Why It Matters: Understanding the intrinsic nature of quantum probability helps correctly understand the “one-shot” character of quantum algorithms. Quantum computation is not “searching all possibilities in parallel” (see Q14) but a coherent manipulation of probability amplitudes. Quantum randomness is also the cornerstone of the security of quantum cryptography (Section 3.6, BB84): if an eavesdropper cannot predict measurement outcomes, eavesdropping can be detected through statistical tests.
Detailed Explanation: Section 1.7 of the tutorial contrasts classical probability and quantum probability: in classical probability, the probabilities of mutually exclusive events add directly, ; in quantum probability, probability amplitudes are added first and then the squared modulus is taken, , producing an interference term. This interference effect cannot be explained as “our ignorance of the system” — interference requires coherent superposition, whereas in a classical mixture there are no coherence relations among the components. The double-slit experiment (Section 2.1), in which a single electron “passes through both slits at once” and interferes with itself, is the most direct evidence for the intrinsic nature of quantum probability.
Q11. Is a qubit just a state “between” 0 and 1?
Common Misconception: Interpreting as “between 0 and 1,” as though a qubit is a continuous transitional state between 0 and 1.
Correct Understanding: In the qubit state , and are complex numbers, not merely real percentages. and are orthogonal directions in a two-dimensional space, and the superposition state is a unit vector in the entire space, not a “partially 0, partially 1” analog signal. Use the Bloch sphere (Section 2.5) for understanding: a qubit corresponds to any point on the unit sphere surface, not just the line segment connecting the north pole (0) and the south pole (1).
Why It Matters: If a qubit were merely “partially 0, partially 1,” it would be at best equivalent to a probabilistic bit and would not produce quantum advantage. The complex nature of probability amplitudes, phase interference, and the ability to entangle are the true reasons quantum computing transcends classical computation.
Detailed Explanation: A classical probabilistic bit can be described by a parameter representing “the probability of being 1”; its state space is a line segment. The state space of a qubit is the entire Bloch sphere surface (plus the interior for mixed states), a far higher-dimensional object. The density matrix of a probabilistic bit, , has no off-diagonal elements, while the pure-state density matrix of a qubit, , does have off-diagonal elements — the signature of coherence (Section 2.6).
Q12. Is the Heisenberg uncertainty principle a problem with measurement instruments?
Common Misconception: Thinking that the uncertainty principle arises because measurement instruments “disturb” the system — measuring position jostles the momentum.
Correct Understanding: The uncertainty principle is a fundamental axiom of quantum mechanics, not a matter of measurement precision. It is a direct mathematical corollary of the non-commutativity of operators (Section 1.5 of the tutorial). Even with perfect measurement equipment, position and momentum cannot be simultaneously determined with precision — this is a property of the quantum system itself, independent of measurement technology.
Why It Matters: In quantum computing, the complementarity principle (a generalization of the uncertainty principle) means that certain information can only be acquired at the expense of losing other information. For example, in the BB84 protocol (Section 3.6), measuring in the wrong basis irreversibly disturbs the quantum state, which is the foundation of the security of quantum cryptography.
Detailed Explanation: Strictly speaking, for any two non-commuting operators and , we have , where is the standard deviation. The tutorial points out in Section 1.7 that variance (the square of the standard deviation) in quantum mechanics corresponds to uncertainty. This inequality is a consequence of operator algebra and is independent of measurement equipment. A more intuitive understanding comes from Fourier analysis (Section 1.8): the narrower a wave packet is in position space, the broader it is in momentum space (the Fourier transform of the position wave function) — this is a mathematical necessity, not a defect of measurement instruments.
Part III: Quantum Computing (10 Items)
Q13. Do quantum computers achieve speedup by “trying all possible solutions”?
Common Misconception: Thinking that quantum parallelism means “a quantum computer checks all possible inputs simultaneously and then selects the correct answer,” analogous to having classical processors working in parallel.
Correct Understanding: Quantum parallelism is not equivalent to exponential parallel computation. Although qubits can indeed be in a superposition of all basis states, a measurement can only read out one result (probabilistically). The core challenge of quantum algorithms is: how to use unitary transformations and interference to amplify the probability amplitude of the correct answer to near 1 while canceling the probability amplitudes of incorrect answers — this requires ingenious algorithm design, not simply “running in parallel.”
Why It Matters: This is the most widespread beginner misconception about quantum computing. The speedup of Grover’s search (rather than an collapse) is the best evidence: if one truly “tried all items simultaneously,” one query should find the answer, but in reality queries are needed (Section 3.6).
Detailed Explanation: The Deutsch-Jozsa algorithm in Section 3.6 of the tutorial demonstrates the true nature of quantum parallelism. The algorithm prepares a uniform superposition state , and one call to the quantum oracle does indeed simultaneously “process” all , but the output state is . Ultimately, Hadamard gates and interference effects extract global properties (constant vs. balanced), rather than reading out all values of . The key point is that quantum parallelism is not “parallel computation” but “parallel manipulation of probability amplitudes” — encoding a function into the phases of probability amplitudes and then using interference to extract global information. A single query cannot read out all results simultaneously; this is a direct constraint of the no-cloning theorem (Section 3.3).
Q14. Does the no-cloning theorem mean no quantum information can be copied at all?
Common Misconception: Thinking that the no-cloning theorem forbids any form of copying of quantum information.
Correct Understanding: The specific statement of the no-cloning theorem (Section 3.3) is: there does not exist a single unitary operation such that for any unknown quantum state , . However, known quantum states can be copied (prepared afresh), and we can clone orthogonal quantum states (for example, and can be copied using a CNOT gate). The no-cloning theorem forbids the perfect copying of a general unknown quantum state.
Why It Matters: This subtle distinction directly explains why classical error correction can simply “triple repeat” (000, 111), while quantum error correction requires more complex encoding schemes (such as the Shor code). In classical computation, copying a bit is trivial; in quantum computation, we cannot simply back up an unknown state in triplicate.
Detailed Explanation: The crux of the proof lies in linearity. Suppose a universal cloning machine exists such that . If this holds for both and , then for the superposition , linearity gives , whereas directly cloning would require . These are unequal (unless ). Note that if and are orthogonal, one could first measure and then prepare — but measurement destroys the original state, so this is not “cloning.”
Q15. Is quantum teleportation the “instantaneous transport” of matter?
Common Misconception: Influenced by science fiction, thinking that quantum teleportation (Section 3.6) can instantaneously transport objects from one place to another.
Correct Understanding: Quantum teleportation transports the quantum state (information), not matter itself. Moreover, the process requires a classical communication channel (2 classical bits of information) and does not exceed the speed of light. Teleportation also does not copy the quantum state (no-cloning theorem) — Alice’s original state is destroyed in the measurement process, and the state Bob receives is “reconstructed,” not “copied.”
Why It Matters: Teleportation is a perfect example of “entanglement + classical communication,” demonstrating how quantum information and classical information work together (Section 3.6). It violates neither relativity nor the notion of sci-fi “beaming,” but is the core principle behind quantum communication and quantum repeaters.
Detailed Explanation: Review the teleportation circuit in Section 3.6 of the tutorial. Alice and Bob share a Bell state . Alice performs a CNOT and an gate on her two qubits ( + her half of the Bell state), then measures, obtaining a 2-bit classical result . Alice transmits to Bob via a classical channel. Bob then applies to his qubit, which becomes precisely . Throughout the process, the quantum state does not “fly” across space — classical information propagates at the speed of light, and entanglement is consumed as a resource. Teleportation cannot be superluminal because Bob must receive the classical information before reconstructing the state.
Q16. Does Grover’s algorithm provide exponential speedup for any search problem?
Common Misconception: Thinking that Grover’s algorithm provides the same kind of exponential speedup as Shor’s algorithm (since both arise from quantum effects).
Correct Understanding: Grover’s algorithm provides a quadratic speedup: classical to quantum , not exponential (Section 3.6). The magnitude of the speedup is limited — in a database of 1 million items, a classical search needs about 500,000 queries, while a quantum search needs about 500. Shor’s algorithm, by contrast, provides an exponential speedup: classical sub-exponential to quantum .
Why It Matters: Different types of speedup correspond to different application scenarios. Grover’s quadratic speedup, while not changing the computational complexity class of a problem (NP-complete problems under Grover’s algorithm are still exponential time), has practical value for real database searching. Shor’s exponential speedup changes the computational complexity of the problem (factorization goes from hard to easy), threatening the foundations of RSA encryption.
Detailed Explanation: The core of Grover’s algorithm is amplitude amplification (Section 3.6). Each Grover iteration consists of: (1) flipping the phase of the target state (via the oracle); (2) reflecting about the mean (the Grover diffusion operator). Each iteration increases the probability amplitude of the target state by about , so after roughly iterations, the target state’s probability is close to 1. This lower bound has been proven optimal — no quantum search algorithm can beat . So Grover’s is a quadratic, not exponential, speedup, and this is not an implementation-level limitation but a fundamental information-theoretic bound.
Q17. Can Shor’s algorithm be run directly on existing quantum computers?
Common Misconception: Seeing that Shor’s algorithm has only complexity, thinking that breaking RSA is imminent and that existing quantum computers can run it.
Correct Understanding: The complexity analysis of Shor’s algorithm applies to an ideal, noiseless quantum computer. To factor a 2048-bit RSA key requires roughly several thousand logical qubits, and each logical qubit requires several thousand physical qubits protected by error correction (Section 3.7). This means the number of physical qubits needed reaches into the millions. Currently, the best quantum processors (such as Willow) have only about 105 physical qubits, and gate fidelities are still far from the error-correction threshold.
Why It Matters: This misconception leads to both excessive optimism and excessive pessimism about “when quantum computing will threaten encryption.” The reality is: until error-corrected quantum computers arrive, RSA is safe, but “harvest now, decrypt later” strategies do face real risk.
Detailed Explanation: The “quantum part” of Shor’s algorithm is indeed efficient — the quantum Fourier transform requires only gates, where is the number of bits. But to run Shor’s algorithm one needs: (1) enough logical qubits (roughly ); (2) sufficiently low physical error rates to make quantum error correction feasible (the surface code’s error-correction threshold is roughly 1%); (3) enough physical qubits to implement error-correcting codes (roughly 1000 physical qubits per logical qubit). Current quantum processors (Section 3.7) are several orders of magnitude short in both physical qubit count and fidelity.
Q18. Does “quantum advantage” mean “quantum computers surpass classical computers on all tasks”?
Common Misconception: Thinking that demonstrations of quantum advantage (such as Sycamore’s 2019 random circuit sampling) mean quantum computers have already “defeated” classical computers.
Correct Understanding: Quantum advantage is problem-specific, not about general computational capability (Section 3.7). Sycamore’s random circuit sampling (RCS) task itself has no practical commercial value — its output is a string of random bits. Moreover, after each quantum advantage demonstration, classical algorithms tend to close the gap within months (e.g., tensor network algorithms reduced the simulation time of Sycamore-class circuits from days to hours). Quantum advantage is an ongoing “arms race,” not a one-time victory.
Why It Matters: Correctly understanding the current state of quantum advantage helps set realistic expectations. Quantum computing may deliver genuine commercial value in areas such as quantum chemistry simulation (e.g., catalyst design for nitrogen fixation), combinatorial optimization, and machine learning, but such “useful” quantum advantage may still be 5-10 years away (Section 3.7).
Detailed Explanation: Section 3.7 of the tutorial discusses this trade-off in detail. Sycamore (53 qubits) claimed 200 seconds for an RCS task that would take a classical computer 10,000 years, but IBM soon pointed out that using better classical algorithms and memory hierarchies could reduce simulation time to 2.5 days. In 2023-2024, new tensor network algorithms reduced it further. Willow (105 qubits) in 2024 reopened the gap (estimated years classically, about 5 minutes on Willow), but RCS is still not a “useful” computation. As the tutorial states: “Quantum advantage is not a one-time achievement but an ongoing process.”
Q19. Do noisy quantum algorithms like VQE not need error correction?
Common Misconception: Thinking that variational algorithms in the NISQ (Noisy Intermediate-Scale Quantum) era, such as VQE, are completely unaffected by noise because they are “noise-resilient.”
Correct Understanding: Variational quantum-classical hybrid algorithms like VQE do have a certain tolerance to noise — through parameterized quantum circuits and classical optimization, the impact of noise can be partially suppressed. But this does not mean they do not need error correction. As the number of qubits increases, noise effects accumulate, and VQE’s quality degrades severely. VQE merely “works as well as possible under existing noise levels,” not as a “substitute for the noiseless case.”
Why It Matters: This misconception leads to unrealistic expectations about the practicality of NISQ algorithms. Many theoretical analyses assume “sufficiently low noise,” but the noise levels of actual quantum hardware (in particular, two-qubit gate error rates of about 0.1-1%) have a significant impact on the accuracy of algorithms such as VQE. This is the crux of the current debate in quantum computing between the “noisy” and “error-corrected” technical roadmaps (Section 3.7 of the tutorial and the content of Chapter 5).
Detailed Explanation: The basic idea of VQE (content of Chapter 5 of the tutorial) is to treat the expectation value of the problem Hamiltonian as a loss function and update the circuit parameters through a classical optimizer. Noise introduces errors at every time step: gate errors cause to deviate from the target state, and measurement errors bias the expectation value estimate. As the circuit depth increases, these errors accumulate and can lead to “barren plateaus” in variational methods. In Google’s Sycamore experiment, two-qubit gate fidelity was about 99.5% (Section 3.7), which for a depth-20 VQE circuit implies an overall fidelity of roughly — still acceptable, but for deeper circuits or higher precision requirements, error correction becomes indispensable.
Q20. Can the evolution “after” quantum state collapse be described by the Schrodinger equation?
Common Misconception: Thinking that the Schrodinger equation describes all evolution of a quantum system, including the measurement process.
Correct Understanding: The standard framework of quantum mechanics contains two distinct kinds of evolution (Section 2.2 of the tutorial):
- Unitary evolution (Postulate 2): described by the Schrodinger equation , which is deterministic and reversible.
- Measurement collapse (Postulate 4): described by the Born rule and the projection postulate, which is probabilistic and irreversible.
The two are fundamentally different processes. Measurement collapse cannot be described by the Schrodinger equation — this is precisely the heart of the “measurement problem.” The Schrodinger equation “fails” at the instant of measurement, as the system state discontinuously jumps from a superposition to an eigenstate.
Why It Matters: This distinction is key to understanding quantum computing. Quantum gate operations (unitary evolution) are deterministic and reversible; quantum measurement is probabilistic and destructive. Quantum algorithms typically place measurement at the end (Section 3.4), and all operations before measurement must be unitary evolution. If one mistakenly thinks measurement can also be described by the Schrodinger equation, one cannot understand why measurement destroys superposition states.
Detailed Explanation: Section 2.2 of the tutorial explicitly lists unitary evolution and measurement collapse as distinct postulates. Postulate 2 (unitary evolution) states: “The evolution of a closed system is described by a unitary operator ,” corresponding to the time evolution of the Schrodinger equation. Postulate 4 (measurement) states: “Measurement yields outcome with probability , and the system collapses to .” These two processes cannot be reduced to one another. Although the “quantum operation” formalism in quantum information theory (Kraus operators) can describe both in a unified way, this is mathematical unification only; physically they remain two distinct kinds of processes.
Q21. Are density matrices and pure state vectors completely different, mutually incompatible descriptions?
Common Misconception: Thinking that the density matrix is a “separate, independent” description of quantum states, having no direct relationship with the state vector .
Correct Understanding: The density matrix is a generalization of the state vector. The density matrix of a pure state is simply — this is the outer product of (review the concept of projection operators in Section 1.4), not an independent object. A mixed state expresses classical uncertainty about which pure state the system is in (Section 2.6). Every description using pure states can be embedded into the density matrix framework, but the converse is not necessarily true.
Why It Matters: The density matrix framework unifies pure states, mixed states, subsystems, and measurement updates. When studying reduced density matrices (Section 2.6), if one does not know that is the density matrix of a pure state, one may be confused — “Why is a subsystem of an entangled pure state described by a mixed state?” The answer is: taking the partial trace over B of yields — this does not “create” a mixed state, but means “when focusing only on subsystem A, it behaves like a mixed state.”
Detailed Explanation: The core advantage of the density matrix lies in unification. In the pure-state framework, we prepare a quantum state and use projection operators to compute probabilities . In the density matrix framework, , the probability is , and the expectation is . The criterion for pure vs. mixed states (Section 2.6): for a pure state (e.g., has ), and for a mixed state (e.g., has ).
Q22. Is the QFT just a “quantum version of the FFT” that directly accelerates classical computation?
Common Misconception: Thinking that the Quantum Fourier Transform (QFT) can directly replace the classical FFT and accelerate classical signal-processing tasks.
Correct Understanding: The QFT cannot directly perform a Fourier transform on classical data. The QFT acts on the probability amplitudes of a quantum state, not on classical numerical values. To obtain classical Fourier transform results from the QFT requires quantum state tomography — which needs an exponentially large number of measurements, canceling the QFT’s speed advantage. The true value of the QFT lies in serving as a subroutine embedded in quantum algorithms, providing exponential speedup for the Fourier transform of quantum data (Section 1.8).
Why It Matters: This misconception leads to erroneous claims such as “the QFT can accelerate image processing, audio processing, etc.” The QFT is not an accelerated version of the classical FFT; its inputs and outputs are both quantum states — the reason the QFT is effective in Shor’s algorithm is that we need only measure the output’s frequency information (reading out the period from ), not all amplitudes.
Detailed Explanation: The QFT transforms into (Section 1.8). This transformation requires only gates, but the output is a superposition state. To extract classical information, one must measure — each measurement yields only one value, with probability . To recover all Fourier coefficients requires measurements. Hence the QFT cannot accelerate the classical computation of Fourier transforms. But in Shor’s algorithm, we only need to know the period satisfying , which can be done efficiently with one measurement combined with the continued fraction algorithm — without needing to know all Fourier coefficients.
Appendix: Cross-Reference of FAQ Items to Tutorial Sections
| Item | Topic | Core Reference Section | Difficulty |
|---|---|---|---|
| Q1 | $ | z | ^2 |
| Q2 | Conjugate symmetry of inner product | 1.2.3, 1.4 | 1 star |
| Q3 | Non-commutativity of matrices | 1.3.5, 2.4 | 1 star |
| Q4 | Eigenvalues and unitary operators | 1.5, 3.2 | 2 stars |
| Q5 | Tensor product dimension | 1.6, 3.1 | 1 star |
| Q6 | Superposition vs. mixture | 2.5, 2.6, 3.1 | 2 stars |
| Q7 | Measurement collapse | 2.2 Postulate 4, 3.5 | 2 stars |
| Q8 | Entanglement and communication | 2.6, 3.3, 3.6 | 3 stars |
| Q9 | Global vs. relative phase | 2.4, 2.5 | 2 stars |
| Q10 | Intrinsic nature of quantum probability | 1.7, 2.1 | 3 stars |
| Q11 | The true face of a qubit | 2.5, 3.1 | 1 star |
| Q12 | The uncertainty principle | 1.7, 1.8 | 2 stars |
| Q13 | The truth about quantum parallelism | 3.6 | 3 stars |
| Q14 | The boundaries of no-cloning | 3.3 | 2 stars |
| Q15 | The principle of teleportation | 3.6 | 2 stars |
| Q16 | Grover’s speedup type | 3.6 | 2 stars |
| Q17 | The reality of Shor’s algorithm | 1.8, 3.6, 3.7 | 3 stars |
| Q18 | The limits of quantum advantage | 3.7 | 2 stars |
| Q19 | NISQ and noise | 3.7, Chapter 5 | 3 stars |
| Q20 | Two types of evolution | 2.2 | 2 stars |
| Q21 | Density matrices and pure states | 2.6 | 2 stars |
| Q22 | Correct application of the QFT | 1.8 | 3 stars |
Suggested Usage: After reading through the tutorial once, pick entries matching your level of difficulty. 1-star entries are suitable for consolidation after an initial read; 2-star entries for deeper understanding; 3-star entries are appropriate after studying Chapter 3 to test whether you have truly grasped the core ideas. This document encourages readers to return to the corresponding tutorial sections for re-reading when questions arise.
Exercises and Solutions
Quantum Computing Primer Companion Exercises | 20 Sections, 60 Problems Difficulty: 1 star Basic · 2 stars Comprehensive · 3 stars Advanced
Part I: Mathematical Foundations
1.1 Complex Numbers & Euler’s Formula
Exercise 1.1.1 (1 star) Complex Division
Compute and express it in the form .
Solution: Numerator = . Divide by :
Verification: , which matches.
Exercise 1.1.2 (2 stars) The Modulus-Squared Identity
Prove .
Solution: Let . Then .
Now , and . Hence the identity holds.
This is the mathematical root of quantum interference: the cross term corresponds to the interference term. When the two complex numbers have opposite signs, the cross term is negative, producing destructive interference.
Exercise 1.1.3 (2 stars) Addition Formulas via Euler’s Formula
Use Euler’s formula to derive the formulas for and .
Solution:
Expanding = .
But . Comparing real and imaginary parts:
Complex multiplication equates to multiplying moduli and adding arguments; this is the geometric foundation of quantum phase rotations.
1.2 Vector Spaces & Hilbert Spaces
Exercise 1.2.1 (1 star) Linear Independence
Determine whether are linearly independent in .
Solution: Set :
From the first equation . Substituting into the third: , so , and therefore . The only solution is the trivial one; the vectors are linearly independent.
Exercise 1.2.2 (2 stars) Orthonormality of the Computational Basis
Verify that form an orthonormal basis for .
Solution: (orthogonal), (normalized). Any can be uniquely expanded, so this is a complete orthonormal basis.
Exercise 1.2.3 (2 stars) Dimension of a Function Space
Prove that the set of complex-coefficient polynomials of degree , denoted , is a complex vector space. Write down its dimension and a basis.
Solution: Polynomial addition and scalar multiplication are closed; the zero polynomial is the zero element; the additive inverse is ; all axioms are satisfied. A basis is , yielding linearly independent vectors, so .
For example, has coordinate vector in this basis.
1.3 Linear Operators & Matrix Representation
Exercise 1.3.1 (1 star) Pauli Matrix Products
Compute and , and verify that and .
Solution:
; the Pauli matrices anticommute, illustrating that the order of quantum gates affects the outcome.
Exercise 1.3.2 (2 stars) Verifying a Hermitian Matrix
Verify that is Hermitian and find its eigenvalues.
Solution: , so is Hermitian.
Characteristic equation:
Solving yields , both real, consistent with the property that Hermitian operators have real eigenvalues.
Exercise 1.3.3 (2 stars) Unitary Operators Preserve the Inner Product
Prove that a unitary operator (satisfying ) preserves the inner product: .
Solution: .
Thus unitary operators preserve the norm and orthogonality, guaranteeing that quantum states remain normalized after evolution.
1.4 Inner Products, Norms & Orthogonality
Exercise 1.4.1 (1 star) Inner Product and Norm
Let and . Compute , , and .
Solution:
Exercise 1.4.2 (2 stars) Proof of the Cauchy-Schwarz Inequality
For a complex inner product space , prove .
Solution: If the inequality holds trivially. Suppose and construct .
, so .
By the Pythagorean theorem:
Hence , with equality when (the two vectors are linearly dependent).
Exercise 1.4.3 (2 stars) Projection Operator Matrix and Properties
For (with ), write the matrix of and verify , .
Solution: .
Using to compute :
- entry
- entry
- entry
- entry
Thus . is obvious.
1.5 Eigenvalues & Eigenvectors
Exercise 1.5.1 (1 star) The Eigensystem of Pauli
Find the eigenvalues and normalized eigenvectors of .
Solution: , eigenvalues .
For : solve , giving . The normalized eigenvector is .
For : solve , giving . The normalized eigenvector is .
Verification: , orthogonal.
Exercise 1.5.2 (2 stars) Spectral Decomposition of the Matrix
Perform the spectral decomposition of .
Solution: Eigenvalue corresponds to , eigenvalue corresponds to .
Exercise 1.5.3 (3 stars) Expectation Value for a Three-Level System
in the basis . Find the eigenvalues and eigenvectors of . If the system is in the state , compute .
Solution: Eigenvalues , with corresponding eigenvectors .
.
Or, using the spectral decomposition: .
1.6 Tensor Products & Composite Systems
Exercise 1.6.1 (1 star) Computing a Tensor Product
Compute the 4-component vector of (where ).
Solution: , .
That is, .
Exercise 1.6.2 (2 stars) The Bell State Is Not Decomposable
Prove that cannot be written as .
Solution: Proof by contradiction. Suppose , . Then
Comparing with : .
If then ; if then ; if then ; if then . All cases lead to contradiction. Hence the state is not decomposable; it is entangled.
Exercise 1.6.3 (2 stars) CNOT Acting on Superposition States
Compute the result of applying CNOT to and to (with the first qubit as the control).
Solution:
(a)
A separable state becomes an entangled state through the CNOT.
(b)
is invariant under CNOT — it is an -basis eigenstate of the CNOT gate.
1.7 Probability Theory Foundations
Exercise 1.7.1 (1 star) Expectation and Variance of a Die
Compute and for the number showing on a fair six-sided die.
Solution:
Exercise 1.7.2 (2 stars) Bayes’ Theorem
A disease has prevalence . The test is accurate for patients (positive given disease), and false positive (positive given healthy). Find the probability of actually having the disease given a positive test result.
Solution: , , .
Even with a positive test, the probability of having the disease is only about , because for a rare disease the number of false positives far exceeds true positives.
Exercise 1.7.3 (3 stars) Classical vs. Quantum Probability
How is the probability of measuring 0 for in the basis similar to or different from a classical bit with ? What if the phase is changed to ?
Solution: , , numerically identical to the classical probability.
But the two are fundamentally different:
- Classical: the system is actually in 0 or 1; we merely “do not know” which.
- Quantum: the system is in a coherent superposition: .
- Density matrix comparison: , .
- The off-diagonal elements cause completely different -basis measurement outcomes.
For , -basis measurement probabilities are independent of , but -basis measurement probabilities depend on . There is no “phase” concept in classical probability.
1.8 Fourier Analysis Primer
Exercise 1.8.1 (1 star) The 2-Point DFT Matrix
Write and compute its action on .
Solution: , .
.
Note that the normalized Hadamard gate is unitary.
Exercise 1.8.2 (2 stars) Unitarity of the QFT
Prove that is unitary, where and .
Solution: .
If , the sum is , so . If , let . Then . Since , the sum is 0. Thus , so . Similarly .
Exercise 1.8.3 (2 stars) 4-Point DFT
Write and compute for .
Solution: , .
The DFT of a period-2 sequence has non-zero values only at the DC and Nyquist frequencies.
Part II: Physical Foundations of Quantum Mechanics
2.1 From Classical to Quantum: Motivation and History
Exercise 2.1.1 (1 star) The Ultraviolet Catastrophe
What is the ultraviolet catastrophe? How did Planck resolve it using energy quantization?
Solution: The classical Rayleigh-Jeans formula predicts infinite radiated energy at ultraviolet frequencies, in severe disagreement with experiment — the ultraviolet catastrophe.
Planck hypothesized that energy is emitted/absorbed in quanta of and derived:
At high frequencies the exponential term forces the energy density to zero, avoiding the divergence. This marked the birth of quantum mechanics.
Exercise 2.1.2 (2 stars) The Photoelectric Effect
A metal has work function and is illuminated with light of frequency . (.) (a) Find the maximum kinetic energy of photoelectrons. (b) Find the cutoff frequency.
Solution: (a)
(b)
Photoelectrons are emitted only when , independent of light intensity — inexplicable by classical wave theory.
Exercise 2.1.3 (2 stars) Probability Amplitudes in the Double Slit
Let and . Compute the classical probability, the quantum probability, and the interference term.
Solution:
Classical:
Quantum:
, interference term
(probability is enhanced at this point; the integral over the entire screen is 1).
The interference term accounts for of the probability and is a purely quantum effect.
2.2 Basic Postulates of Quantum Mechanics
Exercise 2.2.1 (1 star) Single-Qubit Measurement Probability
is measured in the basis. Find and .
Solution: , .
, .
This state lies in the direction on the equator of the Bloch sphere.
Exercise 2.2.2 (2 stars) Unitary Evolution Preserves the Norm
Prove that a normalized state remains normalized after evolving under a unitary operator .
Solution: .
Total probability is conserved under quantum evolution; this is the fundamental reason quantum gates must be unitary matrices.
Exercise 2.2.3 (3 stars) Spectral Decomposition of and Measurement
, and the system is in state . (a) Verify that is Hermitian. (b) Give its spectral decomposition. (c) Find the probability of measuring and the state after measurement.
Solution: (a) , Hermitian.
(b) .
(c) .
If is measured, the system collapses to .
2.3 Wave Functions and the Schrodinger Equation
Exercise 2.3.1 (1 star) Normalization in an Infinite Square Well
The ground-state wave function is , . Find .
Solution:
. The wave function is .
Exercise 2.3.2 (2 stars) Time-Independent Schrodinger Equation and Separation of Variables
Prove that if , then satisfies the time-dependent Schrodinger equation.
Solution:
The equation holds, provided does not explicitly depend on time.
Exercise 2.3.3 (2 stars) Position Expectation Value
For compute .
Solution:
(integration by parts; the sine terms vanish at the boundaries). In a symmetric potential well, the position expectation value is the center .
2.4 Two-Level Systems and Spin
Exercise 2.4.1 (1 star) Eigenstates
Verify that are eigenstates of .
Solution: , eigenvalue .
, eigenvalue .
, orthogonal.
Exercise 2.4.2 (2 stars) Pauli Commutation Relations
Verify that .
Solution: .
Matrix verification: , , their difference is .
Cyclic commutation: , , manifestations of the spin angular momentum algebra.
Exercise 2.4.3 (2 stars) Spin Measurement in the Direction
. When measuring spin in the direction, find .
Solution: . The eigenstate is .
When (), ; when (), .
2.5 The Bloch Sphere
Exercise 2.5.1 (1 star) Bloch Sphere Coordinates
Find the Bloch sphere coordinates of .
Solution: Parameterizing as , the coordinates are .
| State | |||
|---|---|---|---|
| $ | 0\rangle$ | arbitrary | |
| $ | 1\rangle$ | arbitrary | |
| $ | +\rangle$ | ||
| $ | -i\rangle$ |
Exercise 2.5.2 (2 stars) The Bloch Vector of a Pure State Has Length 1
For any pure state, prove that .
Solution: For :
Pure states correspond to points on the sphere surface; mixed states to points in the interior.
Exercise 2.5.3 (2 stars) The Rotation
Compute the action of on and .
Solution:
For : .
(a global phase; physically unchanged).
.
rotates about the -axis to reach . , lying on the -axis, is unchanged by the rotation.
2.6 Measurement Theory and Density Matrices
Exercise 2.6.1 (1 star) The Maximally Mixed State
For , compute , , and determine whether it is a pure or mixed state.
Solution: . , , so it is a mixed state.
-basis measurement: . The maximally mixed state is uniformly distributed in any basis and corresponds to the center of the Bloch sphere.
Exercise 2.6.2 (2 stars) Reduced Density Matrix of a Bell State
For , compute .
Solution:
,
, the maximally mixed state!
The whole is a pure state, but the subsystem is completely mixed — the essence of entanglement is that the information of the subsystem is entirely lost in correlations.
Exercise 2.6.3 (3 stars) Density Matrix of a Probabilistic Mixture
A system has probability to be in and to be in . Compute , , and determine whether it is pure or mixed.
Solution:
,
, , so it is a mixed state.
For a general parameter : , . When or it is pure; when the mixedness is maximal ().
Part III: Fundamentals of Quantum Computing
3.1 Qubits
Exercise 3.1.1 (1 star) Normalizing a Quantum State
Normalize .
Solution: . The normalized state is:
. , .
Exercise 3.1.2 (2 stars) Bloch Sphere Parameterization
Express in terms of .
Solution: , .
, , relative phase .
, which is . The original state differs from by a global phase of .
Exercise 3.1.3 (3 stars) Dimension of an -Qubit State Space
(a) Prove that the state space of qubits has dimension . (b) Neglecting the global phase, how many real parameters describe an -qubit pure state? (c) For , how many complex parameters are needed?
Solution: (a) , .
(b) complex amplitudes; normalization removes 1 constraint; global phase removes 1. Real parameters .
(c) complex parameters, about 18 PB (double precision). This exceeds classical computer memory, revealing the root of quantum advantage.
3.2 Single-Qubit Gates
Exercise 3.2.1 (1 star) Basic Action of the Gate
Compute , , , and verify .
Solution:
, ,
, self-inverse.
Exercise 3.2.2 (2 stars) Conjugation Relations of
Prove and .
Solution:
similarly gives . The gate transforms between the and bases.
Exercise 3.2.3 (2 stars) Relations Among Phase Gates
Prove , .
Solution: , , .
, , .
are rotations about the -axis by , respectively.
3.3 Multi-Qubit Gates and Entanglement
Exercise 3.3.1 (1 star) CNOT on Superposition States
Compute the action of CNOT on and (with the first qubit as control).
Solution:
, unchanged.
, also unchanged.
and are both -basis eigenstates of the CNOT gate.
Exercise 3.3.2 (2 stars) Entanglement of
Prove that is an entangled state.
Solution: Assume , with , .
Expanding gives , , , .
, contradiction; , contradiction; , contradiction; , contradiction.
Not decomposable; it is an entangled state. is the unique antisymmetric Bell state.
Exercise 3.3.3 (3 stars) Proof of the No-Cloning Theorem
Prove that there does not exist a unitary operator such that for all .
Solution: Take two non-orthogonal, non-identical states ().
Suppose such a exists. Then , .
Inner product of left sides: Inner product of right sides:
Hence , which implies or , contradicting the premise.
A universal cloning machine cannot exist. Quantum information cannot be copied; this is the foundation of the security of quantum cryptography.
3.4 Quantum Circuits
Exercise 3.4.1 (1 star) Bell State Preparation Circuit
Analyze what state is prepared by the following circuit:
|1⟩ —H—•—
|0⟩ ———⊕—
Solution: Initial state: .
After :
After CNOT:
The circuit prepares .
Exercise 3.4.2 (2 stars) GHZ State Circuit Tracking
Write the state after each step of the circuit that prepares the GHZ state .
Solution: Circuit:
|0⟩ —H—•——————
|0⟩ ———⊕—•———
|0⟩ —————⊕———
- Initial:
- After :
- After CNOT:
- After CNOT:
Three-qubit complete entanglement: measuring one qubit determines the other two.
Exercise 3.4.3 (2 stars) Designing a Circuit
Design a circuit to prepare .
Solution: Two methods.
Method 1 (standard circuit + gate):
|0⟩ —H—•——Z—
|0⟩ ———⊕———
After : ; after CNOT: ; after : .
Method 2 (change the initial state, see 3.4.1):
|1⟩ —H—•—
|0⟩ ———⊕—
Directly yields , more concise.
3.5 Quantum Measurement and Readout
Exercise 3.5.1 (1 star) Measurement Probability and Expectation Value
. Find .
Solution: , .
(near the Bloch sphere’s south pole).
Exercise 3.5.2 (2 stars) Expectation Values in Three Directions
Compute for and verify the sum of squares equals 1.
Solution: is an eigenstate (eigenvalue ), so .
, Bloch coordinates , a pure state.
Exercise 3.5.3 (3 stars) Measurement in the Basis
For measured in the basis, find and .
Solution: , .
When , ; when , .
The -basis state is completely random in the basis, reflecting complementarity.
3.6 Introduction to Quantum Algorithms
Exercise 3.6.1 (1 star) BB84 Basis Comparison
Alice sends . What are Bob’s measurement outcomes if he uses the basis or the basis?
Solution: -basis measurement: is an eigenstate, so (bit 0) is obtained with probability 1.
-basis measurement: , , completely random.
When the bases match (), the probability is and the result is deterministic. When they differ, the result is random and discarded.
Exercise 3.6.2 (2 stars) Teleportation Tracking
Alice wants to transmit . They share . Find Bob’s state after Alice’s measurement.
Solution: Three-qubit initial state: .
CNOT (Alice on her two qubits): .
: .
The four measurement outcomes and Bob’s corrections:
| Alice gets | Bob’s state | Correction gate | Final state |
|---|---|---|---|
| $ | 1\rangle$ | ||
| $ | 0\rangle$ | ||
| $ | 1\rangle$ | ||
| $ | 0\rangle$ |
Regardless of the case, Bob ends up with . Teleportation succeeds.
Exercise 3.6.3 (3 stars) A Single Grover Iteration ()
, target state . Prove that a single iteration yields the target state with probability 1.
Solution: Initial: .
, where only for .
.
Average amplitude: .
: .
- :
- :
- :
- :
We obtain ; measurement yields the target state with probability 1. For , a single Grover iteration is perfectly successful.
File Information: 60 problems covering 20 sections · Part I 24 problems · Part II 18 problems · Part III 18 problems Difficulty Distribution: 1 star: 20 problems · 2 stars: 30 problems · 3 stars: 10 problems
Part 1: Mathematical Foundations - Feynman Workbook
Learn by doing, teach to learn
This workbook follows the Feynman learning method: the best test of understanding is whether you can teach it to someone else in simple language. Each section has 4 problems covering four abilities: computation, proof, teaching, and insight.
Difficulty markings: 1 star Computation / 2 stars Proof / Teaching / Insight
1.1 Complex Numbers & Euler’s Formula
(1 star) Power Computation in Polar Form
Compute . Hint: First express in polar form, then use De Moivre’s theorem.
(2 stars) Proof of De Moivre’s Theorem
Use Euler’s formula to prove De Moivre’s theorem:
and explain whether it still holds when is a negative integer.
(Teaching) Feynman: Explain the “Necessity” of Complex Numbers to a High Schooler
Imagine you are sitting across from a high school student who has studied trigonometry but has never encountered complex numbers. He asks: “Why does quantum mechanics have to use complex numbers? Wouldn’t real numbers be more ‘natural’? Can’t that phase you talk about be replaced by the pair of real numbers ?”
Answer him in at most 3 sentences. If you find it helpful, you may sketch a simple diagram to illustrate.
(Insight) What If ?
Suppose we defined a “new number” satisfying but (the split-complex numbers). What would “multiplication” of look like? Would the definition still be meaningful?
Going further: if quantum mechanics used instead of , would the superposition of probability amplitudes still produce interference? Try to speculate.
1.2 Vector Spaces & Hilbert Spaces
(1 star) Verifying the Legitimacy of a Basis
Determine whether the following two vectors form a basis for :
If we take only one of them, can it generate all of ? Why?
(2 stars) Maximal Orthonormal Set
In , prove: given any set of orthonormal vectors , if , then there must exist that is orthogonal to all .
(In other words: cannot contain more than non-zero mutually orthogonal vectors.)
(Teaching) Feynman: Explain Basis and Dimension with a “Bookshelf” Analogy
Your friend has never studied linear algebra but understands the real-world concept of “dimension” (length, width, height).
Using a bookshelf, the arrangement of books, or coordinate positioning as an analogy, help them understand:
- What a “basis” of a vector space is.
- What “dimension” is.
- Why the same vector has different coordinates in different bases.
(Insight) Function Spaces Are Also Vector Spaces
Consider the set of all square-integrable functions from to . It is also an (infinite-dimensional) vector space.
- Can you guess what operations “vector addition” and “scalar multiplication” correspond to in this space?
- What is a “basis” in this space?
- What does infinite dimensionality mean? What essential differences does it have from the finite-dimensional ?
1.3 Linear Operators & Matrix Representation
(1 star) Computing a Commutator
Compute the commutator of the Pauli matrices and express the result as a multiple of .
Given:
(2 stars) Eigenvalues of a Hermitian Operator Are Real
Let be a Hermitian operator, i.e., . Prove that all eigenvalues of are real.
Hint: Let , compute , and use Hermiticity.
(Teaching) Feynman: Unitary Operators Are Like “Revolving Doors”
In at most 4 sentences and with an everyday-life analogy, explain to a beginner why quantum gates must be unitary operators.
Your explanation should include:
- Unitary operators preserve the “length” of a vector.
- Why length matters (the sum of probabilities must be 1).
- An example of what a non-unitary operation would do.
(Insight) The Correspondence Between Operators and Matrices Is a “Choice”
The tutorial says: given a basis, each linear operator corresponds to a unique matrix. But if we change the basis, the matrix representing the same operator changes.
- Can you describe this change using a similarity transformation ()?
- Which properties of an operator (eigenvalues, trace, determinant) are invariant under a change of basis?
- Why does quantum mechanics focus more on the operator itself than on its concrete matrix representation?
1.4 Inner Products, Norms & Orthogonality
(1 star) Gram-Schmidt Orthogonalization
Perform the Gram-Schmidt orthogonalization process on the following two vectors:
Starting from , obtain an orthonormal basis.
(2 stars) The Parallelogram Law
In a complex inner product space, prove the parallelogram law:
and explain its geometric meaning. (Hint: expand both sides using the inner product.)
(Teaching) Feynman: Explain “Projection” to a 5-Year-Old
Suppose you have a flashlight and a wall. You need to explain to a 5-year-old what it means “to project one vector onto another.”
Use everyday language; no formulas needed. Then add one sentence describing the role “projection” plays in quantum measurement.
(Insight) Cauchy-Schwarz and the Uncertainty Principle
In quantum mechanics, the Heisenberg uncertainty principle can be written as:
where is the standard deviation of operator and is the commutator.
- How is this inequality mathematically similar to the Cauchy-Schwarz inequality ?
- Can you see why “uncertainty” is essentially a geometric property (an inner angle in an inner product space) rather than a complex physical hypothesis?
1.5 Eigenvalues & Eigenvectors
(1 star) The Eigensystem of the Hadamard Matrix
Find the eigenvalues and normalized eigenvectors of the following matrix:
(This is one of the most important gates in quantum computing — the Hadamard gate.)
(2 stars) Commuting Operators Share Eigenvectors
Let and be two Hermitian operators with (they commute). Prove: there exists a basis that simultaneously diagonalizes both and .
Hint: first decompose the space into the eigenspaces of , then prove that leaves each eigenspace invariant.
(Teaching) Feynman: Spectral Decomposition Is Like “A Prism Splitting Light”
Use a physical analogy to explain the spectral decomposition theorem to a fellow student:
“Any Hermitian operator can be decomposed as .”
We suggest using the analogy of white light passing through a prism and being decomposed into monochromatic light. Then explain why this decomposition is so important for quantum measurement.
(Insight) Why Measurement Can Only Yield Eigenvalues
Quantum mechanics has a fundamental postulate: when measuring a physical quantity , the result can only be one of the eigenvalues of .
- If were not Hermitian (its eigenvalues could be complex), what would measurement outcomes imply?
- If the system is in a superposition state , what is the probability of measuring ?
- What does the state of the system become after measurement? This is called “wave function collapse” — can you describe this process in the language of projection operators?
1.6 Tensor Products & Composite Systems
(1 star) Two-Qubit Tensor Product
Given:
Compute the expansion of in the computational basis .
(2 stars) Existence of the Schmidt Decomposition
For a bipartite pure state , prove that there exist orthonormal sets in and in such that:
where and .
(Hint: take the partial trace of over and perform a spectral decomposition of the resulting density matrix.)
(Teaching) Feynman: Explain Entanglement Using “Two Coins”
In at most 4 sentences, explain to a friend with no physics background: what is a tensor product? What is entanglement?
You may use two coins in different scenarios (tossed, glued together, correlated) as an analogy. Be careful to distinguish “classical correlation” from “quantum entanglement.”
(Insight) What If the World Were Made of Product States?
Suppose some physical law stipulated that all multi-particle states must be decomposable product states (i.e., , with no other forms allowed).
- Would quantum computing still have an advantage? Why?
- Would Bell’s inequality still be violated?
- Would quantum communication (such as quantum key distribution) still exist?
1.7 Probability Theory Foundations
(1 star) Joint Distribution of Biased Coins
There are two biased coins: Coin A has probability of heads , Coin B has , and the two are independent.
- Find the joint probability distribution of the outcomes of tossing both coins (4 possible combinations).
- If, after someone tosses both coins, you learn that at least one came up heads, what is the conditional probability that both are heads?
(2 stars) Derivation of the Law of Total Probability
Let be a partition of the sample space (mutually exclusive and ). Prove the law of total probability:
and from it derive Bayes’ formula.
(Teaching) Feynman: The “Essential Difference” Between Classical and Quantum Probability
You engage in a short debate with a fellow student:
He says: “Isn’t quantum probability just the complex-number version of classical probability? You just replace with , right?”
In at most 3 sentences, point out where his understanding goes wrong. Key points: interference, phase, non-commutativity.
(Insight) Where Does Interference Come From?
In classical probability, for mutually exclusive events and , .
In quantum probability, for two possible evolution paths, the probability amplitudes are added first and then the squared modulus is taken:
- This extra “cross term” is the source of the interference term. Under what conditions does it vanish?
- If and are orthogonal (), will there be interference?
- Can this explain why measurement destroys interference — because measurement makes the paths “distinguishable”?
1.8 Fourier Analysis Primer
(1 star) Frequency Identification with the 4-Point DFT
Compute the action of on . What are the frequency components of this sequence?
(Reference: the matrix elements of are , where .)
(2 stars) The Convolution Theorem of the DFT
Let and define the circular convolution:
Prove that the discrete Fourier transform turns a circular convolution into an element-wise product:
where denotes element-wise multiplication.
(Teaching) Feynman: Explain the “Exponential Speedup” of the QFT to a Beginner
Suppose you are sitting next to a colleague who understands the classical FFT (Fast Fourier Transform) but has never encountered quantum computing. He says:
“FFT is already , and you’re telling me QFT is — how is that possible? If is the number of data points, how can bits possibly hold data points?”
In at most 4 sentences, help him understand that the in QFT and the in FFT refer to “size” in different senses.
(Insight) The DFT Is a Change of Basis
The discrete Fourier transform is essentially a transformation of a vector in from the “time-domain basis” (the standard basis) to the “frequency-domain basis” .
- Can you write explicit expressions for these two bases?
- Why is the Fourier transform a “unitary transformation”? What are the practical benefits of unitarity?
- In quantum computing, switching between the computational basis and the basis is essentially performing a “miniature Fourier transform.” Can you see the relationship between the gate (Hadamard gate) and ?
Reference Answers
1.1 Complex Numbers & Euler’s Formula
(1 star) Power Computation in Polar Form
, so .
Algebraic verification: , , , consistent.
(2 stars) Proof of De Moivre’s Theorem
.
When is a negative integer, let . Then , which also holds.
(Teaching) Reference Answer Highlights: The key is “simultaneous operation” rather than “separate storage.” If you use two real numbers , multiplication requires manually applying trigonometric identities; complex numbers encode rotation as a single multiplication . In quantum mechanics, the superposition and interference of multiple phases naturally correspond to the addition and multiplication structure of complex numbers — representing them as pairs of real numbers loses this algebraic consistency. More succinctly: complex numbers are not “two real numbers” but “one number with internal structure,” whose multiplication structure exactly encodes rotation, and quantum mechanics is fundamentally a dynamics of rotations.
(Insight) Reference Answer Highlights: If , then the multiplication of is . If we define , then (which can be positive or negative) and is not a well-defined modulus. In quantum mechanics, probability amplitudes must satisfy normalization; the “modulus” of a split-complex number can be negative or zero for non-trivial solutions, causing the probability interpretation to fail. The interference term would also change from -type to -type, and probabilities could exceed 1. Hence the choice is necessary for the probability interpretation of quantum mechanics.
1.2 Vector Spaces & Hilbert Spaces
(1 star) Verifying the Legitimacy of a Basis
and are linearly independent: setting gives and , solving to . Two linearly independent vectors in (dimension 2) form a basis.
Taking only one vector (e.g., ) can only generate vectors of the form , and cannot generate or , so it cannot span all of .
(2 stars) Maximal Orthonormal Set
Construct the projection operator . Since , the rank of is , so . Take to be any non-zero column vector of . Then for each , . Hence is orthogonal to all .
(Teaching) Reference Answer Highlights: Use bookshelf dividers as an analogy for “basis vectors”; the position of each book is uniquely determined by its coordinates along the dividers (uniqueness of basis representation). The dimension is the number of dividers needed for the bookshelf. The same position (the same vector) described using a horizontal bookshelf versus a vertical one will have different numerical coordinates — this is a change of basis changing the coordinates.
(Insight) Reference Answer Highlights: Vector addition corresponds to function addition , and scalar multiplication corresponds to . A “basis” corresponds to a set of basis functions (such as the Fourier basis or the polynomial basis ), and each function can be expanded in terms of these basis functions. Infinite dimensionality means infinitely many basis functions are needed to represent an arbitrary function exactly, which is fundamentally different from the finite-dimensional : in finite dimensions any vector can be represented exactly by a finite basis, whereas in infinite dimensions issues of convergence and analysis arise.
1.3 Linear Operators & Matrix Representation
(1 star) Computing a Commutator
Hence .
(2 stars) Eigenvalues of a Hermitian Operator Are Real
Let . Compute :
On the other hand, using Hermiticity :
Therefore , so is real.
(Teaching) Reference Answer Highlights: A unitary operator is like a perfect revolving door — you push the door, it rotates a full circle and returns to its original position, and you emerge from the other side with your height and weight (length) unchanged. Similarly, after a quantum state evolves through a unitary gate, the sum of probabilities remains 1. If the door were not unitary (for instance, you came out half as tall), the sum of probabilities would no longer be 1, which is physically impossible. Concretely, a non-unitary operation could be “gain” (probability > 1) or “loss” (probability < 1), neither consistent with the requirement of unitary evolution in quantum mechanics.
(Insight) Reference Answer Highlights: Under a change of basis, the operator transforms as . Invariants include: eigenvalues (spectrum), trace (), determinant, rank, and characteristic polynomial. Quantum mechanics focuses more on the operator itself than on its matrix representation because physical observation outcomes (eigenvalues, probabilities) are invariant under changes of basis — they are intrinsic physical properties that do not depend on the observer’s mathematical description.
1.4 Inner Products, Norms & Orthogonality
(1 star) Gram-Schmidt Orthogonalization
Let .
Compute the projection component: .
.
Normalize: .
.
Orthonormal basis: , .
(2 stars) The Parallelogram Law
Adding the two equations, the cross terms cancel, yielding .
Geometric meaning: the sum of the squares of the diagonals of a parallelogram equals the sum of the squares of its four sides — this characterizes inner product spaces and does not necessarily hold in general normed spaces.
(Teaching) Reference Answer Highlights: The flashlight beam shining on a wall creates a spot of light — this is “the projection of the vector in the direction of the flashlight.” If the wall direction is and the flashlight direction is , the projection is the “shadow” of falling on . Regarding quantum measurement: the projection operator describes the “collapse” of the quantum state onto a particular direction during measurement.
(Insight) Reference Answer Highlights: The left-hand side of the Cauchy-Schwarz inequality can be rewritten as , exactly matching the structure of the uncertainty principle. The commonality is: the modulus of the inner product of two vectors (or two deviations) is bounded by the product of their lengths. This reveals that “uncertainty” is essentially the triangle inequality in vector geometry, not some mysterious quantum mysticism — it arises from the geometric structure of the inner product space itself.
1.5 Eigenvalues & Eigenvectors
(1 star) The Eigensystem of the Hadamard Matrix
Characteristic equation:
That is, , , , .
For , solving gives . For , by orthogonality, , which can be normalized.
(Note: a more common way to express this is , , but that is an understanding in the basis.)
(2 stars) Commuting Operators Share Eigenvectors
Let and decompose the space into the eigenspaces of : . Since , for any , , so . Restricted to , is a Hermitian operator and can be diagonalized within . Diagonalizing within each eigenspace yields a simultaneous diagonalization.
(Teaching) Reference Answer Highlights: White light (an arbitrary quantum state) passes through a prism (the spectral decomposition of a Hermitian operator) and is decomposed into light of different colors (eigenvectors), each color corresponding to a specific wavelength (eigenvalue). The spectral decomposition formula tells us: the action of operator is “first measure the components along each eigen-direction, then weight by the eigenvalues and sum.” Its importance for quantum measurement is: measurement is “decomposing you into a combination of eigenvectors, then telling me which eigenvalue you land on.”
(Insight) Reference Answer Highlights: If is not Hermitian, its eigenvalues can be complex and cannot serve as “observable physical quantities” — measurement outcomes must be real numbers. Measurement probability: . After measurement, the state collapses to , which can be described using a projection operator: , where .
1.6 Tensor Products & Composite Systems
(1 star) Two-Qubit Tensor Product
, .
In vector form: .
(2 stars) Existence of the Schmidt Decomposition
Consider the partial trace of over : . is a positive semidefinite operator with trace 1. Its spectral decomposition is , where are eigenvalues and are the corresponding eigenvectors. Define . One can verify that is orthonormal and . Also, .
(Teaching) Reference Answer Highlights: Two independent coins — whether A comes up heads or tails does not affect B (a product state). Two coins glued together — you only know “either both heads or both tails” but not which (classical correlation). Two “quantum entangled coins” — they are not merely correlated; before you measure A and find heads, it is in a superposition of heads and tails, and simultaneously B is also in the corresponding superposition. The instant you measure A, B’s state is simultaneously determined, regardless of the distance between them. The tensor product is mathematically the operation of “combining two systems.” An entangled state is one that cannot be written in the form .
(Insight) Reference Answer Highlights: If all states were product states, quantum computing would be equivalent to classical probabilistic computation (each qubit evolves independently), with no exponential state space and no parallelism from entanglement. Bell’s inequality would not be violated (since there is no entanglement to produce stronger correlations). Quantum communication protocols (such as BB84, which does not directly require entanglement but whose security and entanglement distillation protocols rely entirely on entanglement) would be severely limited or impossible.
1.7 Probability Theory Foundations
(1 star) Joint Distribution of Biased Coins
-
Four outcomes:
- (H, H):
- (H, T):
- (T, H):
- (T, T):
-
At least one heads: . Both heads: 0.18. Conditional probability: .
(2 stars) Derivation of the Law of Total Probability
For any event , . Since the are mutually exclusive, the are also mutually exclusive. By the additivity of probability:
.
Bayes’ formula: .
(Teaching) Reference Answer Highlights: It is not as simple as “replacing real numbers with complex numbers.” In classical probability, probabilities add directly: . In quantum probability, probability amplitudes (complex numbers) are added first and then the modulus is taken: . The extra cross term depends on the relative phase — a concept that has no analogue in classical probability. Phase can lead to “destructive interference” (where the probability actually decreases), which is impossible in classical probability.
(Insight) Reference Answer Highlights: The cross term vanishes when and are orthogonal (i.e., ) — which corresponds to the two paths being “physically distinguishable.” When the paths are indistinguishable (as in the double-slit experiment when we do not observe which slit), and are not orthogonal and the interference term appears. This is precisely the core of how measurement causes decoherence: measurement makes the paths distinguishable and thereby eliminates the interference term.
1.8 Fourier Analysis Primer
(1 star) Frequency Identification with the 4-Point DFT
, and is the same matrix as in Exercise 1.8.3 of the workbook.
:
So . The sequence is a pure sine wave of period 4; the frequency (or ) corresponds to being non-zero.
(2 stars) The Convolution Theorem of the DFT
Swap the order of summation:
Let (mod ). The second sum becomes .
Hence , the element-wise product.
(Teaching) Reference Answer Highlights: The in FFT is the number of data points, while the in QFT is the dimension of the quantum state space (there are amplitudes). The input to the QFT is not classical data points but the probability amplitudes encoded by qubits. The QFT circuit needs only gates to simultaneously transform all amplitudes — quantum parallelism makes this “exponential leap” possible. The key insight: the QFT is not “computing a classical DFT faster” but using quantum parallelism to directly manipulate a high-dimensional state.
(Insight) Reference Answer Highlights: The time-domain basis is the standard basis , and the -th frequency-domain basis vector is . The Fourier transform matrix satisfies , so it is a unitary transformation. Unitarity guarantees energy conservation (Parseval’s theorem). : the Hadamard gate is precisely the quantum Fourier transform. More generally, performs a “local Fourier transform” on qubits simultaneously, while the full QFT also includes controlled phase gates — the difference is that can only produce equal-weight superpositions, whereas the QFT can encode frequency information.
Open Questions
The following questions have no standard answers. They are designed to stimulate cross-disciplinary thinking, literature reading, and creative reasoning.
-
Complex Numbers in Circuits vs. in Quantum Mechanics
Complex numbers are used in circuit analysis to simplify AC circuit calculations (the impedance method), but they are a “convenience” rather than a “necessity” — you could also slog through with differential equations. In quantum mechanics, complex numbers appear to be “necessary” — the Schrodinger equation explicitly contains , and probability amplitudes must be complex. What is the essential difference in the demand for complex numbers between these two contexts? Is there an experiment that can prove complex numbers are “real” in quantum mechanics rather than merely convenient?
-
Can Quantum Probability Be Fully Described Using Real Vector Spaces?
Some researchers have attempted to reconstruct quantum mechanics using real Hilbert spaces (with all coefficients real). Consult the literature (or reason on your own): how does a real-vector-space quantum mechanics differ from the standard complex quantum mechanics? Is there an experiment that can distinguish between them? (Hint: consider the algebraic closure property of complex numbers and the differences in entanglement structure.)
-
“Matrix Mechanics” vs. “Wave Mechanics” — Two Equivalent Mathematical Systems
Heisenberg created matrix mechanics (describing quantum mechanics with infinite-dimensional matrices), and Schrodinger created wave mechanics (using partial differential equations). Schrodinger later proved the two are equivalent. From the perspectives of linear operators (matrices) and function spaces (Hilbert spaces), can you explain to a second-year physics major, in no more than 500 words, why the two are “two sides of the same coin”?
-
The “Curse of Dimensionality” of the Tensor Product — The Limit of Classical Simulation
The state space of an -qubit system has dimension . An quantum computer needs complex numbers to describe its state, far exceeding the memory of classical computers. But physically, are we really “storing” that much information? Or are these amplitudes merely mathematical constructs? Consult discussions on the “quantum state complexity hypothesis” and present your own understanding.
-
The Fourier Transform Is Everywhere
The Fourier transform appears in signal processing, quantum mechanics (position-momentum representation transformation), optics (Fraunhofer diffraction is essentially a Fourier transform), and even number theory (the function and Fourier analysis). Detecting quantum nonlocality via the CHSH inequality also employs ideas from Fourier analysis. Choose a field you are familiar with (engineering, physics, mathematics, data science, music), compare it with the quantum Fourier transform, and write a short essay of about 300 words describing their connections and differences.