Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Quantum Machine Learning and Optimisation in Finance
Quantum Machine Learning and Optimisation in Finance

Quantum Machine Learning and Optimisation in Finance: Drive financial innovation with quantum-powered algorithms and optimisation strategies , Second Edition

Arrow left icon
Profile Icon Antoine Jacquier Profile Icon Oleksiy Kondratyev
Arrow right icon
€17.99 €26.99
eBook Dec 2024 494 pages 2nd Edition
eBook
€17.99 €26.99
Paperback
€33.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Antoine Jacquier Profile Icon Oleksiy Kondratyev
Arrow right icon
€17.99 €26.99
eBook Dec 2024 494 pages 2nd Edition
eBook
€17.99 €26.99
Paperback
€33.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€17.99 €26.99
Paperback
€33.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Quantum Machine Learning and Optimisation in Finance

Chapter 1
The Principles of Quantum Mechanics

Quantum mechanics is a framework for the development of physical theories but is not itself a physical theory. Actual physical theories are built upon a foundation of quantum mechanics. This is why quantum mechanics plays such an important role in all natural sciences. Information theory is no exception and also derives inspiration from the ideas and methods of quantum mechanics.

Understanding quantum computing requires some familiarity with the basic principles of quantum mechanics. This book does not assume any prior knowledge of quantum mechanics and provides all the necessary definitions and explanations when needed. At the same time, the reader is encouraged to learn more about this fascinating subject at the level of mathematical formalism that they are comfortable with. Out of the extensive universe of textbooks on quantum mechanics that provide an introduction to this discipline, it is necessary to mention the classical book by Landau and Lifshitz [197] as well as the equally classical book on quantum computing by Nielsen and Chuang [238], which covers the most relevant aspects of quantum mechanics from the quantum computing perspective. For someone taking their first steps in quantum computing who would like to get an overall picture and some historical perspective, the excellent book by Bernhardt [32] provides both without the heavy usage of complex mathematical apparatus. Readers looking for a more formal modern take on the subject of quantum mechanics may find it in the book by Robinett [272]. The practical aspects of quantum computing are covered in great detail in the book by Sutor [302], and anyone looking for a python quantum computing programming textbook will find it in the work by Loredo [210].

1.1 Linear Algebra for Quantum Mechanics

Quantum computing and quantum mechanics rely on a specific notational formalism, due to Dirac, and are supported by classical linear algebra, in particular Hermitian structures of matrices and tensor products. We provide here a self-contained review of these tools to facilitate the understanding of the rest of the book. We start with basic linear algebra principles before introducing Dirac notations and the quantum counterparts of linear algebra tools. Sections 1.1.1 to 1.1.4 concentrate on standard definitions of finite-dimensional Hilbert spaces and matrices, while Sections 1.1.5 to 1.1.7 review the key details and properties of complex matrices (decompositions, Hermitian property, and rotations). Sections 1.1.9 to 1.1.11 introduce Dirac’s formalism and the essential aspects of quantum operators.

1.1.1 Basic definitions and notations

We let 𝔽 denote either the real field or the complex one . For a complex number z = x + iy , with x,y , we write the conjugate z := x iy. We let Mm,n(𝔽) denote the space of matrices of dimension m×n with entries in 𝔽 and Mn(𝔽) whenever m = n. For A := (aij)1im; 1jn ∈ Mm,n(𝔽), A := (aij)1im; 1jn is the complex conjugate. If A ∈Mn(𝔽), we write A for its transpose and A := (A) for its Hermitian conjugate. We finally denote I as the identity matrix and write In whenever we wish to emphasise the dimension, and 0m,n as the null matrix in Mm,n(𝔽). Recall that a matrix A ∈Mn(𝔽) is invertible (or non-singular) if there exists B ∈Mn(𝔽) such that AB = BA = In.

Given two matrices, A ∈Mp,m(𝔽) and B ∈Mq,n(𝔽), we define their tensor product as

 ⌊ ⌋ a11B ... a1mB || .. .. .. || A ⊗ B := || . . . || ∈ M (𝔽 ). ||ap1B ... apmB || pq,mn ⌈ ⌉

Since a vector is a particular case of a matrix, for u 𝔽m and v 𝔽n, we can write

 ⌊ ⌋ | u1v1| ⌊ ⌋ ⌊ ⌋ || ... || u1 v1 || || || .|| || .|| || u1vn|| mn u⊗ v = |⌈ ..|⌉ ⊗ |⌈ ..|⌉ = || || ∈ 𝔽 . u v || u2v1|| m n || ... || ⌈ ⌉ umvn

1.1.2 Inner products

A vector space V over the field 𝔽 is a set endowed with

  • A commutative, associative addition operation.
  • An operation of multiplication by a scalar.

The addition and multiplication by a scalar have the following properties (for scalars α,β 𝔽 and vectors u,v V):

  • v + 0 = v;
  • v + (v) = 0;
  • α(βv) = (αβ)v;
  • (α + β)v = αv + βv;
  • α(u + v) = αu + αv;
  • 1 v = v.

Armed with this, we can now define an inner product on V:

Definition 1. A map ⟨⋅,⋅⟩: V ×V 𝔽 is called an inner product if, for u,v,w V and α 𝔽,

  • (Positive definiteness) u,u⟩≥0 and u,u= 0 if and only if u = 0.
  • (Conjugate symmetry) u,v= v,u.
  • (Linear in the first argument) u + v,w= u,w+ v,wand αu,v= αu,v.
  • (Antilinear in the second argument) u,v + w= u,v+ u,wand uv= αu,v.

The inner product is further called non-degenerate if u,v= 0 for all v V∖{0} implies u = 0.

For example, the following spaces carry a natural inner product:

  • The vector space n with the inner product u,v:= uv = i=1nuivi.
  • The space of complex-valued continuous functions on [0,1] with f,g:= 01f(t)g(t)dt.
  • If X,Y ∈ Mm,n(), then X,Y:= Tr(XY) = i=1m j=1nXijYij defines an inner product on the space of (real) matrices.

Projection matrices are particularly useful for geometric purposes:

Definition 2. A matrix P ∈ Mn(𝔽) is called a (orthogonal) projection if P2 = P.

In particular, if W is a vector subspace of 𝔽n with some orthonormal basis (w1,…,wd), it is then easy to check that the map PW : 𝔽n 𝔽n onto W satisfying

 ∑d n PW (v) := ⟨v,wi⟩wi, for any v ∈ 𝔽 , i=1

defines an orthogonal projection.

1.1.3 From linear operators to matrices

Let V be a finite-dimensional vector space over 𝔽 and ⟨⋅,⋅⟩ a non-degenerate inner product on V. Given a linear operator A: V V, then, according to the Riesz representation theorem [336, Section III-6], there exists a unique linear operator A : V V, called the adjoint operator, such that

⟨Au, v⟩ = ⟨u,A †v⟩, for all u,v ∈ V.

Indeed, for any v V, the map u V↦→⟨Au,vis a linear functional, hence an element of the dual space V (the space of bounded linear functionals on V). Therefore, for each v V, there exists v′∈V such that ⟨Au,v= u,v′⟩. It is then easy to show that the map v↦→vis linear, proving that the adjoint operator is uniquely defined. In the particular case where A= A, the operator A is called Hermitian, which is a key requirement in quantum mechanics:

Definition 3. The operator A is called Hermitian, or self-adjoint, if A = A.

For a Hermitian operator A, we then have, for any u V,

⟨Au, u⟩ = ⟨u,A †u⟩ = ⟨u,Au ⟩ = ⟨Au,u ⟩∗

by conjugate symmetry (Definition 1), and therefore ⟨Au,uis real. Conversely, if ⟨Au,uis real, then

⟨Au, u⟩ = ⟨Au, u⟩∗ = ⟨u,Au ⟩ = ⟨A †u,u⟩.

Therefore, ⟨( ) ⟩ A − A † u,u= 0; since this is true for all u V, then A= A.

The following property of operators shall be useful to ensure that systems driven by operators preserve distances, or norms:

Definition 4. The linear operator A : V V is called unitary if it is surjective and

⟨Au, Av ⟩ = ⟨u,v ⟩, for all u, v ∈ V.

Recall that a linear operator between two finite-dimensional normed spaces is bounded, and therefore continuous. For any u V, this implies that ∥Au= u, so that a unitary operator A preserves the norm. In that case, A is an isometry, therefore injective. Being also surjective, it is bijective and therefore its inverse exists. For a unitary operator A and any u,v V, we have

 † ⟨u,v⟩ = ⟨Au, Av⟩ = ⟨u,A Av ⟩

by definition of the adjoint, implying that

A †A = I = AA †,

where I is the identity operator.

Example (Real Matrices): If V = n with inner product u,v:= uv for u,v n, the linear operator A can now be viewed as a matrix A in Mn(). Its adjoint is nothing other than the transpose A, and therefore A is self-adjoint if and only if it is symmetric. In this case, if A is unitary (or orthogonal), then it is invertible with A1 = A. Rotation matrices in 2, which will play an important role later when constructing quantum circuits, are the only unitary maps of 2 onto itself and are of the form

⌊ ⌋ cos(𝜃) δsin(𝜃) ⌈ ⌉, sin(𝜃) − δcos(𝜃)

for 𝜃 [0,2π) and δ ∈{−1,+1}.

Example (Complex Matrices): If V = n with inner product u,v:= vu for u,v n, the linear operator A can now be viewed as a matrix in Mn(). The adjoint of such a matrix is then the Hermitian conjugate, A, and A is called Hermitian if A = A and unitary if AA = In. We shall denote by Un() the set of unitary matrices in Mn(). We will discuss Hermitian matrices over in more detail in the Section 1.1.6.

1.1.4 Condition number

In order to manipulate matrices and measure them, we require matrix norms:

Definition 5. A matrix norm ∥⋅∥: Mm,n(𝔽) is a function satisfying, for any α 𝔽 and A,B ∈Mm,n(𝔽),

  • (positively valued) A∥≥0;
  • (definite) A= 0 if and only if A = 0m,n;
  • (absolutely homogeneous) αA= |α|∥A;
  • (triangle inequality) A + B∥≤∥A+ B.

The norm is further called sub-multiplicative if AB∥≤∥A∥∥B.

The condition number of a matrix is an important tool to understand the stability of linear equations of the form Ax = b, for A ∈ Mn(𝔽), b 𝔽n. Assuming A to be non-singular, the true solution is clearly x := A1b. Suppose, however, that the vector b is only known up to some (not necessarily quantum) measurement error, and one observes instead b + Δb. The solution is then A1(b + Δb) = x+ Δx, with Δx := A1Δb. In particular, we can write, for any (sub-multiplicative) matrix norm ∥⋅∥:

 −1 ∥Δx-∥ = ∥A---Δb-∥ ≤ ∥A− 1∥ --∥b∥--∥Δb-∥ ≤ ∥A −1∥∥A∥ ∥Δb∥-. ∥x∥ ∥A −1b∥ ∥A− 1b∥ ∥b∥ ∥b ∥

From this inequality, we see that the quantity A1∥∥Abounds the relative error in the solution with respect to the relative error in the measurement of the input vector b. This leads to the following terminology:

Definition 6. Given a matrix A ∈ Mn(𝔽) and a sub-multiplicative norm ∥⋅∥, we call

 −1 κ ∥⋅∥(A) := ∥A ∥∥A ∥

the condition number (with respect to the norm ∥⋅∥) of the matrix A (and assign to it infinite value if A is singular).

Remark: The definition of the condition number above holds for any matrix norm ∥⋅∥, but admits a more explicit representation in the particular case of the spectral norm ∥⋅∥2, defined as

 ∥Ax∥2- ∥A ∥2 := sxu⁄=p0 ∥x ∥2 ,

where x2 := (∑n |x|2) i=1 i 12 is the L 2 norm for vectors. If the matrix A is not singular, then

 |λ (A )| κ (A ) :=--max----, |λmin(A)|

where λmax(A) and λmin(A) denote the largest and smallest eigenvalues of A.

Having defined essential properties of (complex) matrices, we will now introduce several essential tools that allow us to gain a better understanding of their properties.

1.1.5 Matrix decompositions and spectral theorem

The Singular Value Decomposition (SVD) is a key tool to analyse the properties and behaviours of matrices. It is ubiquitous in applied statistics and machine learning and allows us to reduce the explanatory dimension of a large matrix into a small number of meaningful components.

Theorem 1 (Singular Value Decomposition). Let A ∈ Mm,n(𝔽) and p := min(m,n). There exist U ∈ Um(𝔽), V ∈ Un(𝔽) and σ1 ⋅⋅⋅ σp 0 such that A = UΣV, where Σ ∈ Mm,n(𝔽) is diagonal with Σii = σi for i = 1,…,p and Σii = 0 for i > p.

The numbers {σ1,…,σp} are called the singular values of A and are uniquely defined. The columns of U and V are the left-singular and right-singular vectors of A, in the sense that, if σ ∈{σ1,…,σp}, then there exist a column u of U and a column v of V such that Av = σu and Au = σv. Recall that the rank of a matrix is defined as the dimension of the span of its columns. As a corollary of the SVD theorem, the rank of a matrix is therefore equal to the number of non-zero singular values. The SVD is general in the sense that it holds for any matrix. In the particular case of square matrices, the Schur decomposition and the Spectral Theorem provide refinements.

The Spectral Theorem is a cornerstone result in the theory of linear operators, and in particular for (finite-dimensional) matrices. Recall that an operator A : V V is called normal if it commutes with its adjoint, namely if AA = AA. Self-adjoint (or Hermitian) operators are clearly normal, yet the converse is not true in general. Recall further that an eigenvector of A is a non-zero vector u V such that Au = λu for some λ , and we denote by σ(A) the set of eigenvalues of A. The following result, which is more general than the subsequent spectral theorem, allows us to decompose any arbitrary complex square matrix.

Theorem 2 (Schur Decomposition). For any A ∈ Mn() there exits a unitary matrix U ∈ Un() and an upper triangular matrix T such that A = UTU1.

Note that since U is unitary, then U1 = U. We call the matrix T the Schur transform of A and the identity in the theorem means that A and T are similar; so, in particular, they possess the same eigenvalues, all located on the diagonal of T. If A is a normal matrix, then so is T, and therefore T must be diagonal; we write T = D for clarity. In this case, we say that the matrix A is diagonalisable with A = UDU, where the diagonal entries of D are the eigenvalues of A and the column vectors of U are the orthonormal eigenvectors of A.

Theorem 3 (Spectral Theorem). The linear operator A : V V is normal if and only if there exists an orthonormal basis of V consisting of eigenvectors of A.

For each eigenvalue λ σ(A), denote the corresponding eigenspace

Vλ := {u ∈ V : Au = λu} .

Since the vector space V is the orthogonal direct sum of the eigenspaces (indexed by the eigenvalues of A), we can then write the spectral decomposition

 ∑ A = λP λ, λ∈σ(A)

where Pλ is the orthogonal projection operator onto Vλ. Note that such an operator is naturally self-adjoint [336, Theorem 2, Section III-1].

1.1.6 Hermitian matrices

We previously introduced Hermitian matrices as the set of matrices A over the complex field such that A = A. As fundamental building blocks of quantum computing, we need to investigate their properties further. Clearly, a real matrix is Hermitian if and only if it is symmetric, in which case A = A.

Proposition 1. The eigenvalues of a Hermitian matrix are real.

Proof. If Ax = λx for λ and x n, then

Ax,x = xAx = λxx = λx2,
x,Ax = (Ax)x = (λx)x = λxx = λx2.

Since both are equal by the Hermitian property, then λ = λ, proving the proposition. □

The Singular Value Decomposition (Theorem 1) takes a particular flavour in the case of Hermitian matrices:

Theorem 4. With the notations of Theorem 1, if A ∈ Mn() is Hermitian, then the matrices U and V are equal and the matrix Σ is diagonal with real entries.

Theorem 5. For a Hermitian matrix A ∈ Mn(), the following are equivalent:

  1. The eigenvalues are non-negative.
  2. There exists a Hermitian matrix, B ∈Mn(), such that A = B2.
  3. There exists a matrix, B ∈Mn(), such that A = BB.
  4. For every x n, Ax,x⟩≥0.

Such a matrix is called positive semi-definite.

Proof. The Spectral Theorem shows that there exist a unitary matrix U ∈Un() and a diagonal matrix Σ ∈Mn() such that A = UΣU, where the diagonal elements of Σ are the eigenvalues of A. Assuming (i), we can define B = U√ -- ΣU ∈Mn(). Then clearly

 ( )( ) B † = B and B2 = U√ ΣU † U√ ΣU † = A,

since U is unitary. The equality A = BB is also obvious. The latter implies that

⟨Ax, x⟩ = ⟨B †Bx,x⟩ = ⟨Bx,Bx ⟩ = ∥Bx ∥2 ≥ 0, for any x ∈ ℂn.

Finally, assume (iv) and let λ be an eigenvalue of A with eigenvector u. Then

 2 ⟨Au, u⟩ = ⟨λu,u⟩ = λ⟨u,u⟩ = λ∥u∥ .

Since the latter is strictly positive, then clearly λ 0. □

The following property lies at the core of the Hamiltonian simulation of quantum systems:

Theorem 6. If A ∈ Mn() is Hermitian, then, for any t , eitA is unitary; conversely, every unitary matrix has the form eitA for some Hermitian matrix A.

Recall that for a matrix A ∈Mn(), its exponential is given by

eA = ∑ Ak. k! k≥0

In practice, though, given a Hermitian matrix A, finding the corresponding unitary matrix U is not easy. The Hamiltonian simulation problem is defined as follows.

Hamiltonian Problem: Given a Hermitian matrix A ∈Mn(), a time t > 0, a tolerance level 𝜀 > 0, and some matrix norm ∥⋅∥, find a unitary matrix U such that ∥∥ ∥∥ ∥U − eitA ∥𝜀.

1.1.7 Rotation matrices

Rotation matrices, and later their quantum gate equivalents, will play a key role in building quantum circuits. Let us start with the following lemma:

Lemma 1. If a matrix A ∈ Mn() is such that A2 = I, then for any 𝜃 ,

ei𝜃A = cos(𝜃)I + isin(𝜃)A.

Proof. This follows directly from the series expansion

 ∑ k eA = A-, k≥0 k!

which has an infinite radius of convergence. □

Lemma 1 will prove essential for computational purposes. As simple examples, consider the following:

Exercise: Compute ei𝜃A for A ∈{X,Y,Z} and 𝜃 , where

 ⌊ ⌋ ⌊ ⌋ ⌊ ⌋ X = ⌈0 1⌉ , Y = ⌈0 − i⌉, Z = ⌈1 0 ⌉ . 1 0 i 0 0 − 1

For any α [0,2π), consider now the map Rα : 2 2 such that

 ( ) ( ) R α r cos(𝜃),rsin(𝜃) := r cos(𝜃 + α),rsin(𝜃 + α) ,
for any r ∈ ℝ and 𝜃 ∈ [0,2π),

which is basically a rotation of angle α and does not affect the norm of the input vector. To the map Rα, we can associate the (rotation) matrix Rα such that Rα(u) = Rαu for any u 2. It is easy (exercise) to show the following:

Lemma 2. The matrix Rα has the form

 ⌊ ⌋ |cos(α ) − sin(α)| R α = ||sin (α ) cos(α) || . ⌈ ⌉

This representation is the general form of a rotation matrix in 2 (introduced in (1.1.3)).

Exercise: Write the matrices ei𝜃A for A ∈{X,Y,Z} from the previous exercise as rotation matrices.

1.1.8 Polar coordinates

Recall that a point z = x + iy, with x,y , lying on the unit circle can be written as z = ei𝜃 with 𝜃 [0,2π). Indeed, simply let x = rcos(𝜃), y = rsin(𝜃) and add the constraint r = 1.

Consider now a general vector u 2 of the form

u = αe1 + βe2,

with α,β such that |α|2 + |β|2 = 1. Here, (e1,e2) forms a basis of 2:

 ⌊ ⌋ ⌊ ⌋ e := ⌈1 ⌉, e := ⌈0⌉. 1 0 2 1

In polar coordinates, we can then write

u = rαei𝜃αe1 + rβei𝜃βe2.

Note that arbitrary multiplication phases have no influence – a fact of key importance in quantum mechanics – because, for any γ ,

|eiγα|2 = (eiγα)∗eiγα = α ∗e−iγeiγα = α∗α = |α|2,

so that in fact, multiplying u by the global phase ei𝜃α and letting 𝜃 := 𝜃β 𝜃α, we consider

 i𝜃 u = rαe1 + rβe e2.

Write temporarily rβei𝜃 = x+ iy. Insisting on u being on the unit sphere further imposes u2 = 1, namely

1 = u2 = (rαe1 + (x + iy)e2)(rαe1 + (x + iy)e2)
= (rαe1+ (x iy)e 2)(rαe1 + (x + iy)e2)
= rα2 + x2 + y2,

since (e1,e2) is orthonormal. This is nothing more than the equation of the unit sphere. In polar coordinates, we can write

x = rsin(𝜃)cos(ϕ),
y = rsin(𝜃)sin(ϕ),
rα = rcos(𝜃),

and clearly r = 1 since we are on the unit sphere. Therefore

u = cos(𝜃)e1 + (sin(𝜃)cos(ϕ) + isin(𝜃)sin(ϕ))e2
= cos(𝜃)e1 + sin(𝜃)eiϕe 2.

1.1.9 Dirac notations

Given a vector v n, Dirac’s ket and bra notations read

 ⌊ ⌋ |v1| ||v2|| || .|| ∗ ∗ ∗ |v⟩ := || ..|| and ⟨v| := [v1,v2,...,vn]. || || ⌈vn⌉

With these notations, the operation ⟨u,v⟩:= u|vdefines an inner product on n. The notation for the standard orthonormal basis in n is (|i⟩)i=0,…,n1, that is,

 ⌊1⌋ ⌊0⌋ ⌊0⌋ | | | | | | ||0|| ||1|| ||0|| |0⟩ := ||..|| , |1⟩ := ||..||, ... |n − 1⟩ := || ..|| . ||.|| ||.|| || .|| ||0|| ||0|| ||1|| ⌈ ⌉ ⌈ ⌉ ⌈ ⌉

In coordinates, we can write, for any u,v n,

|u⟩ = ∑ ui |i⟩ and |v⟩ = ∑ vi |i⟩, i i

and, therefore,

 ∑ ⟨u,v ⟩ = u ∗ivi. i

1.1.10 Quantum operators

In the language of Dirac’s notations, we can define the outer product |u ⟩v| (for u U and v V) as a linear operator from V to U, two vector spaces, as

( ) |u⟩ ⟨v| |w⟩ := ⟨v|w⟩ |u ⟩, for any w ∈ V.

In particular, |v⟩v| is the projection on the one-dimensional space generated by |v ⟩. Any linear operator can be expressed as a linear combination of outer products as

 ∑ A = Aij |i⟩⟨j|, ij

where |i⟩ and |j⟩ are the standard basis vectors (1.1.9).

Similarly to the linear algebra setting above, we can define an eigenvector of a linear operator A: V V as a non-zero vector |v⟩ such that

A |v⟩ = λ |v⟩

for some complex eigenvalue λ.

Associated with any linear operator A, the adjoint operator A satisfies

 ⟨ † ⟩ ⟨u|Av ⟩ = A u|v .

Indeed, in the language of linear operators above, we have

⟨u,Av ⟩ = ⟨Av, u⟩∗ = ⟨v,A †u⟩∗ = ⟨A †u,v⟩,

by definition of the inner product (Definition 1).

1.1.11 Tensor product

Given two vector spaces U and V of dimensions m and n, the tensor product U V is a vector space of dimension mn. For u U and v V, we can form the vector |uv ⟩ := |u⟩|v⟩ U V with the following properties:

  • |(u + u′)v⟩= |uv⟩+ |u′v⟩, for any u′∈U;
  • |u(v+ v′)⟩= |uv ⟩+ |uv ′⟩, for any v′∈V;
  • α|uv⟩= |(αu)v⟩= |u(αv)⟩, for any α .

Given the linear operators A: U U and B : V V, we can then define their tensor product as an operator A⊗B on U V:

( ) A ⊗ B |uv ⟩ := |(Au ),(Bv)⟩,

which can be represented in matrix form as A B ∈Mmn,mn().

The Dirac formalism, fully anchored in (classical) linear algebra, opens the gates to a proper dive into the foundations of quantum mechanics.

1.2 Postulates of Quantum Mechanics

Quantum mechanics states several mathematical postulates that a physical theory must satisfy. It turns out that the mathematics of quantum mechanics allows for more general computation: more general definition of the memory state in comparison with classical digital computing and a wider range of possible transformations of such memory states. A natural question arises: what is the reason for this superior mode of computation not being used until very recently? The answer is that although quantum mechanics was formulated almost a century ago (Paul Dirac’s seminal work "The Principles of Quantum Mechanics" [86] was published in 1930), the realisation of the rules of quantum mechanics in the computational protocol performed on classical digital computers requires an enormous amount of memory. Exponential gains in computing power are offset by exponential memory requirements.

In order to perform quantum computations efficiently, we need to use actual quantum mechanical systems, with their ability to encode information in their states. To illustrate this point, the state of a quantum system consisting of n quantum bits (qubits) can be described by specifying 2n probability amplitudes – this is a huge amount of information even for very small systems (n 100) and it would be impossible to store this information in classical memory. It took decades of technological progress before quantum processing units (QPUs) – devices that control quantum mechanical systems performing computations – became feasible.

Let us now proceed with the formulation of the mathematical postulates that lie at the foundation of quantum mechanics. These postulates specify a general framework for describing the behaviour of a physical system [197272]:

  1. How to describe the state of a closed system.
  2. How to describe the evolution of a closed system.
  3. How to describe the interactions of a system with external systems.
  4. How to describe the observables of a system.
  5. How to describe the state of a composite system in terms of its component parts.

1.2.1 First postulate – Statics

Postulate 1. Associated with any physical system is a complex inner product space known as the state space of the system. The system is completely described at any given point in time by its state vector, which is a unit vector in its state space.

What is the importance of the first postulate from a quantum computing point of view? The answer is that quantum mechanics offers us a straightforward generalisation of the classical binary digit (bit). The classical bit is a two-state system with controlled transitions between them. As an example, we can use an electrical switch that can exist in one of the two discrete, stable states ("on" and "off"). Although electrical switches may seem an odd physical realisation of bits in the age of transistors, they illustrate an important point about computation in general: it is substrate independent. Exactly the same computational results can be obtained using electrical relays and CMOS transistors.

The quantum mechanical version of a bit, called a quantum binary digit (qubit), is a quantum mechanical two-state system. The first postulate of quantum mechanics tells us that the state of such a system can be represented mathematically by a unit vector in the two-dimensional complex vector space. This also means that such a system can exist in a superposition of basis states. Indeed, any vector |v⟩ in the two-dimensional complex vector space,

 ⌊ ⌋ α |v⟩ = ⌈ ⌉ , β

can be represented as a linear combination of the standard basis vectors:

⌊ ⌋ ⌊ ⌋ ⌊ ⌋ ⌈α⌉ = α ⌈1⌉ + β ⌈0⌉ , |v⟩ = α |0⟩+ β |1⟩. β 0 1

Since the state vector is a unit vector, the coefficients α and β must satisfy

|α|2 + |β|2 = 1.

The coefficients α and β are probability amplitudes. Even though a qubit can exist in a superposition of basis states, once measured (see Postulate 3), its state collapses to one of the basis states: |α|2 and |β|2 give us the probability of finding the qubit, respectively, in states |0⟩ and |1⟩ after measurement.

One can draw an analogy with how the space of natural numbers, , can be extended to the space of real numbers, , and then to the space of complex numbers, . We have a much wider range of functions that can operate on and take values in and than in . Similarly, allowing the two-state system to exist in a superposition of states significantly extends the range of possible operators that can transform such states (i.e., perform computation).

For example, for the classical functions with values from a two-element set ({0, 1} or {True, False}), called Boolean functions, the following statement is true. There is no Boolean function f that, when applied twice to a classical bit, would result in a NOT gate: f(f(0)) = 1 and f(f(1)) = 0. But there is such an operator in quantum computing. We can easily verify by direct calculations that the matrix

 ⌊ ⌋ 1 1 + i 1 − i M := 2-⌈ ⌉ , 1 − i 1 + i

applied twice to the basis vector |0⟩ would transform it to the basis vector |1⟩, and applied twice to the basis vector |1 ⟩ would transform it to the basis vector |0⟩. M is an example of a quantum logic gate – an operator that transforms the state of a qubit, thus implementing the computation.

Remark: The state space of a physical system can be infinite-dimensional. The quantum computing paradigm based on infinite-dimensional Hilbert spaces is called continuous-variable quantum computing, which is realised in, e.g., some photonic quantum computing systems. However, in the context of digital quantum computing, we will restrict our analysis to finite-dimensional state spaces.

The state of a qubit (the fundamental memory unit of quantum computing that generalises the concept of a classical bit) can be described mathematically as a unit vector in the two-dimensional complex vector space. Any physical system whose state space can be described by 2 can serve as an implementation of a qubit.

1.2.2 Second postulate – Dynamics

Postulate 2. The time evolution of a closed quantum system is described by the Schrödinger equation

iℏd-|ψ-(t)⟩ = H |ψ(t)⟩, dt

where is Planck’s constant and H is a time-independent Hermitian operator known as the Hamiltonian of the system.

The Hamiltonian of a quantum system is an operator corresponding to the total energy of that system, and its eigenvalues are the possible energy levels of the system. The knowledge of the Hamiltonian provides all the necessary information about system dynamics.

In the Schrödinger equation (1.2.2), the state |ψ(t1)⟩ of a closed quantum system at time t1 is related to the state |ψ (t)⟩ 2 at time t2 by a unitary operator U(t1,t2) that depends only on t1 and t2 via

|ψ(t2)⟩ = U (t1,t2) |ψ(t1)⟩ ,

where U(t1,t2) is obtained from the Hamiltonian H as

 ( iH (t − t)) U (t1,t2) = exp −----2----1 . ℏ

Unitary operators preserve the inner product (and therefore norms, lengths, and distances), which means that for two vectors, |u⟩ and |v⟩, if U is a unitary operator then the inner product between U|u⟩ and U|v⟩ is the same as the inner product between |u⟩ and |v⟩:

⟨u|U †U |v⟩ = ⟨u|v⟩ .

A unitary operator is a complex generalisation of a rotation: unitary operators take an orthonormal basis to another orthonormal basis, and any operator with this property is unitary. In quantum mechanics, physical transformations such as rotations, translations, and time evolution correspond to maps that take quantum states to other quantum states. These maps should be linear and preserve the inner product. This allows us to look at the unitary operators as the quantum logic gates implementing quantum computation protocols. Furthermore, unitary operators are invertible, a key property that ensures that quantum computing is reversible.

Quantum logic gates (quantum counterparts of the Boolean logic gates in classical computing) are unitary operators that transform quantum states, thus implementing the computation.

1.2.3 Third postulate – Measurement

Given a Hermitian operator A, the spectral theorem implies that the state |ψ ⟩ of a system can be written as a superposition

 N |ψ⟩ = ∑ αi |ψi⟩, i=1

where the coefficients (αi)i=1,…,N are complex probability amplitudes, assumed to be normalised with i=1N|αi|2 = 1, and where (|ψi⟩)i=1,…,N are eigenfunctions of A. The measurement postulate then reads as follows:

Postulate 3. If we measure the Hermitian operator A in the state |ψ⟩ given in (1.2.3), the possible outcomes for the measurement are the eigenvalues (λi)i=1,…,N of A, and the probability pi to measure λi is given by pi = |αi|2. After the outcome λi, the state of the system becomes

|ψ⟩ = |ψi⟩.

An immediate measurement in the same computational basis will deliver the same result without any uncertainty.

The quantum measurements are described by measurement operators (Pi)i=1,…,N, acting on the state space of the system with N possible outcomes. If the state of the system is |ψ⟩ before the measurement, then the probability of outcome i is

ℙ(i) = ⟨ψ |P †P |ψ ⟩. i i

The measurement operators should also satisfy the completeness condition

∑N P †iPi = I, i=1

where I is the identity operator. This ensures that the sum of the probabilities of all outcomes adds up to 1.

These measurement operators are linear but not unitary. From a quantum computing perspective, we are interested in measurement operators that are projections (Definition 2) onto the computational basis, such as the standard orthonormal basis given by (1.1.9).

For example, the measurement operators for a single qubit can be defined as

 ⌊ ⌋ ⌊ ⌋ 1 0 0 0 P0 := |0⟩⟨0| = ⌈ ⌉ and P1 := |1⟩⟨1| = ⌈ ⌉. 0 0 0 1

We can easily verify that P02 = P0 and P12 = P1, as should be the case for projection operators, and that the completeness condition (1.2.3) is satisfied. If the qubit is in state |ψ⟩= α|0⟩+ β|1⟩, then the measurement operator P0 will give us |0⟩ with probability |α|2, and the measurement operator P1 will give us |1⟩ with probability |β|2. Indeed,

P0|ψ ⟩ = |0⟩0|(α|0⟩+ β|1⟩)= α|0⟩0||0⟩+ β|0⟩0||1⟩= α|0⟩,
P1|ψ ⟩ = |1⟩1|(α|0⟩+ β|1⟩)= α|1⟩1||0⟩+ β|1⟩1||1⟩= β|1⟩.

The measurement postulate of quantum mechanics states that an immediate measurement in the same computational basis will deliver the same result without any uncertainty. The key words here are "the same computational basis". What would happen if the subsequent measurement is performed in another basis (the basis specified by another set of linearly independent unit vectors from the state space)? For example, assume that the qubit is in state

 √1-- √1-- |ψ⟩ = 2 |0⟩ + 2 |1⟩.

Measuring |ψ⟩ in the {|0⟩,|1⟩} computational basis will result in observing states |0⟩ and |1⟩ with equal probability 12. Let us assume that we measured |0⟩. The qubit state is now

|ψ′⟩ = 1 ⋅ |0⟩+ 0 ⋅ |1⟩.

If we repeat the measurement in the same {|0 ⟩,|1⟩} computational basis, we obtain state |0⟩ with probability 1 in accordance with the measurement postulate. However, had we measured state |ψ′⟩ in the Hadamard basis {|+ ⟩,|− ⟩}, given by

|+ ⟩ := √1-(|0⟩+ |1⟩) and |− ⟩ := 1√--(|0⟩ − |1⟩), 2 2

we would have equal probabilities of |+ ⟩ and |− ⟩ outcomes. Let us assume that we measured |− ⟩ and the state of the qubit is now

 ′′⟩ |ψ = 0 ⋅ |+ ⟩+ 1 ⋅ |− ⟩ .

If we repeat the measurement of state  ′′ |ψ ⟩ in the Hadamard basis {|+ ⟩,|− ⟩}, we obtain state |− ⟩ with probability 1. But the state of the qubit is an equal superposition of states |0⟩ and |1⟩ from the {|0⟩,|1⟩} computational basis perspective and we have an equal chance of measuring either |0 ⟩ or |1⟩ in this basis.

Remark: The basis vectors |0 ⟩ and |1⟩ that form the standard computational basis can be transformed into the basis vectors |+ ⟩ and |− ⟩ that form the Hadamard basis by applying the following unitary operator (rotation), called the Hadamard gate:

 ⌊ ⌋ 1 1 -1-|| || H = √2-|⌈ 1 − 1|⌉ .

Chapters 6, 10, and 11 provide examples of applications of the Hadamard gate.

Measurement plays a crucial role in quantum computing. This is the process of collapsing a quantum state and reading out the classical information: measuring qubits encoding a quantum state will produce a classical bit string. The measurement process generates probabilistic outcomes. Therefore, we need to perform measurements on the same quantum state multiple times to generate a sufficiently large number of classical bit strings to produce reliable statistics.

The process of measurement describes the collapse of the quantum state due to contact with the environment. After measurement, the states of the qubits are known without any uncertainty. It is possible to extract at most 1 bit of information from a qubit. In order to extract more information about the probability distribution encoded in a given quantum state, it is necessary to perform measurement of the same state multiple times.

1.2.4 Fourth postulate – Observable

Postulate 4. For every measurable property of a physical system, there exists a corresponding Hermitian operator. The values of the physical observables correspond to the expectation values of Hermitian operators. The expectation value ⟨A⟩ of the Hermitian operator A in the normalised state |ψ⟩ is given by

⟨A ⟩ := ⟨ψ|A |ψ⟩.

Let us consider the general case where the expectation value of a Hermitian operator A is calculated in state |ψ ⟩, which is not an eigenfunction of A. According to the Spectral Theorem 3 (see also (1.2.3)), the state |ψ ⟩ of a system can be represented as the superposition

 N |ψ⟩ = ∑ αi |ψi⟩, i=1

where (|ψi⟩)i=1,…,N are the eigenfunctions of A and (αi)i=1,…,N are the corresponding probability amplitudes.

Therefore, the expectation value of A in state |ψ⟩, given in (1.2.4), is calculated as

 ∑N ∑N ∗ N∑ N∑ ∗ ⟨A ⟩ = αiαj ⟨ψi|A |ψj⟩ = αiαjλj ⟨ψi|ψj⟩, i=1j=1 i=1 j=1

where (λi)i=1,…,N are the eigenvalues of A. The only terms that survive in the expression for ⟨A ⟩ are those with i = j due to the orthogonality of the eigenfunctions, so that

 ∑N ∑N ⟨A ⟩ = α ∗iαiλi = |αi|2λi. i=1 i=1

Therefore, the value of the observable is a weighted average of the eigenvalues of the corresponding Hermitian operator. The weights are the coefficients (|αi|2)i=1,…,N, which are the probabilities of measuring the corresponding eigenstate of A.

Hermitian operators play an exceptionally important role in quantum mechanics since their expectation values correspond to physical observables.

1.2.5 Fifth postulate – Composite System

Postulate 5. The state space of a composite physical system is the tensor product of the state spaces of the individual component physical systems.

If the first component physical system is in state |ψA ⟩ and the second component physical system is in state |ψB ⟩, then the state of the combined system, |ψ⟩, is given by the tensor product

|ψ⟩ = |ψA⟩ ⊗ |ψB⟩ .

Not all states of a combined system can be separated into the tensor product of states of individual components. If the state of a system cannot be separated into component parts, we say that the component parts are entangled.

The entanglement of quantum systems is one of the major sources of computational power of quantum computing. It allows us to store exponentially more information in the correlations between the states of individual subsystems (in the limit – individual qubits) than directly in the states of individual subsystems.

To illustrate this point, we can look at the number of probability amplitudes needed to describe the state of an n-qubit system. An individual qubit can be found in one of the two possible states after measurement – one of the two basis states, |0⟩ or |1⟩. This means that we need to specify two probability amplitudes to fully describe the state of the qubit before measurement. If all our qubits are independent and the state of the system can be represented as a tensor product of individual qubit states

|ψ⟩ = |ψ1 ⟩⊗ |ψ2⟩⊗ ...⊗ |ψn ⟩,

then we need to specify 2n probability amplitudes (two for each individual quantum states) to describe the state |ψ ⟩ of the system. If, however, all individual qubits are entangled and the tensor product representation of the system state |ψ ⟩ does not exist, we need to specify 2n probability amplitudes – this is an effective measure of useful information that can be stored in the system.

The power of quantum computing is derived from the principles of superposition and entanglement. Entanglement allows us to store most of the information in correlations between the qubit states.

1.3 Pure and Mixed States

There are situations when we have to deal with either entangled components of a quantum mechanical system or a statistical ensemble of quantum states. In such cases the system cannot be described with the help of a state vector. Here, we look at such situations and provide a mathematical tool for describing them.

1.3.1 Density matrix

Let us start with the state of a combined two-component physical system given by (1.2.5). Let (|i⟩)i=1,...,N and (|j⟩)j=1,...,M denote, respectively, the standard orthonormal bases of the Hilbert spaces of systems A and B:

 N M ∑ ∑ |ψA⟩ = αi |i⟩, |ψB ⟩ = βj |j⟩, i=1 j=1

where (αi)i=1,...,N and (βj)j=1,...,M are some probability amplitudes. The states that allow the state vector representation (1.3.1) are called pure states. In this case, the state of the combined system is

 N M |ψ⟩ = |ψA ⟩⊗ |ψB ⟩ = ∑ ∑ αiβj |i⟩⊗ |j⟩. i=1 j=1

However, in general, the state of the combined system would look like

 ∑N ∑M |ψ ⟩ = γij |i⟩⊗ |j⟩, i=1j=1

where γij are probability amplitudes that may not necessarily be factorised as the product of probability amplitudes (αi)i=1,...,N and (βj)j=1,...,M. If γij cannot be factorised as αiβj, then the component systems A and B are entangled and their states cannot be represented by the state vectors (1.3.1). Such states of systems A and B are called mixed states.

The more general setup is that of an ensemble of states of the form {pk,|ψk ⟩}k=1,…,K, where each |ψi⟩ is a quantum state whose wave function is known with certainty (although this does not necessarily provide full knowledge of the measurement statistics), and each pk is the associated probability (not amplitude) in [0,1]. In order to define properly pure and mixed states, introduce the density operator as follows:

Definition 7. A density operator ρ is a positive semidefinite Hermitian operator with unit trace that takes the form

 K K ρ := ∑ p |ψ ⟩⟨ψ |, ∑ p = 1, p ≥ 0, for all k = 1,...,K. k=1 k k k k=1 k k

A density operator ρ corresponds to a density matrix (ρkl)k,l=1,…,K such that

 † K∑ ρ = ρ , Tr(ρ) ≡ ρkk = 1, ρkk ≥ 0, for all k = 1,...,K. k=1

1.3.2 Pure state

A pure state is one that can be represented by a state vector

 N |ψ⟩ = ∑ αi |i⟩, i=1

where (αi)i=1,...,N are probability amplitudes in such that i=1N|αi|2 = 1. In the ensemble setup above, this means that there exists k ∈{1,…,N} such that pk = 1 and hence |ψ⟩= |ψk∗⟩ and, therefore, ρ = |ψ ⟩ψ|. The density matrix also allows us to compute expectations of the form (1.2.4).

Lemma 3. Let ρ be the density matrix associated with the pure state (1.3.2) and let A be an observable (Hermitian operator), then

⟨A⟩ := ⟨ψ |A |ψ ⟩ = Tr (ρA ).

Proof. The lemma follows from the immediate computation:

ψ|A|ψ⟩ = ψ|A i=1Nα i|i⟩= i=1Nα i ψ|A|i⟩
= i=1N⟨i|ψ⟩ψ|A|i⟩= i=1N i|ρA|i⟩= Tr(ρA).

With the state |ψ ⟩ given by (1.3.2), we obtain

 N∑ ∑N ⟨A ⟩ = αiα∗j ⟨j|A |i⟩. i=1 j=1

At the same time we have

 ∑N ∑N ⟨A⟩ = Tr(ρA ) = ρij ⟨j|A |i⟩. i=1j=1

A comparison of (1.3.2) and (1.3.2) yields the following expression for the density matrix of a pure state:

 ∑N N∑ ρij = αiα ∗j, ρ = αiα∗j |i⟩⟨j| = |ψ⟩⟨ψ |. i=1j=1

Example: An example of a pure state is the Hadamard state

 ⌊ ⌋ 1 1 1 |+ ⟩ = √--(|0⟩+ |1⟩) = √--⌈ ⌉, 2 2 1

with the corresponding density matrix

 ⌊ ⌋ ρ = |+⟩⟨+ | = 1-⌈1 1⌉ . 2 1 1

1.3.3 Mixed state

A mixed state is one that cannot be represented by a single pure state vector, and is therefore represented as a statistical distribution of pure states in the form of an ensemble of quantum states {pk,|ψk⟩}k=1,…,N, where k=1Npk = 1 and pk [0,1] for each k. The density of a mixed state therefore reads

 N∑ ρ = pk |ψk ⟩⟨ψk|. k=1

Similarly to Lemma 3, we can write expectations of observables with respect to mixed states using the density matrix:

Lemma 4. Let ρ be the density matrix associated with the mixed state (1.3.3) and let A be an observable (Hermitian operator), then

 N∑ Tr(ρA ) = pk⟨ψk|A |ψk⟩ . k=1

Proof. The lemma follows from the immediate computation

Tr(ρA) = i=1N i|ρA|i⟩= i=1N i|( ∑N ) pk |ψk ⟩⟨ψk| k=1A|i⟩
= k=1Np k(∑N ) ⟨i|ψk ⟩⟨ψk|A |i⟩ i=1= k=1Np k ψk|A|ψk⟩.

Let us see now how the density matrix formalism can help us describe the state of a combined system. Consider an entangled state of two systems, A and B, given by (1.3.1), and a Hermitian operator A that only acts within the Hilbert space of system A. What would be the expectation value of A in this state? Starting with (1.2.4), we obtain

 ∑N ∑M ∑N M∑ ⟨A⟩ = γijγ∗kl⟨k|A |i⟩ ⟨l|j⟩. i=1j=1k=1 l=1

Since only terms with l = j survive in (1.3.3) due to the orthogonality of the basis states, we have

 ( ) N∑ ∑N M∑ ⟨A⟩ = ( γijγ∗kj) ⟨k|A |i⟩. i=1 k=1 j=1

Thus, the density matrix that describes the mixed state of system A is

 ∑M ρik = γijγ∗kj. j=1

Note that in the case where the probability amplitudes γij can be factorised as the product of probability amplitudes (αi)i=1,...,N and (βj)j=1,...,M, we obtain

 M∑ M∑ ρik = αiβjα∗kβj∗= αiα ∗k |βj|2 = αiα∗k, j=1 j=1

which describes a pure state.

Lemma 5. Let ρ be a density matrix. The inequality Tr(ρ2) 1 always holds and Tr(ρ2) = 1 if and only if ρ corresponds to a pure state.

Proof. Consider an ensemble of pure states {pi,|ψi⟩}i=1,…,N. From (1.3.3) we get

Tr(ρ2) = Tr( ( ) ( ) ) ∑N ∑N ( pi |ψi⟩⟨ψi| ( pj |ψj⟩⟨ψj|) ) i=1 j=1
= Tr( N∑ ∑N ) ( pipj |ψi⟩⟨ψi| |ψj⟩⟨ψj|) i=1 j=1,

and, due to orthogonality, we obtain

Tr(ρ2) = Tr( ) N∑ 2 pi |ψi⟩⟨ψi| i=1
= i=1Np i2Tr(|ψi⟩ψi|)
= i=1Np i2⟨ψi|ψi ⟩= i=1Np i2,

which is smaller than 1 since the pi are probabilities in [0,1] summing up to 1. Assume now that Tr(ρ2) equals 1, then so does i=1Npi2. If pi (0,1) for all i = 1,…,N, then

 N∑ 2 ∑N 1 = pi < pi = 1, i=1 i=1

which is a contradiction, and therefore there exists i ∈{1,…,N} such that pi = 1, so that ρ = |ψi∗⟩ψi| is a pure state. Conversely, if ρ = |ψi⟩ψi| for some i ∈{1,…,N} represents a pure state, then

Tr(ρ2) = Tr(|ψi⟩⟨ψi| |ψi⟩⟨ψi|) = Tr(|ψi⟩⟨ψi|) = ⟨ψi|ψi⟩ = 1.

Example: An example of a mixed state is a statistical ensemble of states |0⟩ and |1⟩. If a physical system is prepared to be in either state |0⟩ or state |1⟩ with equal probability, it can be described by the following mixed state:

 ⌊ ⌋ 1 1 1 1 0 ρ = --|0⟩⟨0|+ -|1⟩⟨1| = -⌈ ⌉ . 2 2 2 0 1

Note that this is different from the density matrix of the pure state

|ψ ⟩ = 1√--(|0⟩ + |1⟩), 2

which reads

ρψ = |ψ ⟩ψ|= 1- 2(|0⟩+ |1⟩)(0|+ 1|)
= 1 2-(|0⟩0|+ |1⟩0|+ |0⟩1|+ |1⟩1|) = 1 2-⌊ ⌋ 1 1 ⌈ ⌉ 1 1.

Unlike pure quantum states, mixed quantum states cannot be described by a single state vector. However, pure states and mixed states can be described using the density matrix formalism.

Summary

In this chapter, we learned the key principles of quantum mechanics, starting with a review of the basic elements of linear algebra, followed by an introduction to Dirac notations.

We then covered the main postulates of quantum mechanics and their relevance to quantum computing. We learned how to describe the state (statics) and the evolution (dynamics) of a closed system, the interactions of a system with external systems (measurement), observables, as well as the state of a composite system in terms of its component parts.

We finally introduced the density operator, which allows us to describe both pure and mixed quantum states, contrasting with the state vector, which can only represent pure quantum states.

The following table summarises some of the key rules and definitions:

  1. Any linear operator A can be expressed as a linear combination of outer products of basis vectors |i⟩:
     ∑ A = Aij |i⟩⟨j|. ij
  2. A linear operator is diagonalisable if

     ∑ A = λi |ψi⟩⟨ψi|, i

    where λi and |ψi⟩ are, respectively, the eigenvalues and eigenvectors of A.

  3. Adjoint operator, A, is defined as

    A † = (A ∗)⊤.

    We have:

     ⟨ ⟩ ⟨v|Au ⟩ = A †v|u .
  4. A linear operator A is normal if

     † † AA = A A.

    A linear operator is diagonalisable if, and only if, it is normal.

  5. A linear operator A is Hermitian if

     † A = A .

    A normal operator is Hermitian if, and only if, it has real eigenvalues.

  6. A linear operator A is unitary if

     † † AA = A A = I.

    Unitary operators are normal and, therefore, diagonalisable.

  7. Unitary operators are invertible: and norm preserving:
    ⟨Au |Av ⟩ = ⟨u|v⟩ .
  8. All eigenvalues of a unitary operator have modulus 1. If a linear operator is both unitary and Hermitian, its igenvalues are +1 and 1.
  9. Hermitian operators can represent physical observables.
  10. If A is Hermitian, the state |ψ⟩ of a system can be written as a superposition

     ∑ |ψ⟩ = αi |ψi⟩, i

    where the coefficients αi are complex probability amplitudes and |ψi⟩ are eigenvectors of A.

  11. A value of a physical observable represented by Hermitian operator A in state |ψ⟩ is given by the expectation value of A in state |ψ ⟩:
     ∑ ∑ ⟨A ⟩ = ⟨ψ |A |ψ ⟩ = λiα ∗iαi = λi|αi|2. i i
  12. A density operator ρ is a positive semidefinite Hermitian operator with unit trace that takes the form

     ∑ ∑ ρ = pi |ψi⟩⟨ψi|, pi = 1, pi ≥ 0, ∀i. i i

    A density operator corresponds to a density matrix such that

     ∑ ρ = ρ†, Tr(ρ) ≡ ρii = 1, ρii ≥ 0, ∀i. i
  13. A pure state is one that can be represented by a state vector

     ∑ |ψ⟩ = αi |i⟩, i

    where |i⟩ are the basis vectors and αi are probability amplitudes. The density operator of a pure state is given by

    ρ = |ψ ⟩⟨ψ|.
  14. A state ρ is pure if, and only if, any one of the following conditions holds:
     2 2 a) ρ = ρ, b ) Tr(ρ ) = 1.
  15. A mixed state is one that cannot be represented by a single pure state vector, and is therefore represented as a statistical ensemble of quantum states |ψi⟩ with positive weights pi that add up to one. The density operator of a mixed state reads
     ∑ ρ = pi |ψi⟩⟨ψi|. i
  16. The state space of a composite physical system is the tensor product of the state spaces of the individual component physical systems. If the state of a system cannot be separated into component parts, we say that the component parts are entangled.
  17. For the density operator ρ of a mixed or entangled state we have
     2 2 a) ρ ⁄= ρ, b ) Tr(ρ ) < 1.
  18. A value of a physical observable represented by Hermitian operator A in a state described by the density matrix ρ is given by
    ⟨A ⟩ = Tr(ρA).
  19. If a state |ψ (t1)⟩ of a closed quantum system described by the density matrix ρ(t1) at time t1 evolves into a state |ψ(t2)⟩ described by the density matrix ρ(t2) at time t2 under the action of a unitary operator U, then
     † |ψ(t2)⟩ = U |ψ(t1)⟩, ρ(t2) = Uρ(t1)U .
  20. If A is a commutator of two operators B and C,

    A = [B,C ] = BC − CB,

    then Tr(A) = 0.

Left arrow icon Right arrow icon

Key benefits

  • Find out how quantum algorithms enhance financial modeling and decision-making
  • Improve your knowledge of the variety of quantum machine learning and optimisation algorithms
  • Look into practical near-term applications for tackling real-world financial challenges
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

As quantum machine learning (QML) continues to evolve, many professionals struggle to apply its powerful algorithms to real-world problems using noisy intermediate-scale quantum (NISQ) hardware. This book bridges that gap by focusing on hands-on QML applications tailored to NISQ systems, moving beyond the traditional textbook approaches that explore standard algorithms like Shor's and Grover's, which lie beyond current NISQ capabilities. You’ll get to grips with major QML algorithms that have been widely studied for their transformative potential in finance and learn hybrid quantum-classical computational protocols, the most effective way to leverage quantum and classical computing systems together. The authors, Antoine Jacquier, a distinguished researcher in quantum computing and stochastic analysis, and Oleksiy Kondratyev, a Quant of the Year awardee with over 20 years in quantitative finance, offer a hardware-agnostic perspective. They present a balanced view of both analog and digital quantum computers, delving into the fundamental characteristics of the algorithms while highlighting the practical limitations of today’s quantum hardware. By the end of this quantum book, you’ll have a deeper understanding of the significance of quantum computing in finance and the skills needed to apply QML to solve complex challenges, driving innovation in your work.

Who is this book for?

This book is for academic researchers, STEM students, finance professionals in quantitative finance, and AI/ML experts. No prior knowledge of quantum mechanics is needed. Mathematical concepts are rigorously presented, but the emphasis is on understanding the fundamental properties of models and algorithms, making them accessible to a broader audience. With its deep coverage of QML applications for solving real-world financial challenges, this guide is an essential resource for anyone interested in finance and quantum computing.

What you will learn

  • Familiarize yourself with analog and digital quantum computing principles and methods
  • Explore solutions to NP-hard combinatorial optimisation problems using quantum annealers
  • Build and train quantum neural networks for classification and market generation
  • Discover how to leverage quantum feature maps for enhanced data representation
  • Work with variational algorithms to optimise quantum processes
  • Implement symmetric encryption techniques on a quantum computer

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Dec 31, 2024
Length: 494 pages
Edition : 2nd
Language : English
ISBN-13 : 9781836209607
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Dec 31, 2024
Length: 494 pages
Edition : 2nd
Language : English
ISBN-13 : 9781836209607
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Table of Contents

20 Chapters
Chapter 1 The Principles of Quantum Mechanics Chevron down icon Chevron up icon
Part I Analog Quantum Computing – Quantum Annealing Chevron down icon Chevron up icon
Chapter 2 Adiabatic Quantum Computing Chevron down icon Chevron up icon
Chapter 3 Quadratic Unconstrained Binary Optimisation Chevron down icon Chevron up icon
Chapter 4 Quantum Boosting Chevron down icon Chevron up icon
Chapter 5 Quantum Boltzmann Machine Chevron down icon Chevron up icon
Part II Gate Model Quantum Computing Chevron down icon Chevron up icon
Chapter 6 Qubits and Quantum Logic Gates Chevron down icon Chevron up icon
Chapter 7 Parameterised Quantum Circuits and Data Encoding Chevron down icon Chevron up icon
Chapter 8 Quantum Neural Network Chevron down icon Chevron up icon
Chapter 9 Quantum Circuit Born Machine Chevron down icon Chevron up icon
Chapter 10 Variational Quantum Eigensolver Chevron down icon Chevron up icon
Chapter 11 Quantum Approximate Optimisation Algorithm Chevron down icon Chevron up icon
Chapter 12 Quantum Kernels and Quantum Two-Sample Test Chevron down icon Chevron up icon
Chapter 13 The Power of Parameterised Quantum Circuits Chevron down icon Chevron up icon
Chapter 14 Advanced QML Models Chevron down icon Chevron up icon
Chapter 15 Beyond NISQ Chevron down icon Chevron up icon
Bibliography Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You Might Enjoy Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.