mod04lec21 - Variational Quantum Eigensolver

NPTEL-NOC IITM
11 Oct 202225:22

Summary

TLDRThis video script delves into the Variational Quantum Eigensolver (VQE), a quantum algorithm pivotal for quantum chemistry simulations. It elucidates the VQE's three-part name—variational, quantum, and eigensolver—each integral to its function. The script outlines the quantum-classical hybrid optimization loop, detailing the role of the Hamiltonian mapping, trial state preparation, and the optimizer's selection. It underscores challenges in fermionic-to-qubit mapping, initial state preparation, and optimizer efficiency. The script also discusses the importance of the variational principle in ensuring the cost function's faithfulness and the implementation's efficiency, providing insights into quantum chemistry's quest for minimum energy states and inter-atomic distances.

Takeaways

  • 🌟 The Variational Quantum Eigensolver (VQE) is a quantum algorithm used primarily for quantum chemistry simulations, focusing on finding the ground state energy of molecules.
  • 🔍 VQE is composed of three parts: 'variational' from the variational principle in quantum mechanics, 'quantum' referring to the quantum computing aspect, and 'eigensolver' which is about diagonalizing matrices to find eigenvalues and eigenstates.
  • 📈 The algorithm involves a hybrid quantum-classical optimization loop where a cost function, typically the energy of a system, is implemented on the quantum side and parameters are tuned by a classical optimizer.
  • 🧬 Quantum chemistry simulations aim to efficiently simulate the behavior of molecules, treating electrons as fermions described by a fermionic Hamiltonian.
  • 🔄 A key challenge in VQE is the transformation from a fermionic problem to a qubit Hamiltonian, which requires translating a complex system into a form understandable by quantum hardware.
  • 📊 The trial state preparation and the choice of an appropriate classical optimizer are crucial for the efficiency of VQE, as they directly impact the algorithm's ability to find the optimal solution.
  • 💡 The variational principle ensures that the energy of any trial state in the VQE will be greater than or equal to the ground state energy, making the cost function faithful to the goal of finding the ground state.
  • 🛠️ The implementation of VQE involves creating parameterized quantum circuits with layers of single and entangling gates, which are varied to explore the state space and find the minimum energy state.
  • 📉 The measurement part of the VQE process involves computing expectation values for different terms in the Hamiltonian, which requires careful consideration to minimize the number of calls to the quantum hardware.
  • 🔧 The choice of classical optimizer is critical, with techniques like the Simultaneous Perturbation Stochastic Approximation (SPSA) being used for their efficiency in making only a few calls per iteration.

Q & A

  • What is Variational Quantum Eigensolver (VQE)?

    -VQE is a quantum algorithm used for simulating quantum chemistry problems. It is a type of variational quantum algorithm designed to find the ground state energy of molecules by minimizing the expectation value of a Hamiltonian operator.

  • What are the three parts of the VQE name?

    -The three parts of the VQE name are 'variational', 'quantum', and 'eigensolver'. 'Variational' comes from the variational principle in quantum mechanics, 'quantum' refers to the application of quantum physics or computing, and 'eigensolver' is about diagonalizing a matrix to find its eigenvalues and eigenstates.

  • How does VQE apply to quantum chemistry simulation?

    -VQE applies to quantum chemistry simulation by allowing the simulation of molecular systems. It uses a quantum-classical hybrid optimization loop to minimize the energy of a trial state, which represents the state of the molecules being simulated.

  • What is the role of the quantum circuit in VQE?

    -In VQE, the quantum circuit is a parameterized circuit that prepares the trial state based on the parameters tuned by the classical optimizer. The quantum computer then measures the expectation value of the energy for that trial state.

  • What is the Hamiltonian mapping portion in VQE?

    -The Hamiltonian mapping portion in VQE is the process of transforming the fermionic Hamiltonian, which describes the system of molecules, into a qubit Hamiltonian that can be understood and processed by the quantum computer.

  • Why is the initial trial state preparation important in VQE?

    -The initial trial state preparation is important because it sets the starting point for the optimization process. The choice of the initial state can significantly affect the efficiency and success of finding the global minimum energy state.

  • What challenges are there in the mapping from fermionic to qubit Hamiltonian?

    -The challenges in mapping from fermionic to qubit Hamiltonian include reducing the size and complexity of the Hamiltonian for efficient simulation on quantum hardware, while maintaining accuracy. This is an active area of research with various techniques being explored.

  • How does the variational principle relate to the VQE algorithm?

    -The variational principle in VQE ensures that the energy of any trial state will always be greater than or equal to the ground state energy. This principle guarantees that the cost function used in the optimization process is faithful, meaning that minimizing the trial state energy will lead to the ground state energy.

  • What is the significance of the entangling gates in the VQE quantum circuit?

    -Entangling gates in the VQE quantum circuit are significant because they create entanglement between qubits, allowing the quantum system to explore a more extensive portion of the state space. This increased exploration helps in finding a state closer to the true ground state.

  • Why is the choice of classical optimizer important in VQE?

    -The choice of classical optimizer is important in VQE because it directly affects the efficiency and effectiveness of finding the minimum energy state. The optimizer must be capable of navigating the complex energy landscape with a limited number of quantum hardware calls.

  • What is the role of the Born-Oppenheimer approximation in VQE?

    -The Born-Oppenheimer approximation in VQE allows for the simplification of the quantum chemistry problem by treating the nuclei as fixed and focusing on the electrons and their interactions. This approximation is useful for systems with lower energy and where the mass of the nucleus is significantly different from that of the electrons.

Outlines

00:00

🔬 Introduction to Variational Quantum Eigensolver (VQE)

The paragraph introduces the Variational Quantum Eigensolver (VQE), a quantum algorithm designed for quantum chemistry simulations. It explains the three parts of the name: 'variational' from the variational principle in quantum mechanics, 'quantum' referring to the quantum computing aspect, and 'eigensolver' which is about diagonalizing matrices to find eigenvalues and eigenstates. The VQE algorithm is part of a quantum-classical hybrid optimization loop, where a quantum circuit with tunable parameters is adjusted by a classical optimizer to minimize the cost function, often representing the energy of a molecular system. The quantum computer provides the cost function values, while the classical computer updates the parameters. The paragraph also discusses the importance of choosing the right optimizer and the challenges in mapping fermionic problems to qubit representations.

05:01

🌐 Challenges in Quantum Chemistry Simulation

This paragraph delves into the challenges faced in quantum chemistry simulations using VQE. It highlights the need to map complex fermionic Hamiltonians to qubit Hamiltonians, which is non-trivial and an active area of research. The goal is to reduce the size of the Hamiltonian for better simulation on quantum hardware, possibly with trade-offs in approximations. The paragraph also discusses the importance of preparing an effective initial trial state and choosing a classical optimizer that can work efficiently within the limitations of current quantum hardware. It uses the example of a simple two-electron molecule to illustrate the concept of finding the minimum energy state, which is a key objective in quantum chemistry.

10:03

🔍 Detailed Explanation of VQE Components

The paragraph provides a detailed look at the components of the VQE algorithm. It explains the process of translating a fermionic Hamiltonian into a qubit Hamiltonian using techniques like the Jordan-Wigner or Bravyi-Kitaev transformations. It also discusses the variational principle, which ensures that the energy of any trial state is at least as high as the ground state energy, thus guiding the optimization process. The paragraph further describes the implementation of the quantum circuit, which involves alternating layers of single-qubit gates and entangling gates, and how the number of layers affects the exploration of the state space. It concludes with a discussion on the measurement process, which involves computing expectation values for different terms in the Hamiltonian.

15:05

🛠️ Quantum Circuit Design and Measurement

This paragraph focuses on the design of the quantum circuit used in VQE and the measurement process. It describes how the trial state is prepared using a series of quantum gates, including single-qubit rotations and entangling operations. The paragraph explains the trade-off between the depth of the quantum circuit and the hardware's ability to maintain coherence and accuracy. It also discusses the measurement process, where expectation values for different Hamiltonian terms are calculated. The paragraph emphasizes the importance of reducing the number of terms in the Hamiltonian to minimize the number of calls to the quantum hardware, which is crucial for efficient computation.

20:07

📉 Classical Optimization in VQE

The paragraph discusses the role of the classical optimizer in the VQE algorithm. It describes the optimizer's task of navigating the complex cost function landscape to find the global minimum, which corresponds to the ground state energy of the system. The paragraph introduces the SPSA (Simultaneous Perturbation Stochastic Approximation) technique, which is used for its efficiency in making only two calls per iteration to the quantum hardware. The paragraph also touches on the importance of the initial parameters provided to the optimizer, as they can significantly affect the likelihood of finding the global minimum amidst potential local minima.

25:08

🧪 Practical Application of VQE in Quantum Chemistry

The final paragraph highlights the practical application of VQE in quantum chemistry by referencing an experiment where the algorithm was used to calculate the energy of known molecules on actual quantum hardware. It implies the translation of theoretical concepts into experimental practice, showcasing the potential of VQE for real-world quantum chemistry simulations.

Mindmap

Keywords

💡Variational Quantum Eigensolver (VQE)

VQE is a quantum algorithm used for finding the ground state energy of molecules, which is crucial in quantum chemistry. It operates by preparing trial quantum states and measuring their energies through a hybrid quantum-classical optimization loop. In the script, VQE is highlighted as one of the first variational algorithms, tailored for quantum chemistry applications, emphasizing its importance in simulating molecular behavior.

💡Quantum Chemistry Simulation

Quantum chemistry simulation refers to the use of quantum computing to model the behavior of molecules and their chemical reactions. It is central to the video's theme as it illustrates the practical application of VQE. The script discusses how VQE can be used to simulate the behavior of molecules efficiently, focusing on finding the minimum energy state of a system.

💡Hamiltonian

In the context of the video, the Hamiltonian represents the total energy of a quantum system, often used in quantum chemistry to describe molecular systems. It is a key component in VQE as the algorithm aims to find the ground state energy of the Hamiltonian. The script mentions the need to map the fermionic Hamiltonian, which describes electrons, to a qubit Hamiltonian that can be processed by quantum hardware.

💡Parameterized Circuit

A parameterized circuit in quantum computing refers to a quantum circuit where certain parameters can be adjusted to change the circuit's behavior. In VQE, these circuits are used to prepare trial states, with parameters tuned by a classical optimizer to minimize the energy expectation value. The script explains that the quantum circuit implemented is parameterized, and the parameter is what is tuned by the classical optimizer.

💡Eigensolver

An eigensolver is a method for finding eigenvalues and eigenvectors (eigenstates) of a matrix, which is essential in diagonalizing a matrix. In quantum computing, it is used to find the energy levels and states of a quantum system. The script describes eigensolvers as a way to diagonalize a matrix to know the eigenvalue along with the eigenstate, which is a fundamental process in VQE.

💡Quantum-Classical Hybrid Loop

This refers to the iterative process where a quantum computer prepares and measures quantum states, and a classical computer processes the results and sends back optimized parameters. It is a core aspect of VQE, as highlighted in the script, where the quantum computer returns the energy of a trial state, and the classical optimizer adjusts the parameters to find the optimal value.

💡Fermionic Hamiltonian

A fermionic Hamiltonian is a mathematical description of a system of fermions, like electrons in a molecule. The script discusses the transformation from a fermionic problem, which is the generic form of the system, to a qubit Hamiltonian that can be processed by quantum hardware, emphasizing the complexity of this translation.

💡Qubit Representation

Qubit representation is the method of encoding information in a quantum computer using qubits, which can be in a state of 0, 1, or a superposition of both. The script mentions the need for a transformation from a fermionic problem to a qubit representation, which is the binary-like system understood by quantum hardware.

💡Entanglement

Entanglement is a quantum phenomenon where the state of one particle becomes dependent on the state of another, even when separated by large distances. In the script, entanglement is discussed as a crucial part of the quantum circuit in VQE, where layers of entangling gates are used to create complex, entangled states that can represent the molecular system more effectively.

💡Classical Optimizer

A classical optimizer is an algorithm running on classical computers to find the minimum or maximum of a function. In VQE, it is used to tune the parameters of the quantum circuit to minimize the energy expectation value. The script mentions the importance of choosing the right optimizer that can work efficiently with the limitations of quantum hardware, such as the number of circuit layers and measurements.

💡Born-Oppenheimer Approximation

The Born-Oppenheimer approximation is a simplification used in quantum chemistry where the motion of electrons is considered independently of the motion of the nuclei. The script refers to this approximation when discussing the electronic Hamiltonian, explaining that it allows for the focus on electron interactions while treating the nucleus as fixed, which simplifies calculations.

Highlights

Introduction to the Variational Quantum Eigensolver (VQE), a quantum algorithm designed for quantum chemistry simulations.

Explanation of the three components in VQE: variational, quantum, and eigensolver, each playing a crucial role in the algorithm.

Description of the quantum-classical hybrid optimization loop central to VQE, where the quantum computer and classical optimizer work in tandem.

Importance of parameterized quantum circuits in VQE and their tuning by classical optimizers.

Challenge of Hamiltonian mapping in quantum chemistry, translating fermionic problems into qubit Hamiltonians.

Discussion on the active research area of reducing Hamiltonian complexity in quantum chemistry simulations.

The role of initial state preparation in VQE and its impact on the efficiency of quantum chemistry simulations.

Overview of the quantum chemistry simulation process, including the simulation of molecular behavior and identification of minimum energy states.

Insight into the fermionic Hamiltonian and its components: kinetic, potential, and interaction energies.

The Born-Oppenheimer approximation in quantum chemistry, simplifying calculations by treating the nucleus as fixed.

The goal of quantum chemistry simulations: finding the ground state energy and the corresponding molecular distance.

Details on the implementation of VQE, including the structure of the quantum circuit and the role of entangling gates.

Trade-offs in the design of quantum circuits, balancing depth and entanglement for optimal results.

Measurement process in VQE and how it contributes to calculating the expectation value of the Hamiltonian.

The classical optimizer's role in VQE, selecting the best parameters to minimize the energy of the trial state.

The use of the SPSA (Simultaneous Perturbation Stochastic Approximation) technique in the classical optimizer for efficient parameter tuning.

Practical demonstration of VQE in quantum chemistry, calculating the energy of known molecules using actual quantum hardware.

Transcripts

play00:01

[Music]

play00:14

in this section we're going to

play00:16

talk about variational quantum

play00:17

eigensolver it's a particular

play00:20

application particular version of

play00:21

quantum variational quantum algorithm

play00:24

and it's we're going to see its

play00:25

application in quantum chemistry

play00:27

simulation

play00:28

remember that

play00:29

vqe

play00:30

was one of the first algorithms that

play00:32

came on the variational side

play00:34

and it was tuned to quantum chemistry

play00:37

application there are three parts in

play00:39

this name as you can see variational

play00:41

quantum and eigensolver variational

play00:44

comes from variational principle and

play00:45

quantum mechanics we're going to see

play00:47

that a little bit uh about that in

play00:49

detail

play00:50

quantum naturally stands for quantum

play00:52

physics or quantum computing as you

play00:54

would want to see it eigen solver is

play00:57

essentially a way

play00:59

to diagonalize the matrix to know the

play01:01

eigen value along with the eigen state

play01:03

of a particular matrix so when you take

play01:05

a generic matrix and you want to

play01:07

diagonalize it you can transform it and

play01:09

finally get into a form where it is

play01:10

diagonal and that

play01:13

diagonalization process is what is as

play01:15

called as an eigen solver at the end of

play01:17

it you're going to get the eigen values

play01:19

and the corresponding eigen states okay

play01:22

so we saw this picture at least at the

play01:24

lower half of the picture from the

play01:26

variational quantum algorithm discussion

play01:29

so you have a quantum classical hybrid

play01:31

optimization loop

play01:33

where you have some aspect of the cost

play01:35

function implemented in quantum and the

play01:37

classical optimization tunes the

play01:39

parameter that goes into this

play01:41

parameterized circuit remember the

play01:42

quantum

play01:43

circuit that we implement is a

play01:45

parameterized circuit and the parameter

play01:47

is what is tuned by the classical

play01:49

optimizer running in a classical

play01:50

hardware the quantum computer returns

play01:53

the cost function or in this case the

play01:55

energy

play01:56

of that particular

play01:58

trial state and the quantum classical

play02:01

optimization tunes and the job of it is

play02:03

to find the optimal value

play02:06

remember in the previous discussion we

play02:08

talked about input going into this um

play02:10

loop uh in this particular case of vqe

play02:14

there is what is called as a hamiltonian

play02:15

mapping portion we are going to talk

play02:17

about that and naturally the trial state

play02:20

the initial triad state the and sets

play02:22

and then subsequently the optimization

play02:24

loops takes over and the parameters are

play02:26

tuned

play02:27

and then the handsets actually sets the

play02:30

quantum circuit that gets implemented so

play02:32

it is very important and then the

play02:34

optimizer what are what is the kind of

play02:36

optimizer you want to choose and set it

play02:39

up so that it works efficiently in the

play02:41

quantum hardware system that we have

play02:45

so here is the solution framework

play02:47

remember what we are talking about here

play02:49

is a quantum chemistry simulation which

play02:51

means that we have system of molecules

play02:53

we want to be able to simulate its

play02:54

behavior efficiently

play02:57

molecules

play02:58

we can look at it as a fermionic problem

play03:00

so the electrons are fermions

play03:03

the description of it is in a particular

play03:05

form factor called a fermionic

play03:08

hamiltonian and it's typically

play03:09

generically called as a fermionic

play03:11

problem

play03:12

remember the quantum computer

play03:14

is a binary system it has two levels

play03:17

only zero and stage zero and state one

play03:21

so it is what we call as a qubit

play03:23

hamiltonian so it has a qubit

play03:25

representation uh for intuitive purposes

play03:28

think of it this way our general world

play03:31

works on decimal numbers however when

play03:33

you run it in the actual classical

play03:35

hardware it runs in binary so there

play03:37

needs to be a way to transform

play03:39

the decimal number system into a binary

play03:42

number system the binary number system

play03:44

is what is understood by the classical

play03:46

hardware

play03:47

much like that

play03:48

in the quantum space you have a generic

play03:51

system called a fermionic problem but

play03:53

our hamiltonian or what runs in the

play03:56

quantum hardware is a qubit hamiltonian

play03:58

so there needs a transformation from

play04:00

this generic into a specific form factor

play04:03

that we have in a quantum computer so we

play04:05

need to be able to translate this and

play04:07

this is a non-trivial problem

play04:09

and that's why we highlight this we need

play04:11

a classical cost function remember we

play04:14

talked about tuning of the parameters

play04:16

and that prepare and then we prepare the

play04:18

trial state the using the quantum

play04:20

circuit in this picture the classical is

play04:22

shown in the left and quantum is shown

play04:24

in the right but the idea is the same so

play04:26

you have the

play04:28

quantum state prepared psi of theta

play04:30

theta being the parameter and then you

play04:33

get the measurement measure the

play04:34

expectation values and that's what goes

play04:36

to the classical and the classical

play04:39

pieces together that and computes the

play04:41

total energy and then it tunes the

play04:43

parameters so that it finds some optimal

play04:46

things

play04:47

what are the challenges here

play04:48

each step of the way there is a

play04:50

challenge and it's an active area of

play04:52

research

play04:54

the mapping from homeonic to cubic

play04:56

uh this is important because while there

play04:59

are different mechanisms already

play05:01

existing that can do this there are

play05:03

certain tuning that we can potentially

play05:05

do

play05:06

the lesser the size of the hamiltonian

play05:08

that we need to simulate the better it

play05:10

is in the nest hardware so any

play05:12

optimization any learning that we can

play05:14

have any anything that can reduce the

play05:18

complexity of the hamiltonian on the

play05:20

cubit side as part of this

play05:21

transformation is always helpful so

play05:24

there is an active area of research to

play05:26

figuring out how to reduce

play05:28

this hamiltonian even more

play05:30

with in some cases with trade-offs in

play05:32

terms of approximations and in some

play05:34

cases um

play05:36

exact ones so there are various

play05:37

techniques that are used uh to do this

play05:40

and it's an active area of research the

play05:42

other active area of research you would

play05:43

have guessed by now is the initial state

play05:45

preparation we have talked about this a

play05:46

lot in the variational quantum algorithm

play05:48

section um so what is the trial state

play05:52

that we're going to prepare that answers

play05:54

the quantum circuit that we're going to

play05:55

implement the parameterization of that

play05:57

quantum circuit

play05:59

that becomes important

play06:01

and then you have the classical

play06:02

optimizer so what kind of optimizer

play06:06

can leverage the system that we

play06:09

currently have and the limitation of the

play06:11

hardware for example it can't be too

play06:13

deep a circuit and the number of

play06:15

measurements number of runs of that

play06:17

quantum has to be reduced any optimizer

play06:19

that can do that kind of

play06:21

tricks and get benefit from it will

play06:24

always be beneficial so there is a host

play06:26

of optimizers that is available out

play06:27

there we can pick and choose based on

play06:29

the problem at hand and see which works

play06:31

the best

play06:34

so coming to the problem at hand

play06:37

so

play06:38

quantum chemistry involves simulation of

play06:41

molecules

play06:42

so here is an example of a simple

play06:44

molecule think of it as a two electron

play06:46

system and your

play06:48

job is to find the minimum energy of

play06:50

that particular molecule

play06:52

so look at the x-axis think of it as the

play06:55

inter-atomic distance the distance

play06:58

between them the two molecules um and

play07:00

then um the energy so as we move the

play07:04

distance from it the energy landscape

play07:06

changes so if you are very close to the

play07:09

the two systems are close together it's

play07:11

in the unstable regime the energy is

play07:13

very high there is a push to move

play07:15

together and if you are in the regime

play07:17

where they are too far off they are not

play07:19

interacting much it's called as a

play07:20

dissociation regime but there is a space

play07:24

or the distance where there is certain

play07:25

equilibrium back and forth and that is

play07:27

their system that is the energy where

play07:30

you have the minimum energy and then it

play07:32

increases as the distance increases

play07:34

so your job or most of quantum chemistry

play07:37

are important problems in quantum

play07:39

chemistries um is to identify what

play07:42

distance

play07:43

do you get this minimum energy and what

play07:45

is that minimum energy these are the two

play07:48

problems that are of interest and

play07:50

finding this particular minimum energy

play07:52

is a very important aspect to quantum

play07:55

chemistry analysis

play07:58

so what is now a fermionic or an

play08:01

electronic hamiltonian so here is a bit

play08:04

of a math but i will give an intuition

play08:05

to this particular thing

play08:07

in high school physics that you may have

play08:10

done

play08:11

remember the

play08:12

the simple pendulum example so it

play08:15

oscillates

play08:16

between this and this we know that

play08:19

the total energy of the system is the

play08:20

sum of the potential energy and the

play08:22

kinetic energy you also know that in the

play08:24

pendulum case

play08:25

this point the highest point is where

play08:27

the it is all potential and when it gets

play08:30

to the

play08:31

equilibrium point at the middle is where

play08:33

it's all kinetic and it's back to

play08:34

potential so you know that there are two

play08:37

energies to it one is potential and

play08:39

kinetic much like that you have the same

play08:41

thing represented here you have the

play08:43

kinetic and you have the potential

play08:45

energy and then here is the interaction

play08:47

part remember even in the classical

play08:49

physics

play08:50

when you go from here to here there is a

play08:52

change from potential to kinetic right

play08:55

so there is a way to go from potential

play08:57

to kinetic here there is an interaction

play09:00

between the different

play09:02

electrons so electrons are there there

play09:04

is an energy of that electron visa with

play09:06

the nucleus and the rotation etcetera

play09:08

that it has all this is captured in the

play09:10

kinetic and potential but the

play09:12

interactions between the two electrons

play09:15

is what this term is let's think of this

play09:17

as the total energy of this system note

play09:20

that we have the subscript e which means

play09:22

that it's a hamiltonian of the

play09:24

electronic system only doesn't include

play09:26

the nucleus part um this is in what is

play09:28

called as a born-oppenheimer

play09:30

approximation regime this is generally a

play09:32

good approximation where you can think

play09:34

of nucleus as fixed and you can sort of

play09:37

move that away and just focus on the

play09:39

electrons and its interaction um much

play09:41

like

play09:42

for us

play09:43

in the broader scheme of things we treat

play09:46

sun as something physically fixed and

play09:48

everything else we do it with respect to

play09:50

the sun central

play09:52

sun is the center and everything is

play09:53

around it and you have relatively

play09:55

relative to this position of this sun we

play09:58

do the calculations and that works out

play10:00

quite well uh we know that

play10:02

the sun and the solar system is not

play10:04

fixed in space uh it roams around in the

play10:07

galaxy and indeed in the universe so

play10:09

it's not something absolutely fixed but

play10:11

that approximation works out because

play10:13

what we are interested in is the

play10:15

relative

play10:17

positions of these planets and their

play10:19

interactions much like that

play10:21

this approximation sort of takes the

play10:23

nucleus part of it away and focuses just

play10:25

on the

play10:26

electron part and that works out well

play10:28

for

play10:29

systems that have lower energy

play10:31

primarily because nucleus

play10:33

the mass of the nucleus and electron is

play10:35

so different so that approximation works

play10:37

out quite well so what are we solving

play10:39

for uh as you as described earlier what

play10:43

we want to identify are two things what

play10:45

is the ground state

play10:47

uh in the previous page

play10:49

the location the distance

play10:51

think of it as an example so what is the

play10:54

state and what is the value of the

play10:56

energy of that ground state that is what

play10:58

we are trying to solve

play11:02

now uh these are details and this is the

play11:04

second order approximation you can

play11:06

expand that um particular electronic

play11:08

habitonian in the second order

play11:10

much like a taylor series type expansion

play11:12

you can expand that out

play11:15

and there are different approaches to go

play11:17

from the fermionic system to the qubit

play11:20

system so jordan wigner is a popular one

play11:22

driving is another one there are

play11:25

multiple of these available

play11:27

that takes this as input this

play11:29

hamiltonian and translates that into

play11:31

what is called as a qubit hamiltonian

play11:33

again remember we are going for example

play11:36

an intuition is going from a decimal

play11:38

number system to a binary number system

play11:40

for example now think of it that way

play11:42

um so you're translating that and there

play11:44

are

play11:45

systematic way of doing it these are

play11:47

non-trivial

play11:49

things but

play11:50

the system exists to go from this

play11:53

hamiltonian to this hamiltonian which is

play11:55

what

play11:56

the qubit system understands

play12:00

so there are many tradeoffs involved as

play12:02

i mentioned so it's an active area of

play12:04

research to reduce

play12:06

these

play12:07

number of

play12:08

number of components of this hamiltonian

play12:11

there is active area of research there

play12:12

the lesser it is the better it is

play12:16

this is an important

play12:18

actually very intuitive but very

play12:20

important principle the variational part

play12:22

in the variational algorithms is from

play12:24

the variational principle

play12:26

so what is the idea so remember in this

play12:30

hybrid loop where you have the classical

play12:33

talking to the quantum

play12:35

you pass the parameters to the quantum

play12:37

it prepares the trial state and computes

play12:39

the energy of that particular trial

play12:41

state and gives that system back the

play12:44

trial state is represented by the psi of

play12:46

theta

play12:47

h is the hamiltonian as we discussed in

play12:49

the previous chart that is the energy of

play12:51

the system and this is the expectation

play12:53

value so this one on the numerator is

play12:56

telling you what is the energy of the

play12:57

system and this is the normalization

play12:59

factor so let's ignore this for the

play13:00

present let's just look at the numerator

play13:03

um so

play13:05

eg is the actual ground state energy of

play13:07

the system what this variational

play13:09

principle basically tells you is that

play13:12

energy of the trial state will always be

play13:15

greater than equal to the ground state

play13:16

energy which seems straightforward in

play13:18

the sense that

play13:19

any

play13:20

any particular theta value that is not

play13:22

the ground state by definition ground

play13:25

state is the lowest energy of a

play13:27

particular system which means that that

play13:29

is the minimum of that particular system

play13:31

so any state of that system

play13:34

should necessarily be greater than the

play13:36

energy of any state of the system should

play13:38

necessarily be greater than that of the

play13:40

ground state that's what this one is

play13:41

telling you

play13:42

and this

play13:44

ties in with

play13:46

the

play13:47

the principles of the cost function from

play13:48

before remember um

play13:50

we we we had that faithfulness and

play13:54

easily estimatable as two important

play13:56

qualities of the cost function here this

play13:59

inequality uh demo

play14:02

tells us that it is faithful that is if

play14:04

i minimize this i will necessarily be

play14:07

getting to the ground state there is no

play14:09

uh difference in here and therefore this

play14:12

cost function of energy of that

play14:14

hamiltonian calculating the energy of

play14:16

the hallmate onion is um is faithful to

play14:19

what we want to solve that is to find

play14:21

the

play14:22

eg or the energy of the ground state and

play14:25

this particular inequality

play14:27

ensures that the faithfulness of the

play14:29

cost function is determined the

play14:30

implementation part we will see it

play14:33

subsequently in terms of the two second

play14:35

part of it was can i implement this

play14:37

efficiently and that part we will see in

play14:40

the next portions

play14:43

so the actual implementation now we have

play14:45

little bit more detail the same

play14:47

classical quantum hybrid uh

play14:50

structure that we saw before is what is

play14:52

shown here

play14:53

so what you're seeing is on the left is

play14:55

the quantum part on the right is the

play14:57

classical optimizer giving the parameter

play15:00

value theta going into the string

play15:02

the qubit hamiltonian is represented by

play15:04

this in generic form

play15:07

so psi g of theta this is the trial

play15:09

state is the is at this point in time so

play15:12

we will get into this details shortly

play15:15

but at this point after

play15:17

all these

play15:18

gates are performed you get into this

play15:20

trial state corresponding to the

play15:22

parameter theta and then this portion

play15:25

measure does the measurement part and

play15:27

get the results out so what do we have

play15:29

here in this particular thing

play15:31

um so all the initial the initial state

play15:34

of all the qubits in this case there are

play15:35

six qubits shown um is set to zero by

play15:39

default they are all reset to zero

play15:41

then what you have is an alternate um

play15:44

operations so first you have a layer of

play15:47

single qubit gates then u and n stands

play15:50

for entangling it this is uh two qubit

play15:52

gate it could be a c naught it could be

play15:54

a control z or any of those two

play15:57

multi-qubit gate operations basically it

play16:00

is entangling uh the system

play16:02

and then you have another single qubit

play16:05

gate so

play16:06

what you have is sandwich of

play16:08

entanglement between two cubicles and

play16:10

you can do this n number of times you

play16:12

see the d here is stacking of this

play16:15

in d number of times

play16:17

the more layers they are the more likely

play16:20

the department gets which is bad from

play16:23

the hardware standpoint we don't want

play16:25

too deep a circuit too but the plus for

play16:28

the reason for doing that if at all is

play16:30

more deeper it gets the more entangled

play16:32

state it gets the more state it explores

play16:34

in the state space as you know the

play16:36

quantum system has exponential state

play16:38

space a significant majority of them are

play16:40

entangled states so the more entangled

play16:42

they are you go into those more

play16:44

exponential parts of the states and you

play16:47

are likely to find better answers so

play16:49

there is always a trade-off involved in

play16:52

terms of

play16:53

how many how much of entanglement do you

play16:55

do in each layer and how many of these

play16:57

layers do you stack

play16:58

this is a function of what we have in

play17:00

the hardware the lifetime the noise

play17:03

profile of that particular hardware it

play17:05

will be a combination of this to choose

play17:07

the right settings

play17:08

for these particular parameters the the

play17:11

kind of entangling you want to do that

play17:13

is you end and the number of layers that

play17:16

you want to stack one after the other

play17:18

this portion is the measurement part

play17:20

we'll cut to in detail so at the end of

play17:22

it you will get the expectation value so

play17:24

what you get here this is um

play17:26

i've shown it little bit

play17:28

in a generic sense but really what you

play17:30

get from a single execution of this is

play17:33

the inner portion of this summation

play17:35

which is the expectation of value of

play17:38

sigma alpha remember hamiltonian is

play17:41

summation over the sigma alpha the sigma

play17:43

alpha

play17:45

is a set of poly strings applied on each

play17:47

of these qubits the poly gates applied

play17:50

on each of this qubit what you get by

play17:52

single execution of this particular

play17:54

quantum circuit is the expectation value

play17:56

of

play17:56

this particular energy we need to do n

play17:58

number of sampling the number of shots

play18:00

for each of them to get the

play18:02

right value expectation value and then

play18:05

you have a pre-factor and then the

play18:06

summation actually e of theta is

play18:09

actually done in a classical hardware

play18:11

inside um what i have shown for

play18:13

simplicity is the e of theta is what is

play18:15

get from quantum but that's not actually

play18:17

true the summation of a portion of this

play18:20

equation is done in classical hardware

play18:22

before going to the classical optimizer

play18:25

but for simplicity i've shown it as e of

play18:27

theta here but what you actually get out

play18:29

of a particular quantum

play18:31

execution is this expectation value of

play18:34

sigma alpha

play18:36

okay so that is the energy measure and

play18:38

the classical optimizer then goes into

play18:40

this classical optimization part

play18:43

so let's go to the trial state

play18:44

preparation

play18:46

so

play18:47

as you saw you have the single dates so

play18:49

if you see the notation of it

play18:52

so the first index here is stands for

play18:55

the qubit number

play18:56

and

play18:58

the second index stands for the layer so

play19:00

for example this is qubit number one

play19:02

this is layer 0 this is layer 1 and you

play19:05

have so on so forth so this is a one

play19:07

time operation the single qubit

play19:09

layer here and this forms one group that

play19:12

is entangling followed by single qubit

play19:14

so if you have say two of this you have

play19:17

the first layer which is

play19:18

this as indicated then you have the u

play19:21

entangling and the single qubit layer

play19:22

and then you have one more of it if it

play19:24

is d equal to 2 you will have 2 of this

play19:27

that's what gets done

play19:29

so um each

play19:31

the parameter theta k is shown as a

play19:33

vector here but actually

play19:35

think of each of them as the parameter

play19:37

value theta

play19:39

for

play19:40

that particular

play19:41

location in a way so you will get all

play19:43

these values

play19:45

the theta vector coming from the

play19:47

classical optimizer

play19:49

so the entangling gates as i mentioned

play19:51

is two qubit operations sandwiched

play19:53

between the single qubit rotations right

play19:55

d is the number of layers that we

play19:57

do the choice the circuit that we end up

play20:01

doing this the quantum circuit here

play20:04

is what is the colon and sats now this

play20:06

is as you can variable see is in a

play20:08

parameterized circuit what kind of

play20:10

handsets

play20:11

do we do a traditional or a hardware

play20:14

sensitive ones earlier we did discuss in

play20:16

detail about different ways of doing

play20:18

hardware and assets

play20:20

problem inspired problem agnostic and so

play20:22

forth problem inspired is what's very

play20:25

useful at least uh in this particular

play20:27

paper and the subsequent hardware

play20:29

implementation of this that was

play20:30

demonstrated by ibm um it was a problem

play20:34

inspired handsets uh coming from quantum

play20:36

chemistry uh that was used and uh also

play20:39

there are other

play20:41

more advanced and such more recent ad

play20:43

and such that was derived that are

play20:45

sensitive to hardware noise and those

play20:47

are the hardware sensitive ones that we

play20:49

have so this one

play20:51

is a craft to find the right handsets

play20:54

and how to use them and also make it

play20:56

sensitive to the hardware that we have

play20:59

the second part is the measurement part

play21:02

remember the hamiltonian that the qubit

play21:04

hamiltonian i've just expanded out the

play21:06

summation here is a sample hamiltonian

play21:08

for example for this q six uh in this

play21:11

example i'm showing it for four qubits

play21:13

one two three four this example on the

play21:16

plot here shows six qubit but

play21:17

nonetheless for simplicity there's a

play21:19

four qubit example

play21:21

so what this one is showing is that uh

play21:23

we have um we have to do uh the

play21:25

expectation value so the number of calls

play21:28

uh to the quantum circuit is 4 because

play21:32

you have to compute

play21:33

the expectation value for each of these

play21:35

strings

play21:37

for example x y z x z 0 x and so on and

play21:40

so forth so each call

play21:43

needs to be made so each of them

play21:44

corresponds to a call to the quantum

play21:46

circuit

play21:47

there is typically one layer of rotation

play21:50

needed for this qubit hamiltonian

play21:52

followed by the measurement in the basis

play21:54

state which is the c basis so this

play21:57

rotation is based on the particular

play21:59

value be it x y or z if it is z or z

play22:03

there is no rotation needed you apply an

play22:05

identity but in other cases you may have

play22:07

to do a single qubit rotation before

play22:09

measuring

play22:10

uh note that the number of calls is

play22:13

proportional to the summation the number

play22:15

of summation terms that we have each

play22:17

term needs needs to be averaged to get

play22:19

the result and then finally to calculate

play22:20

the expectation value the lesser the

play22:23

number of strings the number of these

play22:25

terms the better it is because we don't

play22:26

have to go to the quantum each step um

play22:29

so there are a lot of opportunities to

play22:32

tune this um for example in the

play22:34

radiation quantum algorithm section we

play22:36

talked about uh communicative property

play22:38

non-commuting portions using the

play22:40

commuting property to eliminate some

play22:43

aspects of

play22:44

these strings so there are many

play22:46

techniques that are there to reduce the

play22:49

number of terms in this hamiltonian

play22:52

finally the classical optimizer

play22:55

so

play22:56

here is this is um classical optimizer

play22:58

what you are going to see here is not

play23:00

unique to quantum this is true of

play23:02

classical machine learning techniques as

play23:03

well

play23:04

this is an imagined uh cost function

play23:07

space so this is the say the space that

play23:09

you're looking at what you want for

play23:11

example let's say is the global minima

play23:14

which is indicated by this portion right

play23:16

here

play23:17

let's say you have no clue about this

play23:19

state this is highly non-linear as you

play23:20

can see there is a barren plateau the

play23:24

big barren plateau is right here

play23:26

if you land up here you're less likely

play23:28

to find any answer

play23:30

but there are also local minima as you

play23:31

can see there are many places where you

play23:33

can get stuck and not be able to get out

play23:35

of it

play23:36

let's say you have a trial state initial

play23:38

state the initial parameters that's why

play23:40

initial parameter again as i described

play23:42

before is very critical if you land up

play23:44

here for example the odds are that you

play23:46

will get to the global minima but if you

play23:48

land up somewhere here

play23:50

the odds are that you're going to get

play23:51

stuck somewhere in the local minima here

play23:54

then the question of one is the

play23:56

calculation part how many calls to the

play23:59

quantum hardware needs to be made that

play24:00

is important the second part is

play24:03

how do i traverse how do i move around

play24:05

in this space and that's what a

play24:06

classical optimizer does there are

play24:08

various approaches that are used

play24:10

the one that is used by ibm in this

play24:12

particular paper where this was used to

play24:14

demonstrate a chemical simulation was

play24:18

the spss simultaneous perturbation

play24:20

stochastic approximation technique um

play24:22

the key is because

play24:25

um

play24:26

the value proposition of this particular

play24:28

technique and it seems to do well with

play24:29

particularly the quantum chemistry space

play24:32

is that it makes only two calls per

play24:33

iteration

play24:35

irrespective of the optimization so for

play24:37

example what it does is you have the

play24:38

current let's say theta happens to be

play24:40

the current point seems to be here you

play24:42

get two points here based on the

play24:45

the slope of the different things it

play24:47

moves in certain direction it tries to

play24:49

find a

play24:50

technique it's it's a technique to move

play24:52

in different directions and takes it to

play24:54

it but the important point is each

play24:56

iteration requires only two calls per

play24:59

iteration which is what is very

play25:00

important we want to reduce the number

play25:01

of calls that we make now the lesser it

play25:04

is the better it is so um this is what

play25:07

is used uh in the actual hardware when

play25:10

the the experiment that was done in this

play25:12

paper

play25:13

where they run these experiments in the

play25:14

actual hard way to calculate the energy

play25:16

of

play25:17

some of the molecules that we know

Rate This

5.0 / 5 (0 votes)

Ähnliche Tags
Quantum ComputingEigensolverQuantum ChemistryVQE AlgorithmSimulationQuantum AlgorithmsFermionic ProblemHamiltonian MappingOptimizationQuantum Hardware
Benötigen Sie eine Zusammenfassung auf Englisch?