Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
A METHOD OF DETERMINING A STATE ENERGY
Document Type and Number:
WIPO Patent Application WO/2019/150090
Kind Code:
A1
Abstract:
There is provided a method for determining an energy level of a physical system using a quantum computer, wherein the energy level of the physical system is described by the summation of a plurality of summands. The method comprises performing an energy estimation routine which comprises preparing an ansatz trial state using an arrangement of quantum gates, wherein the ansatz trial state has a trial state energy dependent on a trial state variable, and estimating an expectation value of each summand respectively. The estimating comprises constructing, based on the arrangement of quantum gates, an initial quantum circuit to operate on the ansatz trial state and further comprises performing a summand expectation value determination sub- routine a plurality of times in an iterative process. The energy estimation routine further comprises summing the expectation value estimates of each summand to determine an estimate for the trial state energy. The method further comprises determining the energy level of the physical system by applying an optimisation procedure to the energy estimation routine, wherein the optimisation procedure comprises iteratively updating the trial state variable and performing the energy estimation routine a plurality of times to determine a respective trial state energy for each of a plurality of different ansatz trial states.

Inventors:
BRIERLEY STEPHEN (GB)
HIGGOTT OSCAR (GB)
WANG DAOCHEN (GB)
Application Number:
PCT/GB2019/050238
Publication Date:
August 08, 2019
Filing Date:
January 29, 2019
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
RIVER LANE RES LTD (GB)
International Classes:
G06N10/00
Other References:
NIKOLAJ MOLL ET AL: "Quantum optimization using variational algorithms on near-term quantum devices", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 3 October 2017 (2017-10-03), XP081147319, DOI: 10.1088/2058-9565/AAB822
PIERRE-LUC DALLAIRE-DEMERS ET AL: "Low-depth circuit ansatz for preparing correlated fermionic states on a quantum computer", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 3 January 2018 (2018-01-03), XP080850290
Attorney, Agent or Firm:
HAMER, Thomas (GB)
Download PDF:
Claims:
Claims

1. A method for determining an energy level of a physical system using a quantum computer, the energy level of the physical system being described by the summation of a plurality of summands; the method comprising performing an energy estimation routine comprising:

preparing an ansatz trial state using an arrangement of quantum gates, the ansatz trial state having a trial state energy dependent on a trial state variable,

estimating an expectation value of each summand respectively, the estimating comprising constructing, based on the arrangement of quantum gates, an initial quantum circuit to operate on the ansatz trial state and performing a summand expectation value determination sub-routine a plurality of times in an iterative process;

the energy estimation routine further comprising summing the expectation value estimates of each summand to determine an estimate for the trial state energy;

the method further comprising determining the energy level of the physical system by applying an optimisation procedure to the energy estimation routine, the optimisation procedure comprising iteratively updating the trial state variable and performing the energy estimation routine a plurality of times to determine a respective trial state energy for each of a plurality of different ansatz trial states.

2. The method of claim 1, wherein each iteration of the summand

expectation value determination sub-routine comprises constructing a new quantum circuit.

3. The method of claim 2, further comprising operating the newly

constructed quantum circuit on the ansatz trial state to obtain a measurement value associated with an estimate of the summand

expectation value.

4. The method of claim 3, wherein the new quantum circuit in each

iteration of the summand expectation value determination sub-routine is constructed based on the obtained measurement value.

5. The method of any of claims 2 to 4, wherein the quantum computer has an associated coherence time, T, and the new quantum circuit in each iteration of the summand expectation value determination sub-routine is constructed based on the coherence time.

6. The method of any of claims 2 to 5, wherein each iteration of the

summand expectation value estimation sub-routine further comprises generating a distribution based on the measurement value, and the iterative process comprises updating the distribution with each iteration based on the mean and standard deviation of the distribution of the previous iteration.

7. The method of claim 6, wherein estimating the expectation value of each summand comprises determining the mean of the distribution produced during a final iteration of the summand expectation value determination sub-routine, the sub-routine being performed a predetermined number of times .

Θ . The method of any preceding claim, wherein the summand expectation value determination sub-routine comprises :

operating the quantum circuit on the trial state to obtain a value, μ, associated with the estimate of the expectation value of the summand; determining an error, O, associated with the value associated with the estimate of the expectation value; and

constructing a new quantum circuit based on at least one of the determined error, a, and the current value of μ.

9. The method of any of claims 2 to 8, wherein the energy level of a

physical system is determined to a required accuracy €, and the new quantum circuit in each iteration of the summand expectation value subroutine is constructed based on the required accuracy, €.

10. The method of claim 9, wherein the new quantum circuit in each

iteration of the summand expectation value sub-routine is constructed with a complexity dependent on T and e, T being the coherence time associated with the quantum computer, and the dependence of the complexity of the new quantum circuit on T and € is given by a, wherein:

The method of any preceding claim, wherein the energy level is determined to a required accuracy, e, and the summand expectation value determination sub-routine is repeated N times, wherein N is dependent on

12. The method of any preceding claim, wherein the summand expectation value determination sub-routine is repeated N times, wherein N is based on a coherence time, T, associated with the quantum computer.

13. The method of any preceding claim, wherein determining the energy level of the physical system comprises identifying the lowest determined trial state energy.

14. The method of any preceding claim, wherein the trial state variable is updated so as to bring the trial state energy of the next ansatz trial state closer to the energy level of the physical system.

15. The method of any preceding claim, wherein, on a first time the energy estimation routine is performed, the trial state is prepared using the Hamiltonian of the physical system and/or knowledge of the possible states which may be efficiently prepared using the quantum computer.

16. The method of any preceding claim, wherein the optimisation procedure comprises repeating the energy estimation routine a plurality of times in an iterative process to determine the energy level of the physical system.

17. The method of claim 16, wherein the optimisation procedure determines a new trial state variable to be used in the next iteration of the energy estimation routine.

18. The method of any preceding claim, wherein each summand comprises an operator, optionally wherein the operator is a tensored Pauli matrix.

19. A computer readable medium comprising computer-executable

instructions which, when executed by a processor, cause the processor to perform the method of any preceding claim.

Description:
A Method of Determining a State Energy

This disclosure relates to quantum computing, and in particular to methods of determining an energy level of a physical system using a quantum computer.

Background.

It is extremely useful in many areas of technology to be able to determine the possible energy states of a physical system such as a molecule or atom. Determining how the energy is likely to change as the system is perturbed allows many molecular properties to be derived. For example, by solving the electronic Schrodinger equation for a number of nuclear geometries, it is possible to construct the potential energy surface (PES) of a molecular system. Knowledge of the PES is hugely important, particularly in the field of chemistry, as it allows scientists to determine, among other things, rates of reactions .

Many current methods of obtaining information about the energy states of physical systems rely on classical computers, which use complicated algorithms to simulate the physical system. However, such methods require an unmanageable amount of computing resources and time. It is possible to simulate systems much more efficiently on a quantum computer than is possible on a classical computer, and there has been progress in the experimental development of quantum computers using a variety of

architectures . Devices based on trapped-ions and superconducting systems are now above the threshold for fault tolerant quantum computation, meaning that the key building blocks required to scale up to large-scale fault- tolerant quantum computation have now been demonstrated.

To gain an understanding of the disadvantages of prior methods, it is useful to consider the current state of the art of quantum computing, and in particular to consider the coherence time, T, and the maximum circuit depth, D, which today's quantum computers can provide. The maximum quantum circuit depth D relates directly to the coherence time T of the quantum computer. The required circuit depth of an algorithm can be thought of as a factor which quantifies the difficulty of the problem to be calculated. For calculations in which quantum circuit gates can be executed in parallel, the depth of the circuit is the maximum path length between the input and the output of the circuit. The coherence time, in the context of a quantum computer, describes how the environment affects the qubit system. A longer coherence time implies that quantum states can be kept stable for a longer period of time, meaning quantum circuits with increasing depth can be supported, and therefore meaning that more complicated quantum computations can be performed. A quantum computer cannot perform a particular

calculation if the circuit depth required by the calculation is too long to be supported by the quantum computer' s coherence time .

There are already some known methods which can, in theory at least, be performed on a quantum computer to determine the energy levels of a physical system. Known methods include the Variational Quantum Eigensolver (VQE) method and the Quantum Phase Estimation (QPE) method. However, these known methods have several disadvantages. VQE can be used to estimate the energy levels of a physical system to a specified accuracy, given knowledge of the Hamiltonian of the system. To perform VQE, a quantum computer need only support a circuit depth of D = 0(1). However, to find a state energy of a physical system to a specified accuracy € using VQE, the quantum computer must perform N = 0(l/e 2 ) iterations of quantum circuits .

In other words, in the regime of VQE, the required circuit depth and required coherence time required are relatively small. That means that today's quantum computers can begin to explore physical systems using VQE. However, the number of iterations required for a useful estimate, i.e. one which is reasonably accurate, is prohibitively large. The VQE method therefore has only limited applications, and the results which can be determined take a prohibitively long time to both acquire and process .

In contrast, to find the ground state energy of a Hamiltonian to a specified accuracy e using quantum phase estimation (QPE) on a quantum computer, the quantum computer must perform N = 0(log(l/e) iterations of quantum circuits and is required to support a circuit depth of D = 0(l/e). QPE therefore requires a reduced number of iterations in comparison with VQE, resulting in potentially faster computations . However, a much longer maximum circuit depth is required. As such, a quantum computer with a very large coherence time is required. In practice, demands on accuracy mean that current quantum computers, and quantum computers which may be built in the foreseeable future, simply cannot provide coherence times which will allow QPE to be performed.

The present invention seeks to address these and other disadvantages of known methods by providing an improved method of determining an energy level of a physical system using a quantum computer.

Sunmaxy

According to an aspect, there is provided a method for determining an energy level of a physical system using a quantum computer. The energy level of the physical system can be described by the summation of a plurality of summands . The method comprises performing an energy estimation routine. The energy estimation routine comprises preparing an ansatz trial state using an arrangement of quantum gates, the ansatz trial state having a trial state energy dependent on a trial state variable. The energy estimation routine also comprises estimating an expectation value of each summand respectively, the estimating comprising constructing, based on the arrangement of quantum gates, an initial quantum circuit to operate on the ansatz trial state and performing a summand expectation value determination sub-routine a plurality of times in an iterative process. The energy estimation routine further comprises summing the expectation value estimates of each summand to determine an estimate for the trial state energy. The method further comprising determining the energy level of the physical system by applying an optimisation procedure to the energy estimation routine, the optimisation procedure comprising iteratively updating the trial state variable and performing the energy estimation routine a plurality of times to determine a respective trial state energy for each of a plurality of different ansatz trial states. Each iteration of the summand expectation value determination sub-routine may comprise constructing a new quantum circuit, and operating the newly constructed quantum circuit on the ansatz trial state to obtain a measurement value associated with an estimate of the summand expectation value. The new quantum circuit in each iteration of the summand expectation value determination sub-routine may be constructed based on the obtained measurement value. Optionally, the quantum computer has an associated coherence time, T, and the new quantum circuit in each iteration of the summand expectation value determination sub-routine is constructed based on the coherence time .

Constructing new quantum circuits within the summand expectation value determination sub-routine in this manner is in sharp contrast to existing standard VQE summand expectation value determination sub-routines, in which the same quantum circuit operates on a trial state many times . Constructing new quantum circuits in this manner, in particular where circuits are constructed based on the available coherence time, mean that the available coherence time can be maximally exploited as will be discussed in further detail herein.

Each iteration of the summand expectation value estimation sub-routine may further comprise generating a distribution based on the measurement value, and the iterative process may comprise updating the distribution with each iteration based on the mean and standard deviation of the distribution of the previous iteration. This may comprise discarding previous distributions and creating new distributions with each iteration. Estimating the expectation value of each summand may comprise determining the mean of the distribution produced during a final iteration of the summand expectation value determination sub-routine, the sub-routine being performed a predetermined number of times .

Iteratively updating a distribution with each iteration in this manner means that the summand expectation value can be estimated to a given accuracy with a reduced number of iterations. Again, this is in contrast to standard VQE methods for a number of reasons. In standard VQE methods, rather than updating a distribution with each iteration based on the mean and standard deviation of the distribution of the previous iteration, a single distribution is updated with measurement outcomes using a

statistical sampling approach.

Optionally, the summand expectation value determination sub-routine comprises operating the quantum circuit on the trial state to obtain a value, fl, associated with the estimate of the expectation value of the summand; determining an error, O, associated with the value associated with the estimate of the expectation value; and constructing a new quantum circuit based on at least one of the determined error, O, and the current value of fl. Optionally, the energy level of the physical system is determined to a required accuracy €, and the new quantum circuit in each iteration of the summand expectation value sub-routine is constructed based on the required accuracy, €. Optionally, the new quantum circuit in each iteration of the summand expectation value sub-routine is constructed with a complexity dependent on T and €, T being the coherence time associated with the quantum computer, and the dependence of the complexity of the new quantum circuit on T and € is given by CC, wherein:

The ability to discard and create new quantum circuits in the summand expectation value determination sub-routine, each newly created circuit having a complexity based on the available coherence time and the required accuracy in the estimate, means that full advantage is taken of available resources .

Discarding quantum circuits associated with previous iterations and producing new quantum circuits as part of an iterative process, in particular when the new quantum circuits are based on parameters determined by operating the previous quantum circuit on the trial state, is completely at odds with the current direction of research in the field of standard VQE methods. In particular, as will be discussed in greater detail herein, creating new quantum circuits by taking into account the available coherence time allows the available resources to be exploited. This is particularly important considering the envisaged future development of quantum computers having longer coherence times .

Optionally, the energy level is determined to a required accuracy, e, and the summand expectation value determination sub-routine is repeated N times, wherein N is dependent on e.

Optionally, the summand expectation value determination sub-routine is repeated N times, wherein N is based on a coherence time, T, associated with the quantum computer. Again, basing N on the available coherence time allows available resources to be maximally exploited, providing a more efficient method.

Optionally, determining the energy level of the physical system comprises identifying the lowest determined trial state energy. The optimisation procedure may comprise finding a local minimum of the function E(A) .

Optionally, the trial state variable is updated so as to bring the trial state energy of the next ansatz trial state closer to the energy level of the physical system. This is advantageous because, when the trial state energy is equal to the energy state of the physical system of interest, the determination of the trial state energy is equivalent to a determination of the energy state.

Optionally, on a first time the energy estimation routine is performed, the trial state is prepared using the Hamiltonian of the physical system and/or knowledge of the possible states which may be efficiently prepared using the quantum computer.

Optionally, the optimisation procedure comprises repeating the energy estimation routine a plurality of times in an iterative process to determine the energy level of the physical system.

Optionally, the optimisation procedure determines a new trial state variable to be used in the next iteration of the energy estimation routine.

Optionally, each summand comprises an operator, optionally wherein the operator is a tensored Pauli matrix.

According to another aspect, there is provided a computer readable medium comprising computer-executable instructions which, when executed by a processor, cause the processor to perform the method of any preceding claim.

An additional aspect of the invention comprises a method for determining a state energy of a physical system using a quantum computer, the state energy of the physical system being described by the summation of a plurality of summands . The method comprises performing an energy estimation routine comprising preparing a trial state using an arrangement of quantum gates, the structure of the trial state being dependent on a trial state variable. The method may also comprise estimating an expectation value of each summand respectively, the estimating comprising constructing an initial quantum circuit and performing a summand expectation value determination sub-routine a plurality of times in an iterative process. The energy estimation routine may further comprise summing the expectation value estimates of each summand to determine an estimate for the state energy, E, and updating the trial state variable. The energy estimation routine may be repeated a plurality of times in an iterative process to determine the state energy of the physical system.

An additional aspect of the invention comprises a method for determining a state energy, E, of a physical system using a quantum computer. The method comprises performing a trial state energy determination routine comprising preparing a trial state using an arrangement of quantum gates, the trial state being associated with a trial state energy which is dependent on a trial state variable, wherein the trial state energy can be described by the summation of a plurality of summands; determining the expectation value of each summand respectively by performing an iterative summand expectation value determination sub-routine; and summing the determined expectation values to determine the trial state energy, the energy being a function of the trial state variable; and updating the trial state variable. The method may further comprise performing the energy determination routine a plurality of times to obtain a plurality of trial state energy values, and determining the state energy, E, of the physical system by analysing the plurality of determined trial state energy values using an optimisation process .

Figures

Specific embodiments are now described, by way of example only, with reference to the drawings, in which:

Figure 1 depicts a quantum circuit as known in the prior art; Figure 2 depicts the 'standard' variational quantum eigensolver approach; Figure 3 depicts a quantum circuit for performing rejection filtering phase estimation;

Figure 4 depicts a circuit used in methods of the present invention for obtaining expectation value estimates;

Figure 5 depicts a method in accordance with the present invention for determining the state energy of a physical system;

Figure 6 is a graph which justifies mathematical assumptions made during mathematical derivations presented herein;

Figure 7 is a plot showing a numerical simulation of a method of the present disclosure, demonstrating the advantages of the method over a method of the prior art;

Figure 8 is a plot showing a numerical simulation of a method of the present disclosure, demonstrating the advantages of the method over a method of the prior art;

Figure 9 is a flowchart of a method of determining an expectation value of a summand in accordance with the present invention;

Figure 10 is a flowchart showing a method according to the present invention.

Figure 11 is a computer architecture which may be used to perform the methods of the present invention.

Detailed Description

This disclosure relates to quantum computing, and in particular to methods of determining an energy level of a physical system using a quantum computer. The energy values of physical systems can generally be described using the Schrodinger equation and via knowledge of the relevant

Hamiltonian operator. Accordingly, the disclosure more broadly relates to determining an eigenvalue of a Hermitian operator, in particular the Hamiltonian energy operator, using a quantum computer.

The method of the present disclosure is depicted in the flowchart of figure 10. At 1110, an ansatz trial state is prepared. The ansatz trial state has a trial state energy which is dependent on a trial state variable, A. At 1120, an estimate of the expectation value of each of a plurality of summands is obtained. The energy level of the physical system can be described by the summation of a plurality of such summands. Hence, by determining an expectation value of each summand, the energy level, or state, of the physical system can be determined. The estimating comprises performing a summand expectation value determination sub-routine a plurality of times in an iterative process. The introduction of an iterative sub-routine to a summand expectation value sub-routine within the frame work of VQE in this manner has never before been considered by practitioners of VQE. The iterative sub-routine will be detailed in greater detail herein.

At 1130, an estimate for the trial state energy is determined. This determination is based on the expectation values obtained from step 1120. Finally, at 1140, an energy level, or state, of the physical system is determined using, or according to, an optimisation procedure. The optimisation procedure may comprise preparing and discarding quantum states, and the method may comprise performing steps 1110, 1120, and 1130 a plurality of times as will be described in greater detail herein. Figure 11 illustrates a block diagram of one implementation of a computing device 1100 within which a set of instructions for causing the computing device to perform any one or more of the methodologies of the present disclosure may be executed. While only a single computing device is illustrated, the term "computing device" shall also be taken to include any collection of machines (e.g., computers) that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein. The computing device 1100 comprises a quantum computing system 1110 and a classical computing system 1150. The quantum computing system 1110 is in communication with classical computing system 1150. The classical computing system is arranged to instruct the quantum computing system to prepare quantum states, and to perform measurements on those quantum states, according to instructions stored in memory.

The quantum computing system 102 comprises a quantum processor 1102, which in turn comprises at least two qubits and at least one coupler capable of coupling the qubits. The qubits may be physically implemented using, for example, photons, trapped ions, electrons, one or more nuclei,

superconductor circuits and/or quantum dots. In other words, a qubit may be be physically implemented in a variety of means, including the polarization state of a single photon; the spatial optical path of a single photon; two differing energy states of an atom or an ion; the spin orientation of a particle or plurality of particles such as a nucleus. The quantum computer also comprises means for storing the qubits and maintaining the qubits in a suitable environment to allow quantum computation, for example means for supercooling the qubits . The qubits may be operated upon by one or more quantum circuits, formed by a suitable arrangement of quantum gates.

A quantum gate acts on some number of qubits and can be thought of as the quantum analogue of a basic low-level instruction in a classical circuit such as a NOT or AND gate. Typically, quantum circuits are decomposed into a sequence of single and two-bit gates taken from a universal gate set along with state preparation and the measurement or read-out of the qubits. The results of the measurements are classical data that are then processed by a classical computer. Many quantum computers based on superconducting circuits and trapped-ions have already demonstrated all of the capabilities at a small scale that are required for a large quantum computing device.

Possible implementations and methods of manipulation of the qubits in the quantum computer are now described. These implementations are by way of example only, and the skilled person will be aware of other methods of implementing a quantum computer. Birefringent wave plates may be used to manipulate the polarization state of a single photon, for example, to cause a linear polarization or horizontal polarization of the photon, signifying two distinct states of the photon. The qubits may also be implemented using a beam splitter. For example, the presence or absence of a photon along particular optical path can be implemented using a beam splitter that splits a beam of photons into two separate paths. The presence of the photon in either path represents two distinct states of the photon.

Alternatively or additionally, two separate electronic energy states for an atom or ion can represent two separate distinct states for a qubit. For example, transition energies between these levels may correspond to the energy of electromagnetic radiation of a certain frequency and so the separate energy states of the atom or ion may be addressed using a source of radiation such as a laser or microwave emitter. Alternatively or additionally, the two distinct spin states (spin w up" and spin "down") of a particle or a plurality of particles, for example a nucleus, can represent the two distinct states of a qubit. Manipulations of nuclear spin may be implemented using a magnetic field using methods known to the person skilled in the art.

Alternatively or additionally, superconducting electronic circuits may be used to create qubits . These systems are supercooled to below 100K and use Josephson junctions, a non-linear inductor that allows the creation of anharmonic oscillators. Anharmonic oscillators do not have evenly spaced energy levels (unlike harmonic oscillators) and therefore two of the states can be separately controlled, and used to store a qubit. The qubits are connected with microwave cavities and single and two-qubit gates can be performed using microwave signals .

The quantum computing device 1110 also comprises measurement means 1104 and control means 1106. The control means 1106 may comprise control hardware and/or a control device. The control means 1106 is configured to receive instructions from the classical computer 1150, and the classical computer 1150 may instruct the control means 1106 to prepare a particular state in the quantum processor using a particular arrangement of quantum gates. The measurement means 1104 may comprise measurement hardware and/or a

measurement device. The measurement means comprises hardware configured to take a measurement from a state prepared by the control means 1106 in the quantum processor 1102.

The example classical computing device 1150 includes a processor 1152, a main memory 1154 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), etc.), a static memory 1156 (e.g., flash memory, static random access memory (SRAM), etc.), and a secondary memory (e.g., a data storage device), which communicate with each other via a bus.

Processing device 1152 represents one or more general-purpose processors such as a microprocessor, central processing unit, or the like. More particularly, the processing device 1152 may be a complex instruction set computing (CISC) microprocessor, reduced instruction set computing (RISC) microprocessor, very long instruction word (VLIW) microprocessor, processor implementing other instruction sets, or processors implementing a

combination of instruction sets. Processing device 1152 may also be one or more special-purpose processing devices such as an application specific integrated circuit (ASIC) , a field programmable gate array (FPGA) , a digital signal processor (DSP), network processor, or the like. Processing device 1152 is configured to execute the processing logic for performing the operations and steps discussed herein.

The data storage device may include one or more machine-readable storage media (or more specifically one or more non-transitory computer-readable storage media) on which is stored one or more sets of instructions embodying any one or more of the methodologies or functions described herein. The instructions may also reside, completely or at least partially, within the main memory 1154 and/or within the processing device 1152 during execution thereof by the computer system, the main memory 1154 and the processing device 1152 also constituting computer-readable storage media.

In general, the classical computer 1150 instructs the control means 1106 of the quantum computer 1110 to prepare a particular state in the quantum processor 1102. The control means 1106 manipulates the qubits in the quantum processor 1102 based on the instructions. Once the qubits have been manipulated such that the desired state has been constructed in the quantum processor 1102, the measurement means 1104 takes a measurement from the state. The quantum computer 1110 then communicates the measurement result to the classical computer.

The various methods described herein may be implemented by a computer program. The computer program may include computer code arranged to instruct a computer to perform the functions of one or more of the various methods described above. The computer program and/or the code for performing such methods may be provided to an apparatus, such as a computer, on one or more computer readable media or, more generally, a computer program product. The computer readable media may be transitory or non-transitory. The one or more computer readable media could be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or a propagation medium for data transmission, for example for downloading the code over the Internet. Alternatively, the one or more computer readable media could take the form of one or more physical computer readable media such as semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM) , a read-only memory (ROM) , a rigid magnetic disc, and an optical disk, such as a CD-ROM, CD-R/W or DVD.

In an implementation, the modules, components and other features described herein can be implemented as discrete components or integrated in the functionality of hardware components such as ASICS, FPGAs, DSPs or similar devices .

In addition, the modules and components can be implemented as firmware or functional circuitry within hardware devices. Further, the modules and components can be implemented in any combination of hardware devices and software components, or only in software (e.g., code stored or otherwise embodied in a machine-readable medium or in a transmission medium) .

Unless specifically stated otherwise, as apparent from the following discussion, it is appreciated that throughout the description, discussions utilizing terms such as " receiving", "determining", "comparing ",

"enabling", "maintaining," "identifying," or the like, refer to the actions and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage,

transmission or display devices. The prior art methods, ^standard QPE' and ^standard VQE' are now briefly discussed.

Standard QPE

Figure 1 shows a schematic circuit 100 which may be used as part of standard QPE methods. Since the introduction by Kitaev of a type of iterative QPE involving a single work qubit and an increasing number of controlled unitaries at each iteration, the term W QPE" has become

associated with algorithms of this particular type. It is characteristic of Kitaev-type algorithms that for precision e, the number of iterations N=0 (log (l/ε) ) and maximum quantum circuit depth D=0(l/c), where the tilde means we neglect polylog factors. This neglect is justified not only because polylog factors are small but because there exist Kitaev-type algorithms where they are (essentially) eliminated, e.g. Information Theory

Phase Estimation (ITPE) replaces an extra in Kitaev' s QPE by

Henceforth, Kitaev-type scaling is referred to

as the phase estimation regime and QPE as phase estimation in this regime.

QPE has found application in quantum chemistry where it can be used to estimate the ground state energy of a chemical Hamiltonian. However, the required circuit depth depends on accuracy as follows: which implies that a very large coherence time is required to obtain accurate results .

Standard VQE

Reference is now made to figure 2, which depicts a known method of determining the energy level of a physical system. The known method is referred to as the variational quantum eigensolver (VQE) approach. Dashed box 202 depicts those parts of the method which are performed using a quantum computer, using quantum circuits. Dashed box 204 depicts those parts of the method which are performed using a classical computer, using classical circuits. Arrows between dashed boxes 202 and 204 depict the interface between the quantum and classical computers.

As will be understood by the skilled person, the energy states of a physical system may be described using a Hamiltonian operator. The standard VQE method can be used to determine the ground state energy of a

Hamiltonian H of a physical system using a quantum expectation estimation sub-routine together with a classical optimizer. The classical optimizer adjusts the energy of variational ansatz wavefunctions depending on a parameter λ. For a given normalized it is possible to evaluate

energy:

To describe the standard VQE in more detail, the idea is to first write the Hamiltonian operator, H , as a finite sum where ¾ are complex

coefficients and P { are tensored Pauli matrices. The set of Pauli matrices forms a basis for the space in which H belongs. Each can be described as a summand. The number 7Π of summands is assumed to be polynomial in the size of the system as is the case for the electronic Hamiltonian of quantum chemistry.

To evaluate the energy state of the physical system, knowledge of the Hamiltonian is used to determine an ansatz trial state. This ansatz trial state has an energy E(X), dependent on a parameter A. The trial state is prepared in the quantum processor, and quantum circuits 202 are used to determine the expectation values of each summand. Given the expectation value estimates, a classical computer 204 is used to determine the weighted sum. This summation produces an estimate and/or a determination of the trial state energy. Finally, a classical gradient-free optimiser such as

Nelder-Mead is used to optimise the function E(X) with respect to A by controlling a preparation circuit:

where |0)is a fiducial starting state. The variational principle (VP) justifies the entire VQE procedure when finding the ground state: writing E m [ n for the ground state eigenvalue of H, VP states that E(X) > E It ^ n with equality if and only if IV'CA) > is the ground state. Similarly, local minima are representative of other energy levels / states of the physical system.

In the typical VQE process, a preparation circuit, R, comprised within the quantum computer is used to prepare an initial trial state |ΐ/»(Λ)) . The preparation of the initial trial state is shown at box 206 of figure 2.

The expectation value of each term in the Hamiltonian can then be estimated for the given trial state. This determination is shown at blocks 208 of figure 2. In other words, to determine an energy eigenvalue of a

Hamiltonian with m summands, the quantum computing device measures:

for the trial state.

These expectation values are communicated to a classical computing device, depicted by dashed box 204 in figure 2. The classical computing device sums the summands together to find the energy eigenvalue of the Hamiltonian for the initial trial state. Based on this eigenvalue, the classical computer 204 updates the parameter λ at box 212, which allows the constructions of a new trial state. The quantum computer is instructed to prepare the new trial state, and the whole process is repeated until an optimisation procedure is satisfied that the desired energy level has been determined to the specified accuracy.

As will be understood by the skilled person, each expectation

may be directly measured using a simple circuit, or could be measured by using an extra work qubit and a gate, which can be implemented by a

small circuit involving single qubit gates and C— NOT gates . In both cases, the circuit involved is of depth and is repeated N =

times to attain precision within € of the expectation. Herein, the regime wherein is referred to as the statistical sampling regime .

Note that the quantum-over-classical advantage is hidden within the set of ansatz states chosen so that they could always be efficiently prepared on a quantum computer but not usually on a classical computer. The set of Unitary Coupled Cluster (UCC) states is a typical choice and could not usually be efficiently prepared classically due to the non-truncation of the BCH expansion of an operator of form 6 . Another two possible choices are the device ansatz and adiabatic ansatz.

Importantly, in standard VQE as depicted in figure 2, the summands in each of the boxes at 208 are determined using statistical sampling. In other words, the same, simple quantum circuit of depth D = 0(1) is operated on the trial state a plurality of times, each time giving a different measurement outcome which is used to populate a single distribution.

Operating the same quantum circuit on the trial state many times gives statistical accuracy in the measurement of the summand, however the number of required repetitions is often unfeasibly large, since the required number of repetitions scales exponentially with required accuracy €.

As will be explained in greater detail below, methods of the present disclosure make use of the framework of VQE but are able to determine energy levels in a considerably shorter time than the VQE method by optimizing the method according to the required accuracy and the

limitations of the available quantum computer. Importantly, the present method performs a summand expectation value determination sub-routine a plurality of times in an iterative process. The iterative nature of the sub-routine is in stark contrast to the standard VQE method. In each iteration of the presently disclosed sub-routine, a new quantum circuit is created, and the previous circuit is discarded. The new quantum circuits may be created based on the obtained measurement value of the previous circuit. The new circuits may also be created based on the available coherence time, and with each iteration a new distribution may be generated. This is more than simple statistical sampling, as is used in standard VQE methods, and the present method allows the summand expectation value to be determined using quantum circuits of varying lengths and complexities in a manner which maximizes the use of available coherence time.

Methods of the present disclosure will now be described in further detail. Tunable Bayesiaxi QPZ (a-QPE)

In methods of the present disclosure, a new and innovative approach is used to determine the values of each summand. Instead of performing a large number of iterations of the same quantum circuit to achieve a high accuracy, as is required in VQE methods, the summand is calculated using an iterative process . Generally speaking, the iterative process involves constructing a plurality of different quantum circuits. In the iterative process, an initial quantum circuit is constructed. The initial quantum circuit is constructed based on a quantity (X which will be defined below. The initial quantum circuit is constructed based on the coherence time, T, of the quantum computer and/or the quantum processor which is being used to perform the determination. The initial quantum circuit is also constructed based on the required accuracy, €, in the determination. The initial quantum circuit operates on a trial state, which is prepared using knowledge of the Hamiltonian of the physical system in question. Each time a quantum circuit operates on the trial state, a measurement outcome is obtained. In particular, in each iteration, a quantum circuit operates on the trial state to obtain a value, fl, associated with the estimate of the expectation value of the summand. An error, G, in the measurement outcome is also determined, the error being associated with fl. Finally, each iteration of the iterative process involves constructing a new quantum circuit based on the determined error, a, and the current value of fl.

Importantly, this constructing and discarding of quantum circuits in an iterative manner is completely new to the framework of VQE, and allows an accurate determination of the expectation value with fewer iterations by tailoring the summand expectation value determination sub-routine to the available coherence time. The underlying mathematics of the new method will now be detailed.

For a given eigenvector \φ) of a given unitary operator U such that and a required precision €, current QPE methods use N = ( g( /)) iterations of circuits involving

gates in that order to estimate the phase to precision € within a

constant probability of error. The maximum depth is when viewing as a sequence of gates. This is the correct

view to relate D to coherence time requirements as in quantum simulation when U is of the form and separately assuming is re- prepared at each iteration.

It is to be understood that "precision €" means (as appropriate) either the frequentist or Bayesian - where is either the point

estimator or posterior standard deviation respectively. In other words, the meaning of "precision €" approximates "accuracy under

the assumption of asymptotic consistency.

In contrast to QPE, the expectation estimation algorithm of VQE would estimate φ to precision € by statistical sampling using

circuits that are exactly the same which gives D =0(1). In other words, the expectation estimation algorithm of VQE would estimate φ to precision € by performing of the same circuit, that circuit having depth

. The estimate φ is a maximum likelihood estimator since it is a function of the relative frequency estimator p of a probability p with

In contrast, methods of the present disclosure alow an optimal tradeoff between N and D. This is important in experiments where N is the number of state preparations or the number of measurements and D is proportional to coherence time requirements . The best tradeoff therefore depends on the capabilities of the experimenter's device. The present method relates to a continuous family of circuit sequences giving tradeoffs that interpolate between phase estimation and statistical sampling. Methods of the present disclosure make use of Rejection Filtering Phase Estimation (RFPE) .

A quantum circuit suitable for use in RFPE is shown schematically in figure 3. The quantum circuit 300 comprises a top wire that comprises a rotation operator 302 and a measurement 304. The quantum circuit further comprises a bottom wire wherein the trial state is operated on by the operator U M

310 conditional on the top wire. The operator 310 comprises

applications of U operating on the trial state

The rotation operator 302 on the top wire applies a rotation by an angle MB in the computational basis to the |+) state along the top wire. The |+) state is the +1 eigenstate of the tensored X Pauli operator. This qubit is then used to control the operator before a measurement 304 is performed on the top wire to obtain a measurement outcome E, where E can be a 0 or a 1.

The result of the measurement outcome is then analysed in order to choose the subsequent values of M and Θ with the ultimate goal of determining the unknown quantity φ.

To begin, an initial prior probability distribution P(0) of φ is taken to be normal 2 reflecting any prior knowledge of the solution and then approximated by a normal distribution. Before each iteration of the circuit, M and Θ are chosen to minimise the expected posterior variance (i.e. the Bayes risk). A method for achieving this is given in the

Appendix. Given the RFPE circuit in figure 3 and a prior distribution Ρ(φ) of φ, the probability of measuring E £ {0,1} is

which, by the Bayesian update rule, informs the posterior after measuring E:

It is not necessary to know the constant of proportionality to sample from this posterior after measuring E, and the word "rejection" in RFPE refers to the rejection sampling method used. After obtaining a number 77! of samples, the posterior can be approximated by a normal with mean and variance equal to that of the samples. This is justified in the same way as when taking initial prior to be normal. The choice of 171 is important and

771 can be regarded as a particle filter number, hence the word "filter" in RFPE. The posteriors are approximated to be normal essentially because this allows for efficient sampling in the next iteration.

The effectiveness of RFPE' s iterative update procedure depends on

controllable parameters A natural measure of effectiveness is the expected posterior variance, i.e. the "Bayes risk". To minimise the Bayes risk, standard QPE methods have used at the start of each

iteration. However, the main problem is that M can quickly become large, making the depth of exceed Umax- This issue has previously been partially mitigated by imposing an upper bound on M. This method is hereinafter referred to as RFPE with restarts .

The present disclosure uses a different approach wherein M and Θ are chosen as :

where a E [0,1] is a free parameter imposed. Moreover, at each iteration, the eigenstate \φ) may be re-prepared, allowing the state used in the previous iteration to be discarded. This requires the ability to readily prepare an eigenstate on the quantum computer. As discussed above, the trial states are chosen such that they may be efficiently prepared on a quantum computer. The resulting algorithm is hereinafter referred to as the a-QPE algorithm.

As derived in the Appendix, QT-QPE requires:

wherein the number of iterations/measurements and the maximum coherent depth are given by N and D respectively, and the function / is given by

The tt-tunable Bayesian QPE of the present method is hereinafter referred to as a-QPE. A flowchart of tt-QPE is given in Figure 9. When making reference to RFPE above, the reference is only to its Bayesian method rather than its specific form of implementation. It is understood that other sequences can also be analysed with relative ease using this

Bayesian method. More generally, both RFPE and GT-QPE are examples of (online, decision theoretic, noisy, Bayesian) active learning algorithms with a quantum device performing labelling. Active learning is expected to be to be highly relevant to hybrid quantum-classical algorithms since it accounts for labelling costs.

Casting expectation estimation as α-QPE

As detailed later with respect to the flowchart of figure 9, theflf-QPE method of the present disclosure may determine the expectation value of a measurement operator, P, corresponding to one of the summands in a

Hamiltonian of a physical system, by making use of a preparation circuit that prepares an ansatz trial state, and a quantum circuit for implementing the projector

Three quantum registers are initialised to the states

respectively. To the third register, the preparation circuit is applied so that the registers are now |+),|+), \ψ)· The first register is the control register as used in the RFPE algorithm and the final two quantum registers are used in order to cast the expectation estimation subroutine as a RFPE problem. The quantum circuit S is defined as

(ppnfltp ) . Circuit S is depicted in Figure 4. This circuit S is used in place of the U 310 in the RFPE algorithm so that after a rotation by an angle (ΜΘ) is applied to the first qubit, this then controls the operation of S on the second and third registers . Finally, the first register is measured in the Pauli-X basis .

Proposition 1

The operator is a rotation by an angle in the plane separated by

Therefore, the state \p) is a superposition of eigenstates of S with eigenvalues (i.e. eigenphases and can be

estimated to a precision € by running QPE on \ψ) to precision 26.

The operator S is physically implemented using a quantum circuit as depicted in Figure 4. The quantum circuit of Figure 4 comprises operators

P, R, and H. The skilled person would be aware that the quantum gate H shown in Figure 4 is a Hadamard gate which maps the basis state

^ ^ The quantum gate P of figure 4

represents a summand for which the expectation value is to be

determined/estimated, for example corresponding to a tensor product of

Pauli operators. The quantum gate R of Figure 4 represents the arrangement of quantum circuits that are used to prepare the ansatz trial state. The dagger notation refers to a Hermitian conjugate so that pt and pt refer to the quantum gates corresponding to the Hermitian conjugate of P and R respectively. The quantum circuit S, that is constructed to operate on the ansatz trial state is therefore based on the arrangement of quantum gates that were used to prepare the ansatz trial state. The proposition shows that the quantum circuit, S, can be used to obtain useful information about the unknown quantity .

There are a range of arrangements of quantum gates that can be used to prepare the ansatz trial state For example, the Unitary Coupled

Cluster ansatz is a powerful set of ansatz states that could be efficiently prepared in the circuit but for which there is no efficient classical method for calculating the desired expectation value.

In the a-QPE expectation estimation routine, the quantum circuit 5 is applied to the quantum circuit 300 of Figure 3, replacing U in the known circuit depicted at 310. The a-QPE expectation estimation routine will be described later with reference to the flowchart of figure 9; step 908 of figure 9.

That 5 is a rotation may be seen by and noting these are reflections across planes perpendicular to |l/j)and

|l/j')respectively. The controlled S gate needed in phase estimation can be written as instead of adding controls on

each unitary.

While is guaranteed to be real, performing the algorithm as in

Proposition 1 does not allow the sign to be discerned. This is fixed by instead estimating the amplitude where

the same method. Since we can

obtain it from A . Figure 4 illustrates the circuit implementing C— S' where S' is the S necessary to compute A as per the proposition. Simply implementing a-QPE instead of QPE in the above casts expectation

estimation into a-QPE as desired.

Since P is constructed from tensored Pauli matrices and and Y =

adds a cost of gates per Pauli gate,

leading to gates per P for an 71-qubit Hamiltonian H with circuit dep th 0 Using a space overhead of 0(n) and a binary tree, the gate can be implemented with circuit depth. The C

— Π gate is an n-qubit controlled sign flip, an operator also used in Grover' s algorithm, and is equivalent in cost (up to~2n single qubit gates with 0(1) depth) to an n-bit Toffoli gate. While it is known that the circuit model implementation of the n-bit Toffoli gate requires at least 2n c-NOT gates, the best known implementation requires 32n-96 elementary gates. There is also a constant factor overhead for state preparation in the present approach: this means two R and two R†≡R-1 gates are needed.

Therefore, casting expectation estimation as a-QPE results in an overhead of 0(n) single qubit gates and 0(il) C— NOT gates, with total circuit depth 0(n), for each P( in the original VQE. The original implementation of expectation estimation in VQE requires 0(ri) single qubit gates and zero

C— NOT gates with total circuit depth D = 0(1) . It is possible to tally an overhead on state preparation: two R and two R^ = i? -1 gates are needed.

This overhead should be acceptable for example when R prepares the "device ansatz" which by definition means R is straightforward to implement accurately on a given device.

Conversely, implementing all circuits involving C— S'i, one for each Pi sub-term in H, is more straightforward than faithfully implementing C-

6Xp(— iHt)as typically required in QPE. Consider the typical case when H is the electronic Hamiltonian, written in second quantised form as:

where the indices run over n introduced spin basis orbitals. With second order Trotter decomposition, implementing for fixed t requires, at first count , a circuit depth of as follows: ( ) from the number of sub-terms in the second quantised form of from the

Jordan-Wigner transformation of these sub-terms necessary to preserve Fermionic commutation relations, and from the Trotter decomposition. In recent years, rapid progress has been made in reducing the depth

scaling, however the current best scaling with depth using Taylor series based simulations is still worse than the best known depth for variational methods of 0(n), which is asymptotically unaffected by the additive depth overhead of 0(n) incurred.

It is important to note that circuit depth directly relates to coherence time which is a key quantum resource based on quantum superposition that is interchangeable with other quantum resources such as entanglement. Hence it is justified to base the comparison with QPE on circuit depth. In

particular, even though circuits need to be implemented involving one for each P{ sub-term in H, the cost does not relate to increased quantum resources, but instead relates to increased repetitions using the same constant quantum resources. This strongly contrasts with the

additional circuit depth in implementing coming from

writing sub-terms.

A flowchart showing an implementation of CT-QPE is given in figure 9. As will be appreciated, the method comprises an iterative method, routine and/or sub-routine. The method may be described as an algorithm for determining, or estimating, an expectation value of a summand. The summand is one of the summands which, when added together, provides a description of the energy level of interest of the physical system. The method shown in figure 9 is performed for each of the summands respectively. As discussed above, each summand comprises a different respective Pauli operator. At step 900, the following parameters are inputted into the method: R, P, T and e. R is the preparation circuit of the trial state

|^(A)). P is the Pauli operator of the summand in question, i.e.

is the coherence time of the quantum computer and/or quantum processor 1102 being used to determine the expectation value of the summand. € is the required error in the output as an estimate of ψ ) . In other words, C represents the required accuracy in the estimation of

In more detail, the preparation circuit prepares the trial state on the quantum computer and/or processor using an arrangement of quantum gates. A suitable arrangement of quantum gates is depicted in figure 4 and is described above.

At step 902, S is set to S(R,P). S is the circuit given in figure 4, without the control qubit on the top wire, a is set to and N is set

to N (T, €) .

In more detail, an initial quantum circuit S is prepared based on the arrangement of quantum gates that were used in the preparation circuit R. The initial quantum circuit S is also prepared based on the Pauli operator P of the summand in question.

At step 902, the complexity of the initial quantum circuit to be used in the sub-routine 916 is set, based on the coherence time, T, and the required error,€. More specifically, the complexity of the quantum circuit is set by:

The complexity of the quantum circuit refers to the number of applications, M, of the quantum circuit S on the trial state.

Also at step 902, the number of iterations to be performed, N, of the subroutine 916 is set, based on the coherence time, T, and the required error,€. More specifically, if CC = 1, the number of iterations of the summand expectation value determination sub-routine that are to be performed is set to:

Otherwise, if CL < 1, the number of iterations of the sub-routine is set to:

At step 904, certain parameters are initialised so as to provide initial values for the iterative sub-routine. The following parameters are initialised to the following values:

where fl is the algorithm's current estimate of φ. In other words, fl is the algorithm's current estimate of the phase φ of the trial state is iteratively updated as the algorithm progresses. <T is the algorithm's current estimate of the error in fl. 71 is a counter that increments after each iteration at step 914. In other words, 71 is a counter for the number of iterations of the sub-routine that have already been performed.

Blocks 906, 908, 910, 912 and 914 describe a summand expectation value determination sub-routine 916. The sub-routine 916 is performed N times in an iterative process, where N is set in step 902.

At step 906, the parameters Af and dare set by the following equations:

where Afdetermines the number of times the quantum circuit S is applied to the trial state |0(λ)). This is shown in figure 3, wherein is replaced by S at 310 in Figure 3, and so the quantum circuit S is applied to the trial state Af times. In other words, Af determines the complexity of the quantum circuit S that operates on the trial state In other words,

Af determines the coherence length requirement of the quantum circuit S, since S operates on the trial state Af times. The quantum circuit S is depicted in Figure 4 and the arrangement of this circuit is detailed above.

Θ determines the rotation applied to the state |+) on the top wire of the circuit in Figure 3, at 302. |+) represents the +1 eigenstate of the tensored Pauli X operator. More specifically, the circuit in Figure 3 shows 302 which involves a rotation of MB on the top wire on the |+) state .

Also at step 906, the algorithm generates a distribution 2), wherein the distribution is based on

In more detail, the distribution Ί) is a normal distribution, wherein the normal distribution is generated based on fl and O. In yet more detail, the normal distribution 7) is generated at step 906. The mean of the

distribution is determined by fl and the standard deviation of the distribution is determined by

Within each iteration of the sub-routine 916, the values of fl and O are updated at step 910. The distribution D generated at step 906 is generated at each new iteration of the sub-routine 916. In other words, a new distribution is generated at each iteration of the sub-routine 916. The distribution 2) generated at each new iteration is thus generated with respect to the updated values of fl and O of the previous iteration.

At step 908, the quantum circuit 300 operates on the trial state |l/j(A)) and the state |+), wherein at 310 of Figure 3 is replaced with S M , wherein

S is the quantum circuit shown in Figure 4 (without the control qubit on the top wire) . A measurement is made at 304 to produce a measurement value, E. In more detail, the measurement value E is made on the top wire of the quantum circuit shown in Figure 3. The top wire involves a rotation by MB of the |+) state on the top wire. The trial state applied to the bottom wire of the quantum circuit 300 involves M applications of the quantum circuit S shown in Figure 4 (without the control qubit on the top wire) . The measurement value E on the top wire of the quantum circuit 300 may be either a 0 or a 1.

At step 910, the values of fl and O are updated based on the measurement value, E, obtained at step 908. In more detail, a new distribution Z)' is generated based on the generation 2) generated in step 906, as well as the measurement value E obtained in step 908. In other words, the new distribution generated in step 910 2)' = 2)'(ii, 2)).

In yet more detail, at step 910, the value of fl is updated by setting fl to be the mean fl' of the new distribution Z)'. The value <T is updated by setting G to be the standard deviation & of the new distribution 2)'.

At step 912, the number of iterations 71 of the sub-routine 9191 that have already been performed is tested against the number of iterations N that need to be performed. If 71 < N, the algorithm proceeds to step 914.

Otherwise, if 71 > N, the algorithm proceeds to step 918.

In other words, if 71 < N, then the sub-routine has not been performed the required number of times, N, wherein N is set in step 902 and N is based on the coherence time, T, and the required error ,€, as detailed above.

If 71 < N, the algorithm proceeds to step 914, wherein the counter for the number of iterations of the sub-routine that have already been performed is incremented by 1. The algorithm then proceeds to iterate the sub-routine

916 by returning to step 906. The parameters M and Θ are updated at step

906 based on the updated values for fl and a, determined at step 910 of the previous iteration. The distribution 2) is also updated at step 906 based on the updated values of fl and O. The sub-routine proceeds 916 to repeat the steps 906, 908, 910, 912 as outlined above.

If 71 > N, then the sub-routine 916 has been performed in an iterative manner at least the predetermined required number of times. The expectation value of the summand in question is determined or estimated at step 918 based on the mean fl of the distribution generated at step 910 of the previous or final iteration of the sub-routine. In more detail, the expectation value CL or the estimate of the expectation value CL of the summand in question is determined at step 918 using the equation

In yet more detail, the error β in the estimation of the expectation value may be determined. The error β is set as the standard deviation O of the of the distribution generated at step 910 of the previous or final iteration of the sub-routine.

At step 920, the algorithm outputs the expectation value or estimate of the expectation of the summand in question.

With reference to figure 5, a schematic of a new method of determining and/or estimating the energy level of a physical system, wherein the energy level may be described by the summation of a plurality of summands, is shown. The new method may be referred to as the generalised Variational Quantum Eigensolver (VQE) approach. Dashed box 502 depicts those parts of the method which are performed using a quantum computer, using quantum circuits. Dashed box 504 depicts those parts of the method which are performed using a classical computer, using classical circuits. Arrows between dashed boxes 502 and 504 depict the interface between the quantum and classical computers.

The Generalised Variational Quantum Eigensolver comprises an energy estimation routine that comprises steps 506, 508, 510 and 512 that are performed in an iterative process .

The preparation of the initial trial state is shown at box 506 of figure 5. At 506, a preparation circuit that uses an arrangement of quantum gates, R, comprised within the quantum computer is used to prepare an ansatz trial state |ψ(Λ)). This corresponds to at least one process of step 900 of the algorithm flowchart shown in Figure 9, wherein the preparation circuit Λ(Α): |0)→ \ψ(Χ)) prepares the trial state |ψ(Α)) on the quantum computer and/or processor using an arrangement of quantum gates.

At 508, the a-QPE algorithm of Figure 9 is performed to determine or estimate the expectation value of each summand of the plurality of summands that describe the energy level of the physical system.

The a-QPE algorithm performed at step 508 is performed using a quantum computer. The quantum computer may determine parameters a and N at step 902 based on the coherence time, Γ, of the quantum computer and the required error, e.The quantum computer may generate the distribution 2) at step 906 based on the values μ and O, for each iteration of the subroutine 916. The quantum computer may determine the parameters Af and Θ at step 906 based on the values μ and a, for each iteration of the sub- routine. The quantum computer may construct the quantum circuit 300 that operates on the ansatz trial state at step 908 for each iteration of the sub-routine 916. The quantum computer may perform the measurement at step 908, (304 of the quantum circuit shown in Figure 3) to obtain a measurement value E. The quantum computer may generate the new

distribution D' at step 910, based on the measurement value E obtained at step 908 and the distribution D generated at step 906, for each iteration of the sub-routine 916. The quantum computer may determine updated values for μ and a based on the mean and standard deviation respectively of the new distribution ©'generated at step 910 for each iteration of the subroutine 916.

The quantum computer may iterate the sub-routine 916 N times to determine or estimate the expectation value for one of the summands of the plurality of summands. In more detail, the quantum computer may determine or estimate the expectation value of each summand by determining the mean μ of the distribution D' generated at step 910 of the final iteration of the subroutine 916. In yet more detail, the quantum computer may determine or estimate the expectation value of each summand by determining the mean /land applying this to the equation outlined above and at step 918 of Figure 9. The quantum computer may then output the expectation value or estimate of the expectation value of the sub-routine at step 920.

The quantum computer may perform step 508 comprising the flf-QPE estimation routine for the expectation value of each summand in parallel . In other words, the expectation value of one summand may be determined or estimated at step 508 at the same time as at least one of the other summands. The advantage here is to save time by determining or estimating the expectation value for as many summands as possible simultaneously.

The expectation value of each summand of the plurality of summands is communicated to a classical computer 504. The classical computer 504 sums the expectation values determined or estimated on the quantum computer at step 508 for each summand to determine an estimate for the trial state energy, E(X) .

In this embodiment, the expectation values are summed using a classical adder on a classical computer, however in another embodiment the summation of the expectation values may be performed on a quantum computer.

At step 512, an optimisation process is performed to update the trial state variable λ based on the energy estimate for the previous ansatz trial state. The updated trial state variable is communicated back to the quantum computer 502 such that the energy estimation routine is performed again, starting at step 506, wherein the quantum computer prepares the new ansatz trial state using a new arrangement of quantum gates, and wherein the new ansatz trial state is based on the updated trial state variable.

The Nelder-Mead (NM) method is an example of an algorithm that minimises a function by an iterative process. At each iteration, the function value is evaluated at the vertices of a simplex. The simplex is then evolved so that it iteratively shrinks to a single point - at which point the function takes its minimum. One key benefit of NM is that it does not require the function gradient at the simplex vertices which can be expensive for a quantum computer to provide. It is known that there are several alternative gradient-free algorithms (TOMLAB/ GLCLUSTER, TOMLAB/LGO, and

TOMLAB/MULTIMIN) that have been demonstrated to achieve the same accuracy with fewer function evaluations. Furthermore, it is expected that

algorithms specifically designed to minimise a stochastic function (as appropriate in VQE) may reduce function evaluations further.

In this embodiment, the optimization process is performed using a classical computer, however in other embodiments the optimization process may be performed using a quantum computer.

Generally, the optimisation method / procedure can be thought of as acting to update the trial state variable so as to bring the trial state energy of the next ansatz trial state closer to the energy level of the physical system. As described above, on a first time the energy estimation routine is performed, the trial state is prepared using the Hamiltonian of the physical system and/or knowledge of the possible states which may be efficiently prepared using the quantum computer. As set out above, the optimisation procedure may comprise repeating the energy estimation routine a plurality of times in an iterative process to determine the energy level of the physical system. The optimisation procedure determines a new trial state variable to be used in the next iteration of the energy estimation routine. The optimisation procedure may be realized on a classical computer 1150, which then instructs a quantum computer 1110 to prepare the next state .

The energy estimation routine outlined above is performed a plurality of times in an iterative manner. During each iteration, the optimization process updates the trial state variable to be used to prepare the trial state for the next iteration. The energy estimation process is performed a plurality of times for a plurality of different trial states to determine a plurality of respective trial state energies.

In one embodiment, the energy level of the physical system may be

determined by identifying the lowest trial state energy of the plurality of trial state energies.

VQE is generalised by replacing each expectation estimation routine for each summand in the standard VQE (shown in Figure 2) with the tt-QPE expectation estimation routine shown in Figure 9. The casting ensures the ansatz trial state \xf)) is an eigenstate of the operator S which means that at each iteration of tt-QPE \lp) can be discarded, and a new state can be prepared and used. The discard-ability of \\f>) means the use of a-QPE, even when tt = 1, is different from the typical use of QPE when the input state is in superposition of eigenstates and cannot be discarded at each iteration. This point importantly justifies the formula for maximum depth

D in (21) which is less than when not discarding A schematic of the generalised VQE is given in Figure 5. Generalised VQE still preserves the advantages of standard VQE distinct from decreased evolution time. For example, it is only necessary to estimate expectations of Pauli operators, which requires much less circuit depth to implement than 6Xp(—Hit), as already discussed. Also, robustness via self correction is preserved because generalised VQE is still

variational meaning it could still give accurate results without quantum error correction. Also, parameters to prepare the variational ansatz |ψ(Α)) at each optimisation iteration may be classically stored.

Additional comments

The use of an iterative process within a summand expectation value determination sub-routine has never been considered within the framework of VQE, let alone implemented. The use of an iterative process in the manner described within the context of a quantum computer often increases the circuit depth requirements and hence requires a quantum computer having a longer coherence time. The prevailing thinking amongst researchers using VQE is that coherence time requirements should be reduced as far as possible so as to maximise the usefulness of VQE on today's quantum computers. Thus, a large number of identical, short circuits are used. In sharp contrast, the present method comprises performing a summand expectation value determination sub-routine a plurality of times in an iterative process. In some embodiments, each iteration of the summand expectation value determination sub-routine also comprises constructing a new quantum circuit based on the coherence time of the quantum computer and/or processor. With future quantum processors that will have longer coherence times, the energy levels of increasingly complex physical systems, for example larger molecules, can be probed. This type of iterative process within the sub-routine has never been considered before within the framework of VQE methods, and in fact goes against the current direction of VQE research.

Until the presently disclosed method, it was not known how to gain useful information from the increased coherence time in the context of the VQE algorithm. The current prevailing thought is that because the state \lp(X)), is not an eigenvector of the measurement operator, Pj, the only way to learn information is via statistical sampling. The present method shows that by modifying both the quantum state preparation and measurement operator together, an increase in the coherence time can result in significantly reduced runtime.

Another key algorithmic gain of the generalised VQE is the freedom to choose from a continuous range of regimes between statistical sampling and phase estimation.

Indeed neither edge regime is typically ideal: statistical sampling requires N = 0(l/e 2 ) repetitions whereas phase estimation requires D =

0(l/e) coherence time. Each of these two regimes has been criticised by researchers using the other regime in exactly this way. The generalised VQE can directly answer such criticisms by optimally choosing a to trade off N and D, according to given costs on each. As is explained above, S is a factor determined based on the coherence time of the quantum computer and the required accuracy in the measurement. The ability to discard and create new quantum circuits in the summand expectation value determination sub-routine, each newly created circuit having a complexity based on the available coherence time and the required accuracy in the estimate, means that full advantage is taken of available resources . This in turn reduces the time taken to determine the state energy. The ability to base the complexity of the quantum circuits comprised within each iteration of the summand determination sub-routine on the coherence time of the quantum computer is particularly important when one considers the speed with which the field of quantum computing is developing. It is envisaged that new quantum computers with longer coherence time will be produced as the field and corresponding technology develops. The present method will allow the speed and accuracy with which experimenters and scientists can probe the energy levels of a physical system to keep up with the pace of technological improvement, and in particular to allow researchers to make the most of available coherence times . On the other hand, the tt-QPE is of independent theoretical interest in understanding the relationship between quantum (D) and classical (N) resources. Moreover tt-QPE maps to a continuous transition between the standard quantum limit and Heisenberg limit in quantum metrology which further clarifies these two

limits, in particular the confusion between N and D in them.

Similarly, making use of the same arrangement of quantum gates, R, in producing the new quantum circuits for each iteration of the summand expectation value determination sub-routine is beneficial because it provides greater efficiencies in the method, reducing the time required to construct and implement new quantum circuits and different arrangements of quantum gates, thus further reducing the time required to determine the state energy level of the physical system.

The design of the methods of the present disclosure are motivated by technical considerations of the internal functioning of a quantum computer. In particular, in view of the constraints of modern day quantum computers such as the maximum available coherence time, the present methods include constructing quantum circuits within the quantum computer with a complexity that depends on the coherence time of the computer, in order to maximally exploit the available coherence time to determine an energy level of a physical system.

Reference is made herein to an energy level of a physical system. The physical system could be any of an atom, a molecule, a collection of atoms, enzyme or part thereof, chemical, or material such as a potential

superconductor. In each case, the energy level plays a central role in elucidating the properties of the chemical structures and reactions and as such has many applications in materials design, the design of new

pharmaceuticals, or the design of novel catalysts.

In the search for new pharmaceuticals, the binding energy between the candidate drug and a target protein can be obtained from the methods of the present disclosure. This binding affinity is routinely used in the screening for candidate molecules as it is used to test if the molecule has the desired effect. In the exploration of crystalline materials, the physical system

corresponds to a bulk or surface of the material for example, composed of Lithium Ions (Li-Ions) . The electric structure that can be derived by using the energy level of the system in order to design a material with specific properties . For example, the energy level is used to optimize the properties of the electroactive crystals in the design of better Li-ion batteries .

The high level of accuracy that results from the methods disclosed herein enables the calculation of the energetics of reaction intermediates and the kinetic barriers between molecules involved in a chemical reaction. This ability to predict and tune the reaction conditions enables the design of fast and energy efficient catalysts for applications such as the production of ammonia for use in fertiliser.

In addition, many other problems can be solved by mapping to a Hamiltonian and solving by finding an energy level such as the ground state. For example, optimisation problems as diverse as scheduling tasks or searching for faults in a circuit can be effectively solved by this method. As will be understood by the skilled person, an energy level of a physical system refers to the eigenvalues of the corresponding Hamiltonian.

To give an example of the many industrial applications of the present method, the search for a more efficient means of producing fertiliser is an example of a technological problem which could be aided by better understanding of reactant energy levels. The production of ammonia via the Haber-Bosch process is crucial for fertiliser production, but requires both high pressure and high temperatures and as a result is a very energy intensive process. Nitrogenase, in contrast, is an enzyme that achieves the same task at room temperature and at standard pressure, and there is therefore intense interest in understanding the nitrogenase enzyme. It is known that greater knowledge of the energy levels of the iron-molybdenum cofactor (FeMo-co) within the MoFe protein contained in the Nitrogenase enzyme would lead to significant advances in the discovery of a more efficient method for producing ammonia.

The approaches described herein may be embodied on a computer-readable medium, which may be a non-transitory computer-readable medium. The computer-readable medium carrying computer-readable instructions arranged for execution upon a processor so as to make the processor carry out any or all of the methods described herein.

The term "computer-readable medium" as used herein refers to any medium that stores data and/or instructions for causing a processor to operate in a specific manner. Such storage medium may comprise non-volatile media and/or volatile media. Non-volatile media may include, for example, optical or magnetic disks. Volatile media may include dynamic memory. Exemplary forms of storage medium include, a floppy disk, a flexible disk, a hard disk, a solid state drive, a magnetic tape, or any other magnetic data storage medium, a CD-ROM, any other optical data storage medium, any physical medium with one or more patterns of holes, a RAM, a PROM, an EPROM, a FLASH-EPROM, NVRAM, and any other memory chip or cartridge. It will be understood that the above description of specific embodiments is by way of example only and is not intended to limit the scope of the present disclosure. Many modifications of the described embodiments are envisaged and intended to be within the scope of the present disclosure.

The above implementations have been described by way of example only, and the described implementations and arrangements are to be considered in all respects only as illustrative and not restrictive. It will be appreciated that variations of the described implementations and arrangements may be made without departing from the scope of the invention.

Mathematical Uppandioas

Derivation of N and D for iZ-QPE

For a normal prior it is possible to calculate the expected

2

posterior variance (i.e. the Bayes risk) by the formula

The variance, Γ 2 , is bounded from below by an envelope

which is minimised at:

However, this may be far away from the minimising due to oscillations of T 2 , as a function of M, above this envelope. The rate of these oscillations is controlled by Θ. It is understood that the optimal "washes out" these oscillations, thereby aligning Γ 2 closer to its envelope. In the appendix below, the choice for optimal M and Θ is justified to be of the form

For is used as a trial with H E R to give:

where :

It is possible to show, that g is maximised at taking

maximum value g max = 0.307; a plot of Q is given in Figure 6. So T 2 is minimised at CL = CLQ taking minimum value:

where fcg «0.693. This means that, after each iteration of RFPE, the variance is expected to (at least) decrease by a factor of feg when M and Θ are chosen optimally, as detailed in the Appendix below.

Writing <7 n for the standard deviation at the 7l-th iteration, (5) is rewritten as Taking expectation over tne Law of Iterated Expectation gives :

The small variance and subsequent assumptions/approximations are justified by good agreement of the final results with numerical simulations, shown in Figures 7 and 8. Note that the accuracy of later approximations based on Taylor series expansions can be assessed via the order of expansion.

Writing T n := E[<T n ] for the expected standard deviation at the il-th iteration, (7) can be rewritten as:

so the standard deviation is expected to decrease exponentially with the number of iterations of RFPE.

Since T n of RFPE decreases exponentially with 71, the use of M OC l/<X n at the n-th iteration means M is expected to increase exponentially with n. This means that RFPE is indeed in the phase estimation regime which still has the same problem of requiring an exponentially long coherence time in the number of bits of precision required.

The present invention addresses the problem of long coherence time by considering N,D regimes that lay continuously between phase estimation and statistical sampling.

Observe that RFPE uses M = 0(l/(f) and is in the phase estimation regime, but if M = 0(1) at each iteration, the statistical sampling regime is recovered. Instead, considering M of the form:

with an introduced CC £ [0,1] and some ( facilitate a

transition between the two regimes .

Substituting the near optimal but into (1), giving expected posterior variance:

29

where and g is as defined above. If

( ) but a is independent of O. From the graph of g (shown in

Figure 6) , we see there is no natural way to define an

except when £Z = 1. It is possible take CL = CLQ (which is independent of £∑) but instead set CL = 1 for notational convenience. It is necessary for

Taylor approximations and divisions by (1— tz) to also assume CC Φ 1 unless stated otherwise.

For G small, and so b small:

which can be substituted into (10) to give the following upon taking expectations and using earlier assumption that

Assess (16) with respect to the recurrence (14)it intended to solve by substituting it back, giving:

30

This means that for is expected to improve as a solution to

(14) as 71 Q increases (and so decreases) .

Equations (16) and (8) are plotted (the latter for completeness but with reset to against numerical

simulations of RFPE between iterations 0 to 90 with two initial conditions and (20, Γ20) · The numerical simulations are shown in

Figure 7 and 8 and show good agreement with the analytical (16) and (8). Note that (16) neatly reduces to the form of (8) in the CC = 1 limit but not exactly because of the inaccuracy of approximation (11) when tt = 1.

Finally, rearranging(16) gives :

Wherein

and (9) gives :

By setting shows that the expected number of samples used in the tt-QPE algorithm scales as

31

The optimality (in RFPE) of both and the form is justified using the argument below. Recall that the probability of measuring E = 0 in the RFPE circuit is:

In order to gain maximal information about φ, the range of PQ has to uniquely and maximally vary across the domain of uncertainty in φ. The Bayesian RFPE conveniently gives this domain of

uncertainty at each iteration. A naive domain on which the range of COS uniquely and possibly maximally varies is [0,7Τ]. So it is desirable to control (Μ,θ~) such that is equal to i.e.

This has solution:

which is not far from the optimal choice found in the appendix above.

Intuitively, the slight discrepancy could only be due to [0,7Τ] not being the domain on which cosine uniquely and maximally varies.

Figure 6 shows a plot of As can be appreciated, O has

maxima at and minima at

( )

Optimal a-QPB

In an experimental setting, N is the number of state preparations or the number of measurements; while D is proportional to the maximum coherence time. Attention is now turned to the optimal CC that should be chosen given restrictions or costs on N and D. If zero cost is associated with N but some cost is associated with D then it is clear that the statistical sampling regime is best. Conversely, if some cost is associated with N but zero cost is associated with D then the phase estimation regime is best.

A study is presented wherein the particular constraint that (1≤)Z)≤ DQ for some constant DQ, i.e. D cost is zero until some threshold when it becomes infinite. This is experimentally realistic with DQ equal to the transverse coherence time 7 * 2 but where the standard e-^ 7"2 model for coherence is approximated by a step-function in t that jumps from full coherance to zero

32 coherance at t = T2 . This step-function approximation is made in order to facilitate the following analytical analysis.

If precision is required and N is to be minimized and

(16) is assumed to be true. Using above, N is a decreasing function of CC . Therefore the minimal N is attaied at the maximal CC =

The important point here is the inverse quadratic scaling with DQ in the second case: through CC it is possible to use all the coherence time available to the quantum computer to reduce the number of iterations.

Without CC, and if DQ < 1/f, then the quantum computer is resorted to statistical sampling with:

which can mean significantly more iterations compared to (22. This study explicitly prescribes an optimal CC given a realistic form of costs on N and D. A flowchart of optimal QT-QPE is presented in Figure 9.

Appendix: RFPE-with-xestaxts

Recall that, (16) is assumed as true, requiring precision within

considering the particular constraint that for some constant

DQ, i.e. D cost is zero until some threshold when it becomes infinite, and it is desired to minimise costs N. Here the N required by RFPE-

with-restarts is calucuated, assuming decoherence is detected immediately at which point RFPE switches from phase estimation to statistical sampling.

Now, gives a maximum of iterations in this phase

estimation regime. For RFPE-with-restarts switches to statistical

sampling with M held constant at DQ. (18) then gives (under change of variable throughout the derivation) the minimum number of total iterations of RFPE-with-restarts as:

33 Again, an inverse quadratic scaling is seen with DQ in the second case. In fact, this is always advantageous over the in (26)of optimal tt-QPE, with equality if { } [ / . One way of seeing

this is by writing D where when giving:

where with equality iff

While Nmln'— ^min' it i s less clear is if the experiment time (as opposed to number) of RFPE-with-restarts is also less than optimal tt-QPE should experiment time been regarded as proportional to the sum of the M used at each iteration.. In any case, should RFPE-with-restarts outperform optimal tt-QPE in all relevant ways, it is possible use RFPE-with-restarts in the generalised VQE algorithm and the analysis of tt-QPE serves to elucidate

RFPE' s performance in the statistical sampling tt = 0 regime. From this, it is possible to see that any QPE procedure may be substituted into the framework of generalised VQE.

It is presented that the two equations (24), (22) can be interpreted as two tradeoff relationships between classical resources (N) and maximal quantum resources (D)

a-QPE analytical versus numerical precision

As can be seen from figure 7, equation (16) agrees well with numerical simulations of RFPE for different values of tt. Each simulation was performed with 200 randomised values of the true eigenphase φ (over which the mean is taken) and 900 samples from the posterior at each iteration obtained by rejection filtering. The plots on the left and right figures use initial conditions ο respectively. The fit through is more accurate for is expected since T n decreases as 71 increases, which improves all approximations based on T n small .

a-QPE precision versus accuracy

As can be seen from the graphs of figure 8, good agreement is shown between the mean prior standard deviation and median prior standard deviation (left) . The latter agrees qualitatively but not quantitatively with the median error (right, note that the pink lines going from above to below correspond to tt increasing. That the median errors appear to tend toward zero would be a consequence of the asymptotic consistency of f^. This fact

34 does not preclude the mean errors (not plotted) not tending towards zero and In fact they do not .

35