<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Archiving and Interchange DTD v2.3 20070202//EN" "archivearticle.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="methods-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. ICT</journal-id>
<journal-title>Frontiers in ICT</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. ICT</abbrev-journal-title>
<issn pub-type="epub">2297-198X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fict.2016.00023</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>ICT</subject>
<subj-group>
<subject>Methods</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Global Warming: Temperature Estimation in Annealers</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Raymond</surname> <given-names>Jack</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="corresp" rid="cor1">&#x0002A;</xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Yarkoni</surname> <given-names>Sheir</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<uri xlink:href="http://frontiersin.org/people/u/355321"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Andriyash</surname> <given-names>Evgeny</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<uri xlink:href="http://frontiersin.org/people/u/374274"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>D-Wave Systems Inc.</institution>, <addr-line>Burnaby, BC</addr-line>, <country>Canada</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Federico Maximiliano Spedalieri, USC, USA</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Jonas Maziero, Universidade Federal de Santa Maria, Brazil; Marco Alberto Javarone, University of Cagliari, Italy</p></fn>
<corresp content-type="corresp" id="cor1">&#x0002A;Correspondence: Jack Raymond, <email>jraymond&#x00040;dwavesys.com</email></corresp>
<fn fn-type="other" id="fn001"><p>Specialty section: This article was submitted to Quantum Computing, a section of the journal JNL Name.</p></fn>
</author-notes>
<pub-date pub-type="epub">
<day>07</day>
<month>11</month>
<year>2016</year>
</pub-date>
<pub-date pub-type="collection">
<year>2016</year>
</pub-date><volume>3</volume>
<elocation-id>23</elocation-id>
<history>
<date date-type="received">
<day>30</day>
<month>07</month>
<year>2016</year>
</date>
<date date-type="accepted">
<day>10</day>
<month>10</month>
<year>2016</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2016 Raymond, Yarkoni and Andriyash.</copyright-statement>
<copyright-year>2016</copyright-year>
<copyright-holder>Raymond, Yarkoni and Andriyash</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license>
</permissions>
<abstract>
<p>Sampling from a Boltzmann distribution is NP-hard and so requires heuristic approaches. Quantum annealing is one promising candidate. The failure of annealing dynamics to equilibrate on practical time scales is a well understood limitation, but does not always prevent a heuristically useful distribution from being generated. In this paper, we evaluate several methods for determining a useful operational temperature range for annealers. We show that, even where distributions deviate from the Boltzmann distribution due to ergodicity breaking, these estimates can be useful. We introduce the concepts of local and global temperatures that are captured by different estimation methods. We argue that for practical application it often makes sense to analyze annealers that are subject to post-processing in order to isolate the macroscopic distribution deviations that are a practical barrier to their application.</p>
</abstract>
<kwd-group>
<kwd>quantum annealing</kwd>
<kwd>thermal annealing</kwd>
<kwd>maximum likelihood estimation</kwd>
<kwd>pseudo-likelihood</kwd>
<kwd>ergodicity breaking</kwd>
</kwd-group>
<counts>
<fig-count count="14"/>
<table-count count="0"/>
<equation-count count="13"/>
<ref-count count="53"/>
<page-count count="93"/>
<word-count count="14087"/>
</counts>
</article-meta>
</front>
<body>
<sec id="S1" sec-type="introduction">
<label>1</label> <title>Introduction</title>
<p>Boltzmann distributions are important in many areas of science, and sampling from these distributions is a major bottleneck in many interesting applications. The tasks of uniform generation, approximate counting, and inference (e.g., estimation of marginal probabilities) are often NP-hard (Sinclair and Jerrum, <xref ref-type="bibr" rid="B50">1989</xref>; Cooper, <xref ref-type="bibr" rid="B14">1990</xref>; Long and Servedio, <xref ref-type="bibr" rid="B36">2010</xref>). Heuristic samplers that sample approximately from a Boltzmann distributions are applied in practice to large scale problems [for example, in machine learning (Salakhutdinov and Hinton, <xref ref-type="bibr" rid="B47">2009</xref>; Rolfe, <xref ref-type="bibr" rid="B45">2016</xref>)].</p>
<p>One approach to heuristic sampling is to use an annealer. Whether thermal or quantum, an annealer generates independent samples by slowly transforming an easily prepared initial state into a random final state associated with a given objective function (Kirkpatrick et al., <xref ref-type="bibr" rid="B33">1983</xref>; Kadowaki and Nishimori, <xref ref-type="bibr" rid="B29">1998</xref>). In the case of the simulated thermal annealer (STA), an initial random sample is evolved through a schedule of decreasing temperature toward a specified terminal temperature (Kirkpatrick et al., <xref ref-type="bibr" rid="B33">1983</xref>; Landau and Binder, <xref ref-type="bibr" rid="B34">2005</xref>). In quantum annealing, the initial state is a ground state of some driver Hamiltonian (often a uniform superposition of states). During the annealing process, the state is evolved by slowly changing the Hamiltonian toward the target Hamiltonian (Kadowaki and Nishimori, <xref ref-type="bibr" rid="B29">1998</xref>).</p>
<p>Although annealers have primarily been considered in the context of optimization, they can also be used as heuristic samplers of Boltzmann distributions. With sufficient resources, STA samples from a Boltzmann distribution (Kirkpatrick et al., <xref ref-type="bibr" rid="B33">1983</xref>; Neal, <xref ref-type="bibr" rid="B39">1993</xref>). However, the resources required per sample to achieve this are prohibitory in interesting applications, so that it is typically run as a heuristic without theoretical guarantees. Previous studies have also indicated that samples produced by the D-Wave quantum annealers may produce samples well described by finite temperature Boltzmann distributions (Bian et al., <xref ref-type="bibr" rid="B9">2010</xref>; Denil and de Freitas, <xref ref-type="bibr" rid="B16">2011</xref>; Amin, <xref ref-type="bibr" rid="B2">2015</xref>; Benedetti et al., <xref ref-type="bibr" rid="B6">2016</xref>; Dumoulin et al., <xref ref-type="bibr" rid="B18">2015</xref>; Amin et al., <xref ref-type="bibr" rid="B3">2016</xref>).</p>
<p>In this paper, we investigate several methods for determining how close sample distributions produced by annealers are to a family of Boltzmann distributions parameterized by inverse temperature <italic>&#x003B2;</italic>. These methods estimate the parameter <italic>&#x003B2;</italic> best describing samples drawn from an annealer, and also provide measures of closeness. The annealers we evaluate are the latest-model D-Wave<xref ref-type="fn" rid="fn1"><sup>1</sup></xref> quantum annealer &#x02013; the D-Wave 2X (DW2X) (Johnson et al., <xref ref-type="bibr" rid="B28">2011</xref>; Denchev et al., <xref ref-type="bibr" rid="B15">2016</xref>; King et al., <xref ref-type="bibr" rid="B31">2016</xref>, <xref ref-type="bibr" rid="B32">2015</xref>), and an implementation of simulated thermal annealing on a single CPU. We consider two knobs for each annealer that modify the heuristic distributions generated: rescaling the STA terminal temperature/DW2X terminal energy scale, or changing annealing time (either in the DW2X or STA). Sample quality shown here does not reflect performance of optimally tuned versions of these annealers, and are simply presented to compare various <italic>&#x003B2;</italic> estimation techniques.</p>
<p>We observe a significant difference between <italic>local</italic> (subspace) and <italic>global</italic> (full space) features of the annealer distributions. We find that even though samples are locally similar to a Boltzmann distribution, the global deviation can be large. This gives rise to a &#x0201C;global warming&#x0201D; effect: the fact that global distributional features indicate a higher temperature than local distributional features. We consider several estimators of inverse temperature and evaluate their efficacy. Some estimators are sensitive to details of the dynamics, and indicate a significant difference between the DW2X and STA. Other estimators are more sensitive to ergodicity breaking and macroscopic distribution features, where the DW2X and STA show a qualitatively similar behavior.</p>
<p>We treat our heuristic samplers as black-boxes and consider temperature estimation as the problem of determining the best fit among a single-parameter exponential family of models. This problem has a long history, and best practice is well established (Geyer and Thompson, <xref ref-type="bibr" rid="B20">1992</xref>; Lehmann and Casella, <xref ref-type="bibr" rid="B35">1998</xref>; Wainwright and Jordan, <xref ref-type="bibr" rid="B52">2008</xref>). Inference of Ising models parameters under some systematic schemes is NP-hard (Wainwright and Jordan, <xref ref-type="bibr" rid="B52">2008</xref>; Bresler et al., <xref ref-type="bibr" rid="B11">2014</xref>). However, heuristic approaches, such as log-pseudo-likelihood are known to perform well in practice (Besag, <xref ref-type="bibr" rid="B7">1975</xref>), and some schemes are provably convergent with reasonable resources (Bhattacharya and Mukherjee, <xref ref-type="bibr" rid="B8">2015</xref>; Montanari, <xref ref-type="bibr" rid="B38">2015</xref>). Bhattacharya and Mukherjee (<xref ref-type="bibr" rid="B8">2015</xref>) recently considered the log-pseudo-likelihood estimator for <italic>&#x003B2;</italic> and found that estimation based on only a single sample is possible; their focus was primarily on the convergence properties of this estimator. Multi-parameter estimation (estimation of couplings and fields) is more commonly studied, and is pertinent to the class of Ising models we study, though beyond the scope of this paper. In this context, efficient methods of estimation for strongly interacting models include pseudo-likelihood and variational approaches (Aurell and Ekeberg, <xref ref-type="bibr" rid="B4">2012</xref>; Nguyen and Berg, <xref ref-type="bibr" rid="B41">2012</xref>; Albert and Swendsen, <xref ref-type="bibr" rid="B1">2014</xref>).</p>
<p>Many recent papers have shown that physical quantum annealers approximate Boltzmann distributions (Bian et al., <xref ref-type="bibr" rid="B9">2010</xref>; Denil and de Freitas, <xref ref-type="bibr" rid="B16">2011</xref>; Amin, <xref ref-type="bibr" rid="B2">2015</xref>; Benedetti et al., <xref ref-type="bibr" rid="B6">2016</xref>; Dumoulin et al., <xref ref-type="bibr" rid="B18">2015</xref>; Amin et al., <xref ref-type="bibr" rid="B3">2016</xref>; Perdomo-Ortiz et al., <xref ref-type="bibr" rid="B43">2016</xref>). In some of these approaches, temperature estimators have been developed, and these estimators have been effectively applied in correcting the annealer parameterization to produce the desired distribution. A significant focus has been the impact of noise, or systematic specification errors, in D-Wave processors. Remedies have been proposed to allow more effective sampling, but scaling is either poor or unproven; in some methods only a restricted set of problem classes are appropriate. An extension to the temperature estimation method of Benedetti et al. (<xref ref-type="bibr" rid="B6">2016</xref>) is discussed in supplementary materials,<xref ref-type="fn" rid="fn2"><sup>2</sup></xref> but we prefer the more standard estimators presented in the main text. Some work considering closeness to quantum Boltzmann distributions has appeared (Amin, <xref ref-type="bibr" rid="B2">2015</xref>; Amin et al., <xref ref-type="bibr" rid="B3">2016</xref>).</p>
<p>Our paper evaluates several standard methods, but differs from previous studies in that it uses insight specific to annealers in the analysis of deviations and development of temperature estimators. Noise sources and quantum features in physical quantum annealers are discussed only briefly. Some estimators we evaluate have a firm theoretical basis, such as maximum likelihood, but where this is lacking we will not focus on formal properties, such as convergence, bias, and variance.</p>
<p>Qualitatively, the deviation of the STA distributions from the Boltzmann distribution for hard-to-sample Hamiltonians has been understood within physics and computer science since the idea of annealers was conceived (Kirkpatrick et al., <xref ref-type="bibr" rid="B33">1983</xref>; Neal, <xref ref-type="bibr" rid="B39">1993</xref>; Landau and Binder, <xref ref-type="bibr" rid="B34">2005</xref>). As we modify the inverse temperature in the STA from its initial value to the terminal inverse temperature value (<italic>&#x003B2;<sub>T</sub></italic>), we move from a distribution where classical states are uniformly distributed to a distribution divided into disjoint subspaces of low energy (which can be identified qualitatively with modes of the probability distribution, or valleys in the free energy landscape). Under annealing dynamics, a state localized in one subspace cannot easily transition into another subspace that is separated by an energetic barrier once the inverse temperature becomes large (late in the annealing procedure) &#x02013; this is called <italic>ergodicity breaking</italic> (Neal, <xref ref-type="bibr" rid="B39">1993</xref>; Landau and Binder, <xref ref-type="bibr" rid="B34">2005</xref>). In the case of the STA, we gradually decrease the annealing temperature. Temperature is in one-to-one correspondence with expected energy in a Boltzmann distribution, and equilibrated samples are characterized by tight energy ranges. These samples are partitioned into subspaces by the energy barriers as temperature decreases, at which point the samples in each subspace will evolve independently, and be characterized by a local distribution. Rare fluctuations do allow samples to cross barriers, but are exponentially suppressed in the height of the energy barrier later in the anneal. Therefore, the distribution between subspaces will reflect the distribution at the point in the anneal where dynamics between the subspaces became slow, rather than the equilibrated distribution associated with the terminal model. This effect is called &#x0201C;freeze-out.&#x0201D; We provide a schematic in Figure <xref ref-type="fig" rid="F1">1</xref>.</p>
<fig position="float" id="F1">
<label>Figure 1</label>
<caption><p><bold>This is a schematic picture to illustrate ergodicity breaking in the STA</bold>. Proceeding through the anneal, samples evolve according to a schedule from some initial <italic>&#x003B2;</italic> to the terminal value. In Boltzmann distributions, there is an equivalence between mean energy and <italic>&#x003B2;</italic> (Wainwright and Jordan, <xref ref-type="bibr" rid="B52">2008</xref>). For illustration purposes, we take all samples (x) to be concentrated about this mean energy, and show a qualitative distribution over the remainder of the high dimensional space. Initially (<italic>&#x003B2;</italic>&#x02009;&#x0003D;&#x02009;0), samples are uniformly distributed. For small <italic>&#x003B2;</italic>, samples equilibrate and can explore the entire space on short dynamical time scales. At some later time (in the schematic: <italic>&#x003B2;<sub>T</sub></italic>/3) the space may be partitioned into subspaces by energy barriers. At this point, samples can mix rapidly on the left subspace, or the right, but not between. For larger <italic>&#x003B2;</italic>, in the blue region, dynamics are too slow to allow mixing between the left and right subspaces (ergodicity is broken). The number of samples trapped in each valley is <italic>approximately</italic> controlled by the distribution at the earlier time (<italic>&#x003B2;<sub>T</sub></italic>/3) when mixing was still possible. At some later time again (<italic>&#x003B2;<sub>T</sub></italic>/2) mixing continues within each subspace. Due to the emergence of a second energy barrier, dynamics become slow on the right subspace (ergodicity is broken again on the right space). Finally, at <italic>&#x003B2;<sub>T</sub></italic>, the samples are distributed on low energy states, and if <italic>&#x003B2;<sub>T</sub></italic> is large then all samples converge to their respective local minima. If ergodicity were not broken, all samples would converge upon the global minimum. Note that, after ergodicity breaking, each subspace can have a distinct characteristic energy.</p></caption>
<graphic xlink:href="fict-03-00023-g001.tif"/>
</fig>
<p>Similarly, in the case of quantum annealing, we proceed through a sequence of quantum models of decreasing transverse field (and increasing classical energy scale). With respect to the terminal diagonal Hamiltonian, the energy is again decreasing throughout the anneal, and some characteristic mean energy defines the sample set at intermediate stages. Energy barriers become impassable as the transverse field weakens and tunneling becomes slow, so that the process of ergodicity breaking is qualitatively similar (Kadowaki and Nishimori, <xref ref-type="bibr" rid="B29">1998</xref>; Amin, <xref ref-type="bibr" rid="B2">2015</xref>). Tunneling dynamics are affected by energy barriers in a different manner to thermal excitation dynamics, which is why there is some enthusiasm for quantum annealing; for some problems, it may not suffer the same dynamical slowdown that is true of STA (Denchev et al., <xref ref-type="bibr" rid="B15">2016</xref>).</p>
<p>For many problem classes, the points of ergodicity breaking become well defined in the large system size limit, and can often be directly associated with thermodynamic phase transitions (Landau and Binder, <xref ref-type="bibr" rid="B34">2005</xref>; Mezard and Montanari, <xref ref-type="bibr" rid="B37">2009</xref>). This is true both of transitions related to symmetry breaking (such as ferromagnetic transitions) where domains are formed according to a simple symmetry of the problem, and those related to random (<italic>a priori</italic> unknown) problem structure (such as spin glass transitions). Our analysis will capture ergodicity breaking that relates only to the random problem structure, as this is a more practical barrier to heuristic sampling. This point is discussed further in the discussion section.</p>
<p>In this paper, we consider heuristic sampling from classical Ising spin models. The state <italic>x</italic> will consist of <italic>N</italic> spins, defined on {&#x02212;1, &#x0002B;1}<italic><sup>N</sup></italic>. The Hamiltonian is
<disp-formula id="E1"><label>(1)</label><mml:math id="M1"><mml:mi>H</mml:mi><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:munder></mml:mstyle></mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>J</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="italic">ij</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo class="MathClass-bin">&#x0002B;</mml:mo><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:munder></mml:mstyle></mml:mrow><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo class="MathClass-punc">,</mml:mo></mml:math></disp-formula>
where <italic>J</italic> and <italic>h</italic> are unitless model parameters called couplings and fields, respectively. The Boltzmann distribution corresponding to this Hamiltonian at inverse temperature <italic>&#x003B2;</italic> is
<disp-formula id="E2"><label>(2)</label><mml:math id="M2"><mml:msub><mml:mrow><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>Z</mml:mi><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow></mml:mfrac><mml:mtext>exp</mml:mtext><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mo class="MathClass-bin">&#x02212;</mml:mo><mml:mi>&#x003B2;</mml:mi><mml:mi>H</mml:mi><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-punc">,</mml:mo></mml:math></disp-formula>
where <italic>Z</italic> is the partition function. Throughout the paper, we will use the standard, though improper, abbreviation in which <italic>x</italic> can denote both the random variable <italic>X</italic>, and its realization. We study two problem classes compatible with the Chimera topology described in Section <xref ref-type="sec" rid="S4-7">4.1</xref>, tailored to the D-Wave architecture (Katzgraber et al., <xref ref-type="bibr" rid="B30">2014</xref>; R&#x000F8;nnow et al., <xref ref-type="bibr" rid="B46">2014</xref>; King et al., <xref ref-type="bibr" rid="B32">2015</xref>).</p>
<sec id="S1-1">
<label>1.1</label> <title>Outline</title>
<p>In Section <xref ref-type="sec" rid="S2">2</xref>, we introduce Kullback&#x02013;Leibler divergence and mean square error on correlations as measures of closeness to the Boltzmann distribution, and from these develop standard estimators of inverse temperature.</p>
<p>In Section <xref ref-type="sec" rid="S3">3</xref>, we develop local self-consistent approximations for efficiently evaluating our inverse temperature estimators; we call these <italic>locally consistent</italic> inverse temperature estimators. We argue that in the context of annealers the approximation may determine an inverse temperature significantly different (typically larger) than that obtained by a full (computationally intensive) evaluation method. However, we will show that the estimate has meaning in that it captures local distribution features. Applying our approximation to maximum likelihood estimation, we recover in a special case the commonly used pseudo-log-likelihood approximation method.</p>
<p>In Section <xref ref-type="sec" rid="S3-6">3.2</xref>, we argue for evaluating post-processed distributions in place of raw distributions, for the purposes of removing superficial deviations in the heuristic distribution, and for determining the practical (as opposed to superficial) limitations of heuristic annealers.</p>
<p>We then present experimental results relating to our objectives and estimators in Section <xref ref-type="sec" rid="S4">4</xref>. We conclude in Section <xref ref-type="sec" rid="S5">5</xref>.</p>
<p>In supplementary materials, we present various supporting results to complement the main text, and additional results and methods (Raymond et al., <xref ref-type="bibr" rid="B44">2016</xref>). In particular, we introduce a new <italic>multi-canonical</italic> approximation for <italic>&#x003B2;</italic> estimation inspired by Benedetti et al. (<xref ref-type="bibr" rid="B6">2016</xref>), we address issues related to practical usage of a DW2X, and we develop a method for calculation of KL-divergence. As part of our work we study the RAN1 and AC3 models of the main text, as well as two problem classes not tailored to the DW2X architecture (Bart, <xref ref-type="bibr" rid="B5">1988</xref>; Douglass et al., <xref ref-type="bibr" rid="B17">2015</xref>).</p>
</sec>
<sec id="S1-2">
<label>1.2</label> <title>Practical Guidelines for Using Annealers in Sampling Applications</title>
<p>Based on the results in this paper, we offer the following advice for selecting and interpreting temperature estimation methods in the context of samples drawn from an annealer.</p>
<list list-type="bullet">
<list-item><p>It is important to define a suitable objective that is minimized by Boltzmann samples, and check that the objective is indeed small for the heuristic sampler for some temperature. It is not sufficient to find the best temperature, since there will always be a best temperature even for bad distributions. Comparisons of <italic>&#x003B2;</italic> estimates between heuristics are not meaningful in the absence of this analysis.</p></list-item>
<list-item><p>Robust evaluation of a heuristic sampler will often require input from an independent (exact or heuristic) method, such as statistical estimates against which to compare. Attempting to quantify error in a locally self-consistent manner could be misleading.</p></list-item>
<list-item><p>The DW2X rescaling parameter/STA terminal temperature, total annealing time, and post-processing, should be tuned to the sampling objective.</p></list-item>
<list-item><p>A temperature can be estimated accurately and efficiently by standard methods, such as the log-pseudo-likelihood method. If ergodicity breaking is a weak effect, the log-pseudo-likelihood estimator is sufficient.</p></list-item>
<list-item><p>It is valuable to consider several different types of estimator, since different estimators may be sensitive to different distribution features. Disagreement among estimators may reveal a pattern of ergodicity breaking, or imply a path to error mitigation.</p></list-item>
<list-item><p>Efficient post-processing can move the distribution toward Boltzmann distribution by correcting local deviations. We are interested in the best practical heuristic, and so efficient post-processing should be applied.</p></list-item>
</list>
<p>We argue in this paper, in line with previous literature and experimental results, that the temperature that best describes an annealer distribution is expected to be a function not only of the annealer parameterization, but also of the target Hamiltonian. There is no single parameter <italic>&#x003B2;</italic> that is optimal for all Hamiltonians. While this should be borne in mind, closely related Hamiltonians (e.g., those of a given class, created by a slow learning procedure, or otherwise of comparable statistical properties) do yield comparable estimates for temperature, so that it may be efficient to estimate temperature properties on a small subset of the problems of interest and effectively generalize.</p>
</sec>
</sec>
<sec id="S2">
<label>2</label> <title>Estimators for Temperature</title>
<p>We assume that annealers generate independent and identically distributed samples, according to a distribution <italic>P<sub>A</sub></italic>. For the STA, this is reasonable given powerful pseudo-random number generators. For the DW2X, correlated noise sources (discussed in Section <xref ref-type="sec" rid="S4-9">4.3</xref>) means this is an approximation that is more difficult to analyze. In Figure <xref ref-type="fig" rid="F2">2</xref>, we show evidence that these weak correlations in time do not strongly affect our results and conclusions. The experimental structure is demoted to supplementary materials.</p>
<fig position="float" id="F2">
<label>Figure 2</label>
<caption><p><bold>Spin reversals are a noise mitigation technique, described in supplementary materials</bold>. Choosing batches with more spin-reversals aids sampling quality bringing us closer to the paradigm of independent and identically distributed samples, but at the price of additional programing time. At C12 scale, spin reversals have a significant impact on MSE for both AC3 (left) and RAN1 (right). Given <italic>M</italic> samples, the error achieved by a batch methods (m samples per spin-reversal with M/m spin reversals) is already close to that of the ideal scenario of one sample per spin reversal when <italic>m</italic>&#x02009;&#x0003D;&#x02009;10. The signal is noisy when few spin-reversal transformations are used, and is only statistically significant after averaging over many distributions (100 in this figure). We establish the mean estimate, and its standard error by bootstrapping of a sample set of 10,000 spin-reversals sampling each time 1000 samples.</p></caption>
<graphic xlink:href="fict-03-00023-g002.tif"/>
</fig>
<p>We are interested in comparing these heuristic distributions to a family of Boltzmann distributions [equation <xref ref-type="disp-formula" rid="E2">(2)</xref>] parameterized by inverse temperature <italic>&#x003B2;</italic>. Amongst such models we wish to find the best fit, and measure its goodness. We will consider the best temperature to be that which minimizes some objective function. Since the distribution <italic>P<sub>A</sub></italic> is a heuristic distribution, and not Boltzmann, this temperature may vary between objectives. Given an objective that is minimized at some unique inverse temperature, we then need an estimator for this temperature working on the basis of finite sample sets. An effective estimator should be consistent, with low bias and variance (Geyer and Thompson, <xref ref-type="bibr" rid="B20">1992</xref>; Lehmann and Casella, <xref ref-type="bibr" rid="B35">1998</xref>; Shirts and Chodera, <xref ref-type="bibr" rid="B49">2008</xref>; Bhattacharya and Mukherjee, <xref ref-type="bibr" rid="B8">2015</xref>; Montanari, <xref ref-type="bibr" rid="B38">2015</xref>). The estimators we study will be consistent, and in some cases optimal with respect to variance and bias [e.g., the Maximum Likelihood estimators (Geyer and Thompson, <xref ref-type="bibr" rid="B20">1992</xref>; Lehmann and Casella, <xref ref-type="bibr" rid="B35">1998</xref>)].</p>
<p>Either to evaluate the objective or to estimate temperature (i.e., minimize the objective) note that we must evaluate some statistics from the Boltzmann distribution, e.g., the mean energy, an energy gap, or marginal distribution. Inference for any of these quantities is NP-hard in the model classes we study. It is often in practice easier to evaluate the energy, and perhaps log(<italic>Z</italic>), than marginal statistics, but estimation of all these quantities is slow in the worst case. For purposes of the models and temperatures explored, we are able to accurately estimate the mean energy, log(<italic>Z</italic>), or marginal expectations under the Boltzmann distribution by either dynamic programing or parallel tempering (Hukushima and Nemoto, <xref ref-type="bibr" rid="B26">1996</xref>; Wainwright and Jordan, <xref ref-type="bibr" rid="B52">2008</xref>; Selby, <xref ref-type="bibr" rid="B48">2014</xref>). With these values in hand, we can efficiently evaluate our temperature estimators, and in most cases the objective (an exception, Kullback&#x02013;Leibler divergence, is discussed in supplementary materials). However, a scalable estimator requires us to find effective approximation methods for these quantities or to define different estimators, and is the subject of Section <xref ref-type="sec" rid="S3">3</xref>.</p>
<sec id="S2-3">
<label>2.1</label> <title>Maximum Likelihood (Minimum Kullback-Leibler Divergence)</title>
<p>When comparing distributions, a natural objective function to minimize is the Kullback&#x02013;Leibler (KL) divergence between the sampled distribution (from the annealer) <italic>P<sub>A</sub></italic> and the corresponding Boltzmann distribution <italic>B<sub>&#x003B2;</sub></italic>, as follows:
<disp-formula id="E3"><label>(3)</label><mml:math id="M3"><mml:msub><mml:mrow><mml:mtext>D</mml:mtext></mml:mrow><mml:mrow><mml:mi mathvariant="italic">KL</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">[</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mo class="MathClass-punc">,</mml:mo><mml:msub><mml:mrow><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo class="MathClass-close">]</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mi>x</mml:mi></mml:munder></mml:mstyle></mml:mrow><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mtext>log</mml:mtext><mml:mfenced separators="" open="(" close=")"><mml:mrow><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:mrow></mml:mfenced><mml:mspace width="0.3em" class="thinspace"/><mml:mo class="MathClass-punc">.</mml:mo></mml:math></disp-formula></p>
<p>The Kullback&#x02013;Leibler divergence is an important information-theoretic quantity, which places various limitations on the efficacy of <italic>P<sub>A</sub></italic> for modeling <italic>B<sub>&#x003B2;</sub></italic>, and vice-versa (Wainwright and Jordan, <xref ref-type="bibr" rid="B52">2008</xref>).<xref ref-type="fn" rid="fn3"><sup>3</sup></xref></p>
<p><italic>P<sub>A</sub></italic> has no <italic>&#x003B2;</italic> dependence, so that at the minimum of this function with respect to <italic>&#x003B2;</italic>, we obtain an energy matching criterion EM(<italic>&#x003B2;</italic>)&#x02009;&#x0003D;&#x02009;0, where
<disp-formula id="E4"><label>(4)</label><mml:math id="M4"><mml:mtext>EM</mml:mtext><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mi>x</mml:mi></mml:munder></mml:mstyle></mml:mrow><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mi>H</mml:mi><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-bin">&#x02212;</mml:mo><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mi>x</mml:mi></mml:munder></mml:mstyle></mml:mrow><mml:msub><mml:mrow><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mi>H</mml:mi><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-punc">.</mml:mo></mml:math></disp-formula></p>
<p>The energy matching criterion yields the maximum likelihood estimator for <italic>&#x003B2;</italic> &#x02013; the likelihood that the annealed samples were drawn from a Boltzmann distribution. Maximum likelihood is perhaps the most well established of procedures for estimating model parameters from data &#x02013; in this case, the data being the samples drawn from <italic>P<sub>A</sub></italic> (Geyer and Thompson, <xref ref-type="bibr" rid="B20">1992</xref>; Lehmann and Casella, <xref ref-type="bibr" rid="B35">1998</xref>; Wainwright and Jordan, <xref ref-type="bibr" rid="B52">2008</xref>). Note that the Boltzmann distribution is an exponential model, and so it is natural to define the estimator in terms of expected energy, which is the sufficient statistic associated to the parameter <italic>&#x003B2;</italic> (Wainwright and Jordan, <xref ref-type="bibr" rid="B52">2008</xref>).</p>
</sec>
<sec id="S2-4">
<label>2.2</label> <title>Minimum Mean Square Error on Correlations</title>
<p>In the context of machine learning, an important potential application of annealers, the important feature of samples may be the quality of some statistics that are derived from them. In particular, a machine learning process may require accurate estimation of single variable expectations, and expectations for products of variables (correlations). For this reason, we consider an alternative objective, the mean square error (MSE) on correlations:
<disp-formula id="E5"><label>(5)</label><mml:math id="M5"><mml:mtext>MSE</mml:mtext><mml:mrow><mml:mo class="MathClass-open">[</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mo class="MathClass-punc">,</mml:mo><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo class="MathClass-close">]</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>M</mml:mi></mml:mrow></mml:mfrac><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi><mml:mo>:</mml:mo><mml:msub><mml:mi>J</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>&#x02260;</mml:mo><mml:mn>0</mml:mn></mml:mrow></mml:munder></mml:mstyle></mml:mrow><mml:msup><mml:mrow><mml:mfenced separators="" open="(" close=")"><mml:mrow><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mi>x</mml:mi></mml:munder></mml:mstyle></mml:mrow><mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mo class="MathClass-open">[</mml:mo><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-bin">&#x02212;</mml:mo><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo><mml:mo class="MathClass-close">]</mml:mo></mml:mrow></mml:mrow></mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfenced></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mspace width="0.3em" class="thinspace"/><mml:mo class="MathClass-punc">,</mml:mo></mml:math></disp-formula></p>
<p><italic>M</italic> is number of non-zero couplings. We consider specifically the mean error on correlations (excluding errors on single variable expectations) since the models we study experimentally are all zero-field problems so that <italic>E</italic>[<italic>x<sub>i</sub></italic>]&#x02009;&#x0003D;&#x02009;0 for all <italic>&#x003B2;</italic> by symmetry. Unlike the KL-divergence, MSE is not a convex function of <italic>&#x003B2;</italic> in general, although intuitively this might be expected for many problem classes and reasonable heuristics. A derivative of equation <xref ref-type="disp-formula" rid="E5">(5)</xref> with respect to <italic>&#x003B2;</italic> will yield a criterion for local optimality. This is a complicated expression dependent on many statistics, but is straightforward to approximate numerically in our examples.</p>
<p>We will find that in application to annealers the minimum for this second objective [equation <xref ref-type="disp-formula" rid="E5">(5)</xref>] can disagree with the maximum likelihood (minimum KL-divergence) estimator [equation <xref ref-type="disp-formula" rid="E4">(4)</xref>], typically being more sensitive to ergodicity breaking in our experiments. Note that, once ergodicity breaking has occurred, the mean energy can be improved as samples settle toward their respective local minima. The maximum likelihood value can be larger than that implied at the point of ergodicity breaking. By contrast, the distribution between the now disconnected subspaces that determines the correlations cannot be much improved as samples settle toward their local minima. Therefore, the minimum MSE estimator will typically indicate a smaller value for <italic>&#x003B2;</italic>, better inline with the point of ergodicity breaking. We stress that MSE is not in any sense a special objective function in this regard; many variations are possible and should be chosen in an application orientated manner.</p>
</sec>
</sec>
<sec id="S3">
<label>3</label> <title>Local Approximations for Evaluating Objectives and Estimators</title>
<p>The problem with the objectives and estimators outlined in Section <xref ref-type="sec" rid="S2">2</xref> is that their use requires inference with respect to the Boltzmann distribution that is independent of the heuristic annealer, which is NP-hard to perform: estimation of either the expected energy, or correlations.</p>
<p>In this section, we show how, beginning from the annealed distribution, we can build a reasonable approximation to the Boltzmann distribution and thereby evaluate the estimator self-consistently. The estimators are motivated as approximations to those of Section <xref ref-type="sec" rid="S2">2</xref>. However, we will show that even in cases where the approximation is poor, the estimator can still reveal useful information about the distribution.</p>
<sec id="S3-5">
<label>3.1</label> <title>Statistics of the Heuristic Distribution, and of the Boltzmann Distribution, by Local Self-Consistency</title>
<p>Our estimators and objectives require us to evaluate statistics of the annealed distribution <italic>P<sub>A</sub></italic>. Estimates of mean energy or correlations based on <italic>P<sub>A</sub></italic> can be obtained by evaluating those statistics from the sample set <italic>S</italic>&#x02009;&#x0003D;&#x02009;{<italic>x</italic>}, or equivalently, evaluating their corresponding expressions using the plug-in estimator to <italic>P<sub>A</sub></italic>:
<disp-formula id="E6"><label>(6)</label><mml:math id="M6"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mo class="MathClass-op">&#x0005E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mo class="MathClass-rel">&#x0007C;</mml:mo><mml:mi>S</mml:mi><mml:mo class="MathClass-rel">&#x0007C;</mml:mo></mml:mrow></mml:mfrac><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mrow><mml:msup><mml:mi>x</mml:mi><mml:mo>&#x02032;</mml:mo></mml:msup><mml:mo>&#x02208;</mml:mo><mml:mi>S</mml:mi></mml:mrow></mml:munder></mml:mstyle></mml:mrow><mml:msub><mml:mrow><mml:mn>&#x003B4;</mml:mn></mml:mrow><mml:mrow><mml:mi>x</mml:mi><mml:mo class="MathClass-punc">,</mml:mo><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:mrow></mml:msub><mml:mo class="MathClass-punc">.</mml:mo></mml:math></disp-formula></p>
<p>The quality of estimates depends on variance and sample size. In experiments, we typically use sample sets of size 10<sup>4</sup> that are sufficient for temperature estimation and evaluation of the objectives. The evaluation of the KL-divergence is one exception: our approximation [equation <xref ref-type="disp-formula" rid="E6">(6)</xref>] is known to fail when applied to the entropy term <inline-formula><mml:math id="M7"><mml:mo class="MathClass-bin">&#x02212;</mml:mo><mml:msub><mml:mrow><mml:mo class="MathClass-op">&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>x</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mtext>log</mml:mtext><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:math></inline-formula> (Grassberger, <xref ref-type="bibr" rid="B22">2003</xref>; Paninski, <xref ref-type="bibr" rid="B42">2003</xref>). In the supplementary materials, we discuss why evaluation is problematic, and propose a mitigation strategy.</p>
<p>We must also evaluate energy, correlations, and log(<italic>Z</italic>) under the Boltzmann distribution, which is NP-hard. However, under the assumption that <italic>P<sub>A</sub></italic>(<italic>x</italic>) is close to the Boltzmann distribution, we may make a <italic>locally consistent</italic> approximation. The approximation to <italic>B<sub>&#x003B2;</sub></italic>(<italic>x</italic>) is
<disp-formula id="E7"><label>(7)</label><mml:math id="M8"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>B</mml:mi></mml:mrow><mml:mo class="MathClass-op">&#x0005E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0221D;</mml:mo><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>&#x02032;</mml:mo></mml:msup></mml:munder></mml:mstyle></mml:mrow><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mo class="MathClass-op">&#x0005E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mi>W</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x0007C;</mml:mo><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-punc">,</mml:mo></mml:math></disp-formula>
where <italic>W<sub>&#x003B2;</sub></italic> is a <italic>&#x003B2;</italic>-dependent kernel. It efficiently maps any state into a new state, with the property that the distribution is unchanged if it is a Boltzmann distribution
<disp-formula id="E8"><label>(8)</label><mml:math id="M9"><mml:msub><mml:mrow><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0221D;</mml:mo><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>&#x02032;</mml:mo></mml:msup></mml:munder></mml:mstyle></mml:mrow><mml:msub><mml:mrow><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mi>W</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x0007C;</mml:mo><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-punc">.</mml:mo></mml:math></disp-formula></p>
<p>The transition kernels used in Markov chain Monte Carlo (MCMC) methods, either singly or iteratively, are suitable candidates for <italic>W<sub>&#x003B2;</sub></italic> (Landau and Binder, <xref ref-type="bibr" rid="B34">2005</xref>; Mezard and Montanari, <xref ref-type="bibr" rid="B37">2009</xref>). The blocked Gibbs MCMC method is described in Section <xref ref-type="sec" rid="S4-8">4.2</xref>. The simplest example of <italic>W<sub>&#x003B2;</sub></italic> is conditional resampling of a single variable, which is an element in the blocked Gibbs sampling procedure. All variables except <italic>i</italic> are unchanged, and <italic>i</italic> is resampled according to the conditional Boltzmann distribution <italic>B<sub>&#x003B2;</sub></italic>(<italic>x<sub>i</sub></italic>&#x0007C;<italic>x</italic>&#x02009;&#x02216;&#x02009;<italic>x<sub>i</sub></italic>) given the neighboring values. We label this kernel by (<italic>i</italic>), indicating the updated variable
<disp-formula id="E9"><label>(9)</label><mml:math id="M10"><mml:msubsup><mml:mrow><mml:mi>W</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow></mml:msubsup><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x0007C;</mml:mo><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:msub><mml:mrow><mml:mi>B</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mn class="MathClass-rel">&#x0007C;</mml:mn><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x02032;</mml:mo><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mo class="MathClass-rel">&#x02260;</mml:mo><mml:msubsup><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:mrow></mml:msubsup></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x0220F;</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:mo>&#x02260;</mml:mo><mml:mi>i</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:munder></mml:mstyle></mml:mrow><mml:msub><mml:mrow><mml:mn>&#x003B4;</mml:mn></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo class="MathClass-punc">,</mml:mo><mml:msubsup><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:mrow></mml:msubsup></mml:mrow></mml:msub><mml:mo class="MathClass-punc">.</mml:mo></mml:math></disp-formula></p>
<p>Applying the approximation [equation <xref ref-type="disp-formula" rid="E7">(7)</xref>] in combination with the kernel [equation <xref ref-type="disp-formula" rid="E9">(9)</xref>] to maximum likelihood estimation we obtain an energy matching criterion for (<italic>i</italic>). Each kernel <italic>i</italic> defines an energy matching criterion and an estimate for <italic>&#x003B2;</italic>, but it is not possible to simultaneously satisfy the criteria for all <italic>i</italic>. We can make a composite energy matching criterion by weighting each of the criteria equally: taking an average over EM(<italic>&#x003B2;</italic>) for each <italic>i</italic>. In this case, we recover the maximum log-pseudo-likelihood (MLPL) estimator (Besag, <xref ref-type="bibr" rid="B7">1975</xref>; Bhattacharya and Mukherjee, <xref ref-type="bibr" rid="B8">2015</xref>). The MLPL estimator is normally derived and motivated slightly differently. An alternative way to combine the kernels {<italic>W</italic> <sup>(</sup><italic><sup>i</sup></italic><sup>)</sup>} is to define a composite kernel as a sum of the individual kernels. We prefer the MLPL estimator in this paper due to its prevalence in the literature and well-established statistical properties. We discuss this further in supplementary materials, where alternative locally self-consistent estimators are also examined.</p>
<p>In the case of the Hamiltonian equation <xref ref-type="disp-formula" rid="E1">(1)</xref>, the MLPL estimate is the solution to EM(<italic>&#x003B2;</italic>)&#x02009;&#x0003D;&#x02009;0, where
<disp-formula id="E10"><label>(10)</label><mml:math id="M11"><mml:mtext>EM</mml:mtext><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>&#x02208;</mml:mo><mml:mi>S</mml:mi></mml:mrow></mml:munder><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mi>i</mml:mi></mml:munder></mml:mstyle></mml:mrow></mml:mstyle></mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mn>&#x003B6;</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mfrac><mml:mrow><mml:mtext>exp</mml:mtext><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mn>2</mml:mn><mml:mi>&#x003B2;</mml:mi><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mn>&#x003B6;</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo class="MathClass-bin">&#x0002B;</mml:mo><mml:mtext>exp</mml:mtext><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mn>2</mml:mn><mml:mi>&#x003B2;</mml:mi><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mn>&#x003B6;</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow></mml:mfrac><mml:mo class="MathClass-punc">,</mml:mo></mml:math></disp-formula>
where <inline-formula><mml:math id="M12"><mml:msub><mml:mrow><mml:mn>&#x003B6;</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mn class="MathClass-open">(</mml:mn><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mn class="MathClass-close">)</mml:mn></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:mrow><mml:mn class="MathClass-open">[</mml:mn><mml:mrow><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo class="MathClass-bin">&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mo class="MathClass-op">&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mn class="MathClass-open">(</mml:mn><mml:mrow><mml:msub><mml:mrow><mml:mi>J</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="italic">ij</mml:mi></mml:mrow></mml:msub><mml:mo class="MathClass-bin">&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>J</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="italic">ji</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mn class="MathClass-close">)</mml:mn></mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mn class="MathClass-close">]</mml:mn></mml:mrow></mml:math></inline-formula> is the effective field. Note that&#x02009;&#x02212;&#x02009;2<italic>x<sub>i</sub></italic>&#x003B6;<italic><sub>i</sub></italic> is the energy change of flipping the state of spin <italic>i</italic>. Provided there exists at least one &#x003B6;<italic><sub>i</sub></italic> (<italic>x</italic>)&#x02009;&#x0003E;&#x02009;0, and one value &#x003B6;<italic><sub>i</sub></italic> (<italic>x</italic>)&#x02009;&#x0003C;&#x02009;0 (at least one local excitation in some sample), then this equation has a unique finite solution which can be found, for example, by a bisection search method.</p>
<p>For our purposes, the MLPL estimator is a special case of a more general <italic>locally consistent</italic> estimator. We choose a kernel, approximate <italic>B<sub>&#x003B2;</sub></italic> [equation <xref ref-type="disp-formula" rid="E7">(7)</xref>], and then evaluate the energy matching criterion [equation <xref ref-type="disp-formula" rid="E4">(4)</xref>]. The locally consistent approach can also be applied straightforwardly to the MSE, and minimum MSE estimator, of Section <xref ref-type="sec" rid="S2-4">2.2</xref>. In the main text, the only locally consistent estimator for which we present results is the MLPL estimator. In the supplementary materials, we perform an experiment to demonstrate how the strength of the kernel impacts temperature estimation.</p>
<p>Consider the following interpretation for the role of the kernel: We take every sample that the annealer produces, and conditionally resample according to <italic>W<sub>&#x003B2;</sub></italic>. We then take this new set of samples as an approximation to Boltzmann samples drawn according to <italic>B<sub>&#x003B2;</sub></italic>. Since <italic>W<sub>&#x003B2;</sub></italic> obeys detailed balance, it necessarily brings the distribution toward the Boltzmann distribution. Consider again Figure <xref ref-type="fig" rid="F1">1</xref>, and note that resampling single spins, or doing some other efficient conditional resampling procedure (i.e., some short-run MCMC procedure) does not lead to a significant macroscopic redistribution of the samples, except in the high-temperature regime where fast dynamical exploration of the space is possible. Thus, the approximation [equation <xref ref-type="disp-formula" rid="E7">(7)</xref>] will typically inherit the macroscopic bias of the sampling distribution through <inline-formula><mml:math id="M13"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mo class="MathClass-op">&#x0005E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, but correct local biases. The locally consistent estimator is, therefore, effective in capturing any <italic>local</italic> deviation in the distribution <italic>P<sub>A</sub></italic> not representative of <italic>B<sub>&#x003B2;</sub></italic>.</p>
</sec>
<sec id="S3-6">
<label>3.2</label> <title>Toward Global Distribution Features</title>
<p>Objective functions, such as maximum likelihood and minimum mean square error on marginals, are influenced by a combination of local and global distribution features. We have already seen that locally consistent estimators, such as MLPL, can assign a meaningful temperature for local deviations from the Boltzmann distribution. However, these may fail to capture macroscopic features. It would be useful to have an objective, or estimator for temperature, that reflects only the macroscopic distribution features. One way to do this is to manipulate <italic>P<sub>A</sub></italic> so that the local distributional features are removed.</p>
<p>We have also not considered so far the practical application of annealers as heuristic samplers. By our definition, for an annealer to be useful, it must do well on the appropriate objective, and be fast. However, these two aims are typically in tension. A method that allows one to trade off these two goals is post-processing. In post-processing, we take individual samples, or the set of all samples, and apply some additional procedures to generate an improved set of samples. This requires additional resources and can be heuristic, or employed in a manner guaranteed to improve the objective.</p>
<p>Those distribution features that can be manipulated by post-processing will be called local. Local, since it is assumed that efficient post-processing will not be so powerful as to manipulate the macroscopic distribution in interesting cases. Among the easiest local feature to correct in annealers is local relaxation: the tendency of states to decrease in energy toward their local minima at the end of the anneal as illustrated in Figure <xref ref-type="fig" rid="F1">1</xref>.</p>
<p>Post-processing has two uses considered in this paper: to extract macroscopic distribution features (by discounting local distortions), and to improve the heuristic distributions. A post-processed distribution can be represented as
<disp-formula id="E11"><label>(11)</label><mml:math id="M14"><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi><mml:mo class="MathClass-punc">,</mml:mo><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:mrow><mml:mstyle displaystyle='true'><mml:munder class="msub"><mml:mrow><mml:mo class="MathClass-op">&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:mrow></mml:munder></mml:mstyle></mml:mrow><mml:msub><mml:mrow><mml:mi>W</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x0007C;</mml:mo><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-punc">,</mml:mo></mml:math></disp-formula>
where <italic>W<sub>&#x003B2;</sub></italic> is again a kernel.</p>
<p>With post-processing, we now have three distributions of interest: <italic>P<sub>A</sub></italic>(<italic>x</italic>), <italic>P<sub>&#x003B2;,A</sub></italic>(<italic>x</italic>) and <italic>B<sub>&#x003B2;</sub></italic>(<italic>x</italic>). Until this section, we were interested exclusively in the closeness of <italic>P<sub>A</sub></italic>(<italic>x</italic>) and <italic>B<sub>&#x003B2;</sub></italic>(<italic>x</italic>), and under the assumption that <italic>B<sub>&#x003B2;</sub></italic> <italic>&#x02248;</italic> <italic>P<sub>&#x003B2;,A</sub></italic>(<italic>x</italic>) we developed efficient approximations to maximum likelihood (or minimum MSE) estimation in Section <xref ref-type="sec" rid="S3-5">3.1</xref>. We can now present a different interpretation. If we are interested in local deviations in the distribution, we should compare <italic>P<sub>A</sub></italic>(<italic>x</italic>), <italic>P<sub>&#x003B2;,A</sub></italic>(<italic>x</italic>); whereas if we are interested in global deviations we should compare <italic>P<sub>&#x003B2;,A</sub></italic>(<italic>x</italic>) and <italic>B<sub>&#x003B2;</sub></italic>(<italic>x</italic>). For practical purposes, only the latter comparison makes sense, since we can efficiently correct local errors. However, the former is important in understanding why annealers fail, and how to correct their distributions. The locally self-consistent estimators (such as MLPL) minimize a divergence between <italic>P<sub>A</sub></italic>(<italic>x</italic>) and <italic>P<sub>&#x003B2;,A</sub></italic>(<italic>x</italic>), and so should be interpreted as local approximations (yielding a local temperature estimate). In the case that <italic>P<sub>A</sub></italic>(<italic>x</italic>)&#x02009;&#x0003D;&#x02009;<italic>B<sub>&#x003B2;</sub></italic>(<italic>x</italic>), then the distinction between global and local is no longer relevant, and this local approximation is a consistent and low variance estimator for the unique <italic>&#x003B2;</italic> describing the distribution.</p>
<p>Implicit in our definition [equation <xref ref-type="disp-formula" rid="E11">(11)</xref>] is a restriction to &#x0201C;do no harm&#x0201D; post-processing, we post-process at the <italic>&#x003B2;</italic> that defines the Boltzmann distribution of interest (or that to which we wish to compare). The criterion [equation <xref ref-type="disp-formula" rid="E8">(8)</xref>] does no harm since it is guaranteed to move any distribution toward a Boltzmann distribution in some sense, and never away from it. In the case that <italic>W<sub>&#x003B2;</sub></italic> involves only conditional resampling according to <italic>B<sub>&#x003B2;</sub></italic> {rule [equation <xref ref-type="disp-formula" rid="E9">(9)</xref>] is one such case}, it is straightforward to show that the <italic>D<sub>KL</sub></italic>[<italic>P<sub>&#x003B2;,A</sub>, B<sub>&#x003B2;</sub></italic>]&#x02009;&#x02264;&#x02009;<italic>D<sub>KL</sub></italic>[<italic>P<sub>A</sub></italic>, <italic>B<sub>&#x003B2;</sub></italic>]. It is reasonable to expect, though not guaranteed, that other objectives will improve under do no harm kernels. Heuristic approaches without such guarantees may sometimes do better in practice, but carry risks.</p>
<p>For purposes of isolating macroscopic features of the distribution, it is ideal to apply enough post-processing to remove the local distortions; but leave the macroscopic features intact. This is a balancing act that strictly exists only as a concept, since the distinction between local and global is blurred except perhaps in the large system size limit, and there will typically be several relevant scales not just two. In experiments, we present results for post-processing consisting of one sweep of blocked Gibbs sampling (described in Section <xref ref-type="sec" rid="S4-8">4.2</xref>), a weak form of post-processing. For purposes of improving the heuristic, <italic>W<sub>&#x003B2;</sub></italic> should be chosen powerful enough that the time-per-sample is not significantly impacted. One sweep of blocked Gibbs sampling meets the criterion of being a small overhead in time per-sample for the DW2X and STA under the operation conditions we examine, so we can infer something of the power of post-processing to efficiently correcting annealer non-idealities.</p>
<p>If the heuristic distribution is a function of <italic>&#x003B2;</italic> [equation <xref ref-type="disp-formula" rid="E11">(11)</xref>], we must take into consideration the dependence of <italic>P<sub>&#x003B2;,A</sub></italic> on <italic>&#x003B2;</italic> in objective minimization. KL-divergence minimization becomes distinct from maximum likelihood in the case that samples are a function of <italic>&#x003B2;</italic>, and the energy matching criterion [equation <xref ref-type="disp-formula" rid="E4">(4)</xref>] is modified in the former case. This point is further discussed in supplementary materials.</p>
<p>In Section <xref ref-type="sec" rid="S3">3</xref>, we developed locally self-consistent estimators. We emphasize that with post-processing, these estimators can be made redundant, unless the post-processing method kernel [equation <xref ref-type="disp-formula" rid="E11">(11)</xref>] is significantly different from the kernel used in the local self-consistency trick [equation <xref ref-type="disp-formula" rid="E7">(7)</xref>]. The self-consistency trick [equation <xref ref-type="disp-formula" rid="E11">(11)</xref>] uses information about how samples are redistributed under the kernel to determine <italic>&#x003B2;</italic> &#x02013; if this kernel matches the post-processing kernel, then it detects the effect of post-processing and very little else. Therefore, in the evaluation of post-processed distributions, care should be taken in applying and interpreting self-consistent approximations to <italic>&#x003B2;</italic>.</p>
</sec>
</sec>
<sec id="S4">
<label>4</label> <title>Experimental Results</title>
<p>In Section <xref ref-type="sec" rid="S4-7">4.1</xref>, we present the two models we will study in the main text. We then describe in Section <xref ref-type="sec" rid="S4-8">4.2</xref> a simple Markov Chain Monte Carlo procedure called blocked Gibbs sampling, and how we use this to create the STA. The blocked Gibbs method is also applied in our post-processing experiments. We then describe our usage of the DW2X as a sampler. Experimental results demonstrating the methods of Sections <xref ref-type="sec" rid="S2">2</xref> and <xref ref-type="sec" rid="S3-6">3.2</xref> are subsequently presented.</p>
<sec id="S4-7">
<label>4.1</label> <title>RAN1 and AC3 Models</title>
<p>In this main section, we consider only two models, RAN1 and AC3, which are spin-glass models compatible with the DW2X topology (Bunyk et al., <xref ref-type="bibr" rid="B12">2014</xref>). This topology is described by a <italic>Chimera</italic> graph shown in Figure <xref ref-type="fig" rid="F3">3</xref>; each variable is a circle with an associated programmable field <italic>h<sub>i</sub></italic>, and each edge is associated with a programmable coupling <italic>J<sub>ij</sub></italic>. Qubits are arranged in unit cells, each a <italic>K</italic><sub>4,4</sub> bipartite graph of 8 qubits. Due to manufacturing errors, some qubits and couplings are defective and cannot be programed.</p>
<fig position="float" id="F3">
<label>Figure 3</label>
<caption><p><bold>Working graph of the DW2X used; the topology is called Chimera</bold>.</p></caption>
<graphic xlink:href="fict-03-00023-g003.tif"/>
</fig>
<p>The RAN1 and AC3 problems are defined on a Chimera graph with 1100 qubits across a 12&#x02009;&#x000D7;&#x02009;12 cell grid (C12). In experiments, we consider models that exploit all available couplings and qubits (C12), as well as models that use only 127 qubits on a 4&#x02009;&#x000D7;&#x02009;4 cell subgrid (C4), and 32 qubits on a 2&#x02009;&#x000D7;&#x02009;2 cells subgrid (C2).</p>
<p>RAN1 is a simple spin-glass model without fields (<italic>h<sub>i</sub></italic>&#x02009;&#x0003D;&#x02009;0), and with independent and identically distributed couplings uniform on <italic>J<sub>ij</sub></italic>&#x02009;&#x0003D;&#x02009;&#x000B1;&#x02009;1 (King et al., <xref ref-type="bibr" rid="B32">2015</xref>). Recent work has indicated that for some algorithms RAN1 may be a relatively easy problem in which to discover optima (R&#x000F8;nnow et al., <xref ref-type="bibr" rid="B46">2014</xref>), and that asymptotically there is no finite temperature spin-glass phase transition (Katzgraber et al., <xref ref-type="bibr" rid="B30">2014</xref>), making it questionable as a benchmark. However, the problem class demonstrates many interesting phenomena at intermediate scales and has become a well-understood benchmark for experimental analysis.</p>
<p>The AC3 model is a simple variation of the RAN1 class. Again we have no fields, but the intra-cell couplings&#x02019; values (those between variables in the same cell) are sampled uniformly at random from <italic>J<sub>ij</sub></italic>&#x02009;&#x0003D;&#x02009;&#x000B1;&#x02009;1/3, and inter-cell couplings set to <italic>J<sub>ij</sub></italic>&#x02009;&#x0003D;&#x02009;&#x02212;&#x02009;1 (King et al., <xref ref-type="bibr" rid="B32">2015</xref>).<xref ref-type="fn" rid="fn4"><sup>4</sup></xref>
By making couplings relatively stronger between cells, longer range interactions are induced through sequences of strongly correlated vertical, or horizontally, qubits. If we can consider the inter-cell couplings to dominate energetically, then the low energy solution space becomes compatible with that of a bipartite Sherrington Kirkpatrick model (Venturelli et al., <xref ref-type="bibr" rid="B51">2015</xref>). We find that the AC3 problem is an interesting departure from RAN1 since the solution space is less dependent on local interactions, and also because we modify the precision of couplings (from an alphabet of &#x000B1;1, to an alphabet of &#x000B1;1/3, &#x02212;1).</p>
</sec>
<sec id="S4-8">
<label>4.2</label> <title>Blocked Gibbs Sampling, and Simulated Thermal Annealing</title>
<p>Blocked Gibbs is a standard Markov chain Monte Carlo procedure closely related to the Metropolis algorithm procedure (Carreira-Perpi&#x000F1;&#x000E1;n and Hinton, <xref ref-type="bibr" rid="B13">2005</xref>; Landau and Binder, <xref ref-type="bibr" rid="B34">2005</xref>). It is the basis for the STA in this paper, and also the post-processing results.</p>
<p>First note that because the Chimera graph is bipartite, it is 2-colorable. Given a coloring, the variables in a set of a given color are conditionally independent given the variables of the complementary set. Thus, it is possibility to simultaneously resample all states in one set, each according to the probability
<disp-formula id="E12"><label>(12)</label><mml:math id="M15"><mml:msub><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>&#x003B2;</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo class="MathClass-rel">&#x0007C;</mml:mo><mml:mi>x</mml:mi><mml:mo class="MathClass-bin">&#x02216;</mml:mo><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:mfrac><mml:mrow><mml:mtext>exp</mml:mtext><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mo class="MathClass-bin">&#x02212;</mml:mo><mml:mi>&#x003B2;</mml:mi><mml:msub><mml:mrow><mml:mn>&#x003B6;</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn><mml:mtext>cosh</mml:mtext><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>&#x003B2;</mml:mi><mml:msub><mml:mrow><mml:mn>&#x003B6;</mml:mn></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow></mml:mfrac><mml:mo class="MathClass-punc">,</mml:mo></mml:math></disp-formula>
where &#x003B6;(<italic>x</italic>)&#x02009;&#x0003D;&#x02009;(<italic>J</italic>&#x02009;&#x0002B;&#x02009;<italic>J<sup>T</sup></italic>)<italic>x</italic>&#x02009;&#x0002B;&#x02009;<italic>h</italic>. We proceed through the colors in a fixed order, for each color resampling all variables. An update of all variables is called a sweep. This procedure can be iterated at a fixed temperature, and the distribution of samples is guaranteed to approach the Boltzmann distribution parameterized by <italic>&#x003B2;</italic> over sufficiently many sweeps. A graph coloring need not be optimal, and can always be found (given sufficiently many colors), so that this algorithm generalizes in an obvious manner to non-bipartite graphs. The blocked Gibbs sampling procedure at large <italic>&#x003B2;</italic> is not very efficient in sampling for multi-modal distributions, since samples are immediately trapped by the nearest modes (which may be of high energy), and escape only over a long timescale. A more effective strategy for multi-modal problems is blocked Gibbs annealing, in which <italic>&#x003B2;</italic> is slowly increased toward some terminal value <italic>&#x003B2;<sub>T</sub></italic> according to a schedule (a schedule assigns one temperature to each sweep of blocked Gibbs). In this paper, we consider an annealing schedule that is a linear interpolation between 0 and <italic>&#x003B2;<sub>T</sub></italic>. Given the restriction to a linear schedule the STA has two parameters: the total anneal time, and the terminal inverse temperature <italic>&#x003B2;<sub>T</sub></italic>. The setting of these parameters is discussed in Section <xref ref-type="sec" rid="S4-10">4.4</xref>.</p>
</sec>
<sec id="S4-9">
<label>4.3</label> <title>Quantum Annealing with the D-Wave 2X</title>
<p>In the case of the DW2X, annealing is controlled by a time-dependent transverse field &#x00394;(<italic>t</italic>) and an energy scale <italic>E</italic>(<italic>t</italic>). These quantities are shown in Figure <xref ref-type="fig" rid="F4">4</xref> for the DW2X used in this paper. The physical temperature (<italic>T</italic>) of the system varies with time and load on the device and is difficult to estimate. We have experimentally observed a physical temperature which is 22.9 in the median, with quartiles of 22.0 and 25.6&#x02009;mK, over the data collection period. We did not analyze the time scales associated with temperature fluctuations in depth, but much of the variation occurs on long time scales, so that in a single experiment we typically found a tighter range of temperatures applied. The unitless Hamiltonian operator in effect during the anneal is
<disp-formula id="E13"><label>(13)</label><mml:math id="M16"><mml:mtable columnalign="left" class="align"><mml:mtr><mml:mtd columnalign="left" class="align-odd"><mml:mi>&#x00124;</mml:mi><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mo class="MathClass-rel">&#x0003D;</mml:mo><mml:mfrac><mml:mrow><mml:mtext>h</mml:mtext></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>k</mml:mi></mml:mrow><mml:mrow><mml:mi>B</mml:mi></mml:mrow></mml:msub><mml:mi>T</mml:mi></mml:mrow></mml:mfrac><mml:mfenced separators="" open="(" close=""><mml:mrow><mml:mfrac><mml:mrow><mml:mn>&#x00394;</mml:mn><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:mrow><mml:mstyle displaystyle='true'><mml:munder class="msub"><mml:mrow><mml:mo class="MathClass-op">&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:munder></mml:mstyle></mml:mrow><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mn>&#x003C3;</mml:mn></mml:mrow><mml:mo class="MathClass-op">&#x0005E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow></mml:msubsup><mml:mo class="MathClass-bin">&#x0002B;</mml:mo><mml:mfrac><mml:mrow><mml:mi>E</mml:mi><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:mfenced separators="" open="[" close=""><mml:mrow><mml:mrow><mml:mstyle displaystyle='true'><mml:munder class="msub"><mml:mrow><mml:mo class="MathClass-op">&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi mathvariant="italic">ij</mml:mi></mml:mrow></mml:munder></mml:mstyle></mml:mrow><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>J</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="italic">ij</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi mathvariant="italic">max</mml:mi><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mtext></mml:mtext><mml:mrow><mml:mo class="MathClass-open">&#x0007B;</mml:mo><mml:mrow><mml:mtext></mml:mtext><mml:mn class="MathClass-rel">&#x0007C;</mml:mn><mml:msub><mml:mrow><mml:mi>J</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="italic">ij</mml:mi></mml:mrow></mml:msub><mml:mn class="MathClass-rel">&#x0007C;</mml:mn><mml:mo class="MathClass-punc">,</mml:mo><mml:mn class="MathClass-rel">&#x0007C;</mml:mn><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mn class="MathClass-rel">&#x0007C;</mml:mn><mml:mtext></mml:mtext></mml:mrow><mml:mo class="MathClass-close">&#x0007D;</mml:mo></mml:mrow><mml:mtext></mml:mtext></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:mrow></mml:mfenced></mml:mrow></mml:mfenced><mml:mfenced separators="" open="" close=")"><mml:mrow><mml:mfenced separators="" open="" close="]"><mml:mrow><mml:mo class="MathClass-bin">&#x000D7;</mml:mo><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mn>&#x003C3;</mml:mn></mml:mrow><mml:mo class="MathClass-op">&#x0005E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow></mml:msubsup><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mn>&#x003C3;</mml:mn></mml:mrow><mml:mo class="MathClass-op">&#x0005E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow></mml:msubsup><mml:mo class="MathClass-bin">&#x0002B;</mml:mo><mml:mrow><mml:mstyle displaystyle='true'><mml:munder class="msub"><mml:mrow><mml:mo class="MathClass-op">&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:munder></mml:mstyle></mml:mrow><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi mathvariant="italic">max</mml:mi><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mtext></mml:mtext><mml:mrow><mml:mo class="MathClass-open">&#x0007B;</mml:mo><mml:mrow><mml:mtext></mml:mtext><mml:mn class="MathClass-rel">&#x0007C;</mml:mn><mml:msub><mml:mrow><mml:mi>J</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="italic">ij</mml:mi></mml:mrow></mml:msub><mml:mn class="MathClass-rel">&#x0007C;</mml:mn><mml:mo class="MathClass-punc">,</mml:mo><mml:mn class="MathClass-rel">&#x0007C;</mml:mn><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mn class="MathClass-rel">&#x0007C;</mml:mn><mml:mtext></mml:mtext></mml:mrow><mml:mo class="MathClass-close">&#x0007D;</mml:mo></mml:mrow><mml:mtext></mml:mtext></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow></mml:mfrac><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mn>&#x003C3;</mml:mn></mml:mrow><mml:mo class="MathClass-op">&#x0005E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo class="MathClass-open">(</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mo class="MathClass-close">)</mml:mo></mml:mrow></mml:mrow></mml:msubsup></mml:mrow></mml:mfenced></mml:mrow></mml:mfenced></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
where <italic>s</italic>&#x02009;&#x0003D;&#x02009;<italic>t/t<sub>max</sub></italic> is the rescaled time, the coefficient h is Planck&#x02019;s constant, and <inline-formula><mml:math id="M19"><mml:mover accent='true'><mml:mi>&#x003C3;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover></mml:math></inline-formula> are the Pauli matrices. The Hamiltonian parameters can be considered rescaled to maximum value 1 (the function of the denominator max(<italic>&#x022C5;</italic>)). <italic>r</italic> and <italic>t<sub>max</sub></italic> are the rescaling parameter and the anneal time parameter, respectively. Throughout this paper, we adopt the convention that the Hamiltonian for the problem is fixed, and treat <italic>r</italic> as a parameter of the heuristic (DW2X). In current operation of the DW2X, this manipulation is achieved in practice by turning off autoscale, and manually rescaling the values of {<italic>J<sub>ij</sub></italic>, <italic>h<sub>i</sub></italic>} submitted. We find the convention of modifying the quantum Hamiltonian equation <xref ref-type="disp-formula" rid="E13">(13)</xref> to be more intuitive than considering modification of the classical Hamiltonian that is submitted: when we rescale downwards, we are implying the use of smaller energy scales <italic>E</italic>(<italic>t</italic>) in the annealer, and we anticipate that <italic>&#x003B2;</italic> is reduced.</p>
<fig position="float" id="F4">
<label>Figure 4</label>
<caption><p><bold>The DW2X operational energy scales during the anneal, the Hamiltonian is equation <xref ref-type="disp-formula" rid="E13">(13)</xref></bold>.</p></caption>
<graphic xlink:href="fict-03-00023-g004.tif"/>
</fig>
</sec>
<sec id="S4-10">
<label>4.4</label> <title>Parameterization of the DW2X and STA in Experiments</title>
<p>Our criteria for selection of the default rescaling parameter <italic>r</italic> and the anneal time is minimization of the &#x0201C;Time to Solution&#x0201D; (TTS) (R&#x000F8;nnow et al., <xref ref-type="bibr" rid="B46">2014</xref>; Isakov et al., <xref ref-type="bibr" rid="B27">2015</xref>; King et al., <xref ref-type="bibr" rid="B32">2015</xref>). TTS is the expected time required to see a ground state for the first time. For the DW2X, it is optimal to choose a minimal programmable anneal time (20&#x02009;&#x000B5;s), and a maximum programmable energy scale <italic>r</italic>&#x02009;&#x0003D;&#x02009;1. A second (and not uncorrelated) reason to use these parameters is that they are the default operation mode of the DW2X. Since our objective is not optimization, TTS is not the optimal way to use the DW2X, but represents a standard choice that allows for phenomena to be explored.</p>
<p>The STA parameters are chosen in simple manner in part according to TTS, and in part for convenient comparison with the DW2X. We choose the STA parameter <italic>&#x003B2;<sub>T</sub></italic> so that the distribution of local excitations in the DW2X and STA are comparable in the median case of 100 randomly generated C12 problems: by equating the <italic>local</italic> properties&#x02019; differences between the annealers, we expose more interesting <italic>global</italic> features. To equate local properties <italic>&#x003B2;<sub>T</sub></italic> is chosen equal to the MLPL estimate of <italic>ta</italic> at full scale (C12) for the DW2X (see Figure <xref ref-type="fig" rid="F5">5</xref>). This implies <italic>&#x003B2;<sub>T</sub></italic>&#x02009;&#x0003D;&#x02009;3.54 for RAN1, and <italic>&#x003B2;<sub>T</sub></italic>&#x02009;&#x0003D;&#x02009;4.82 for AC3. In the case of RAN1, our choice <italic>&#x003B2;<sub>T</sub></italic>&#x02009;&#x0003D;&#x02009;3.54 is not too dissimilar to the value (<italic>&#x003B2;</italic>&#x02009;&#x0003D;&#x02009;3) that had been previously used for optimization applications (R&#x000F8;nnow et al., <xref ref-type="bibr" rid="B46">2014</xref>; Isakov et al., <xref ref-type="bibr" rid="B27">2015</xref>; King et al., <xref ref-type="bibr" rid="B32">2015</xref>).</p>
<fig position="float" id="F5">
<label>Figure 5</label>
<caption><p><bold>As per Figure <xref ref-type="fig" rid="F6">6</xref>, but using samples from the DW2X</bold>. (Left) The MLPL method is non-linear, unlike the STA results. (Right) The maximum likelihood method shows qualitatively similar features to the STA. Note that the C12 result for the MLPL estimate at <italic>r</italic>&#x02009;&#x0003D;&#x02009;1 is identical to that in Figure <xref ref-type="fig" rid="F6">6</xref>, the STA parameter <italic>&#x003B2;<sub>T</sub></italic> was chosen to meet this criteria as discussed in Section <xref ref-type="sec" rid="S4-8">4.2</xref>.</p>
</caption>
<graphic xlink:href="fict-03-00023-g005.tif"/>
</fig>
<fig position="float" id="F6">
<label>Figure 6</label>
<caption><p><bold>Bars represent quartiles over 100 instances of RAN1 at each scale, estimates for <italic>&#x003B2;</italic> are in each case 10<sup>4</sup> samples generated by the STA</bold>. C2 and C12 data points are offset for visibility. (Left) Temperature estimates by the MLPL method. The MLPL estimate for thermal annealers matches the terminal model at all scales. (Right) Temperature estimates by ML. A non-linear trend is apparent due to ergodicity breaking, which is not captured by MLPL estimates.</p></caption>
<graphic xlink:href="fict-03-00023-g006.tif"/>
</fig>
<p>We choose two sets for the number of sweeps of the STA, and show both in most figures. The first set is chosen to minimize TTS in the median instance. For both RAN1 and AC3, we find an approximately linear trend in the width the Chimera graph, so that 12,000, 4000, and 2000 sweeps were close to optimal for C12, C4, and C2 problems, respectively.</p>
<p>The second set was chosen to match the time per sample of the DW2X. A recent efficient implementation of the Metropolis algorithm for RAN1 problems achieves a rate of 6.65 spin flips per nano-second (Isakov et al., <xref ref-type="bibr" rid="B27">2015</xref>). In C12 problems, we have 1100 active qubits, and so 20&#x02009;&#x000B5;s would allow for <inline-formula><mml:math id="M17"><mml:mfrac><mml:mrow><mml:mn>20000</mml:mn><mml:mspace width="1em" class="nbsp" /><mml:mi mathvariant="italic">ns</mml:mi></mml:mrow><mml:mrow><mml:mn>1100</mml:mn><mml:mtext>&#x02009;spin&#x02009;flips</mml:mtext></mml:mrow></mml:mfrac><mml:mo class="MathClass-bin">&#x02217;</mml:mo><mml:mn>6</mml:mn><mml:mo class="MathClass-punc">.</mml:mo><mml:mn>65</mml:mn><mml:mtext>&#x02009;spin&#x02009;flips</mml:mtext><mml:mn class="MathClass-bin">&#x02215;</mml:mn><mml:mi mathvariant="italic">ns</mml:mi><mml:mo class="MathClass-rel">&#x02248;</mml:mo><mml:mn>120</mml:mn></mml:math></inline-formula> sweeps (updates of all variables). For C4 and C2, we rescale linearly for simplicity (40 and 20, respectively).</p>
<p>In experiments, we evaluate the STA and DW2X on the basis of sample batches, each batch consisting of 10<sup>4</sup> samples. We approximate the samples as independent and identically distributed. In the case of the DW2X, this is an approximation and different programing procedures can impact quality of results. Our DW2X batches are generated by collecting 10<sup>4</sup> samples split across 10 programing cycles. This is a standard collection procedure that trades off quality of samples against timing considerations &#x02013; including annealing time, programing time, and read-out time. The programing cycles exploit spin-reversals, a noise mitigating technique that strongly suppresses correlations between programing cycles (Boixo et al., <xref ref-type="bibr" rid="B10">2013</xref>). The effect of this batch structure is presented in Figure <xref ref-type="fig" rid="F2">2</xref>.</p>
</sec>
<sec id="S4-11">
<label>4.5</label> <title>Maximum Likelihood and Maximum Log-Pseudo-Likelihood Estimation</title>
<p>In this section, we consider the DW2X and STA without post-processing. The maximum log-pseudo-likelihood (MLPL) estimate can be interpreted as a form of locally self-consistent approximation to maximum likelihood, as described in 3.1, and here we compare it to the more computationally intensive maximum likelihood (ML) estimate of Section <xref ref-type="sec" rid="S2-3">2.1</xref>. MLPL and maximum likelihood estimators indicate different values of <italic>&#x003B2;</italic>, reflecting the failure of the locally self-consistent approximation [equation <xref ref-type="disp-formula" rid="E8">(8)</xref>]. MLPL captures a local temperature, consistent with the range over which the kernel [equation <xref ref-type="disp-formula" rid="E9">(9)</xref>] redistributes the sample. We consider the estimates with variation of the DW2X rescaling parameter <italic>r</italic> and the STA terminal temperature <italic>&#x003B2;<sub>T</sub></italic> relative to the default settings, for our annealing procedures on 100 randomly generated RAN1 problems at each of 3 sizes: C2 (32 variables), C4 (127 variables), and C12 (1100 variables). Results for AC3 are presented in supplementary materials.</p>
<p>We first consider the behavior of the STA with a range of terminal inverse temperatures between 0 and the default value for the problem class. Due to ergodicity breaking, we expect samples to fall out of equilibrium before the terminal temperature is reached, and so the distribution may be characterized by a value of <italic>&#x003B2;</italic> smaller than <italic>&#x003B2;<sub>T</sub></italic>, reflecting the range of inverse temperature for which dynamics slowed down. Figure <xref ref-type="fig" rid="F6">6</xref> shows the maximum likelihood and MLPL estimates based on the same sample sets. We see that the MLPL estimates follow a linear curve, which would indicate that the terminal model is indeed the best fit to the samples, with no evidence of the ergodicity breaking we describe. By contrast, the maximum likelihood estimator is concave, with <italic>&#x003B2;</italic> significantly smaller than <italic>&#x003B2;<sub>T</sub></italic>.</p>
<p>The DW2X can also be manipulated by changing the rescaling parameter <italic>r</italic> on the interval [0, 1]. We thus repeat this experiment using sample sets from the DW2X. In Figure <xref ref-type="fig" rid="F5">5</xref> we see that both locally (MLPL) and globally (ML) the estimators are concave as a function of this rescaling. As with the STA, estimates are consistently larger for MLPL than maximum likelihood, and maximum likelihood estimates decrease for larger, more complicated, problems. Maximum likelihood exhibits some small decrease with system size. A naive interpretation of the rescaling parameter might lead to a general hypothesis that <italic>&#x003B2;</italic> &#x0221D; <italic>r</italic>, where the constant of proportionality can be determined by the terminal energy scale in annealing (see Figure <xref ref-type="fig" rid="F4">4</xref>). However, the physical dynamics of qubits are controlled by a <italic>single qubit freeze-out</italic> phenomenon that is discussed in supplementary material, with data summarized in Figure <xref ref-type="fig" rid="F7">7</xref>. The single qubit freeze-out figure implies that the non-linearity of the MLPL curve in spin-glass problems is a function of the problem precision (granularity of the settings of <italic>J<sub>ij</sub></italic> and <italic>h<sub>i</sub></italic>), or more specifically, the pattern of energy gaps. Problems of higher precision, such as the AC3 problem class, have less pronounced non-linearity. The single qubit freeze-out phenomenon also anticipates the system size dependence seen in Figure <xref ref-type="fig" rid="F5">5</xref>, and in some other models not presented. AC3 results, and further discussion of this point, are in supplementary materials.</p>
<fig position="float" id="F7">
<label>Figure 7</label>
<caption><p><bold>An explanation for non-linearity of the MLPL estimator is possible through examination of single qubit dynamics in the DW2X</bold>. This study is described in supplementary materials. MLPL becomes equivalent to maximum likelihood in the limit of a single qubit. The single qubit <italic>&#x003B2;</italic> dependence on the rescaling parameter, for the single qubit Hamiltonian <italic>H</italic>(<italic>x</italic>)&#x02009;&#x0003D;&#x02009;<italic>x<sub>i</sub></italic> is shown. We plot the DW2X median value together with 25&#x02013;75 quantiles as error bars. Simulation of the physical dynamics gives the Redfield curve, and the &#x0201C;freeze-out&#x0201D; curve shows is based on the assumption of a single freeze-out point. The theory, thus, is in agreement with experiment. The DW2X is not equilibrated at the end of the anneal even for a single qubit model. By contrast, in a system that is locally or globally equilibrated at the end of the anneal a linear dependence would be expected, as is seen for the STA.</p></caption>
<graphic xlink:href="fict-03-00023-g007.tif"/>
</fig>
<p>We believe the phenomenon underlying both MLPL and maximum likelihood to be easily understood, and similar in both the DW2X and STA, although the interaction of the dynamics with the energy landscape may be quite different. Figure <xref ref-type="fig" rid="F1">1</xref> provides a useful example to explain this. When ergodicity is broken, and the sample set is divided over subspaces, each subset relaxes toward the terminal model restricted to the subspace; the MLPL method effectively averages an estimate over these subspaces. By contrast, the maximum likelihood estimate accounts in part for the distribution between modes, determined at an early (higher energy) stage of the anneal that is better described by smaller inverse temperature. Note that the equilibrated distribution at the ergodicity breaking point is a quantum one for the DW2X, unlike thermal annealers, so we ought to understand the deviation in the local and global temperatures in terms of the quantum parameterization (&#x00394;(<italic>t</italic>), E(<italic>t</italic>)) (Amin, <xref ref-type="bibr" rid="B2">2015</xref>). Still, the classical description in terms of <italic>&#x003B2;</italic> [equation <xref ref-type="disp-formula" rid="E2">(2)</xref>] provides the correct intuition.</p>
<p>Response curves, such as these, can be used to choose a suitable parameterization of the terminal model &#x02013; we can choose <italic>&#x003B2;<sub>T</sub></italic> so as to minimize KL-divergence. Similar curves could be constructed for any parameter, and with a distribution that is subject to post-processing. In the absence of the maximum likelihood curve (due to absence of approximates to the energy), a local information curve, such as MLPL curve, can be used as a compromise. The maximum likelihood curves, and MLPL curve for the DW2X, are problem dependent. Some temperature estimators require knowledge of, or assumptions about, the form of these curves &#x02013; notably the method of Benedetti et al. (<xref ref-type="bibr" rid="B6">2016</xref>) and our multi-canonical method, both described in supplementary materials.</p>
<p>To judge quality of the approximation at the &#x0201C;best&#x0201D; <italic>&#x003B2;</italic>, it is appropriate to consider the quantity being minimized, KL-divergence. However, this is a difficult quantity to estimate from samples in the absence of parametric assumptions. We present a method for estimation of KL-divergence in supplementary materials, but find that for RAN1 and AC3 problems it is ineffective at C12 scales. This is an important reason to consider an alternative, such as the MSE estimator.</p>
</sec>
<sec id="S4-12">
<label>4.6</label> <title>The Mean Square Error Estimator</title>
<p>The mean square errors on correlations associated with the DW2X and STA for a typical instance of RAN1, and a typical instance of AC3, are shown for the C12 (1100 variables) problem size in Figure <xref ref-type="fig" rid="F8">8</xref>. Though there is significant variation between the curves associated with different instances of these models, we chose among 100 random instances exemplars that are typical in the minimizing temperature and the mean square error (<italic>&#x003B2;</italic>, MSE) for DW2X.</p>
<fig position="float" id="F8">
<label>Figure 8</label>
<caption><p><bold>Both the DW2X and STA can be used to sample from a RAN1 problem with small errors over an intermediate range of <italic>&#x003B2;</italic></bold>. Objective performance is shown for two typical instances under several annealer operating conditions. (Left) Results for the AC3 exemplar. (Right) Results for the RAN1 exemplar. SEs determined by jack-knife methods are negligible compared to the marker size. To avoid clutter, we show only variation of the anneal time in the left figure, and only variation of the rescaling parameter (<italic>r</italic>&#x02009;&#x0003D;&#x02009;0.5 in the DW2X, <italic>&#x003B2;<sub>T</sub></italic>/2 in the STA) in the right figure.</p></caption>
<graphic xlink:href="fict-03-00023-g008.tif"/>
</fig>
<p>Both the DW2X and STA performances are best characterized at intermediate <italic>&#x003B2;</italic> values, and variation from the default annealer settings is also shown to modify MSE. In the RAN1 exemplar, we demonstrate the effect of halving the terminal temperature or rescaling parameter, which improves MSE (except perhaps at very large values for <italic>&#x003B2;</italic>). In the case of the AC3 exemplar, we demonstrate the effect of varying the anneal time. Results indicate that longer anneals tend to improve MSE at lower temperature. To prevent clutter, we have shown only one variation of a default parameter per model. Switching the parameter being varied results is qualitatively similar. Annealing for longer is expected to allow equilibration to lower temperatures, and so a better match is to be expected. Annealing with smaller <italic>r</italic> or <italic>&#x003B2;<sub>T</sub></italic>, concentrates annealing resources toward the initial part of the anneal where dynamics are effective (rather than at the end of the anneal where ergodicity breaking has already occurred and cannot be mitigated). It also reduces the tendency of samples to settle toward local minima that might distort the approximation for intermediate <italic>&#x003B2;</italic>. In the case of the DW2X, some noise sources and quantum mechanical phenomena can complicate this simple picture, but this is not obviously at play.</p>
<p>Figure <xref ref-type="fig" rid="F9">9</xref> shows the mean square error achieved against the point it is minimized, for a large set of C12 (1100 variable) problem instances. Ideally, we wish for heuristics that are both sampling at large <italic>&#x003B2;</italic> and with small errors. Figure <xref ref-type="fig" rid="F10">10</xref> shows the minimum MSE estimator in comparison to the maximum likelihood estimator. These two estimates indicate different operational temperature ranges. The fact that the maximum likelihood estimator is significantly larger is to be expected in annealers. Late in the anneal samples sink toward their respective local minima, decreasing the mean energy significantly (see Figure <xref ref-type="fig" rid="F1">1</xref>). The mean energy is strongly dependent on the local relaxation, and hence the local inverse temperature, which as we saw in the previous section is large. In the case of MSE, the correlation error is for most models not strongly affected by this local decrease in energy. It is more sensitive to the distribution between modes, which is set only by the temperatures characterizing ergodicity breaking.</p>
<fig position="float" id="F9">
<label>Figure 9</label>
<caption><p><bold>Statistics over the set 100 AC3 (left) and RAN1 (right) problems at C12 scales</bold>. Small objective values at large inverse temperatures are difficult to obtain, and so desirable in a heuristic sampler. Sampling effectively at small inverse temperature is less valuable (e.g., 120 sweep STA). Modification of the annealing parameters significantly changes the distribution, allowing more effective emulation at some inverse temperatures. To avoid clutter, we show only variation of the anneal time in the left figure, and only variation of the terminal model rescaling (<italic>r</italic>, <italic>&#x003B2;<sub>T</sub></italic>) in the right figure; the effects are qualitatively similar in each of these models at C12 scale.</p></caption>
<graphic xlink:href="fict-03-00023-g009.tif"/>
</fig>
<fig position="float" id="F10">
<label>Figure 10</label>
<caption><p><bold>Statistics over the set 100 AC3 (left) and RAN1 (right) problems at C12 scales, as per Figure <xref ref-type="fig" rid="F9">9</xref></bold>. Minimum MSE and maximum likelihood estimators of temperature give different, but strongly correlated, results. The maximum likelihood estimate is typically larger, a partial explanation is the sinking of samples toward local minima late in the anneal, which through its impacts on mean energy has consequences for the maximum likelihood estimate.</p></caption>
<graphic xlink:href="fict-03-00023-g010.tif"/>
</fig>
<p>By annealing with modified <italic>&#x003B2;<sub>T</sub></italic> or <italic>r</italic>, improvements are made for sampling intermediate or small <italic>&#x003B2;</italic>. By contrast, it is relatively hard to sample effectively from large values of <italic>&#x003B2;</italic> by modifying these parameters; additional time resources are required to make an impact. For this reason, we may argue that, generally, the larger the inverse temperature estimate, the more useful the annealer will be for hard sampling applications. However, it is important to note that an estimate for <italic>&#x003B2;</italic>, independent of the objective measure, may be risky or misleading. In Figure <xref ref-type="fig" rid="F10">10</xref> (right), the DW2X system at full scale indicates a lower minimum MSE <italic>&#x003B2;</italic> than the DW2X system operating at half scale. However, we can see that at this larger <italic>&#x003B2;</italic> value the half scale system is still more effective as a heuristic.</p>
</sec>
<sec id="S4-13">
<label>4.7</label> <title>Effectiveness of Post-Processing</title>
<p>In Sections <xref ref-type="sec" rid="S4-11">4.5</xref> and <xref ref-type="sec" rid="S4-12">4.6</xref>, we demonstrated how adjusting anneal duration, or the terminal temperature, can allow better objective outcomes. In this section, we consider briefly the effect of post-processing by one sweep of blocked Gibbs as discussed in Section <xref ref-type="sec" rid="S3-6">3.2</xref>. This post-processing changes dramatically the local distribution of samples, hence the MLPL estimate. However, the KL-divergence and mean square error, and the temperatures minimizing these objectives, are affected by a combination of the local and global distribution and so are modified in a non-trivial way by post-processing. Post-processing always strongly modifies local distribution properties, but only in the easy to sample regime (at small <italic>&#x003B2;</italic>) does it significantly impacts global distribution problems.</p>
<p>Figure <xref ref-type="fig" rid="F11">11</xref> shows that MSE on correlations are, as expected, improved by post-processing. The improvements are dramatic in the regime <italic>&#x003B2; &#x02248;</italic> 0, impressive over intermediate values of <italic>&#x003B2;</italic>, but almost negligible for larger <italic>&#x003B2;</italic>. After post-processing, the MSE curve has two minima. There is no guarantee and there should be two local minima working with arbitrary distributions. The first local minimum (<italic>&#x003B2;</italic>&#x02009;&#x0003D;&#x02009;0) is evidence for the power of post-processing. Since one sweep of blocked Gibbs samples effectively at <italic>&#x003B2; &#x02248;</italic> 0, independent of the initial condition <italic>P<sub>A</sub></italic>, <italic>&#x003B2;</italic>&#x02009;&#x0003D;&#x02009;0 will be a global minimum for any heuristic distribution. The second local minimum appears due to the closeness (at the macroscopic level) of the annealing distribution to some particular low-temperature Boltzmann distribution, a sweet spot of operation that may be of practical interest.</p>
<fig position="float" id="F11">
<label>Figure 11</label>
<caption><p><bold>Simple forms of post-processing can have a quantitatively large effect on objectives at small and intermediate temperatures</bold>. The C12 problem exemplars consistent with Figure <xref ref-type="fig" rid="F8">8</xref> are shown. At low <italic>&#x003B2;</italic> a single sweep of blocked Gibbs can completely correct all errors. At high <italic>&#x003B2;</italic>, there is relatively little effect; however, the effect is significant in the intermediate range of inverse temperature where the annealers can be considered most effective.</p></caption>
<graphic xlink:href="fict-03-00023-g011.tif"/>
</fig>
<p>Post-processing reduces the error everywhere, but more so at smaller <italic>&#x003B2;</italic> where the time-scales for macroscopic redistribution are shorter. For this reason, we expect the minimizing value of <italic>&#x003B2;</italic> to move leftward with post-processing. If the post-processing allows global redistribution of samples, we may anticipate the disappearance of the local maximum separating the &#x0201C;easy for post-processing regime&#x0201D; from the &#x0201C;good for this annealer&#x0201D; regime; at which point a best operational regime for the annealer is less clear. However, we can assume that powerful post-processing of this kind is too expensive in the types of multi-modal problems where annealers are useful.</p>
<p>Figure <xref ref-type="fig" rid="F12">12</xref> shows the statistics for the local minimum mean square error estimator, and its relation to the local maximum likelihood estimator, to be compared against Figure <xref ref-type="fig" rid="F10">10</xref> that has no post-processing. The local minimizer is the right most local minimum of the post-processed curve (see Figure <xref ref-type="fig" rid="F11">11</xref>), indicating the good operating regime. A global minimum is always at <italic>&#x003B2;</italic>&#x02009;&#x0003D;&#x02009;0, but this is not of interest as it reflects the post-processor and not the heuristic.</p>
<fig position="float" id="F12">
<label>Figure 12</label>
<caption><p><bold>As per Figure <xref ref-type="fig" rid="F10">10</xref>, but now all distributions are modified by one sweep of blocked Gibbs sampling</bold>. The estimators for inverse temperature are reduced, as the effect of the local distribution (characterized by larger inverse temperature) is partially removed.</p></caption>
<graphic xlink:href="fict-03-00023-g012.tif"/>
</fig>
<p>In Figure <xref ref-type="fig" rid="F12">12</xref> (left), we see that, relative to the distribution without post-processing, there is a slight shift leftwards in all distributions, and significant shift downwards that appears approximately proportional to the MSE without post-processing. The effect of local relaxation is to give the impression of better estimation at low temperature. Here, the effect is partially lifted to reveal that the macroscopic distribution may be characterized by slightly smaller <italic>&#x003B2;</italic>.</p>
<p>In Figure <xref ref-type="fig" rid="F12">12</xref> (right), we see how the minimum MSE estimate decreases in all annealers, but by a less significant amount than the downward trend in the maximum likelihood estimator. The two remain strongly correlated under post-processing. It is natural to expect that the local relaxation, which shifts samples toward their local minimum, may have a bigger impact on KL-divergence than MSE, because it is easy to raise the energy by post-processing that impacts maximum likelihood in a systematic manner, but it is difficult to redistribute samples macroscopically, which may be required to alter minimum MSE.</p>
<p>The particular effects demonstrated on the exemplar instances of Figure <xref ref-type="fig" rid="F12">12</xref> are reflected at the distribution level in Figure <xref ref-type="fig" rid="F13">13</xref>.</p>
<fig position="float" id="F13">
<label>Figure 13</label>
<caption><p><bold>As per Figure <xref ref-type="fig" rid="F9">9</xref>, but with distributions modified by one sweep of blocked Gibbs sampling</bold>. Objectives are improved everywhere very significantly, and by a comparable fraction across the different annealers.</p></caption>
<graphic xlink:href="fict-03-00023-g013.tif"/>
</fig>
<p>The estimation of KL-divergence is described in supplementary materials, and allows us to measure KL-divergence post-processed RAN1 and AC3 problems, with reasonable precision up to C4 scale. In Figure <xref ref-type="fig" rid="F14">14</xref>, we demonstrate results for an exemplar on a C4 graph. The pattern observed is qualitatively similar to Figure <xref ref-type="fig" rid="F11">11</xref> in that we see a global minimum at <italic>&#x003B2;</italic>&#x02009;&#x0003D;&#x02009;0 reflecting the effectiveness of the post-processing, and a local minimum at intermediate <italic>&#x003B2;</italic> that reflects a promising region for application of the annealer as a heuristic. As discussed in the supplementary materials, bias can be a problem with our KL-divergence estimator. For this reason, we present a C4 (rather than C12) sized problem and only the post-processed (rather than unprocessed and post-processed) estimates. To assess the bias (the sensitivity of the estimate to the finite sample set size), the jack knife bias-corrected estimator is also shown (Efron, <xref ref-type="bibr" rid="B19">1982</xref>). At C4 scale, the bias does not significantly obscure the phenomena, particularly for the more powerful annealers (the STA with 4000 sweeps, and the DW2X).</p>
<fig position="float" id="F14">
<label>Figure 14</label>
<caption><p><bold>KL-divergence results for two exemplar instances of AC3 (left) and RAN1 (right) each at C4 scale (127 variables)</bold>. Full lines indicate the estimate, and the dashed lines indicate jack-knife bias-corrected estimates. The variance determined by the jack-knife method is negligible by comparison with symbol size. The bias is very large for 40-sweep annealing, indicating that we have insufficient samples to properly determine the KL-divergence. Elsewhere, we judge the bias not to significantly impact our conclusions.</p></caption>
<graphic xlink:href="fict-03-00023-g014.tif"/>
</fig>
</sec>
</sec>
<sec id="S5" sec-type="discussion">
<label>5</label> <title>Discussion</title>
<p>In this paper, we have considered several temperature estimators applied in the context of a physical quantum annealer set up for optimization (DW2X), and a comparable simply parameterized simulated thermal annealer (STA). We have demonstrated how different objective measures of closeness to the Boltzmann distribution respond differently to local and global distribution features. An important phenomenon we observe is that in annealed distributions we have a range of temperature estimates according to the method employed. We have shown that estimators indicating larger temperature are those responsive to macroscopic (global) features of the distribution. From an estimator perspective, we have <italic>global warming</italic>: the more effective the estimator is in capturing global distribution features, the higher the temperature that is typically indicated. Ergodicity breaking qualitatively explains the origin of this phenomenon in annealers, both the DW2X and STA. We have provided some practical guidelines in Section <xref ref-type="sec" rid="S1-1">1.1</xref>.</p>
<p>Local distributional features, which are well characterized by a temperature, are easy to estimate by self-consistent methods. We showed in the main text standard methods for temperature estimation from samples drawn from a single distribution. Self-consistent approaches are efficient and approximate the target distribution from the same samples by which the heuristic is evaluated. We presented a simple form for this, but the principle generalizes. However, the main problem with such methods is that they may indicate a good fit on the basis of incomplete (or biased) information about the target distribution. If a heuristic sample set fails to see a representative set of modes in the distribution, then the evaluation will inevitably skewed by the missing information.</p>
<p>The local approximation method is able to capture an important difference between quantum and simulated annealers related to the difference between dynamics of the DW2X and STA. This is realized in the non-linear dependence of the local temperature estimate to variation of the DW2X rescaling parameter. Quantum simulations on single qubits provide a qualitatively accurate explanation for this phenomenon, and are described in supplementary material (Raymond et al., <xref ref-type="bibr" rid="B44">2016</xref>).</p>
<p>Describing the global distribution in terms of temperature(s) is more tricky; we proposed KL-divergence and MSE as measures of deviation from the Boltzmann distribution, and based on these objectives developed estimators for the best temperature. Each of these objectives is affected in slightly different ways by deviations locally and globally from the Boltzmann distribution. The maximum likelihood estimator is more strongly affected by the local distribution than the minimum MSE estimator, and indicates a larger estimate of inverse temperature. To remove the local distribution effects, we have proposed to take the initial distribution and apply local post-processing in order to isolate the macroscopic distribution effects that are truly a limitation on practical performance. Applying some degree of post-processing may also be valuable in practice, in particular for the DW2X since the post-processing is strictly classical and complementary to the quantum dynamics.</p>
<p>We emphasize that because efficient post-processing allows significant manipulation of the local temperature, we consider this temperature not particularly important in practical applications. If we post-process, the post-processing temperature itself will be synonymous with the local temperature; the local temperature need not be measured.</p>
<p>Ergodicity breaking that relates to symmetry breaking, and ergodicity breaking without symmetry breaking should be distinguished. The problem classes we study in experimental sections are random, but there is a global sign symmetry, <italic>P</italic>(<italic>x</italic>)&#x02009;&#x0003D;&#x02009;<italic>P</italic>(&#x02212;<italic>x</italic>), other problems may exhibit different (or no) symmetries. Our annealer implementations (initial conditions, and dynamics) are chosen such that the heuristic distribution (<italic>P<sub>A</sub></italic>) also exhibits the same symmetry. If a symmetry is known, a well implemented sampler should be designed not to break such a symmetry. Symmetry implies that a mode at x&#x02032; will imply a mode at <inline-formula><mml:math id="M18"><mml:mo class="MathClass-bin">&#x02212;</mml:mo><mml:mi>x</mml:mi><mml:mo class="MathClass-rel">&#x02032;</mml:mo></mml:math></inline-formula>, and it may be that ergodicity breaking occurs between the two halves of the solution space (and be characterized by some temperature). However, this ergodicity breaking does not lead to a departure from the Boltzmann distribution, and so is of less practical interest than the ergodicity breaking that relates to random problem structure. The objectives we study are for this reason insensitive to ergodicity breaking (relying on energy and correlation statistics), and capture the temperature related only to the non-trivial ergodicity breaking.</p>
<p>Important ideas incidental to the main thread are discussed in supplementary materials (Raymond et al., <xref ref-type="bibr" rid="B44">2016</xref>). These include the following: a description of single qubit experiments that explain the non-linearity of MLPL estimates in the DW2X; consideration of the effect of embedding on the distribution of samples; the development of an effective estimator for the Kullback&#x02013;Leibler divergence; a consideration of spin-reversal transformations to mitigate sampling error in the DW2X; and an experiment to test how the choice of kernel [equation <xref ref-type="disp-formula" rid="E7">(7)</xref>] affects the locally self-consistent temperature estimates.</p>
<p>At various points in this paper, we have included results both for the DW2X and STA. We have motivated a default parameterization for each algorithm in Section <xref ref-type="sec" rid="S4-10">4.4</xref>, and it should be clear that these choices are not aimed at, or appropriate for, a competitive comparison. It would be a complicated task to make a fair comparison, and it would also detract from the main theme of this paper since it would distort or disguise the phenomena we wish to highlight. We chose a default DW2X parameterization suitable for optimization, and two STA parameterizations that allow for qualitative comparison. It has been shown in experiments that both annealers can be improved with simple parameter modifications. It is interesting that, despite the fact that the DW2X annealer has been designed and tuned for optimization, it produces good statistics at intermediate temperature ranges, and that the STA with long anneal time shows a qualitatively similar behavior.</p>
<p>Given fixed time resources, optimal annealer operation is to a large extent determined by the schedule: the allocation of time resources over the anneal path (or modification of the anneal path itself, for multi-parameter paths as in the DW2X). The basic principle of schedule optimization is to allocate resources where dynamics are most effective (i.e., before, and close to, detrimental points of ergodicity breaking, allocating far fewer resources beyond that point) (Neal, <xref ref-type="bibr" rid="B39">1993</xref>; Ghate and Smith, <xref ref-type="bibr" rid="B21">2008</xref>). The STA schedule we implement is linear in temperature &#x02013; this was simple to explain, and found to significantly outperformed a geometric schedule, over the temperature range implemented. The DW2X schedule by contrast could not be manipulated at this level of detail, the basic form of the schedule is fixed by engineering considerations.</p>
<p>When considering the value of annealers in inference problems, it is also important not to forget a variety of other powerful inference methods that may achieve a similar objective. In particular, simple variations on the STA, such as annealed (or population) importance sampling methods and other multi-canonical MCMC methods can often be tailored to the graphical structure of the problem under investigation (Neal, <xref ref-type="bibr" rid="B40">2001</xref>; Hukushima and Iba, <xref ref-type="bibr" rid="B25">2003</xref>; Hamze and de Freitas, <xref ref-type="bibr" rid="B23">2004</xref>; Landau and Binder, <xref ref-type="bibr" rid="B34">2005</xref>; Selby, <xref ref-type="bibr" rid="B48">2014</xref>; Zhu et al., <xref ref-type="bibr" rid="B53">2015</xref>).</p>
<p>From the perspective of both errors on correlations and KL-divergence, the balance of evidence certainly indicates that there is potentially a sweet spot for application of either the DW2X or STA to sampling. This sweet spot may be problem type dependent, but can be tuned to a degree, by modification of the annealing parameters, and more importantly, by post-processing. However, evaluation of this sweet spot is difficult to do self-consistently, and someone interested in applications may have to undertake hard work to discover (and have confidence in) annealer performance. Having available curves, such as those in Section <xref ref-type="sec" rid="S4-11">4.5</xref>, probably for some weakly post-processed distribution, would allow parameters of the annealer to be set optimally. It may seem computationally intensive (defeating the value of the heuristic) to evaluate the macroscopic distribution before using an annealer, but it is reasonable to assume that for some classes of problems at large scale, the local and global temperature properties will be common across the class. In other time-dependent applications of annealers, the statistics of the distributions being learned change slowly, so that only periodic evaluations of the temperatures may be required.</p>
<p>Temperature plays an important role in describing annealers, even when they are implemented as optimizers. Temperature concepts might extend to some other heuristic optimization algorithms. In various optimization applications DW2X has been compared against walkSAT, HFS, and other heuristic solvers (Selby, <xref ref-type="bibr" rid="B48">2014</xref>; Douglass et al., <xref ref-type="bibr" rid="B17">2015</xref>; King et al., <xref ref-type="bibr" rid="B32">2015</xref>). walkSAT and HFS optimizers are simple Markov Chain methods proposed to solve, respectively, the SAT, and chimera structured, optimization problems. They always return either global or local optima and in this sense the local temperature can be considered infinite (since, with respect to the sample neighborhood, it seems only ground states are returned). However, macroscopic dynamics are fundamentally similar to an annealer, with the same failure mode. In application to a multi-modal energy landscape, the process mixes across the space being weakly informed by the energy, before being trapped by modes as it falls below some energy threshold. In this sense, there is a global temperature with the same interpretation as proposed in this paper.</p>
<p>An important potential application of quantum annealers is in machine learning (Benedetti et al., <xref ref-type="bibr" rid="B6">2016</xref>; Amin et al., <xref ref-type="bibr" rid="B3">2016</xref>; Rolfe, <xref ref-type="bibr" rid="B45">2016</xref>), where other heuristic samplers (not annealers) are prevalent. A common heuristic used in machine learning is called contrastive divergence (CD) (Hinton, <xref ref-type="bibr" rid="B24">2002</xref>; Carreira-Perpi&#x000F1;&#x000E1;n and Hinton, <xref ref-type="bibr" rid="B13">2005</xref>). <italic>B<sub>&#x003B2;</sub></italic> is approximated in CD by taking the ground truths (a set of training examples) and evolving them by an MCMC procedure. This is an example of the post-processing scheme used and recommended in this paper, except that annealed samples are replaced by the ground truths. Like the annealing distribution, the distribution of training examples may be incorrect in both its local and global features, the effect of the MCMC procedure is to tidy up local distribution deviations. After post-processing, the distribution is used directly &#x02013; in effect the post-processing temperature is taken to be correct,<xref ref-type="fn" rid="fn5"><sup>5</sup></xref> without consideration of potential macroscopic deviations. The success of this algorithm in practice indicates that learning procedures may be quite tolerant of macroscopic deviations from the Boltzmann distribution in application provided the local temperature is correct. This would be good news since it may be computationally expensive to quantify macroscopic deviations, but it is easy to measure and manipulate local temperature in annealers.</p>
<p>One feature of D-Wave quantum annealers that might lead us to consider a different approach is the quantum part, as already discussed. The single qubit freeze-out, and dynamical slow-down at larger scales, is described by quantum models. The quantum Boltzmann distribution may be a better fit to sample sets drawn from the DW2X, and perhaps in &#x0201C;post-processing&#x0201D; we should think of the quantum space as the target, rather than the classical one. This is certainly a promising direction for future work.</p>
</sec>
<sec id="S6">
<title>Author Contributions</title>
<p>JR wrote most of the manuscript and outlined most of the experiments as well as performed some of the data analysis. SY helped write the manuscript, performed most of the experiments using D-Wave hardware, performed data analysis, and was in charge of producing figures. EA helped shape the structure of the manuscript, invented one of the procedures used, and wrote a subsection of the paper.</p>
</sec>
<sec id="S7">
<title>Conflict of Interest Statement</title>
<p>The authors are employees of D-Wave Systems Inc.</p>
</sec>
</body>
<back>
<ack>
<p>The authors are grateful to Andrew King, Cathy McGeoch, and Kevin Multani for their help in experimental design and method analysis. We also thank Alejandro Perdomo-Ortiz and John Realpe-G&#x000F3;mez for input regarding their multi-canonical method.</p>
</ack>
<sec id="S8">
<title>Funding</title>
<p>This study was supported by D-Wave Systems Inc.</p>
</sec>
<sec id="S9">
<title>Supplementary Material</title>
<p>The Supplementary Material for this article can be found online at <uri xlink:href="http://journal.frontiersin.org/article/10.3389/fict.2016.00023">http://journal.frontiersin.org/article/10.3389/fict.2016.00023</uri>.</p>
<supplementary-material xlink:href="presentation_1.pdf" id="SM1" mimetype="applicationn/pdf" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</sec>
<ref-list>
<title>References</title>
<ref id="B1"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Albert</surname> <given-names>J.</given-names></name> <name><surname>Swendsen</surname> <given-names>R. H.</given-names></name></person-group> (<year>2014</year>). <article-title>The inverse ising problem</article-title>. <source>Phys. Procedia</source> <volume>57</volume>, <fpage>99</fpage>&#x02013;<lpage>103</lpage>.<pub-id pub-id-type="doi">10.1016/j.phpro.2014.08.140</pub-id></citation></ref>
<ref id="B2"><citation citation-type="other"><person-group person-group-type="author"><name><surname>Amin</surname> <given-names>M. H.</given-names></name></person-group> (<year>2015</year>). <source>Searching for Quantum Speedup in Quasistatic Quantum Annealers</source>. ArXiv:1503.04216.</citation></ref>
<ref id="B3"><citation citation-type="other"><person-group person-group-type="author"><name><surname>Amin</surname> <given-names>M. H.</given-names></name> <name><surname>Andriyash</surname> <given-names>E.</given-names></name> <name><surname>Rolfe</surname> <given-names>J.</given-names></name> <name><surname>Kulchytskyy</surname> <given-names>B.</given-names></name> <name><surname>Melko</surname> <given-names>R.</given-names></name></person-group> (<year>2016</year>). <source>Quantum Boltzmann Machine</source>. ArXiv:1601.02036.</citation></ref>
<ref id="B4"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Aurell</surname> <given-names>E.</given-names></name> <name><surname>Ekeberg</surname> <given-names>M.</given-names></name></person-group> (<year>2012</year>). <article-title>Inverse ising inference using all the data</article-title>. <source>Phys. Rev. Lett.</source> <volume>108</volume>, <fpage>090201</fpage>.<pub-id pub-id-type="doi">10.1103/PhysRevLett.108.090201</pub-id><pub-id pub-id-type="pmid">22463617</pub-id></citation></ref>
<ref id="B5"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bart</surname> <given-names>K.</given-names></name></person-group> (<year>1988</year>). <article-title>Bidirectional associative memories</article-title>. <source>IEEE Trans. Syst. Man Cybern.</source> <volume>18</volume>, <fpage>49</fpage>&#x02013;<lpage>60</lpage>.<pub-id pub-id-type="doi">10.1109/21.87054</pub-id></citation></ref>
<ref id="B6"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Benedetti</surname> <given-names>M.</given-names></name> <name><surname>Realpe-G&#x000F3;mez</surname> <given-names>J.</given-names></name> <name><surname>Biswas</surname> <given-names>R.</given-names></name> <name><surname>Perdomo-Ortiz</surname> <given-names>A.</given-names></name></person-group> (<year>2016</year>). <article-title>Estimation of effective temperatures in quantum annealers for sampling applications: A case study with possible applications in deep learning</article-title>. <source>Phys. Rev. A.</source> <volume>94</volume>:<fpage>022308</fpage>.<pub-id pub-id-type="doi">10.1103/PhysRevA.94.022308</pub-id></citation></ref>
<ref id="B7"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Besag</surname> <given-names>J.</given-names></name></person-group> (<year>1975</year>). <article-title>Statistical analysis of non-lattice data</article-title>. <source>J. R. Stat. Soc. D Stat.</source> <volume>24</volume>, <fpage>179</fpage>&#x02013;<lpage>195</lpage>.</citation></ref>
<ref id="B8"><citation citation-type="other"><person-group person-group-type="author"><name><surname>Bhattacharya</surname> <given-names>B. B.</given-names></name> <name><surname>Mukherjee</surname> <given-names>S.</given-names></name></person-group> (<year>2015</year>). <source>Inference in Ising Models</source>. Arxiv:1507.07055.</citation></ref>
<ref id="B9"><citation citation-type="web"><person-group person-group-type="author"><name><surname>Bian</surname> <given-names>Z.</given-names></name> <name><surname>Chudak</surname> <given-names>F.</given-names></name> <name><surname>Macready</surname> <given-names>W. G.</given-names></name> <name><surname>Rose</surname> <given-names>G.</given-names></name></person-group> (<year>2010</year>). <source>The Ising Model: Teaching An Old Problem New Tricks</source>. <publisher-name>D-Wave Publications</publisher-name>. Available at: <uri xlink:href="http://www.dwavesys.com/">http://www.dwavesys.com/</uri></citation></ref>
<ref id="B10"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Boixo</surname> <given-names>S.</given-names></name> <name><surname>Albash</surname> <given-names>T.</given-names></name> <name><surname>Spedalieri</surname> <given-names>F. M.</given-names></name> <name><surname>Chancellor</surname> <given-names>N.</given-names></name> <name><surname>Lidar</surname> <given-names>D. A.</given-names></name></person-group> (<year>2013</year>). <article-title>Experimental signature of programmable quantum annealing</article-title>. <source>Nat. Commun.</source> <volume>4</volume>, <fpage>2067</fpage>.<pub-id pub-id-type="doi">10.1038/ncomms3067</pub-id><pub-id pub-id-type="pmid">23811779</pub-id></citation></ref>
<ref id="B11"><citation citation-type="book"><person-group person-group-type="author"><name><surname>Bresler</surname> <given-names>G.</given-names></name> <name><surname>Gamarnik</surname> <given-names>D.</given-names></name> <name><surname>Shah</surname> <given-names>D.</given-names></name></person-group> (<year>2014</year>). &#x0201C;<article-title>Hardness of parameter estimation in graphical models</article-title>,&#x0201D; in <source>Advances in Neural Information Processing Systems 27</source>, eds <person-group person-group-type="editor"><name><surname>Ghahramani</surname> <given-names>Z.</given-names></name> <name><surname>Welling</surname> <given-names>M.</given-names></name> <name><surname>Cortes</surname> <given-names>C.</given-names></name> <name><surname>Lawrence</surname> <given-names>N. D.</given-names></name> <name><surname>Weinberger</surname> <given-names>K. Q.</given-names></name></person-group> (<publisher-name>Curran Associates, Inc.</publisher-name>), <fpage>1062</fpage>&#x02013;<lpage>1070</lpage>.</citation></ref>
<ref id="B12"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bunyk</surname> <given-names>P.</given-names></name> <name><surname>Hoskinson</surname> <given-names>E. M.</given-names></name> <name><surname>Johnson</surname> <given-names>M. W.</given-names></name> <name><surname>Tolkacheva</surname> <given-names>E.</given-names></name> <name><surname>Altomare</surname> <given-names>F.</given-names></name> <name><surname>Berkley</surname> <given-names>A. J.</given-names></name> <etal/></person-group> (<year>2014</year>). <article-title>Architectural considerations in the design of a superconducting quantum annealing processor</article-title>. <source>IEEE Trans. Appl. Supercond.</source> <volume>24</volume>, <fpage>1700110</fpage>.<pub-id pub-id-type="doi">10.1109/TASC.2014.2318294</pub-id></citation></ref>
<ref id="B13"><citation citation-type="book"><person-group person-group-type="author"><name><surname>Carreira-Perpi&#x000F1;&#x000E1;n</surname> <given-names>M. A.</given-names></name> <name><surname>Hinton</surname> <given-names>G. E.</given-names></name></person-group> (<year>2005</year>). &#x0201C;<article-title>On contrastive divergence learning</article-title>,&#x0201D; in <source>AISTATS05</source> eds <person-group person-group-type="editor"><name><surname>Cowell</surname> <given-names>R. G.</given-names></name> <name><surname>Ghahramani</surname> <given-names>Z.</given-names></name></person-group> (<publisher-loc>NJ</publisher-loc>: <conf-sponsor>Society for Artificial Intelligence and Statistics</conf-sponsor>), <fpage>33</fpage>&#x02013;<lpage>40</lpage>. Available at: <uri xlink:href="http://www.gatsby.ucl.ac.uk/aistats/">http://www.gatsby.ucl.ac.uk/aistats/</uri></citation></ref>
<ref id="B14"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cooper</surname> <given-names>G. F.</given-names></name></person-group> (<year>1990</year>). <article-title>The computational complexity of probabilistic inference using Bayesian belief networks</article-title>. <source>Artif. Intell.</source> <volume>42</volume>, <fpage>393</fpage>&#x02013;<lpage>405</lpage>.<pub-id pub-id-type="doi">10.1016/0004-3702(90)90060-D</pub-id></citation></ref>
<ref id="B15"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Denchev</surname> <given-names>V. S.</given-names></name> <name><surname>Boixo</surname> <given-names>S.</given-names></name> <name><surname>Isakov</surname> <given-names>S. V.</given-names></name> <name><surname>Ding</surname> <given-names>N.</given-names></name> <name><surname>Babbush</surname> <given-names>R.</given-names></name> <name><surname>Smelyanskiy</surname> <given-names>V.</given-names></name> <etal/></person-group> (<year>2016</year>). <article-title>What is the computational value of finite-range tunneling?</article-title> <source>Phys. Rev. X.</source> <volume>6</volume>:<fpage>031015</fpage>.<pub-id pub-id-type="doi">10.1103/PhysRevX.6.031015</pub-id></citation></ref>
<ref id="B16"><citation citation-type="book"><person-group person-group-type="author"><name><surname>Denil</surname> <given-names>M.</given-names></name> <name><surname>de Freitas</surname> <given-names>N.</given-names></name></person-group> (<year>2011</year>). &#x0201C;<article-title>Toward the implementation of a quantum RBM</article-title>,&#x0201D; in <source>NIPS 2011 Deep Learning and Unsupervised Feature Learning Workshop</source>, Vol. <volume>5</volume> (<publisher-loc>Cambridge, MA</publisher-loc>: <publisher-name>MIT Press</publisher-name>).</citation></ref>
<ref id="B17"><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Douglass</surname> <given-names>A.</given-names></name> <name><surname>King</surname> <given-names>A. D.</given-names></name> <name><surname>Raymond</surname> <given-names>J.</given-names></name></person-group> (<year>2015</year>). &#x0201C;<article-title>Chapter constructing SAT filters with a quantum annealer</article-title>,&#x0201D; in <conf-name>Theory and Applications of Satisfiability Testing &#x02013; SAT 2015: Proceedings of the 18th International Conference, September 24-27, 2015</conf-name> (<conf-loc>Austin, TX</conf-loc>: <conf-sponsor>Springer International Publishing, Cham</conf-sponsor>), <fpage>104</fpage>&#x02013;<lpage>120</lpage>.</citation></ref>
<ref id="B18"><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Dumoulin</surname> <given-names>V.</given-names></name> <name><surname>Goodfellow</surname> <given-names>I.</given-names></name> <name><surname>Courville</surname> <given-names>A.</given-names></name> <name><surname>Bengio</surname> <given-names>Y.</given-names></name></person-group> (<year>2015</year>). &#x0201C;<article-title>On the challenges of physical implementations of RBMs</article-title>,&#x0201D; in <conf-name>Proceedings of the 28th AAAI Conference on Artificial Intelligence</conf-name>. Arxiv:1312.5258v2.</citation></ref>
<ref id="B19"><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Efron</surname> <given-names>B.</given-names></name></person-group> (<year>1982</year>). &#x0201C;<article-title>The Jackknife, the bootstrap and other resampling plans</article-title>,&#x0201D; in <conf-name>CBMS-NSF Regional Conference Series in Applied Mathematics</conf-name> (<conf-loc>Philadelphia, PA</conf-loc>: <conf-sponsor>SIAM</conf-sponsor>), <fpage>5</fpage>&#x02013;<lpage>11</lpage>. Lectures given at Bowling Green State Univ., June 1980.</citation></ref>
<ref id="B20"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Geyer</surname> <given-names>C. J.</given-names></name> <name><surname>Thompson</surname> <given-names>E. A.</given-names></name></person-group> (<year>1992</year>). <article-title>Constrained monte carlo maximum likelihood for dependent data</article-title>. <source>J. R. Stat. Soc. Series B Stat. Methodol.</source> <volume>54</volume>, <fpage>657</fpage>&#x02013;<lpage>699</lpage>.</citation></ref>
<ref id="B21"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ghate</surname> <given-names>A.</given-names></name> <name><surname>Smith</surname> <given-names>R. L.</given-names></name></person-group> (<year>2008</year>). <article-title>A dynamic programming approach to efficient sampling from Boltzmann distributions</article-title>. <source>Oper. Res. Lett.</source> <volume>36</volume>, <fpage>665</fpage>&#x02013;<lpage>668</lpage>.<pub-id pub-id-type="doi">10.1016/j.orl.2008.07.009</pub-id></citation></ref>
<ref id="B22"><citation citation-type="other"><person-group person-group-type="author"><name><surname>Grassberger</surname> <given-names>P.</given-names></name></person-group> (<year>2003</year>). <source>Entropy Estimates from Insufficient Samplings</source>. ArXiv Physics e-prints.</citation></ref>
<ref id="B23"><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Hamze</surname> <given-names>F.</given-names></name> <name><surname>de Freitas</surname> <given-names>N.</given-names></name></person-group> (<year>2004</year>). &#x0201C;<article-title>From fields to trees</article-title>,&#x0201D; <conf-name>Proceedings of the Twentieth Conference Annual Conference on Uncertainty in Artificial Intelligence (UAI-04)</conf-name> (<conf-loc>Arlington, VA</conf-loc>: <conf-sponsor>AUAI Press</conf-sponsor>), <fpage>243</fpage>&#x02013;<lpage>250</lpage>.</citation></ref>
<ref id="B24"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hinton</surname> <given-names>G.</given-names></name></person-group> (<year>2002</year>). <article-title>Training products of experts by minimizing contrastive divergence</article-title>. <source>Neural Comput.</source> <volume>14</volume>, <fpage>1771</fpage>&#x02013;<lpage>1800</lpage>.<pub-id pub-id-type="doi">10.1162/089976602760128018</pub-id><pub-id pub-id-type="pmid">12180402</pub-id></citation></ref>
<ref id="B25"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hukushima</surname> <given-names>K.</given-names></name> <name><surname>Iba</surname> <given-names>Y.</given-names></name></person-group> (<year>2003</year>). <article-title>Population annealing and its application to a spin glass</article-title>. <source>AIP Conf. Proc.</source> <volume>690</volume>, <fpage>200</fpage>&#x02013;<lpage>206</lpage>.<pub-id pub-id-type="doi">10.1063/1.1632130</pub-id></citation></ref>
<ref id="B26"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hukushima</surname> <given-names>K.</given-names></name> <name><surname>Nemoto</surname> <given-names>K.</given-names></name></person-group> (<year>1996</year>). <article-title>Exchange monte carlo method and application to spin glass simulations</article-title>. <source>J. Phys. Soc. Japan</source> <volume>65</volume>, <fpage>1604</fpage>&#x02013;<lpage>1608</lpage>.<pub-id pub-id-type="doi">10.1143/JPSJ.65.1604</pub-id></citation></ref>
<ref id="B27"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Isakov</surname> <given-names>S. V.</given-names></name> <name><surname>Zintchenko</surname> <given-names>I. N.</given-names></name> <name><surname>R&#x000F8;nnow</surname> <given-names>T. F.</given-names></name> <name><surname>Troyer</surname> <given-names>M.</given-names></name></person-group> (<year>2015</year>). <article-title>Optimised simulated annealing for ising spin glasses</article-title>. <source>Comput. Phys. Commun.</source> <volume>192</volume>, <fpage>265</fpage>&#x02013;<lpage>271</lpage>.<pub-id pub-id-type="doi">10.1016/j.cpc.2015.02.015</pub-id></citation></ref>
<ref id="B28"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Johnson</surname> <given-names>M. W.</given-names></name> <name><surname>Amin</surname> <given-names>M. H. S.</given-names></name> <name><surname>Gildert</surname> <given-names>S.</given-names></name> <name><surname>Lanting</surname> <given-names>T.</given-names></name> <name><surname>Hamze</surname> <given-names>F.</given-names></name> <name><surname>Dickson</surname> <given-names>N.</given-names></name> <etal/></person-group> (<year>2011</year>). <article-title>Quantum annealing with manufactured spins</article-title>. <source>Nature</source> <volume>473</volume>, <fpage>194</fpage>&#x02013;<lpage>198</lpage>.<pub-id pub-id-type="doi">10.1038/nature10012</pub-id><pub-id pub-id-type="pmid">21562559</pub-id></citation></ref>
<ref id="B29"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kadowaki</surname> <given-names>T.</given-names></name> <name><surname>Nishimori</surname> <given-names>H.</given-names></name></person-group> (<year>1998</year>). <article-title>Quantum annealing in the transverse ising model</article-title>. <source>Phys. Rev. E</source> <volume>58</volume>, <fpage>5355</fpage>&#x02013;<lpage>5363</lpage>.<pub-id pub-id-type="doi">10.1103/PhysRevE.58.5355</pub-id></citation></ref>
<ref id="B30"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Katzgraber</surname> <given-names>H. G.</given-names></name> <name><surname>Hamze</surname> <given-names>F.</given-names></name> <name><surname>Andrist</surname> <given-names>R. S.</given-names></name></person-group> (<year>2014</year>). <article-title>Glassy chimeras could be blind to quantum speedup: designing better benchmarks for quantum annealing machines</article-title>. <source>Phys. Rev. X</source> <volume>4</volume>, <fpage>021008</fpage>.<pub-id pub-id-type="doi">10.1103/PhysRevX.4.021008</pub-id></citation></ref>
<ref id="B31"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>King</surname> <given-names>A. D.</given-names></name> <name><surname>Hoskinson</surname> <given-names>E.</given-names></name> <name><surname>Lanting</surname> <given-names>T.</given-names></name> <name><surname>Andriyash</surname> <given-names>E.</given-names></name> <name><surname>Amin</surname> <given-names>M. H.</given-names></name></person-group> (<year>2016</year>). <article-title>Degeneracy, degree, and heavy tails in quantum annealing</article-title>. <source>Phys. Rev. A.</source> <volume>93</volume>: <fpage>052320</fpage>.<pub-id pub-id-type="doi">10.1103/PhysRevA.93.052320</pub-id></citation></ref>
<ref id="B32"><citation citation-type="other"><person-group person-group-type="author"><name><surname>King</surname> <given-names>J.</given-names></name> <name><surname>Yarkoni</surname> <given-names>S.</given-names></name> <name><surname>Nevisi</surname> <given-names>M. M.</given-names></name> <name><surname>Hilton</surname> <given-names>J. P.</given-names></name> <name><surname>McGeoch</surname> <given-names>C. C.</given-names></name></person-group> (<year>2015</year>). <source>Benchmarking a Quantum Annealing Processor with the Time-to-Target Metric</source>. Arxiv:1508.05087.</citation></ref>
<ref id="B33"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kirkpatrick</surname> <given-names>S.</given-names></name> <name><surname>Gelatt</surname> <given-names>C. D.</given-names></name> <name><surname>Vecchi</surname> <given-names>M. P.</given-names></name></person-group> (<year>1983</year>). <article-title>Optimization by simulated annealing</article-title>. <source>Science</source> <volume>220</volume>, <fpage>671</fpage>&#x02013;<lpage>680</lpage>.<pub-id pub-id-type="doi">10.1126/science.220.4598.671</pub-id><pub-id pub-id-type="pmid">17813860</pub-id></citation></ref>
<ref id="B34"><citation citation-type="book"><person-group person-group-type="author"><name><surname>Landau</surname> <given-names>D. P.</given-names></name> <name><surname>Binder</surname> <given-names>K.</given-names></name></person-group> (<year>2005</year>). <source>A Guide to Monte Carlo Simulations in Statistical Physics</source>, <edition>2nd Edn</edition>. <publisher-loc>Cambridge, UK</publisher-loc>: <publisher-name>Cambridge University Press</publisher-name>.</citation></ref>
<ref id="B35"><citation citation-type="book"><person-group person-group-type="author"><name><surname>Lehmann</surname> <given-names>E. L.</given-names></name> <name><surname>Casella</surname> <given-names>G.</given-names></name></person-group> (<year>1998</year>). <source>Theory of Point Estimation. Springer Texts in Statistics</source>, <edition>2nd Edn</edition>, <publisher-loc>New York, NY</publisher-loc>: <conf-sponsor>Springer</conf-sponsor>.</citation></ref>
<ref id="B36"><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Long</surname> <given-names>P. M.</given-names></name> <name><surname>Servedio</surname> <given-names>R.</given-names></name></person-group> (<year>2010</year>). &#x0201C;<article-title>Restricted Boltzmann machines are hard to approximately evaluate or simulate</article-title>,&#x0201D; in <conf-name>Proceedings of the 27th International Conference on Machine Learning (ICML-10)</conf-name> (<conf-loc>Madison, WI</conf-loc>: <conf-sponsor>Omnipress</conf-sponsor>), <fpage>703</fpage>&#x02013;<lpage>710</lpage>.</citation></ref>
<ref id="B37"><citation citation-type="book"><person-group person-group-type="author"><name><surname>Mezard</surname> <given-names>M.</given-names></name> <name><surname>Montanari</surname> <given-names>A.</given-names></name></person-group> (<year>2009</year>). <source>Information, Physics, and Computation</source>. <publisher-loc>New York, NY, USA</publisher-loc>: <publisher-name>Oxford University Press, Inc.</publisher-name></citation></ref>
<ref id="B38"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Montanari</surname> <given-names>A.</given-names></name></person-group> (<year>2015</year>). <article-title>Computational implications of reducing data to sufficient statistics</article-title>. <source>Electron. J. Stat.</source> <volume>9</volume>, <fpage>2370</fpage>&#x02013;<lpage>2390</lpage>.<pub-id pub-id-type="doi">10.1214/15-EJS1059</pub-id></citation></ref>
<ref id="B39"><citation citation-type="book"><person-group person-group-type="author"><name><surname>Neal</surname> <given-names>R. M.</given-names></name></person-group> (<year>1993</year>). <source>Probabilistic Inference Using Markov Chain Monte Carlo Methods</source>. <publisher-loc>Toronto, Canada</publisher-loc>: <publisher-name>Tech. rep., Dept. of Computer Science, University of Toronto</publisher-name>. Technical Report CRG-TR-93-1.</citation></ref>
<ref id="B40"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Neal</surname> <given-names>R. M.</given-names></name></person-group> (<year>2001</year>). <article-title>Annealed importance sampling</article-title>. <source>Stat. Comput.</source> <volume>11</volume>, <fpage>125</fpage>&#x02013;<lpage>139</lpage>.<pub-id pub-id-type="doi">10.1023/A:1008923215028</pub-id></citation></ref>
<ref id="B41"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Nguyen</surname> <given-names>H. C.</given-names></name> <name><surname>Berg</surname> <given-names>J.</given-names></name></person-group> (<year>2012</year>). <article-title>Mean-field theory for the inverse ising problem at low temperatures</article-title>. <source>Phys. Rev. Lett.</source> <volume>109</volume>, <fpage>050602</fpage>.<pub-id pub-id-type="doi">10.1103/PhysRevLett.109.050602</pub-id><pub-id pub-id-type="pmid">23006160</pub-id></citation></ref>
<ref id="B42"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Paninski</surname> <given-names>L.</given-names></name></person-group> (<year>2003</year>). <article-title>Estimation of entropy and mutual information</article-title>. <source>Neural Comput.</source> <volume>15</volume>, <fpage>1191</fpage>&#x02013;<lpage>1253</lpage>.<pub-id pub-id-type="doi">10.1162/089976603321780272</pub-id></citation></ref>
<ref id="B43"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Perdomo-Ortiz</surname> <given-names>A.</given-names></name> <name><surname>O&#x02019;Gorman</surname> <given-names>B.</given-names></name> <name><surname>Fluegemann</surname> <given-names>J.</given-names></name> <name><surname>Biswas</surname> <given-names>R.</given-names></name> <name><surname>Smelyanskiy</surname> <given-names>V. N.</given-names></name></person-group> (<year>2016</year>). <article-title>Determination and correction of persistent biases in quantum annealers</article-title>. <source>Sci. Rep.</source> <volume>6</volume>, <fpage>18628</fpage>.<pub-id pub-id-type="doi">10.1038/srep18628</pub-id><pub-id pub-id-type="pmid">26783120</pub-id></citation></ref>
<ref id="B44"><citation citation-type="other"><person-group person-group-type="author"><name><surname>Raymond</surname> <given-names>J.</given-names></name> <name><surname>Yarkoni</surname> <given-names>S.</given-names></name> <name><surname>Andriyash</surname> <given-names>E.</given-names></name></person-group> (<year>2016</year>). <source>Global Warming: Temperature Estimation in Annealers (Supplementary Materials)</source>. ArXiv:1606.00919v4.</citation></ref>
<ref id="B45"><citation citation-type="other"><person-group person-group-type="author"><name><surname>Rolfe</surname> <given-names>J.</given-names></name></person-group> (<year>2016</year>). <source>Discrete Variational Autoencoders</source>. ArXiv:1609:02200.</citation></ref>
<ref id="B46"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>R&#x000F8;nnow</surname> <given-names>T. F.</given-names></name> <name><surname>Wang</surname> <given-names>Z.</given-names></name> <name><surname>Job</surname> <given-names>J.</given-names></name> <name><surname>Boixo</surname> <given-names>S.</given-names></name> <name><surname>Isakov</surname> <given-names>S. V.</given-names></name> <name><surname>Wecker</surname> <given-names>D.</given-names></name> <etal/></person-group> (<year>2014</year>). <article-title>Defining and detecting quantum speedup</article-title>. <source>Science</source> <volume>345</volume>, <fpage>420</fpage>&#x02013;<lpage>424</lpage>.<pub-id pub-id-type="doi">10.1126/science.1252319</pub-id></citation></ref>
<ref id="B47"><citation citation-type="confproc"><person-group person-group-type="author"><name><surname>Salakhutdinov</surname> <given-names>R.</given-names></name> <name><surname>Hinton</surname> <given-names>G.</given-names></name></person-group> (<year>2009</year>). &#x0201C;<article-title>Deep Boltzmann machines</article-title>,&#x0201D; in <conf-name>JMLR Proceedings of the International Conference on Artificial Intelligence and Statistics</conf-name>, Vol. <volume>5</volume> (<conf-loc>Cambridge, MA</conf-loc>: <conf-sponsor>MIT Press</conf-sponsor>), <fpage>448</fpage>&#x02013;<lpage>455</lpage>.</citation></ref>
<ref id="B48"><citation citation-type="other"><person-group person-group-type="author"><name><surname>Selby</surname> <given-names>A.</given-names></name></person-group> (<year>2014</year>). <source>Efficient Subgraph-Based Sampling of Ising-Type Models with Frustration</source>. Arxiv:1409.3934.</citation></ref>
<ref id="B49"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Shirts</surname> <given-names>M. R.</given-names></name> <name><surname>Chodera</surname> <given-names>J. D.</given-names></name></person-group> (<year>2008</year>). <article-title>Statistically optimal analysis of samples from multiple equilibrium states</article-title>. <source>J. Chem. Phys.</source> <volume>129</volume>, <fpage>124105</fpage>.<pub-id pub-id-type="doi">10.1063/1.2978177</pub-id></citation></ref>
<ref id="B50"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sinclair</surname> <given-names>A.</given-names></name> <name><surname>Jerrum</surname> <given-names>M.</given-names></name></person-group> (<year>1989</year>). <article-title>Approximate counting, uniform generation and rapidly mixing markov chains</article-title>. <source>Inform. Comput.</source> <volume>82</volume>, <fpage>93</fpage>&#x02013;<lpage>133</lpage>.<pub-id pub-id-type="doi">10.1016/0890-5401(89)90067-9</pub-id></citation></ref>
<ref id="B51"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Venturelli</surname> <given-names>D.</given-names></name> <name><surname>Mandr&#x000E0;</surname> <given-names>S.</given-names></name> <name><surname>Knysh</surname> <given-names>S.</given-names></name> <name><surname>O&#x02019;Gorman</surname> <given-names>B.</given-names></name> <name><surname>Biswas</surname> <given-names>R.</given-names></name> <name><surname>Smelyanskiy</surname> <given-names>V.</given-names></name></person-group> (<year>2015</year>). <article-title>Quantum optimization of fully connected spin glasses</article-title>. <source>Phys. Rev. X</source> <volume>5</volume>, <fpage>031040</fpage>.<pub-id pub-id-type="doi">10.1103/PhysRevX.5.031040</pub-id></citation></ref>
<ref id="B52"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wainwright</surname> <given-names>M. J.</given-names></name> <name><surname>Jordan</surname> <given-names>M. I.</given-names></name></person-group> (<year>2008</year>). <article-title>Graphical models, exponential families, and variational inference</article-title>. <source>Found. Trends Mach. Learn.</source> <volume>1</volume>, <fpage>1</fpage>&#x02013;<lpage>305</lpage>.<pub-id pub-id-type="doi">10.1561/2200000001</pub-id></citation></ref>
<ref id="B53"><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zhu</surname> <given-names>Z.</given-names></name> <name><surname>Ochoa</surname> <given-names>A. J.</given-names></name> <name><surname>Katzgraber</surname> <given-names>H.</given-names></name></person-group> (<year>2015</year>). <article-title>Efficient cluster algorithm for spin glasses in any space dimension</article-title>. <source>Phys. Rev. Lett.</source> <volume>115</volume>, <fpage>077201</fpage>.<pub-id pub-id-type="doi">10.1103/PhysRevLett.115.077201</pub-id><pub-id pub-id-type="pmid">26317743</pub-id></citation></ref>
</ref-list>
<fn-group>
<fn id="fn1"><p><sup>1</sup>D-Wave and D-Wave 2X are trademarks of D-Wave Systems Inc.</p></fn>
<fn id="fn2"><p><sup>2</sup>Supplementary materials are included alongside the preprint version of this paper (Raymond et al., <xref ref-type="bibr" rid="B44">2016</xref>).</p></fn>
<fn id="fn3"><p><sup>3</sup>The reverse form of the KL-divergence, or its symmetrized form, are also interesting. We choose this form as it allows for evaluation in the limit <italic>P</italic>(<italic>x</italic>)&#x02192;0, among other technical factors. This is discussed further in supplementary materials.</p></fn>
<fn id="fn4"><p><sup>4</sup>We could equivalently assign the couplings between cells to &#x000B1;1 at random; due to a simple symmetry, the problem is not meaningfully changed.</p></fn>
<fn id="fn5"><p><sup>5</sup>In machine learning, we can take the post-processing temperature to be <italic>&#x003B2;</italic>&#x02009;&#x0003D;&#x02009;1, without loss of generality.</p></fn>
</fn-group>
</back>
</article>