Towards Quantum Computational Mechanics
Burigede Liu
a,
∗
, Michael Ortiz
b
, Fehmi Cirak
a
a
Department of Engineering, University of Cambridge, Cambridge, CB2 1PZ, UK
b
Division of Engineering and Applied Science, California Institute of Technology, Pasadena, CA 91125, USA
Abstract
The rapid advancements in quantum computing as ushered in a new era for computer simulations, presenting ground-
breaking opportunities across diverse disciplines. Central to this revolution is the quantum processor’s capacity to
entangle qubits, unlocking unprecedented possibilities for addressing computational challenges on an extreme scale,
far beyond the reach of classical computing. In this study, we explore how quantum computing can be employed to
enhance computational mechanics. Our focus is on the analysis of Representative Volume Element (RVE) within the
framework of multiscale solid mechanics. We introduce an innovative quantum algorithm designed to solve the RVE
problem. This algorithm is capable of compute RVEs of discretization size
N
in
O
(Poly log(
N
)) time, thus achieving
an exponential speed-up over traditional classical computing approaches that typically scales linearly with
N
. We
validate our approach with case studies including the solution of one and two dimensional Poisson’s equation, as well
as an RVE of a composite bar with piece-wise constant phases. We provide quantum circuit designs that requires only
O
(Poly log(
N
)) universal quantum gates,underscoring the e
ffi
ciency of our approach. Our work suggests a major way
in which quantum computing can be combined with and brought to bear on computational mechanics.
Keywords:
Quantum computing, multiscale analysis, quantum Fourier transform
Contents
1 Introduction
2
2 Computational homogenisation
4
2.1
Problem formulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4
2.2
Periodic solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
2.3
Fourier discretisation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6
3 Essentials of quantum computing
7
3.1
Notation and definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7
3.2
Quantum systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7
3.2.1
One-qubit systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7
3.2.2
Multi-qubit systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8
3.3
Quantum gates and circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10
3.3.1
One-qubit gates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10
3.3.2
Multi-qubit gates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
3.3.3
Quantum circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12
3.4
Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
3.5
Quantum algorithm complexity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14
∗
Corresponding author
Email addresses:
bl377@cam.ac.uk
(Burigede Liu),
ortiz@aero.caltech.edu
(Michael Ortiz),
fc286@cam.ac.uk
(Fehmi Cirak)
Preprint submitted to Elsevier
December 8, 2023
arXiv:2312.03791v1 [quant-ph] 6 Dec 2023
4 Quantum computing algorithms
14
4.1
Multi-controlled operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14
4.2
Encoding of polynomials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15
4.3
State preparation via function encoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
17
4.4
Encoding of arbitrary functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
18
4.5
Quantum Fourier Transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
19
4.6
Base swap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21
5 Quantum computational homogenisation
22
5.1
Periodic Poisson problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22
5.1.1
One-dimensional case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22
5.1.2
Two-dimensional case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
24
5.2
Solution of the unit cell problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
27
5.2.1
Incremental problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
27
5.2.2
Fixed-point iteration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
30
6 Conclusions
32
Appendix A
Kronecker Product
34
Appendix B
State preparation
34
Appendix C
Complexity of the polynomial encoding algorithm
35
1. Introduction
The phenomenal advances in computational mechanics from its early beginnings in the late 1950s to today follow
the exponential increase in computing power over the same period of time [23, 37]. This progress is most evident from
the increase of finite element problem sizes from less than hundreds (
<
10
2
) to hundreds billions (
>
10
11
) of elements
over the same time period [12, 26]. As widely known, Moore’s law stipulates a two-fold increase in the density of
transistors on a circuit every two years. The consensus is that future improvements in computing power will be limited
because of the physical limitations in shrinking logic gate sizes further. A naive scaling up of current computing
technologies without an increase is transistor densities is believed as highly problematic because of excessive cost
and energy consumption. Using quantum systems to perform computations provides one possible solution to this
impasse. Quantum computers were envisaged in early 1980s by Feynman [19], Benio
ff
[5] and Manin [28]. Feynman
was motivated by the impossibility of simulating a reasonably sized
quantum system
with classical computers. For
instance, the state of a quantum system consisting of
n
p
particles contained in a box in
R
3
is described by a complex-
valued
wave function
ψ
(
x
) :
R
3
n
p
7→
C
. The discretisation of this configuration space with only ten cells in each
dimension leads to a discretised system with 10
3
n
p
degrees of freedom, rendering the problem unsolvable beyond a
few particles.
Feynman argued to e
ffi
ciently simulate quantum systems, one needs non-classical computers that must use phe-
nomena unique to quantum mechanics. The same argument was put forward by Manin in his book in Russian;
see [34]. In contrast to both, Benio
ff
was concerned with energy dissipation in classical computers resulting from the
irreversibility of the elementary operations. For instance, in a classical computer an AND gate has two binary inputs
and one binary output and is irreversible as it is impossible to deduce from the single output the respective inputs.
This irreversibility is associated with a loss of energy [6, 27]. Benio
ff
proposed an alternative quantum-based classi-
cal computer design in which every operation is encoded as the solution of the reversible time-dependent Schr
̈
odinger
equation governing quantum mechanics. The notion of a quantum computer, as envisaged by Feynman and Manin,
was finally formalised in the seminal work by Deutsch [16] a few years later. In the same work, Deutsch discussed
the advantages of a quantum computer in solving problems beyond the simulation of quantum systems, which led to
an initial flurry of quantum algorithms, like Grover’s algorithm of unstructured search [21] and Shor’s algorithm for
prime factorisation [39].
2
To develope an intuitive understanding of quantum computing, adopting a physical viewpoint of computing is
expedient. Briefly, computing is always tied to a physical representation, and a computer is a machine. As Deutsch
stated:
”a computing machine is any physical system whose dynamical evolution takes it from one of a set of ’input’
states to one of a set of ’output’ states”.
The input state of a quantum computer is chosen from the configuration
space of a quantum system. According to the postulates of quantum mechanics, the configuration of the system
with
n
quantum particles is described by a
state vector
|
q
⟩
, see [36].
1
The ket
|·⟩
merely indicates that q is a quantum
mechanical vector. Each particle is referred as a
qubit
and has two states. These two-states can be, for instance, the
up and down spin states of a spin 1
/
2 particle, ground and excited states of an atom, or the horizontal and vertical
polarisation of a photon [17]. Owing to
quantum entanglement
, the state vector of
n
qubits is the Hilbert space
C
2
n
,
i.e.
|
q
⟩ ∈
C
2
n
. Notice that this space is exponentially larger than the configuration space of
n
classical particles which
is only
C
2
n
, see [24]. The time evolution of the state vector
|
q
(
t
)
⟩
is governed by the Schr
̈
odinger equation and the state
vector
|
q
(
T
)
⟩
at time
t
=
T
is given by the unitary mapping
U
C
:
|
q
(0)
⟩7→|
q
(
T
)
⟩
. The evolution operator
U
C
∈
C
2
n
×
2
n
is unitary, i.e.
U
−
1
C
=
U
†
C
, i.e. length preserving and bijective. A
universal quantum computer
can implement any
such unitawhitry operator
U
C
. Hence, as a physical system a quantum computer performs computation by evolving a
chosen
|
q
(0)
⟩
to
|
q
(
T
)
⟩
using a prudently designed unitary
U
C
. Therefore, quantum computers are sometimes referred
as
analog machines
and their ability to simultaneously evolve the t state vector
|
q
(
t
)
⟩
as
quantum parallelism
.
We provided so far a simplified and abstract description of quantum computing which requires further elabora-
tion. In computational mechanics the initial state
|
q
(0)
⟩
may represent the forcing, the final state
|
q
(
T
)
⟩
the solution
and
U
C
the discretised inverse solution operator. A classical forcing vector
q
∈
C
N
, with
N
=
2
n
, is encoded
as the components, usually called
amplitudes
,
q
i
(0)
∈
C
of a state vector
|
q
(0)
⟩
=
P
i
q
i
(0)
|
i
⟩
of a system with
n
qubits. The basis vectors
|
i
⟩∈{|
0
⟩
,
|
1
⟩
,...
|
2
n
−
1
⟩}
provide a labelling of the 2
n
possible states of the quantum
system. This encoding is referred to as
state preparation
and, for instance, can be accomplished with the unitary
mapping
U
I
(
q
) :
|
0
...
0
⟩7→|
q
(0)
⟩
. Here,
|
0
...
0
⟩
is a known initial state and
U
I
(
q
) a unitary matrix. Algorithms for
state preparation can be found, e.g., in [3, 30, 38]. Subsequent application of the previously mentioned unitary
U
C
performs the desired computation. As widely studied, any unitary matrix can be constructed as the composition of a
few elementary unitary matrices [4, 15]. These elementary unitaries are of size 2
×
2 and 4
×
4 and are applied to a
single or two qubits as a time. In gate-based quantum computing the composition of the unitaries
U
I
and
U
C
from
elementary unitaries, also referred to as gates, are visualised in circuit diagrams. On a more practical level, a quantum
algorithm is implemented by designing the arrangement of the elementary gates in a quantum SDK, like Qiskit [13],
Cirq [11], PyQuil [40] and Pennylane [7]. See also the textbooks [1, 25, 35, 46] on known quantum algorithms and
their circuit implementations. The state vector
|
q
(
T
)
⟩
after the completion of the computation is interrogated by
mea-
surement
. According to the measurement postulate of quantum mechanics, the magnitude of the amplitude
|
q
i
|
2
is
equal to the probability to find the quantum system in the state labelled
|
i
⟩
, see [36]. After the state is
collapsed
into
the state
|
i
⟩
repeated measurements will yield the same result
|
i
⟩
. More specifically, we can only infer the statistics of
components of
|
q
(
T
)
⟩
or, more generally, the statistics of the projection of
|
q
(
T
)
⟩
to some subspace.
As detailed, quantum computing relies exclusively on unitary operations and measurement, so it is essential to
reassess existing computational mechanics approaches for their suitability and develop new methods. In this paper,
we consider the homogenisation of microstructured materials, like multi-phase composites consisting of materials
with di
ff
erent properties or polycrystalline materials. The characteristic length scale of the microstructure is much
smaller than the size of the macroscopic specimen to be analysed. Therefore, it is reasonable to derive the e
ff
ective
material properties, like di
ff
usivity or Young’s modulus, of the homogenised macroscopic boundary value problem
from micro-level boundary value problems, fully considering the microstructure. In computational homogenisation,
the micro- and macro-level boundary value problems are all suitably discretised and solved sequentially. The micro-
level domain is usually a rectangular prism called the representative volume element (RVE). The boundary conditions
for the RVE are chosen as periodic, and the prescribed average of the gradient of the solution, or strain gradient, is
given by the macroscale boundary value problem. We solve the periodic microscale problem by discretising all fields
using a band-limited Fourier interpolation, also known as Whittaker-Shannon interpolation, [10, 43]. In computational
homogenisation, this approach was first pioneered by Moulinec and Suquet [31]; see also the recent review paper [20].
The resulting discrete system of equations is classically solved using a fixed-point iteration and the Fast Fourier
1
The state vector
|
q
⟩
and wave function
ψ
(
x
) are equivalent representations of a quantum system. In quantum computing usually only state
vectors are used.
3
Transform (FFT). The FFT has the computational complexity
O
(
N
log
N
), where
N
is the number of degrees of
freedom. The corresponding quantum algorithm, the Quantum Fourier Transform (QFT), has remarkably the polylog
complexity
O
((log
N
)
2
), i.e. a polynomial of log
N
, see [14]. The solution of the RVE problem on a quantum computer
requires, beyond QFT and the already mentioned state preparation, the implementation of simple algebraic operations,
like the division by a scalar, in the Fourier space. To this end, we first approximate functions by piecewise polynomials
using Chebyshev interpolation and subsequently encode the polynomials utilising a sequence of elementary rotation
gates [41, 45]. Furthermore, we propose a quantum version of the fixed-point iteration to minimise the number of
costly measurement operations.
2. Computational homogenisation
We review the computational homogenisation of periodic composites with a scalar solution field governed by the
non-homogenous Poisson equation [29, 31, 32]. Such problems arise, for instance, in electrical and heat conduction,
flow in porous media or antiplane elasticity. In computational homogenisation the solution field is determined by
solving iteratively a sequence of macroscopic specimen level and microstructure level problems. The gradient of the
solution field of the specimen-level problem serves as the input to the microstructure-level problems. In turn, the
specimen level fluxes are obtained by averaging the microstructure level fluxes.
2.1. Problem formulation
The microstructure-level problem is given by the representative volume element (RVE). We refer to this problem
as an RVE even in the one and two-dimensional case as typical in the literature. We assume an RVE domain in the
shape of the square
□
=
(0
,
L
)
2
∈
R
2
with an edge length of
L
, and the coordinates of the points
x
∈
□
are denoted
by
x
=
(
x
0
x
1
)
T
. Note that the microstructure level problem is usually referred to as an RVE even in case of one and
two-dimensional problems. We consider, for the sake of concreteness, an antiplane elasticity problem and name our
variables accordingly. The shear modulus
μ
(
x
) in the RVE is periodic, i.e.,
μ
(
x
0
,
x
1
)
=
μ
(
x
0
+
L
,
x
1
)
=
μ
(
x
0
,
x
1
+
L
)
.
(1)
Furthermore, the RVE is subject to the uniform average strain vector
γ
∈
R
2
determined by solving the macroscopic
specimen level problem. The respective deformation of the RVE is characterised by a scalar transverse displacement
field
u
(
x
)
∈
R
with the shear strain vector
γ
(
x
)
=
∇
u
(
x
)
,
(2)
where
∇
denotes the gradient operator and
γ
(
x
)
∈
R
2
. The displacement field
u
(
x
)
∈
R
consists of an a
ffi
ne component
due to the applied
γ
and a fluctuating component
v
(
x
) so that
u
(
x
)
=
γ
·
x
+
v
(
x
)
,
(3)
which implies the strain decomposition
γ
(
x
)
=
γ
+
∇
v
(
x
)
.
(4)
The fluctuating displacement
v
(
x
)
∈
R
must satisfy the periodicity condition
v
(
x
0
,
x
1
)
=
v
(
x
0
+
L
,
x
1
)
=
v
(
x
0
,
x
1
+
L
)
.
(5)
The decomposition (4) and the periodicity condition (5) ensure that the applied
γ
is indeed the average strain
1
L
2
Z
L
0
Z
L
0
γ
d
x
0
d
x
1
=
1
L
2
Z
L
0
Z
L
0