Telling stories makes us human, and we can tell a compelling story about quantum computing. It goes something like this:
The universe is quantum. To understand it and harness its powers we need to embrace quantum mechanics as a core principle for new technologies. This is the promise of quantum computers: they are the most powerful simulators possible and building them will revolutionize computation forever.
This is an appealing message that is easy to believe, but it doesn’t explain exactly why quantum computers are the ultimate simulators, nor does it specify precisely how they can revolutionize computations. The reality is that even quantum computers have limitations in their capabilities, and we are still uncovering the most efficient quantum algorithms to solve important problems, while understanding how they compare to the best existing methods.
In this post, we share two short lessons learned while thinking deeply about quantum algorithms. They motivate a strategic focus of the quantum algorithms team at Xanadu to think critically and with a long-term perspective. Our goal is to deeply understand the most promising directions for future research in quantum algorithms. We focus specifically on quantum chemistry, a field of industrial importance that is fundamentally linked with understanding the quantum properties of matter. We share insights on the role that quantum computers play as the ultimate simulators by reflecting on arguably the leading quantum algorithms for quantum chemistry: the variational quantum eigensolver and quantum phase estimation.
Lesson 1: The variational quantum eigensolver algorithm faces a fundamental scalability challenge, the measurement problem, that undermines its potential to tackle problems beyond the reach of existing classical methods.
To extract information from a quantum state, for example its energy, variational algorithms need to perform a number of estimates that grows with the number of parameters in the Hamiltonian describing the system. To optimize a quantum circuit, at least one such information-extraction step has to be performed for each circuit parameter. The number of Hamiltonian parameters and the number of circuit parameters both scale rapidly with system size, leading to an overall cost that becomes prohibitive for larger systems, especially when high accuracy is required. This is compounded by the inherent difficulty of achieving high-precision calculations through sampling statistical estimators. These issues are fundamental — solving them requires new algorithms.
Lesson 2: The best fault-tolerant quantum algorithms can perform high-accuracy electronic structure calculations without the need for approximations. They use resources that scale similarly to the best classical methods, which in contrast rely on approximations and cannot guarantee the high accuracy that quantum algorithms achieve.
It has been known for years that advanced quantum algorithms based on quantum phase estimation can perform electronic structure calculations in sub-exponential time with accuracy that rivals exact diagonalization methods. Moreover, they can do this generally for any system given only an input Hamiltonian. This guarantee of simultaneously achieving high accuracy, efficiency, and generality is a feat that is believed to be impossible for classical algorithms.
However, despite their sub-exponential scaling, the precise cost of early versions of quantum algorithms was concerning, casting doubts on their practicality. Recent advances in quantum algorithms such as qubitization [1] and first-quantization methods with optimized compilation [2] have greatly reduced resource requirements to the point that they are comparable to classical methods. These algorithms are not heuristics — they are guaranteed to achieve their stated capabilities.
These two insights paint a clear picture: we should continue to innovate on designing better quantum algorithms, with a long-term perspective. For variational algorithms, we will benefit from thinking beyond their usual formulations and invent new strategies that can address their fundamental obstacles. For algorithms based on quantum phase estimation, there is significant room for further reducing resource requirements and for tailoring them to specific application areas.
In the content below, we expand on these two lessons, beginning with a summary of fault-tolerant quantum algorithms for quantum chemistry. These sections are more technical as we explore the details that support the lessons shared above.
Quantum computers are the ultimate simulators for quantum chemistry
Quantum phase estimation is the main method in fault-tolerant quantum algorithms for quantum chemistry. It is arguably the most powerful primitive in all of quantum computing, and it is also used as a subroutine in Shor’s factoring algorithm. The task is the following, we are given:
- A quantum circuit that can implement a unitary operator
, and - An eigenstate
of such that .
The quantum phase estimation algorithm can compute
If instead we are given an input state
Many properties of molecules and materials can be understood by calculating the eigenvalues of their corresponding Hamiltonian
A more advanced encoding method is a technique known as qubitization [1]. It starts by expressing the Hamiltonian as a linear combination of unitaries
where
where
Finally, we define the selection operator
Then the qubitization operator
has eigenvalues equal to
Quantum phase estimation can be used to estimate the phase
To estimate
How difficult is it to implement
up to logarithmic factors. The important point here is that the degree of this polynomial scaling is small, and the complexity is only inversely proportional to the error in the estimation.
Careful estimates of the precise cost of simulation were performed in [2] for various molecules, including the electrolyte lithium hexafluorophosphate consisting of 72 electrons. The authors estimated that roughly
The actual runtime will depend on the clock rate of the quantum computer. Suppose that the quantum computer can fault-tolerantly implement Toffoli gates at an optimistic rate of 100 MHz. Then the molecule could be simulated in times ranging from 8 seconds to ~3.5 hours depending on the number of plane waves used. Continued efforts on quantum algorithms can help bring these values further down. Of course, these are only estimates, and further complications may arise when analyzing these algorithms in more detail. Nonetheless, they are helpful in quantifying what quantum computing can do for quantum chemistry as we continue to strive towards fault-tolerance.
Scaling VQE: a back-of-the-envelope calculation
A standard argument for the merits of quantum algorithms for quantum chemistry is that the state of a system with
In the variational quantum eigensolver (VQE) algorithm, a parametrized circuit is optimized to minimize the expectation value
and compute the expectation value term-by-term as
The expectation values
To train the quantum circuit, we need to further compute an update rule for each of its parameters. Regardless of the optimization method, during the entire optimization run each parameter must be updated at least once, which requires computing the cost function
Assume that we want to perform one optimization step updating all circuit parameters by computing the corresponding expectation values with error
Let
samples. This is a consequence of the square-root law in statistical estimation. In our case, we actually need to compute the sum of
Finally, we need to perform this estimation for each gate in the circuit, leading to a total of
samples. How do
which is already a worse asymptotic scaling than the fault-tolerant algorithms discussed above, especially for high-accuracy calculations that require a large number of qubits.
This estimate is likely too optimistic. In second-quantization, where we can use optimized molecular orbitals to reduce the value of
On top of this, we expect additional resources to perform all the required steps for fully optimizing the circuit.
These are only rough approximations using simple methodologies, but hopefully they convey the information that high-accuracy estimation of expectation values is difficult. More concrete resource estimates have been performed in the literature, reaching similar conclusions. For example, one paper [3] estimates that performing a high-accuracy calculation of a single expectation value, i.e., without including the full cost of optimization, requires around 1.9 days for the methane molecule and 71 days for ethanol.
There are several clever techniques that can be used to improve scaling, for example updating parameters in batches, subsampling terms in the Hamiltonian during training, lowering accuracy targets during training, or using Bayesian techniques for more efficient parameter estimation. Other methods have also been introduced recently, see for example [4] and [5]. It is crucial to develop these techniques and to incorporate them in existing workflows, but the fact remains that computing expectation values is very challenging and it is a major obstacle for the variational quantum eigensolver.
Conclusion
If we can build fault-tolerant quantum computers, we can achieve a new paradigm of simulation for quantum chemistry. This is one of the most difficult technological challenges that humans have ever pursued and there are no guarantees that we will be successful. But if we get there, there is a mathematical foundation that guarantees that we can simulate important properties of molecules and materials with higher accuracy than ever before, potentially with similar resources than existing classical methods. To unlock this capability, it is crucial to hold a long-term perspective and to deeply understand the scaling and cost of quantum algorithms. This requires both a systematic improvement of existing methods and continued innovation to develop better ones. It is an exciting time for quantum algorithms research.
References
[1] G.H. Low and I. Chuang, Hamiltonian simulation by qubitization.
[2] Y. Su, D. Berry, N. Wiebe, N. Rubin, and R. Babbush, Fault-tolerant quantum simulations of quantum chemistry in first quantization
[3] J.F. Gonthier, M.D. Radin, C. Buda, E.J. Doskocil, C.M. Abuan, and J. Romero, Identifying challenges towards practical quantum advantage through resource estimation: the measurement roadblock in the variational quantum eigensolver
[4] Amara Katabarwa, Alex Kunitsa, Borja Peropadre, Peter Johnson, Reducing runtime and error in VQE using deeper and noisier quantum circuits
[5] Hsin-Yuan Huang, Richard Kueng, John Preskill, Efficient estimation of Pauli observables by derandomization
About the author
Juan Miguel Arrazola
Making quantum computers useful