Machine learning is a field of computer science that seeks to build computers capable of discovering meaningful information and making predictions about data. It is the core of artificial intelligence (AI) and has powered many aspects of modern technologies, from face recognition and natural language processing to automated self-driving cars.

1 Science 349, 255 (2015); Nature 521, 436 (2015). 1. M. Jordan, T. Mitchell,, 255 (2015); https://doi.org/10.1126/science.aaa8415 Y. LeCun, Y. Bengio, G. Hinton,, 436 (2015). https://doi.org/10.1038/nature14539 2 et al. , Nature 529, 484 (2016); et al. , Nature 550, 354 (2017). 2. D. Silver, 484 (2016); https://doi.org/10.1038/nature16961 D. Silver, 354 (2017). https://doi.org/10.1038/nature24270 The field is rapidly growing, and its applications have become ubiquitous.Google Translate’s online service uses machine learning to convert Chinese characters into English text with no human intervention. Machine-learning techniques were recently used to build AlphaGo,a robot that has defeated the world’s best players in Go, an ancient board game; developers have considered mastering the game as the highest AI achievement. Until AlphaGo demonstrated its prowess, the game was widely thought to be too intricate for machines to excel at because of the huge number of possible moves.

One of the biggest problems facing machine learning is the so-called curse of dimensionality—in general the number of training data sets required for the machine to learn the desired information is exponential in the dimension d. If a data set lies in a high-dimensional space, then it quickly becomes computationally unmanageable. That complexity is similar to quantum mechanics, for which an exponential amount of information is generally also required to fully describe a quantum many-body state.

3 3. M. A. Nielsen, I. L. Chuang, Quantum Computation and Quantum Information, Cambridge U. Press (2010). Despite its intricacies, quantum theory is arguably the most successful quantitative theory of nature. It not only provides the basis for understanding physics on all length scales, from elementary particles like electrons and quarks to gigantic objects like stars and galaxies, but also lays the foundation for modern technologies ranging from lasers and transistors to nuclear magnetic resonators and even quantum computers.Given the great successes of both machine learning and quantum physics, one may ask: Can these two seemingly unrelated but intimately connected fields merge in a seamless, synergistic manner?

It sounds like science fiction, but that fusion is happening right now and may lead to presently unimaginable breakthroughs in both fields. Machine learning has progressed dramatically over the past two decades, and many problems that were extremely challenging or even inaccessible to automated learning have now been solved. Those successes raise new possibilities for machine learning to solve open problems in quantum physics.

Meanwhile, the idea of quantum information processing has revolutionized theories and implementations of computation. New quantum algorithms may offer tantalizing prospects to enhance machine learning itself. The interaction between machine learning and quantum physics will undoubtedly benefit both fields.

Uncovering phases of matter Section: Choose Top of page ABSTRACT Uncovering phases of matt... << Neural-network representa... Entanglement in neural-ne... Quantum many-body problem... Quantum-enhanced machine ... Future partnership References CITING ARTICLES When applying machine learning to physics problems, a straightforward strategy is to use supervised learning, in which an algorithm is trained with data that are labeled beforehand; the algorithm’s goal is to take that information and establish a general rule for assigning labels to data outside the training set. For example, in identifying pictures of dogs and cats, a supervised learning algorithm will take thousands of images labeled either “dog” or “cat” and determine a relationship between the images’ pixel values and their labels. It then assigns those labels to images that it has not seen before. 4 Nat. Phys. 13, 431 (2017). 4. J. Carrasquilla, R. G. Melko,, 431 (2017). https://doi.org/10.1038/nphys4035 T c . The same supervised learning technique can be used for identifying distinct phases of matter and the transitions between them, one of the central problems in condensed-matter physics. Juan Carrasquilla and Roger Melko were the first to explore that idea in their study of the ferromagnetic Ising model, which features discrete atomic spins arranged on a lattice.The spins display a disordered paramagnetic phase at high temperatures and an ordered ferromagnetic phase at low temperatures, and a phase transition occurs between the two at some critical temperature Instead of sorting dogs and cats, Carrasquilla and Melko used equilibrium spin configurations sampled from Monte Carlo simulations to train the algorithm to identify paramagnetic and ferromagnetic states. They demonstrated that after training with those labeled samples, the algorithm could correctly assign the labels to new samples. Moreover, by scanning a range of temperatures, it located T c and found the critical exponents that are crucial to the study of phase transitions. a priori how their data should be categorized. Alternatively, unsupervised learning uses unlabeled training data and allows the network to find meaningful patterns and structures in them. A common example of unsupervised learning is clustering, in which training data are divided into several groups based on identified similarities and those groups are used to categorize new, previously unseen data. In 2016 Lei Wang applied clustering to the Ising model and successfully identified the paramagnetic and ferromagnetic phases and the transition between them, despite not giving the algorithm explicit sorting criteria. 5 Phys. Rev. B 94, 195105 (2016). 5. L. Wang,, 195105 (2016). https://doi.org/10.1103/PhysRevB.94.195105 6 Nat. Phys. 13, 435 (2017). 6. E. P. van Nieuwenburg, Y.-H. Liu, S. D. Huber,, 435 (2017). https://doi.org/10.1038/nphys4037 Supervised learning requires that users knowhow their data should be categorized. Alternatively, unsupervised learning uses unlabeled training data and allows the network to find meaningful patterns and structures in them. A common example of unsupervised learning is clustering, in which training data are divided into several groups based on identified similarities and those groups are used to categorize new, previously unseen data. In 2016 Lei Wang applied clustering to the Ising model and successfully identified the paramagnetic and ferromagnetic phases and the transition between them, despite not giving the algorithm explicit sorting criteria.Around the same time, Evert van Nieuwenburg and coworkers proposed a confusion scheme that combined both supervised and unsupervised learning.They tested their approach on several models, the Ising model included, and demonstrated that it could identify various phases and the transitions between them.

Neural-network representation Section: Choose Top of page ABSTRACT Uncovering phases of matt... Neural-network representa... << Entanglement in neural-ne... Quantum many-body problem... Quantum-enhanced machine ... Future partnership References CITING ARTICLES In parallel with the fast development of machine-learning algorithms for identifying phases of matter, exciting progress has been made in using artificial neural networks to represent quantum states and solve related quantum many-body problems. In quantum mechanics, fully describing an arbitrary many-body state requires an exponential amount of information. Consider a system with N qubits, or quantum bits. Each qubit has two possible independent configurations, either 0 or 1; thus there are 2N possible configurations in total. Computationally, that means fully describing the corresponding quantum state requires 2N complex numbers. The exponential complexity poses an enormous challenge for numerical simulations of quantum many-body systems performed on a classical computer—describing even few qubits requires an extremely large memory. For example, simulating a quantum system with 30 qubits requires tens of gigabytes, about the largest memory for a personal desktop; simulating 50 qubits requires tens of petabytes, more than the memory for the largest supercomputer in the world to date; and simulating 300 qubits requires more bytes than the number of atoms in the observable universe. Fortunately, most physical states of interest, such as the ground states of many-body Hamiltonians, typically access only a small corner of the entire Hilbert space of quantum states and can therefore be described with a reduced amount of information. Thus designing compact representations of those states in a way that retains their essential physical features is necessary for tackling quantum many-body problems with classical computers. 7 Ann. Phys. 326, 96 (2011). 7. U. Schollwöck,, 96 (2011). https://doi.org/10.1016/j.aop.2010.09.012 A renowned description for such states is the tensor-network representation,in which a tensor is assigned to each qubit, and together those tensors describe the many-body quantum state. Such a construction can represent most physical states efficiently in the sense that the amount of information required scales only polynomially, rather than exponentially, with the system size. Two representations A quantum state of a system with N qubits has the general form | Ψ ⟩ = ∑ Ξ Φ ( Ξ ) | Ξ ⟩ where | Ξ ⟩ = σ 1 σ 2 … σ N denotes a possible many-body qubit configuration, and Φ ( Ξ ) is a complex function that specifies the amplitude and phase of the state. One can interpret the quantum state as a computational black box that for a given | Ξ ⟩ returns a complex number Φ ( Ξ ) , which is the coefficient for the | Ξ ⟩ component of the state. N qubits, shown in panel a, known as the matrix product states (MPS) representation. Each qubit has an associated rank-3 tensor A ijk . The tensors form a network in which the connections represent the indices of the tensors. If two tensors are connected, then their shared index is contracted by summing over all possible values of the repeated index. In the 1D case, two of the indices of each tensor are connected to neighboring tensors and contracted, leaving a rank-1 tensor σ i that represents the physical degrees of freedom. The resulting quantum state is then given by Φ MPS ( Ξ ) = Tr A 1 A 2 … A N . The tensor-network representation uses tensors to represent quantum states. A tensor’s rank indicates its dimensionality, or the number of indices it has, so rank-1 tensors are vectors, rank-2 tensors are matrices, and so on. For simplicity, consider a one-dimensional system withqubits, shown in panel a, known as the matrix product states (MPS) representation. Each qubit has an associated rank-3 tensor. The tensors form a network in which the connections represent the indices of the tensors. If two tensors are connected, then their shared index is contracted by summing over all possible values of the repeated index. In the 1D case, two of the indices of each tensor are connected to neighboring tensors and contracted, leaving a rank-1 tensorthat represents the physical degrees of freedom. The resulting quantum state is then given by N visible neurons corresponding to the physical qubits and another layer with M hidden neurons, as shown in panel b. The visible neurons are connected to the hidden neurons, but neurons in the same layer are not connected. The quantum state is given by Φ MPS ( Ξ ) = ∑ h e ∑ a j σ j + ∑ b k h k + ∑ W j k h k σ j where {h} denotes the possible configurations h 1 ,h 2 , …, h M of the hidden neurons, W jk is the coupling strength between the visible and hidden neurons, and a j and b k are their bias parameters. A restricted Boltzmann machine (RBM) representation is a neural network with two layers—one visible layer withvisible neurons corresponding to the physical qubits and another layer withhidden neurons, as shown in panel b. The visible neurons are connected to the hidden neurons, but neurons in the same layer are not connected. The quantum state is given bywhere {} denotes the possible configurations, …,of the hidden neurons,is the coupling strength between the visible and hidden neurons, andandare their bias parameters. 8 Science 355, 602 (2017). 8. G. Carleo, M. Troyer,, 602 (2017). https://doi.org/10.1126/science.aag2302 box 1 Artificial neural networks—highly abstracted and simplified models of the human brain—can also be used to construct compact representations of quantum states. Giuseppe Carleo and Matthias Troyer first explored the idea when they introduced a new representation based on the restricted Boltzmann machine (RBM),a special neural network broadly used in the machine-learning community. (The tensor-network and RBM representations are compared in greater detail in theabove.) An RBM is arranged as two layers of neurons, a visible and a hidden layer, as illustrated in figure. The visible neurons represent the physical qubits, and the hidden neurons describe auxiliary degrees of freedom that are eventually eliminated by a summation to produce the network’s output, a complex number that serves as the coefficient for the corresponding qubit configuration. 9 Phys. Rev. B 96, 195145 (2017). 9. D.-L. Deng, X. Li, S. Das Sarma,, 195145 (2017). https://doi.org/10.1103/PhysRevB.96.195145 1 Physics Today, What kinds of quantum many-body states can be efficiently described by RBMs? Certain exotic states, such as topological states, are well represented by RBMs.Figureis a sketch of the RBM representation for the ground state of the toric-code Hamiltonian, a topological state introduced by Alexei Kitaev in the context of topological quantum computation (see the article by one of us [Das Sarma], Michael Freedman, and Chetan Nayak, July 2006, page 32 ). To represent the toric-code state, each hidden neuron of the RBM connects only to its nearest four visible neurons. Each connection is described by one network parameter, so the total number of parameters is roughly four times the number of qubits, which scales linearly, rather than exponentially, with the system size. The strikingly compact representation of the toric-code state can carry over to the excited states as well. 10 Nat. Commun. 8, 662 (2017). 10. X. Gao, L.-M. Duan,, 662 (2017). https://doi.org/10.1038/s41467-017-00705-2 There also exist quantum states with physical interest that carry no efficient RBM description.However, the RBM’s applicability increases if it includes an additional hidden layer. The resulting neural network, known as the deep Boltzmann machine, can represent almost all physical quantum states efficiently, with the required number of parameters scaling at most polynomially with the system size.

Entanglement in neural-network states Section: Choose Top of page ABSTRACT Uncovering phases of matt... Neural-network representa... Entanglement in neural-ne... << Quantum many-body problem... Quantum-enhanced machine ... Future partnership References CITING ARTICLES What, then, limits neural networks in efficiently representing quantum many-body states? For the conventional tensor-network representation, quantum entanglement is the key. Is it also a critical factor for the neural-network representation? Quantum entanglement is a physical phenomenon in which measurements on one particle will instantaneously influence the state of another, even when the particles are spatially separated by a large distance—a phenomenon Albert Einstein called “spooky action at a distance.” Entanglement is also at the heart of the famous Schrödinger’s cat paradox. Both Einstein and Erwin Schrödinger were deeply bothered by quantum entanglement. A and B, as shown in figure 2 Imagine dividing a pure quantum many-body state into two subsystems,and, as shown in figure. Just as classical many-body systems can be characterized by their entropy, quantum many-body systems can be characterized by their entanglement entropy. Many natural quantum systems satisfy the entanglement area law, which says that the entanglement entropy of a subsystem scales as at most the surface area or the boundary of the subsystem rather than as its volume. That is the case for the Bekenstein–Hawking entropy of a black hole, which scales as the area of its event horizon. In fact, the origin of the black hole entropy is widely believed to be the quantum entanglement between the inside and outside of the black hole. In quantum many-body physics, the ground states of many typical local Hamiltonians also satisfy the entanglement area law, although a rigorous proof of that is notoriously challenging and remains unknown. The entanglement area law is crucial in the tensor-network representation of quantum many-body states and forms the backbone of numerous tensor-network-based algorithms. In general, the number of parameters that a tensor network needs to describe a quantum state that satisfies the entanglement area law scales only polynomially with the system size. Thus such quantum states typically bear an efficient tensor-network representation. However, for quantum states with massive entanglement, such as highly excited states of quantum Hamiltonians that have volume-law entanglement, the traditional tensor-network representation is not efficient—the number of parameters required scales exponentially with the system size. 11 Phys. Rev. X 7, 021021 (2017). 11. D.-L. Deng, X. Li, S. Das Sarma,, 021021 (2017). https://doi.org/10.1103/PhysRevX.7.021021 All RBM neural-network states with short-range connectivity obey the entanglement area law, independent of their dimensionality and subsystem geometric details.The toric-code states, in which each neuron connects only to its four closest vertices, must then obey the area law, a conclusion that has also been confirmed via other sophisticated mathematical techniques. 2 Without the short-range condition, general RBM states satisfy an entanglement volume law. In fact, one can analytically construct families of RBM states with maximal entanglement. A sketch of such a construction is shown in figure, from which a striking conclusion immediately follows: The RBM description of heavily entangled states is remarkably efficient. Each visible neuron connects to at most three hidden neurons, so the number of parameters scales only linearly with the system size; that scaling demonstrates the unparalleled power of neural networks in describing quantum many-body states with large entanglement. The RBM scaling is in sharp contrast with the traditional tensor-network representation, which requires an exponentially large number of parameters to describe highly entangled states. Clearly, entanglement is not the limiting factor for the efficiency of the neural-network representation.

Quantum many-body problems Section: Choose Top of page ABSTRACT Uncovering phases of matt... Neural-network representa... Entanglement in neural-ne... Quantum many-body problem... << Quantum-enhanced machine ... Future partnership References CITING ARTICLES 8 Science 355, 602 (2017). 8. G. Carleo, M. Troyer,, 602 (2017). https://doi.org/10.1126/science.aag2302 Solving quantum many-body problems usually entails finding either the system’s ground state or the dynamics of the system’s time evolution. That can be achieved through an RBM-based variational learning algorithm adopted by Carleo and Troyer in the same paper in which they introduced the RBM representation.They tested the approach on two prototypical quantum spin models—the Ising model in a transverse magnetic field and the antiferromagnetic Heisenberg model—and found that the RBM approach faithfully captured the ground state and the time evolution for each one. 11 Phys. Rev. X 7, 021021 (2017). 11. D.-L. Deng, X. Li, S. Das Sarma,, 021021 (2017). https://doi.org/10.1103/PhysRevX.7.021021 12 et al. , Nat. Phys. 14, 447 (2018). 12. G. Torlai, 447 (2018). https://doi.org/10.1038/s41567-018-0048-5 The exceptional ability of neural networks to represent massively entangled states offers a new way to solve intricate many-body problems that involve large entanglement; such problems are challenging or even unsolvable with conventional methods. When applied to a model Hamiltonian with long-range interactions, the RBM-based variational learning algorithm found the system’s ground state, which has been numerically shown to hold power-law entanglement.Moreover, the RBM technique has also been used in quantum state tomography—a process of reconstructing the quantum state from the outputs of quantum measurements—for highly entangled states. 13 Phys. Rev. Lett. 120, 240402 (2018). 13. D.-L. Deng,, 240402 (2018). https://doi.org/10.1103/PhysRevLett.120.240402 Nonlocality, which is closely related to entanglement, is another enigmatic feature of quantum mechanics. As resoundingly established by John Bell, quantum nonlocality precludes any local realistic description of our world and represents the most profound departure of the quantum world from the classical. In practical applications, nonlocality is an indispensable resource for various device-independent quantum technologies, such as secure cryptographic key distribution and certifiable random-number generation. The complete characterization of quantum nonlocality for a generic many-body system is extremely challenging; nevertheless, machine learning, especially RBM-based variational learning, is a promising technique for at least partially solving that problem.

Quantum-enhanced machine learning Section: Choose Top of page ABSTRACT Uncovering phases of matt... Neural-network representa... Entanglement in neural-ne... Quantum many-body problem... Quantum-enhanced machine ... << Future partnership References CITING ARTICLES The above examples have clearly uncovered the unparalleled power of machine-learning techniques in solving various challenging quantum problems. Strikingly, unlike in the traditional tensor-network approach, entanglement is not the limiting factor for the efficiency of the neural-network representation and for the related algorithms to learn such a representation. In addition, the neural-network approach works for high-dimensional systems because of the huge flexibility of neural-network structures. 3 3. M. A. Nielsen, I. L. Chuang, Quantum Computation and Quantum Information, Cambridge U. Press (2010). The opposite also holds true: Quantum technologies, especially quantum computing, have the potential to provide a huge boost to machine learning. For one thing, machine learning often deals with large amounts of data, and one common data-analysis technique is the fast Fourier transform (FFT). With quantum computers, there is a quantum version of FFT that is exponentially faster than the classical version.For another, machine-learning algorithms often require solving a huge number of linear problems that amount to doing many matrix multiplications. Quantum computers have intrinsic advantages in executing those operations since quantum mechanics is naturally described by linear algebra—in fact, an early formulation of quantum mechanics by Werner Heisenberg, Max Born, and Pascual Jordan was called matrix mechanics. Thus many conceptual connections exist between machine learning and quantum computing. 14 et al. , Nature 549, 195 (2017); Rep. Prog. Phys. 81, 074001 (2018); et al. , Proc. R. Soc. A 474, 20170551 (2018). 14. J. Biamonte, 195 (2017); https://doi.org/10.1038/nature23474 V. Dunjko, H. J. Briegel,, 074001 (2018); https://doi.org/10.1088/1361-6633/aab406 C. Ciliberto, 20170551 (2018). https://doi.org/10.1098/rspa.2017.0551 15 Phys. Rev. Lett. 103, 150502 (2009). 15. A. W. Harrow, A. Hassidim, S. Lloyd,, 150502 (2009). https://doi.org/10.1103/PhysRevLett.103.150502 N × N matrix A and a vector b, the aim of HHL is essentially to solve Ax = b for x. For many matrices of physical interest, the HHL algorithm takes on the order of log2 N quantum steps to output a quantum state, whereas the best-known classical algorithm requires on the order of N log N steps. Quantum computers aren’t expected to speed up every machine-learning algorithm. However, scientists have found a number of quantum algorithms that promise exponential speed increases for certain important tasks.One algorithm that is foundational to the current quantum machine-learning minirevolution is called the HHL algorithm, after its inventors Aram Harrow, Avinatan Hassidim, and Seth Lloyd.Many other quantum learning algorithms either extend HHL or use it as a subroutine. The algorithm seeks to solve a system of linear equations: Given anmatrixand a vector, the aim of HHL is essentially to solvefor. For many matrices of physical interest, the HHL algorithm takes on the order of logquantum steps to output a quantum state, whereas the best-known classical algorithm requires on the order oflogsteps. 14 et al. , Nature 549, 195 (2017); Rep. Prog. Phys. 81, 074001 (2018); et al. , Proc. R. Soc. A 474, 20170551 (2018). 14. J. Biamonte, 195 (2017); https://doi.org/10.1038/nature23474 V. Dunjko, H. J. Briegel,, 074001 (2018); https://doi.org/10.1088/1361-6633/aab406 C. Ciliberto, 20170551 (2018). https://doi.org/10.1098/rspa.2017.0551 16 Sci. Adv. 4, eaat9004 (2018). 16. X. Gao, Z.-Y. Zhang, L.-M. Duan,, eaat9004 (2018). https://doi.org/10.1126/sciadv.aat9004 Several caveats to the HHL algorithm and its variants may nullify its potential benefits.For instance, to map a classical vector to a quantum state the algorithm requires quantum RAM, or qRAM, which could be exponentially expensive. Xun Gao, Zhengyu Zhang, and one of us (Duan) recently introduced a quantum generative model that relaxed the qRAM requirement and thus circumvented the problem of exponential overhead in the initial step of transferring classical data to quantum states. 3 Compared with more familiar discriminative models, generative models take a different approach to solving problems through machine learning. To understand the difference between the two, consider the earlier example with images of dogs and cats. A discriminative model aims to learn the characteristics that distinguish images of the animals to differentiate between them. The goal of generative models is to be able to produce new images of dogs and cats. In practice, the generative approach is to figure out an underlying probability distribution from a set of training data. In the classical scenario, the probability distribution can be represented by a factor graph. However, for the quantum generative model, the probability distribution is described by a quantum state. Sketches of both the classical and quantum generative models are shown in figure The quantum generative model has exponential advantages over its classical counterpart in three significant aspects. Not only can it efficiently represent more probability distributions, but the quantum algorithm is also exponentially faster than the classical one both at learning certain probability distributions and at generating new data. The quantum generative model opens a fresh way to explore the power of quantum computing in solving challenging machine-learning problems, and it should thus have important applications in the future. 14 et al. , Nature 549, 195 (2017); Rep. Prog. Phys. 81, 074001 (2018); et al. , Proc. R. Soc. A 474, 20170551 (2018). 14. J. Biamonte, 195 (2017); https://doi.org/10.1038/nature23474 V. Dunjko, H. J. Briegel,, 074001 (2018); https://doi.org/10.1088/1361-6633/aab406 C. Ciliberto, 20170551 (2018). https://doi.org/10.1098/rspa.2017.0551 17 17. E. M. Stoudenmire, D. J. Schwab, https://arxiv.org/abs/1605.05775 The above examples are just a glimpse into an increasing zoo of quantum algorithms that may significantly boost machine learning and, more generally, AI tasks.Other intriguing algorithms, such as quantum principal component analysis and quantum support-vector machine, also show great speed-up potentials. In addition, a recently proposed quantum-inspired tensor-network algorithm for machine learning is beginning to show intriguing merits.