
Efficient inference in the transverse field Ising model
E. Dom´ınguez∗and H.J. Kappen†
Donders Institute for Brain, Cognition and Behavior. Radboud University. The Netherlands
(Dated: January 30, 2023)
In this paper we introduce an approximate method to solve the quantum cavity equations for
transverse field Ising models. The method relies on a projective approximation of the exact cavity
distributions of imaginary time trajectories (paths). A key feature, novel in the context of similar
algorithms, is the explicit separation of the classical and quantum parts of the distributions. Nu-
merical simulations show accurate results in comparison with the sampled solution of the cavity
equations, the exact diagonalization of the Hamiltonian (when possible) and other approximate
inference methods in the literature. The computational complexity of this new algorithm scales
linearly with the connectivity of the underlying lattice, enabling the study of highly connected
networks, as the ones often encountered in quantum machine learning problems.
I. INTRODUCTION
Many relevant systems in statistical mechanics, combinatorial optimization and quantum information theory can
be mapped to realizations of the so-called transverse field Ising model (TFIM) [1, 2]. Notable examples include Kitaev
1D chains [3, 4], many NP-complete problems such as 3SAT [5] and the foundations of the whole field of adiabatic
quantum computation [6–8]. Given its numerous applications, the study of the properties of this lattice spin model
has attracted considerable attention in the last decades. Thanks to that, much have been learned about the nature
of quantum phase transitions, especially for the 1D case. However, despite all efforts, doing inference (i.e. computing
observables) remains very hard in the general case. The problem stems, as usual, from the exponential increase in size
of the Hilbert space with the number of variables. There are two potential ways around the dimensionality curse. One
is using a quantum computer to directly implement the required Hamiltonian and let Nature deal with the Hilbert
space. Unfortunately, the development of a general purpose quantum computer seems to be at least some decades in
the future and near term devices are challenged by decoherence effects and thermal fluctuations. The other option is
to make use of suitable approximations and make computations in a classical device.
The quantum cavity method (QC), introduced in [9, 10], enables a reduction of the complexity of the inference
tasks for a TFIM. It combines an imaginary-time path integral expansion of the density matrix with the cavity
formalism, well known in the study of classical disordered systems [11]. As in the conventional cavity approach,
QC establishes that all the information of the system is encoded in the set of single variable cavity distributions for
interaction networks lacking short loops. This is not true for general topologies but QC remains a useful mean field
approximation in that scenario.
The set of coupled equations that determine the cavity distributions can be, at least in principle, solved by an
iterative procedure, formally equivalent to the message passing algorithm known as Belief Propagation (BP) [12]. In
practice, the implementation cost is similar to a population dynamics algorithm [13], with the important difference
that in the present case the sampled variables are trajectories and not real values. There are problems for which
the inference calculations must be repeated many times, e.g. for the learning loop of a quantum Boltzmann machine
[14, 15]. Therefore, it is highly desirable to develop time- and memory-efficient (albeit approximated) methods to solve
the QC equations. This is the main purpose of the present work. By focusing of the structure of the QC equations
and the properties of the cavity distributions we will be able to derive a fast, precise and flexible solution to the
inference problem for the TFIM. To put our analysis in context, we will consider the predictions of other previously
developed inference methods. Moreover, we will show how these approximations fit into the QC formalism.
Following the introduction of QC, approximated solution schemes were devised to further reduce its computational
burden. Already in [10], the static approximation was proposed as a cheaper way to obtain qualitatively correct results.
The static numerical predictions, however, are far from ideal. Of special interest to us is the projective procedure
employed in [16], by which the information in the (cavity) distribution is compressed to just a couple effective field
parameters. Remarkably, the projected cavity method (PCM), developed therein, is quite precise in the numerical
estimation of the observables and the critical temperature of sparse ferromagnetic lattices. Two drawbacks of PCM
are the disadvantageous scaling (exponential) of the running time with the system connectivity and that it is specially
∗eduardo.dominguezvazquez@donders.ru.nl
†b.kappen@science.ru.nl
arXiv:2210.11193v2 [cond-mat.dis-nn] 27 Jan 2023