<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Analogy between Boltzmann Machines and Feynman Path Integrals</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>05/09/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10442495</idno>
					<idno type="doi">10.1021/acs.jctc.3c00187</idno>
					<title level='j'>Journal of Chemical Theory and Computation</title>
<idno>1549-9618</idno>
<biblScope unit="volume">19</biblScope>
<biblScope unit="issue">9</biblScope>					

					<author>Srinivasan S. Iyengar</author><author>Sabre Kais</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Machine learning has had a significant impact on multiple areas of science, technology, health, and computer and information sciences. Through the advent of quantum computing, quantum machine learning has developed as a new and important avenue for the study of complex learning problems. Yet there is substantial debate and uncertainty in regard to the foundations of machine learning. Here, we provide a detailed exposition of the mathematical connections between a general machine learning approach called Boltzmann machines and Feynman's description of quantum and statistical mechanics. In Feynman's description, quantum phenomena arise from an elegant, weighted sum over (or superposition of) paths. Our analysis shows that Boltzmann machines and neural networks have a similar mathematical structure. This allows the interpretation that the hidden layers in Boltzmann machines and neural networks are discrete versions of path elements and allows a path integral interpretation of machine learning similar to that in quantum and statistical mechanics. Since Feynman paths are a natural and elegant depiction of interference phenomena and the superposition principle germane to quantum mechanics, this analysis allows us to interpret the goal in machine learning as finding an appropriate combination of paths, and accumulated path-weights, through a network, that cumulatively captures the correct properties of an x-to-y map for a given mathematical problem. We are forced to conclude that neural networks are naturally related to Feynman path-integrals and hence may present one avenue to be considered as quantum problems. Consequently, we provide general quantum circuit models applicable to both Boltzmann machines and Feynman path integrals.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">INTRODUCTION</head><p>Machine learning <ref type="bibr">1</ref> has had significant impact on multiple areas of science, technology, health, and computer and information sciences. These approaches have recently become popular in modeling molecular systems, with a particular increase in interest following Google DeepMind's seemingly triumphant <ref type="bibr">2,</ref><ref type="bibr">3</ref> efforts toward protein structure prediction. Through the advent of quantum computing, quantum machine learning has developed as an important avenue for the study of complex learning problems. A neural-network ansatz trainable method on a quantum and/or classical device has been used with unprecedented success in procuring a reasonable approximation of a target quantum state. <ref type="bibr">4</ref> Of particular interest and with a great success is the use of the Restricted-Boltzmann Machine (RBM). <ref type="bibr">5</ref> The choice of RBM is due to the fact it has been proven to be a universal approximator for any probability density <ref type="bibr">[5]</ref><ref type="bibr">[6]</ref><ref type="bibr">[7]</ref> and has received astonishing success in simulating a wide variety of drivers in condensed-matter physics, <ref type="bibr">8,</ref><ref type="bibr">9</ref> quantum dynamics <ref type="bibr">10</ref> vibration spectroscopy of molecular systems, <ref type="bibr">11,</ref><ref type="bibr">12</ref> quantum chemistry <ref type="bibr">[13]</ref><ref type="bibr">[14]</ref><ref type="bibr">[15]</ref><ref type="bibr">[16]</ref><ref type="bibr">[17]</ref><ref type="bibr">[18]</ref> of complex multiscale problems, <ref type="bibr">19</ref> and even in standard classification tasks. <ref type="bibr">20,</ref><ref type="bibr">21</ref> Prior work has also established that RBM is capable of mimicking a volume-law entangled quantum state even when sparsely parametrized. <ref type="bibr">22</ref> With quadratically scaling quantum circuits available, <ref type="bibr">13</ref> RBM also shows hints of possible quantum advantage due to proven intractability of polynomially retrieving the full distribution classically. <ref type="bibr">23</ref> Graph-based <ref type="bibr">18</ref> projection operators that resolve the identity <ref type="bibr">17,</ref><ref type="bibr">24</ref> have been used to construct RBMs for correlated electronic potential energy surfaces <ref type="bibr">16</ref> and reduce the computational complexity for classical <ref type="bibr">17,</ref><ref type="bibr">25</ref> and quantum <ref type="bibr">24</ref> calculations.</p><p>Even though RBMs (and neural networks in general) have been widely used, probing into the underlying learning mechanism and the connection to a Feynman path integral RBM is still sparsely explored. <ref type="bibr">26</ref> In this paper, we explore a deep mathematical and conceptual connection between RBM, Feynman path integrals, and more generally neural networks. This step is especially critical considering that, arguably, the most general, conceptually elegant, and unifying formalism of both quantum mechanics and statistical mechanics appears through Feynman's description of path integrals. <ref type="bibr">27,</ref><ref type="bibr">28</ref> For a historical view of path integrals, see ref 29, and for applications to other areas, see ref 30. Over the years, Feynman path integrals have been the workhorse for many path integral-based molecular dynamics <ref type="bibr">31,</ref><ref type="bibr">32</ref> and Monte Carlo <ref type="bibr">33,</ref><ref type="bibr">34</ref> formalisms to compute equilibrium properties in condensed phase quantum systems. <ref type="bibr">35,</ref><ref type="bibr">36</ref> The real time interpretation of Feynman path integrals have been the basis for powerful numerical procedures such as centroid molecular dynamics <ref type="bibr">[37]</ref><ref type="bibr">[38]</ref><ref type="bibr">[39]</ref> and ring-polymer molecular dynamics. <ref type="bibr">40</ref> The paper is organized as follows: In Section 2 we present a brief summary of RBMs which is followed by developing explicit connections between Feynman path integrals, RBMs, and neural networks in general in Sections 3 and 4. As a direct consequence of the analysis in Section 4, we are able to provide general quantum circuit models that are applicable to both Boltzmann machines and to Feynman path integral descriptions. Based on this description, in Section 6, we are able to provide a discussion on k-local Hamiltonians which yield full Boltzmann machine (unrestricted) and finally in Section 4.1, we present one interpretation of this mathematical exposition based on inverse scattering theory. Conclusions are given in Section 9.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">RESTRICTED-BOLTZMANN MACHINE</head><p>The network of the Restricted-Boltzmann Machine denoted as</p><p>and each is associated with an operator &#963; z (v i ). A similar prescription exists for V 2 ={h} i = 1 i = p with p + , and each is associated with an operator &#963; z (h i ). The network is described in Figure <ref type="figure">1</ref>. The set of edges |E| = p*n and is weighted by W j i . The Hamiltonian of the network is</p><p>and the corresponding thermal state the network encodes is</p><p>where the superscript C denotes the classically correlated thermal state. Using eq 2, one can define a proxy state/ansatz for the target quantum state as</p><p>of the driver Hamiltonian H d d</p><p>&#215; where X &#8407; can be variationally trained. Using the RBM network, we have shown that one can obtain very accurate electronic structures of simple molecules and band structures of two-dimensional materials. <ref type="bibr">13,</ref><ref type="bibr">14</ref> </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">CONNECTIONS BETWEEN RESTRICTED BOLTZMAN MACHINES AND FEYNMAN PATH INTEGRALS</head><p>The starting point in our discussion of Feynman path integrals for quantum and statistical mechanics is the quantum propagator in real and imaginary time given by</p><p>where, when &#946; is real, &#961; x,x&#8242; represents the quantum canonical density operator, and &#946; becomes the inverse temperature or &#946; = 1/k B T. When &#946; is imaginary, that is, &#946; = &#305;t/&#8463;, &#961; x,x&#8242; represents the real time evolution or unitary propagation of the problem. This process of connecting real time and imaginary inverse temperature values is commonly known as Wick rotation <ref type="bibr">28</ref> on the complex time frame and is one hallmark of quantum statistical mechanics within Feynman's description. At this stage, it is also critical to note that x may represent any basis, continuous or discrete, and we make no distinction of this in our discussion. The next step in Feynman's exposition of path integrals is to slice the propagator in eq 4 into small increments <ref type="bibr">34</ref> given by &#948;&#946; = &#946;/P. Thus, for Hamiltonians that only contain two-body terms, </p><p>a family of resolutions of identity &#8747; dh i h h i i inserted between the P propagation slices yields</p><p>which has the beautiful interpretation according to Feynman <ref type="bibr">28</ref> of the particle "traveling" from x to x&#8242; in a series of steps h 1 , h 2 , ..., h P , which define a path, with the total amplitude on the left side being a sum over all such paths. In the discrete representation, eq 6 may be written as</p><p>where , , ..., P 1 2 { }, and &#956; i represents the &#956; i th discretization of the ith slice in the Feynman path integral. That is, each of the P slices are discretized as noted, and these { } = (red) neurons and the interconnecting weights W ij (blue). discreizations are labeled using {&#956; i }. Thus, in essence, eq 7 is simply a discrete sum over paths labeled by &#956; &#773; , or more specifically, the sequence of indices x h h h x , , , ,</p><p>one specific path that connects x to x&#8242;. As the number of slices P &#8594; &#8734;, this then leads to the sum over paths notation of Feynman given by</p><p>and the expression above is essentially a sum over paths, or path integral over the path variable h, as in eq 7, and the path integral description is over basis vectors h i { } beginning from x and ending at x .. The paths are traversed by the evolution process described by the operator exp{-&#946;H}. Thus, the interference of, or sum over, paths, leading to the superposition theorem which is a hallmark of quantum theory, appears in Feynman's description through the accumulation of all possible paths described in eqs 7 and 8. Additionally when the outer indices x and x are on different spaces, the expression above presents a more general path integration form for x &#8594; y . Equations 7 and 8 may be compactly represented using Figure <ref type="figure">2</ref>. The case where x &#8594; y . is shown in Figure <ref type="figure">3</ref> and in a more verbose manner in Figure <ref type="figure">4</ref> where the discrete version in eq 7 is spelt out. In all cases, x and h i represent vector spaces, and hence, the similarity between Figures <ref type="figure">2,</ref><ref type="figure">3</ref>, and 4, and restricted Boltzmann machines (Figure <ref type="figure">1</ref>) from machine learning, is palpable. These connections are further explored in the following sections. Furthermore, in Feynman's description, when &#946; is chosen to be real, that is inverse temperature (= 1/k B T), the quantity,</p><p>is the partition function, and the quantity &#961; x,x&#8242; /Z is canonical weight which depends on all the layers as per eq 6 and all possible paths as per eq 7.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">RESTRICTED BOLTZMANN MACHINES RECAST USING FEYNMAN'S PATH INTEGRALS</head><p>To connect the formalism above to Boltzmann machines and neural networks in general, we may begin by interpreting the family of basis states { x } as visible layer states, and the layers h i { } as hidden layer states. For more general neural networks x may be replaced by |y&#10217;. When this is not the case, there are multiple hidden layers and one visible layer, as denoted in Figures <ref type="figure">1</ref> and<ref type="figure">2</ref>. One must note that in the traditional description of Feynman path integrals, there is no distinction between the variables used to describe the states { x } and h i { } as these are both treated as belonging to the same Hilbert space. Here, we choose to highlight the difference between path states, {h i }, and terminal states, {|x&#10217;}, to make the connections to Boltzmann machines explicit. In such a situation, the formalism in eqs 6, 7, and 8 yields the realization of a sum over all paths that begin at the visible basis state x and terminate at the visible basis state x by traversing through all the hidden basis points (eq 7) depicted as h i {| }. Furthermore, the evolution along these paths is dictated by exp{-&#946;H}, and specifically by the Hamiltonian H.</p><p>To parametrize such an evolution process we may introduce the needed Hamiltonian that depicts the dynamics in eq 8 as</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>H dxdx x x H x x dh h h H h h dxdh x x H h h dh dh h h H h h dxdh h h H x x c c</head><p>. .</p><p>and in this general form, the connections are apparent to eq 1. We note that this also represents a continuous neural network with P hidden layers (compare Figures <ref type="figure">1</ref> and<ref type="figure">2</ref>), where the diagonal elements of H are biases applied to each (visible and hidden) state, and the off-diagonal elements in H are coupling elements across basis states, referred to as weights, either within a given visible layer, or across neighboring layers. The discrete form of this Hamiltonian may be simply obtained by using a finite number of basis functions for visible and hidden layers (eq 7), and the integrals then become summations leading to matrix elements</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>x H x h H h x H h h H h</head><p>Biases: ;</p><p>Weights: ;</p><p>and   </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>H x H x x x h H h h h x H h x h c c h H h h h c c</head><p>x</p><p>which is a generalization of eq 1, derived from eq 10. In eq 12, the terms, x x h h ; ;</p><p>are projectors that are replaced by the Pauli operators in eq 1. In such a situation, eq 8 represents the evolution process of quantum mechanics but also the learning process of machine learning. The weights for such a learning process arise from the Hamiltonian, eqs 10, 11, and 12. Equation 10 is clearly a generalization to eq 1 for an arbitrary number of layers and essentially a continuous set of vertices in each layer, with eq 12 representing the discretized version.</p><p>Additionally, we note the close connection <ref type="bibr">41</ref> between eqs 1 and 12 and the quantum Ising Model that has been studied widely on diverse quantum hardware platforms such as trapped ions, <ref type="bibr">42</ref> Rydberg atoms, <ref type="bibr">43</ref> polar molecules, <ref type="bibr">44</ref> cold atomic gases, <ref type="bibr">45</ref> and superconducting circuits. <ref type="bibr">46</ref> In its full implementation, the quantum Ising Model Hamiltonian with local magnetic fields may be written as</p><p>where &#947; &#8712; (x, y, z), J ij &#947; is the coupling between sites i and j along the &#947; direction, B i &#947; is the local magnetic field at site i along the &#947; direction, and the quantities {&#963; i &#947; } are the Pauli spin operators acting on the ith lattice site along the &#947;-direction of the Bloch sphere. The critical distinction between eqs 1 and 13 is that, in principle, all sites are connected to each other in eq 13, and hence, H IT is closer to a full Boltzmann machine.</p><p>The cost function of RBMs (see eq 2) arise in eq 7 when &#946; is real. Such a situation may also be realized upon inspection of Figure <ref type="figure">3</ref>, where each node is to be interpreted as a single layer of nodes, and the wires connecting nodes depict all weights across layers, or a linear map between the same (see Figure <ref type="figure">4</ref>). These figures now summarize the analogy between Feynman's description of quantum and statistical mechanics and machine learning models as presented using Boltzmann machines.</p><p>In the current form, the Hamiltonian in eq 10 also appears to have similarities to Ising model Hamiltonians. Compare eqs 10, 11, 12, 13, and 1. But what is missing here is what is known as activation functions common in machine learning, which we may simply be interpreted as connections of the hidden bases to bath vectors, or dissipative variables. This aspect is treated in further detail in Section 7.</p><p>4.1. Boltzmann Machines as an Inverse Scattering Problem: "Interpretability" of the "Hidden" Layer. In the above sections, we discussed the theory of Feynman path integrals as applicable to both quantum mechanics as well as statistical mechanics. This naturally leads to the introduction of a set of intermediate states, depicted as h i { } above, that are visited during transitions both in real time (quantum mechanics) and imaginary time (statistical mechanics and thermodynamics). We then showed how the exact same structure appears in Boltzman machines and in neural networks thus leading to one obvious interpretation that perhaps Boltzman machines are a realization of Feynman path integrals. This will automatically leads to definitions for entropy through partial trace over hidden layers, in Section 5, and similar definitions for higher order interactions, Section 6. However, we now ask if we may expound upon an equivalent description for the definition of weights and biases, as alluded to in eq 11, as these appear in machine learning. In machine learning and Boltzmann machines, a network such as that in Figure <ref type="figure">4</ref> is represented by</p><p>where f a+1 represents the activation function for the (a + 1)-th layer, and </p><p>and this is the key central insight that appears from the treatment in Section 3 and crystallizes the analogy presented in this paper. Thus, influenced by eq 6, an equivalent description for the machine learning processes described by Figures <ref type="figure">3</ref> and<ref type="figure">4</ref> may be written in the continuous limit as </p><p>Note the close similarity between eqs 6 and 16 where both seem to now have a sum over paths flavor. Clearly, whereas in quantum dynamics eq 6 may be computed by providing a system Hamiltonian, in machine learning, the weights, a a , 1 } + , are to be obtained based on a known set of transitions, y &#8592; x that are used for training the network. Thus, in a sense, the ML approach to Boltzman machines is one where the Hamiltonian is computed based on a data set that captures the y &#8592; x map.</p><p>Hence, to achieve an equivalent description for the weights, a a , 1 } + , we may remind ourselves that in quantum dynamics and scattering theory, <ref type="bibr">47</ref> the transition amplitude, f i under the influence of the Moller operator, &#937;, which includes time evolution (as in Section 3) or associated Greens function, <ref type="bibr">47</ref> is the key aspect and connects to various observables such as stateto-state scattering probabilities, rate constants, and also vibrational properties. By comparison this statement is not dissimilar to that in eqs 6 and 16, but in fact from this perspective, the machine learning problem is an inverse scattering problem in that, one may say, the Hamiltonian for the process, given by eqs 10, 11, and 12, needs to be discovered. In this language, the "hidden" layers of machine learning are simply the steps needed to construct the interference experiments germane to quantum mechanics. Whereas in quantum mechanics these "hidden" steps seem to allow the system to achieve a probabilistic view, in machine learning the same probabilistic view samples a large parameter space thus allowing for an optimal solution to a given (hard) problem.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">DESCRIPTION OF ENTROPY</head><p>To describe the entropy of the system containing x h ; i { { }}, using eq 9, we may first define the marginal probabilities using the matrix elements</p><p>and</p><p>to redefine eq 7 and eq 8 as</p><p>These marginals may be used to write the Shannon entropy functions:</p><p>[ ], and h h ,</p><p>. The overall entropy of the network is obtained using the entropy of each layer in a manner similar to the inclusion exclusion principle in set theory, <ref type="bibr">48</ref> an appropriate generalization for which is provided by Bethe's free energy <ref type="bibr">49</ref> and may be written as 20)   which is often referred to as mutual information entropy and also has applications in Belief propagation. <ref type="bibr">49</ref> For the special case of the network in Figure <ref type="figure">1</ref>, eq 20 reduces to )   which is consistent with the expression in ref 50. However, eq 20 provides a generalization for an arbitrary number of hidden layers for more general RBMs beyond those in Figure <ref type="figure">1</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">K-LOCAL HAMILTONIANS YIELD BOLTZMANN MACHINES</head><p>For cases where the Hamiltonian in eq 10 has k-body terms, the situation in eqs 8, 19, and 20 is more complicated. For example, for three-body terms in eq 10, the expression in eq 19 may be written as</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>dh dh x x x h h h h h</head><p>, , , , , ,</p><p>The associated neural network and Feynman path integration techniques are both represented in compact form in Figure <ref type="figure">5</ref>. Here, each triangle captures a three-body interaction, and this aspect is referred to using the blue squares inside the triangles. For example, the three-body terms make the Hamiltonian tensorial, and thus, it simultaneously interacts bases x h h ; ; 1 2 } , etc. While a tree-type topology may be appropriate in such cases as the interactions grow, a simplified form of the representation is presented in Figure <ref type="figure">5</ref>. Again, as in Figure <ref type="figure">3</ref>, when the outer indices x and x are on different Hilbert spaces,</p><p>x in eq 22 is replaced with y . The associated depiction is provided in Figure <ref type="figure">6</ref>. It must be noted that Figure <ref type="figure">5</ref> is not a restricted Boltzmann machine as may be seen from the fact that the layer corresponding to x is connected to two following layers corresponding to h 1 and h , 2 and so on. In fact, this is a step toward a general Boltzmann machine, and as the manybody interactions captured within the Hamiltonian increases, this approaches the path integral formalism commensurate with the full Boltzmann machine.</p><p>In such cases a generalization to the entropy from eq 20 may be obtained from Kekuchi's theory. <ref type="bibr">49</ref> We begin this generalization by reinspecting Figures <ref type="figure">5</ref> and<ref type="figure">6</ref>. These figures contain sets of triangles that are connected to each other since Hamiltonian contains terms. Thus, higher order Hamiltonians will necessitate the presence of higher order simplexes <ref type="bibr">51</ref> that are connected, and these will be commensurate with the many-body interaction terms that are captured within the Hamiltonian. Thus, it is appropriate to think of the Boltzmann machine in Figures <ref type="figure">5</ref> and<ref type="figure">6</ref> as graphs such that when the Hamiltonian contains k-body terms, the associated Boltzmann machine would have k-nodes that are completely connected and hence best represented as k-simplexes. Thus, if we consider the resultant neural network as a graph made of simplexes, or as a simplicial complex, <ref type="bibr">51,</ref><ref type="bibr">52</ref> the entropy arises from a graph theoretic description <ref type="bibr">18,</ref><ref type="bibr">49,</ref><ref type="bibr">53</ref> and may be written as</p><p>Here, the &#945;th rank-r simplex within the graph created from the neural network has entropy r , , which may be thought to be a functional of the reduced probability &#961; &#945;,r , that is the reduced probability for the &#945;th rank-r simplex in a graphical depiction such as that in Figures <ref type="figure">5</ref> and<ref type="figure">6</ref>. The quantity in eq 23 is the maximum rank of the simplexes that is the k = for k-local Hamiltonians. Thus, for the two-body case, the rank of the objects within a graphical description of the neural network is "r = 0" (nodes in the network) and "r = 1" (edges in the network). For the three-body case in Figures <ref type="figure">5</ref> and<ref type="figure">6</ref>, the value of is 2, and the corresponding entropy takes the form triangle represents a rank-3 weight tensor and is depicted with a blue square on its interior. In general, this could be a partial tree topology but is presented here in a simplified form.  </p><p>where the set of "nodes" include visible and hidden layers, the set of "edges" include connections between the same and are determined by the traditional weights used in machine learning, and finally, the set of "faces" include generalized weights that now depend on three sets of layers that may be any combination of visible or hidden layers. The quantity, r , in eq 23 is a multiplicity term and prevents overcounting in the graph-theoretic expression, eq 23, and includes the number of times the &#945;th (r)-rank object appears in all simplexes of rank greater than or equal to r. Thus, through the analogy discussed we are also able to provide high-order neural networks as a extension of Feynman path integrals with Hamiltonians that may contain higher order terms.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.">ROLE OF ACTIVATION FUNCTIONS</head><p>In Boltzmann machines and neural networks, there is a concept called activation functions, which has thus far been ignored in our discussion. One can interpret such activation functions as a external bath, that perform the operation that modifies eq 6 by replacing</p><p>and</p><p>and so on. Here, for each hidden node, the activation function attenuates the probability at that node, through connection to an external bath, as shown in Figure <ref type="figure">7</ref> thus modifying the Hamiltonian in eq 10 to read i k j j j j j j y { z z z z z z i k j j j j j j y</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>{ z z z z z z H dh ds h h H s s c c</head><p>ds s s H s s c c . . . .</p><p>Thus, we map the situation with actvation functions to include bath variables as is expected for system-bath or condensed phase quantum dynamics <ref type="bibr">54</ref> However, it is also to be noted that the most general form of the Hamiltonian achievable within ion trap quantum hardware represents a case very similar to eq 27. In the language of spin and boson operators, <ref type="bibr">55</ref> </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Ion Trap system</head><p>IT interaction</p><p>where the three individual terms may be considered as mappable to the three parts of eq 27 ,and while system IT has an identical definition as in eq 13, bath components have the form </p><p>Here, as usual, &#963; i &#947; are the Pauli spin operators for the ith spin acting along the &#947; direction of the Bloch sphere, and a &#945; and a &#945; &#8224; are phonon annihilation and creation operators for vibrational mode &#945;. In eqs 28, &#954; &#945; describes the coupling strength between the effective spin-1/2 system and a quantum harmonic bath, which contains N &#945; phonons in mode &#945;.</p><p>Thus, while the paper is primarily based on exposing the analogy between Boltzmann machines and Feynman path integrals, it is also evident through the connections between eqs 10 and 13 on the one hand, and eqs 27 and 28 on the other hand, that quantum computing implementations may be developed in future that may have similar algebraic structure for machine learning problems as well as quantum chemical dynamics problems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="8.">QUANTUM CIRCUIT DESCRIPTIONS FOR BOLTZMANN MACHINES AND PATH INTEGRALS</head><p>In Figure <ref type="figure">8</ref>, we present a circuit model for both the RBM shown and also for the Feynman path integral that is represented by Figure <ref type="figure">8</ref>(a). In this quantum circuit, the single-qubit R y gates acting only on the visible and hidden units have rotation angles parametrized by the matrix elements as shown in the figure, the biases in eq 11, and are responsible for creating the noninteracting part of the distribution, that is while the interaction terms are turned on through using CCR y gates acting on an ancilla register as the target. For example, after the first CCR y gates, the resultant state is</p><p>The angles of these doubly controlled R y gates are parametrized by the weights in eq 11 and are different for different configurations of the control qubits. It must be emphasized that even though for a system requiring n = m = 2, one needs n*m ancillary qubits, the total gate depth is 2 (constant), the circuit width is n m mn ( ) + +</p><p>, and the total number of gates is n m mn ( )</p><p>and so is the number of variational parameters in the model. Thus, the asymptotic scaling of all important metrics for the cost of the circuit is polyn(n). However, an alternative implementation is possible too involving a single ancillary qubit which is reused n*m times through midcircuit measurements. Since the measurement is conditioned on the collapse of this single ancilla in state |1&#10217; (only then phase-kickback ensures correct state on the data register), one can reset the ancilla to state |0&#10217; thereafter and reuse it for mediating the interaction between a different hidden and visible unit. However, in this scheme, the depth is O(2mn) while the number of qubits required is O(n + m + 1). A very different and yet another implementation of simulating a Restricted Boltzmann Machine is to directly prepare the Gibbs state of the Ising Model on a quantum device through a double optimization protocol as has been devised recently. <ref type="bibr">56</ref> This scheme requires O(n + m + 1) qubits, gate depth is D (variable usually poly(n)), and the number of quantum gates is O(D*(n + m + 1)). Thus, in short we can say that there are many different versions of quantum circuit now which can prepare a sampler from the RBM distribution. Even though the internal resource requirements of each may vary, but all of them have O(poly(n)) cost in number of qubits, number of gates, and depth.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="9.">CONCLUSION</head><p>Machine learning has had great impact recently in a number of areas of science. Recently, quantum versions of machine learning protocols have also been constructed. As machine learning grows in impact, there has been a wide discussion in the literature that deals with the interpretation of hidden layers as 8. Illustration of the approach in Section 4 for two hidden layers and one input layer RBM system. The left visible layer is simply reproduced for convenience on the right side panel (a). Panel (b) not only provides a circuit model for the neural in panel (a), but it also provides a circuit model for a Feynman path integral problem referred to in panel (a). The |a i &#10217; represent the ancilla, x i represent the visible layer (or end points of the Feynman path), and h i are the hidden layers (or path elements that are used to construct the superposition in the Feynman path description). they appear in these formalisms. In this paper, we provide a general description for many problems in machine learning, and more precisely Boltzmann machines, by finding an analogy between these and the Feynman path integral description of quantum and statistical mechanics. We find that the basic mathematical structure of RBMs reminds us of a superposition of (or sum over) paths structure, which is a critical hallmark of Feynman's description of quantum and statistical mechanics. This then allows us to reinterpret the hidden layers in machine learning as being akin to the intermediate, or virtual, states visited by quantum systems as part of the path integration for quantum propagation in real and imaginary time. As a direct consequence of this argument, we are able to introduce a general quantum circuit that encompasses both RBMs and Feynman path integrals.</p><p>We then find that while 2-local Hamitonians within the Feynman path integral formalism are reminiscent of RBMs, klocal Hamiltonians naturally yield a structure that looks like a Boltzmann machine without restrictions. In fact, in such cases, the neural networks obtained look more like a simplical complex to allow connections that go beyond nearest neighbor of hidden layers. Given the isomorphism to graphs and simplicial complexes, we are also able to provide general expressions for entropy by applying the inclusion-exclusion principle directly to the simplicial complexes.</p><p>We have recently demonstrated <ref type="bibr">50</ref>   </p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>https://doi.org/10.1021/acs.jctc.3c00187 J. Chem. Theory Comput. 2023, 19, 2446-2454</p></note>
		</body>
		</text>
</TEI>
