Efficient calculation of gradients in classical simulations of
variational quantum algorithms
- URL: http://arxiv.org/abs/2009.02823v1
- Date: Sun, 6 Sep 2020 21:39:44 GMT
- Title: Efficient calculation of gradients in classical simulations of
variational quantum algorithms
- Authors: Tyson Jones, Julien Gacon
- Abstract summary: We present a novel derivation of an emulation strategy to precisely calculate the gradient in O(P) time.
Our strategy is very simple, uses only 'apply gate', 'clone state' and 'inner product' primitives.
It is compatible with gate parallelisation schemes, and hardware accelerated and distributed simulators.
- Score: 0.0
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: Calculating the energy gradient in parameter space has become an almost
ubiquitous subroutine of variational near-term quantum algorithms. "Faithful"
classical emulation of this subroutine mimics its quantum evaluation, and
scales as O(P^2) gate operations for P variational parameters. This is often
the bottleneck for the moderately-sized simulations, and has attracted HPC
strategies like "batch-circuit" evaluation. We here present a novel derivation
of an emulation strategy to precisely calculate the gradient in O(P) time and
using O(1) state-vectors, compatible with "full-state" state-vector simulators.
The prescribed algorithm resembles the optimised technique for automatic
differentiation of reversible cost functions, often used in classical machine
learning, and first employed in quantum simulators like Yao.jl. In contrast,
our scheme derives directly from a recurrent form of quantum operators, and may
be more familiar to a quantum computing community. Our strategy is very simple,
uses only 'apply gate', 'clone state' and 'inner product' primitives and is
hence straightforward to implement and integrate with existing simulators. It
is compatible with gate parallelisation schemes, and hardware accelerated and
distributed simulators. We describe the scheme in an instructive way, including
details of how common gate derivatives can be performed, to clearly guide
implementation in existing quantum simulators. We furthermore demonstrate the
scheme by implementing it in Qiskit, and perform some comparative benchmarking
with faithful simulation. Finally, we remark upon the difficulty of extending
the scheme to density-matrix simulation of noisy channels.
Related papers
- Efficient Learning for Linear Properties of Bounded-Gate Quantum Circuits [63.733312560668274]
Given a quantum circuit containing d tunable RZ gates and G-d Clifford gates, can a learner perform purely classical inference to efficiently predict its linear properties?
We prove that the sample complexity scaling linearly in d is necessary and sufficient to achieve a small prediction error, while the corresponding computational complexity may scale exponentially in d.
We devise a kernel-based learning model capable of trading off prediction error and computational complexity, transitioning from exponential to scaling in many practical settings.
arXiv Detail & Related papers (2024-08-22T08:21:28Z) - Compact quantum algorithms for time-dependent differential equations [0.0]
We build on an idea based on linear combination of unitaries to simulate non-unitary, non-Hermitian quantum systems.
We generate hybrid quantum-classical algorithms that efficiently perform iterative matrix-vector multiplication and matrix inversion operations.
arXiv Detail & Related papers (2024-05-16T02:14:58Z) - Fast Classical Simulation of Hamiltonian Dynamics by Simultaneous
Diagonalization Using Clifford Transformation with Parallel Computation [0.8206877486958002]
We propose a technique to accelerate simulation of quantum dynamics via simultaneous diagonalization of mutually commuting Pauli groups.
Compared to an implementation using one of the fastest simulators of quantum computers, our method provides a few tens of times acceleration.
arXiv Detail & Related papers (2022-06-23T12:39:54Z) - Commutation simulator for open quantum dynamics [0.0]
We propose an innovative method to investigate directly the properties of a time-dependent density operator $hatrho(t)$.
We can directly compute the expectation value of the commutation relation and thus of the rate of change of $hatrho(t)$.
A simple but important example is demonstrated in the single-qubit case and we discuss extension of the method for practical quantum simulation with many qubits.
arXiv Detail & Related papers (2022-06-01T16:03:43Z) - Quantum algorithms for quantum dynamics: A performance study on the
spin-boson model [68.8204255655161]
Quantum algorithms for quantum dynamics simulations are traditionally based on implementing a Trotter-approximation of the time-evolution operator.
variational quantum algorithms have become an indispensable alternative, enabling small-scale simulations on present-day hardware.
We show that, despite providing a clear reduction of quantum gate cost, the variational method in its current implementation is unlikely to lead to a quantum advantage.
arXiv Detail & Related papers (2021-08-09T18:00:05Z) - Fixed Depth Hamiltonian Simulation via Cartan Decomposition [59.20417091220753]
We present a constructive algorithm for generating quantum circuits with time-independent depth.
We highlight our algorithm for special classes of models, including Anderson localization in one dimensional transverse field XY model.
In addition to providing exact circuits for a broad set of spin and fermionic models, our algorithm provides broad analytic and numerical insight into optimal Hamiltonian simulations.
arXiv Detail & Related papers (2021-04-01T19:06:00Z) - Efficient classical calculation of the Quantum Natural Gradient [0.0]
Quantum natural gradient has emerged as a superior minimisation technique in quantum variational algorithms.
We present a novel simulation strategy to precisely calculate the quantum natural gradient in O(P2) gates and O(1) state-vectors.
arXiv Detail & Related papers (2020-11-05T17:29:16Z) - Fast simulation of quantum algorithms using circuit optimization [0.0]
We propose a specialized compiler pass to reduce the simulation time for arbitrary circuits.
The communication overhead is reduced by changing the order in which state amplitudes are stored.
We then implement a compiler pass to exploit the novel functionalities.
arXiv Detail & Related papers (2020-10-19T18:00:20Z) - Preparation of excited states for nuclear dynamics on a quantum computer [117.44028458220427]
We study two different methods to prepare excited states on a quantum computer.
We benchmark these techniques on emulated and real quantum devices.
These findings show that quantum techniques designed to achieve good scaling on fault tolerant devices might also provide practical benefits on devices with limited connectivity and gate fidelity.
arXiv Detail & Related papers (2020-09-28T17:21:25Z) - Simulating nonnative cubic interactions on noisy quantum machines [65.38483184536494]
We show that quantum processors can be programmed to efficiently simulate dynamics that are not native to the hardware.
On noisy devices without error correction, we show that simulation results are significantly improved when the quantum program is compiled using modular gates.
arXiv Detail & Related papers (2020-04-15T05:16:24Z) - Efficient classical simulation of random shallow 2D quantum circuits [104.50546079040298]
Random quantum circuits are commonly viewed as hard to simulate classically.
We show that approximate simulation of typical instances is almost as hard as exact simulation.
We also conjecture that sufficiently shallow random circuits are efficiently simulable more generally.
arXiv Detail & Related papers (2019-12-31T19:00:00Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.