scieee AI-readable full text Open interactive document viewer

Investigating quantum many-body systems with tensor networks, machine learning and quantum computers

Kottmann, Korbinian Gebhard

Abstract

(English) We perform quantum simulation on classical and quantum computers and set up a machine learning framework in which we can map out phase diagrams of known and unknown quantum many-body systems in an unsupervised fashion. The classical simulations are done with state-of-the-art tensor network methods in one and two spatial dimensions. For one dimensional systems, we utilize matrix product states (MPS) that have many practical advantages and can be optimized using the efficient density matrix renormalization group (DMRG) algorithm. The data for two dimensional systems is obtained from entangled projected pair states (PEPS) optimized via imaginary time evolution. Data in form of observables, entanglement spectra, or parts of the state vectors from these simulations, is then fed into a deep learning (DL) pipeline where we perform anomaly detection to map out the phase diagram. We extend this notion to quantum computers and introduce quantum variational anomaly detection. Here, we first simulate the ground state and then process it in a quantum machine learning (QML) manner. Both simulation and QML routines are performed on the same device, which we demonstrate both in classical simulation and on a physical quantum computer hosted by IBM.

Full text

PhD Thesis Investigating Quantum Many-Body Systems with Tensor Networks, Machine Learning and Quantum Computers Author: Korbinian Kottmann Supervisor: Prof. Dr. Antonio Acín Prof. Dr. Maciej Lewenstein ii September 8, 2022 iii Abstract We perform quantum simulation on classical and quantum computers and set up a machine learning framework in which we can map out phase diagrams of known and unknown quantum manybody systems in an unsupervised fashion. The classical simulations are done with state-of-the-art tensor network methods in one and two spatial dimensions. For one dimensional systems, we utilize matrix product states ( MPS ) that have many practical advantages and can be optimized using the ecient density matrix renormalization group ( DMRG ) algorithm. The data for two dimensional systems is obtained from entangled projected pair states ( PEPS ) optimized via imaginary time evolution. Data in form of observables, entanglement spectra, or parts of the state vectors from these simulations, is then fed into a deep learning ( DL ) pipeline where we perform anomaly detection to map out the phase diagram. We extend this notion to quantum computers and introduce quantum variational anomaly detection. Here, we rst simulate the ground state and then process it in a quantum machine learning ( QML ) manner. Both simulation and QML routines are performed on the same device, which we demonstrate both in classical simulation and on a physical quantum computer hosted by IBM . v Resumen En esta tesis, realizamos simulaciónes cuánticas en ordenadores clásicos y cuánticos y diseñamos un marco de aprendizaje automático en el que podemos construir diagramas de fase de sistemas cuánticos de muchas partículas de manera no supervisada. Las simulaciones clásicas se realizan con métodos de red de tensores de última generación en una y dos dimensiones espaciales. Para sistemas unidimensionales, utilizamos estados de productos de matrices (MPS) que tienen muchas ventajas prácticas y pueden optimizarse utilizando el eciente algoritmo del grupo de renormalización de matrices de densidad (DMRG). Los datos para sistemas bidimensionales se obtienen mediante los denominados estados de pares entrelazados proyectados (PEPS) optimizados a través de la evolución en tiempo imaginario. Los datos, en forma de observables, espectros de entrelazamiento o partes de los vectores de estado de estas simulaciones, se introducen luego en un algoritmo de aprendizaje profundo (DL) donde realizamos la detección de anomalías para construir el diagrama de fase. Extendemos esta noción a los ordenadores cuánticos e introducimos la detección de anomalías cuánticas variacionales. Aquí, primero simulamos el estado fundamental y luego lo procesamos utilizando el aprendizaje automático cuántico (QML). Tanto las rutinas de simulación como el QML se realizan en el mismo dispositivo, lo que demostramos tanto en una simulación clásica como en un ordenador cuántico real de IBM. vii List of publications Peer-reviewed publications forming part of this thesis: [1] K. Kottmann, P. Huembeli, M. Lewenstein and A. Acín, Unsupervised Phase Discovery with Deep Anomaly Detection , Phys. Rev. Letters 125 (17), 170603 (2020), doi:10.1103/PhysRevLett.125.170603 [2] K. Kottmann, A. Haller, A. Acín, G. E. Astrakharchik and M. Lewenstein, Supersolid-superuid phase separation in the extended bose-hubbard model , Phys. Rev. B 104, 174514 (2021), doi:10.1103/PhysRevB.104.174514 [3] K. Kottmann, P. Corboz, M. Lewenstein and A. Acín, Unsupervised mapping of phase diagrams of 2D systems from innite projected entangled-pair states via deep anomaly detection , SciPost Phys. 11, 25 (2021), doi:10.21468/SciPostPhys.11.2.025 [4] K. Kottmann, F. Metz, J. Fraxanet and N. Baldelli, Variational quantum anomaly detection: Unsupervised mapping of phase diagrams on a physical quantum computer , Phys. Rev. Research 3, 043184 (2021), doi:10.1103/PhysRevResearch.3.043184 Peer-reviewed publications relevant to this thesis, but not forming part of it: [5] N. Käming, A. Dawid, K. Kottmann, M. Lewenstein, K. Sengstock, A. Dauphin and C. Weitenberg, Unsupervised machine learning of topological phase transitions from experimental data , Machine Learning: Science and Technology 2 (3), 035037 (2021), doi:10.1088/2632-2153/abe7 [6] T. Szoªdra, P. Sierant, K. Kottmann, M. Lewenstein and J. Zakrzewski, Detecting ergodic bubbles at the crossover to many-body localization using neural networks , Phys. Rev. B 104, L140202 (2021), doi:10.1103/PhysRevB.104.L140202 ix Prephrase As I , the author, am guiding you , the reader, through this thesis, I am going to write in the rst person plural form, as we make our way through the following chapters. 3 Chapter 1 Motivation Developing tools to investigate large-scale interacting quantum systems promises the potential for unprecedented technological advancement in physics, chemistry, material science, medicine, or molecular biology on top of the fundamental understanding of the world. Applications range from optimizing photovoltaic material design [7] to drug discovery and design [8,9]. The phenomenon of high temperature superconductivity in cuprates [10] and twisted bilayer graphene [11] is still not understood [12]. Further, computational catalysis for large molecules could give access to means to potentially nding a suitable catalyst for Nitrogen xation (Nitrogenase) [13] or carbon capturing [14], which are very relevant for the problems in agriculture and climate change that humanity is currently facing. These are few of a variety of applications that make developing methods to study quantum many-body systems highly desirable. In this thesis, we are interested in quantum simulation, that is, studying the properties of quantum many-body systems in a controlled fashion. In particular, we are typically interested in the ground states of Hamiltonians. For example, in computational catalysis, one is interested in the ground state energies of the molecules involved in a catalytic cycle to determine the reaction rates and therefore, how viable a proposed catalyst is. On the other hand, peculiar quantum phases of matter like superuids, supersolids or superconductors are exhibited at very low temperatures and are therefore described by the ground (and low-excited) states of the system. Further, the discovery of topological phases has extended the possibilities of (quantum) phases of matter that are of fundamental interest in physics and promise potential technological advancements. 4 Chapter 1. Motivation There are two branches of quantum simulation: using classical computers or using quantum computers. One way of utilizing classical computers to perform quantum simulation is to classically compute the wavefunction, that is, the vector in Hilbert space describing the state of the system. This approach suers from the curse of dimensionality , as the Hilbert space grows exponentially with the number of constituents. Take for example a system composed of N local d -dimensional degrees of freedom, then the Hilbert space describing a general state of the composite system is of dimension dN . It is known that only a fraction of those states in Hilbert space are physically accessible [15], so the task at hand is to leverage this information to directly target those relevant states. One such approach is given by tensor network algorithms, where suitable Ansätze for the known restrictions of physical systems are optimized. The physical principle governing this is typically to target low- to intermediately entangled states, for which tensor network states are precisely designed. Since tensor network states usually require polynomial resources, it is worth noting that, therefore, states for intermediate sized systems of O(100) constituents but with low entanglement can still be described classically. For states with high complexity and correlations, the other approach is to leverage a quantum system over which we have full control, a quantum computer, to encode the state of the quantum system we aim to simulate. However, it turns out to be very dif- cult to coherently control and manipulate interacting quantum systems. There has been tremendous progress in recent years, such that small scale quantum computers are commercially available today. These, however, are still inherently noisy and small, such that they serve more as a toy model and proof of principle for the moment. The hope is that in the short term of the next ve to ten years, noise levels can be decreased and system sizes can be increased to be able to achieve a computational advantage for practically relevant problems over competing classical methods, such as, e.g. tensor networks. There have been claims for computational quantum advantage with contemporary hardware using a random circuit sampling approach [16], but these have already been caught up by tensor network simulations [17]. More rigorous is the claim of quantum advantage for experimental Gaussian Boson Sampling [18,19], though this is not on a universal quantum computer with unknown technological implications. Chapter 1. Motivation 5 In the long run, the aim is to build a fault tolerant quantum computer of many qubits that can process very deep circuits to generate states of high complexity and entanglement. In such a device, error rates are low such that the few errors that occur can be corrected with quantum error correction, which requires a large overhead of physical qubits to logical qubits. This would allow for general purpose algorithms like adiabatic quantum computing and quantum phase estimation to investigate the above mentioned relevant systems, but also to provide solutions to optimization problems that are relevant for many industries. Further, quantum computers are relevant as they enable Shor's prime factoring algorithm [20], which poses a thread for publickey cryptographic systems 1 . Independently and parallel to these developments, deep learning underwent booming progress in the past decade. Much of its theory was developed already in the second half of the 20th century, but large amounts of data and hardware to rapidly process were not available yet back then. This changed with an ever-growing internet yielding more and more data, and the development of faster and more specialized hardware, i.e. the introduction of graphics processing units (GPUs) 2 . This boosted the eld of articial intelligence (AI) to unprecedented successes for tasks like image recognition [21], natural language processing [22], or playing games [23]. Vision of this thesis We want to use the aforementioned tools to simulate quantum many-body systems and apply deep learning methods to investigate them. The bigger vision we have in mind is an articial intelligence that performs quantum simulation of 1 Most public-key cryptosystems are based on the RivestShamirAdleman (RSA) algorithm, which relies on the assumption that nding the prime factors of integer numbers is computationally hard, i.e. exponential in the number of integers. Shor's prime factoring algorithm, however, is polynomial in the number of integers and therefore violates this assumption. 2 GPUs are more restricted than general-purpose central processing units (CPUs) as they are specialized in performing very rapid computations of large data in parallel. They were primarily developed for computer games but soon found other applications like deep learning. Other applicationspecic integrated circuits (ASICs) like the tensor processing unit (TPU) are developed specically for deep learning by Google . 6 Chapter 1. Motivation various dierent systems and automatically points out new properties, eects or phases. The main contribution of this thesis to this endeavor is providing methods to map out the phase diagrams from quantum simulation data in an unsupervised fashion requiring no prior knowledge of the system. We demonstrate this on dierent known physical models as a proof of principle for 1D and 2D tensor network quantum states in classical simulation and quantum states simulated on a quantum computer. The latter is very much in line with recent proposals to use quantum computers to learn from quantum experiments (quantum machine learning with quantum data) [24]. While these experiments on quantum computers are still in the stage of a proof of concept, we nd a phase that has previously been mostly overlooked with classical simulations. This leads us to further physical investigations, discovering previously unknown eects such as a superuid phase with a hidden broken translational symmetry in the extended Bose Hubbard model. It is worth noting that in its current form, the employed deep learning methods merely point out regions of interest, but the physical investigation still has to be performed by an expert physicist. Deep learning methods for gaining physical insights [25] or interpretability [26,27,28] might further elevate those eorts but are not subject to this thesis. We start this thesis by introducing tensor network methods in chapter 2, deep learning in chapter 3 and quantum computing with noisy contemporary hardware via variational quantum algorithms in chapter 4. The main results are outlined in part II: We start by introducing anomaly detection for physical discovery in chapter 5. This method is then applied to the one dimensional Bose Hubbard model in chapter 6, where we also perform the physical investigations of the new properties that the machine learning algorithm hinted at. We further demonstrate the viability of deep anomaly detection for two dimensional tensor network data in chapter 7. Finally, we translate this approach to a quantum computer where we perform both the quantum simulation and unsupervised anomaly detection on the same device in chapter 8, before we conclude in part III. 7 Chapter 2 Introduction to Tensor Network methods for quantum many-body systems The Hilbert space of all possible quantum states for N particles is exponentially large in N . But not all states are physically achievable [15] 1 . Particularly, it is known that ground states of local and gapped Hamiltonians follow the area law of entanglement [29,30,31] and therefore only occupy an (exponentially) small fraction of the Hilbert space. That is, the entanglement entropy S(ρA) of a subsystem A scales with the surface area of the volume that A is occupying in real space, while for a general state it scales with the volume. Matrix product states (MPS) in one spatial dimension and projected entangled pair states (PEPS) in two spatial dimensions are states reproducing the area law of entanglement and are therefore natural Ansätze for ground states of local and gapped Hamiltonians. A drastic consequence of the area law is that for one dimensional systems the entanglement entropy for any subsystem is constant, independent of its size. This property was leveraged by White already in 1992 with the invention of the density matrix renormalization group algorithm (DMRG) [32,33] to study the ground states of quantum many-body systems. This algorithm is the 1 In [15], the authors argue that most of the states in Hilbert space can only be produced in an exponential amount of time as they show that the manifold of states that can be realized by a polynomial time-evolution of local Hamiltonians is exponentially small. 8 Chapter 2. Introduction to Tensor Network methods for quantum many-body systems foundation of modern tensor network methods, as it was realized that one can describe these ground states in terms of matrix product states (MPS) [34,35,36]. MPS are very powerful as they oer a canonical form that allows for very ecient calculation of observables [37,38,39,40] and ecient optimization via DMRG with matrix product operators [41]. For a modern review we point to [42], whose line of thought we partly adopt in the following. As we will see later, things get more complicated for tensor network states in higher dimensions due to the lack of a canonical form [43]. Despite this diculty, competitive methods in two [44,45,46,47] and three [48,49,50,51] spatial dimensions have been demonstrated. Furthermore, tensor networks provide state of the art results in quantum chemistry [52] and quantum computation [17]. We start this chapter by introducing the general concepts and special properties of matrix product states in sections 2.1 and 2.2. We then introduce the DMRG algorithm in section 2.4, following closely the logic of [42]. Sections 2.1 to 2.4 are accompanied by Python 3 code along with the mathematical explanations. The notion of innite tensor network states, i.e. states in the thermodynamic limit, are introduced in section 2.5, as well as imaginary time evolution. The latter is rather a means for consistency checking of DMRG in 1D, but very relevant for PEPS, which we introduce in section 2.6. We conclude with discussing the area law, showing how MPS and PEPS exactly reproduce it and are therefore suitable Ansätze for ground states of gapped and local Hamiltonians in section 2.7. 2.1 Singular Value Decomposition Let us start by recalling one of the most important techniques from linear algebra in general, and especially important to tensor network methods, namely the singular value decomposition (SVD) of an arbitrary matrix M∈ C m×n in terms of M=UΛV†, (2.1) where Λ is a diagonal matrix containing the r= min(m, n) positive singular values {λi}r i=1 of M . The matrix U∈ C m×r consists of orthonormal columns whereas the matrix V†∈ C r×n consists of orthonormal rows - the left- and right-orthogonal singular vectors 2.2. Canonical form of an MPS 9 Figure 2.1: Illustration of the general singular value decomposition M=UΛV† of M and its compression by discarding the two smallest singular values and the respective left- and right singular vectors. Note that descending order of the positive singular values is assumed. of M , respectively. In the case of m=n , U and V are unitary, however we will almost exclusively be dealing with rectangular matrices in the context of MPS. The case of n>m is illustrated in g. 2.1. In practice, SVD can always be achieved by diagonalizing the Hermitian matrix MM†∈ C m×m and we can identify the eigenvectors corresponding to the non-zero eigenvalues as U , and the square roots of the positive and real eigenvalues as Λ . We can obtain V in a similar fashion by diagonalizing M†M∈ C n×n . One of the many applications of SVD is the compression of matrices. This can be achieved by truncating the singular values below a certain threshold, and discarding the respective singular vectors, as illustrated in g. 2.1. The resulting approximation M′ is optimal in terms of to the Frobenius norm ||M−M′||F , where ||A||2 F= tr A†A for any A∈ C m×n , which is just the sum of squared singular values (i.e. eigenvalues of A†A ). This is in general a very powerful property which serves as the foundation of matrix product state approximations of general quantum many-body states. 2.2 Canonical form of an MPS Let us now look at a general quantum state |Ψ⟩=X σ1,..,σL cσ1,..,σL|σ1, .., σL⟩ (2.2) 10 Chapter 2. Introduction to Tensor Network methods for quantum many-body systems consisting of local, spin-like degrees of freedom σi∈ {0,1, .., d−1} . This state is completely characterized by the rank L tensor c with components cσ1,..,σL∈ C dL . The key trick of MPS is to approximate this exponentially large tensor by a product of smaller tensors. We can formally exactly map the tensor to such a product by consecutively performing SVD cσ1,..,σL reshape =cσ1,(σ2,..,σL) SVD =X µ1 Uσ1,µ1Λµ1V† µ1,(σ2,..,σL) =X µ1 Uσ1 µ1cσ2,..,σL µ1, (2.3) where in the rst step we reshaped the tensor into a matrix by combining the right-most indices 2 . We can then treat Λµ1V† µ1,(σ2,..,σL)=cσ2,..,σL µ1 (2.4) as a new tensor with virtual index µ1 , which is being summed over, and physical indices σ2, .., σL , that we from now on write as superscripts to make the distinction. We can repeat this step for c(µ1σ2),(σ3,..,σL) and all following new tensors all the way through the remaining variables and end up with cσ1,..,σL=X µ1,..,µL−1 Uσ1 µ1Uσ2 µ1,µ2···UσL−1 µL−2,µL−1UσL µL−1 (2.5) and therefore nd the original state in its matrix product state form |Ψ⟩=X σ1,..,σL Uσ1Uσ2···UσL−1UσL|σ1, .., σL⟩. (2.6) We did not write the summation over virtual indices explicitly and left it implicitly as matrix multiplications. This is where the name matrix product state comes from, despite mostly consisting of rank 3 tensors and not matrices. There are several key features of this representation that we want to point out. 2 Some explicit examples for combining indices: for d= 2 , i.e. spin 1/2, the string of spin variables σ1σ2σ3 represents a binary number, i.e. 000 = 0 , 001 = 1 , 010 = 2 , 011 = 3 and so on. For d= 3 we could use ternary numbers and so on. 2.2. Canonical form of an MPS 11 Compression First of all, note that by doing this decomposition we actually have not gained anything in terms of dimensionality because the innermost tensor has shape (dL/2, d, dL/2) (for L even). An e- cient compression is achieved by discarding some of the smaller singular values as discussed before. In practice, the user sets a hyper parameter χ max ∈ N called the bond dimension, until which we keep all the singular values. The tensors therefore have constant dimensions (χ max , d, χ max ) 3 . Norm We will verify that |Ψ⟩ is correctly normalized, assuming that the original state in eq. (2.2) was normalized. Recall that the U matrices in the SVD are left-orthogonal, which implies X σi (Uσi)†Uσi= 1 (2.7) and therefore ⟨Ψ|Ψ⟩=X σ1,..,σL (UσL)†..(Uσ1)†Uσ1..UσL= 1. (2.8) Note that i= 1 and i=L are special cases due to their reduced dimensionality and should in this notation be regarded as rank 3 tensors with a trivial third dimension, i.e. the last reduction yields PσL,µL−1UσL† 1,µL−1UσL µL−1,1= 1 1,1= 1 , where subscript (•)1 indicates the trivial dimension of size 1. Canonical form The process of sweeping through the system as described above has brought the state in its so-called left-canonical form, where we can make use of the left-orthogonality for ecient tensor contractions as shown for the norm. Now note that we can do this process not just for a state in tensor form eq. (2.2) but also to a state that is already in MPS form but with dierent matrices. We can have the same state described by dierent sets of matrices 3 For site i at the boundaries of the MPS the dimension is min(di, χ max ) and typically one additionally sets a threshold for the smallest singular values to keep, which can further reduce the dimension. 18 Chapter 2. Introduction to Tensor Network methods for quantum many-body systems the range of the interactions 4 [41]. Look for example at the simple translationally invariant Hamiltonian H(1) =PiXi , which we can represent by W[1] = (X, 1 ); W[i]= 1 0 X 1 ;W[L]= ( 1 , X)T, (2.23) where implicitly the operators in W[i] act on site i . Note that by the same logic we can have site-dependent coecients for each operator term. To see that this indeed represents H(1) we can explicitly contract this MPO for L= 3 and obtain W[1]W[2]W[3] = (X1, 1 1) 1 20 X2 1 2( 1 3, X3)T = (X1, 1 1)( 1 2 1 3, X2 1 3+ 1 2X3)T =X1 1 2 1 3+ 1 1X2 1 3+ 1 1 1 2X3. (2.24) Similarily, for a nearest neighbor Hamiltonian H(2) =PiXiYi+1 we can construct it via W[i](2) =  1 0 0 Y0 0 0X0   (2.25) with W[1] and W[L] being the bottom row and left column, respectively. Formally, we can say that each site is described by W[i] , including sites 1 and L , but there are two dummy vectors (0, .., 0,1) and (1,0, ..)T on the left and right boundary, respectively. Introducing dierent nearest-neighbor terms amounts to inserting these elements in the left column and bottom row, i.e. for a Heisenberg model of the form H(3) =X i Jx iSx iSx i+1 +Jy iSy iSy i+1 +Jz iSz iSz i+1 −hiSz i (2.26) 4 A known exception is exponentially decaying interactions for which there is a compact representation [54]. 2.4. Density Matrix Renormalization Group algorithm 19 we obtain W[i](3) =       1 0 0 0 0 Sx0 0 0 0 Sy0 0 0 0 Sz0 0 0 0 −hiSzJx iSxJy iSyJz iSz 1 .       (2.27) If on the other hand we are interested in next-to-nearest interactions like in H(4) =PiXiYi+2 then we need to introduce an identity in the o-diagonal here: W[i](4) =    1 0 0 0 Y0 0 0 0 1 0 0 0 0 X 1     . (2.28) Note that just like MPS, the MPO description of an operator O is not unique. With these four examples we are able to construct all Hamiltonians with local terms, nearest-neighbor interactions and next-nearest-neighbor interactions. For a more formal description of the above recipes in terms of nite automata we refer to [55]. 2.4 Density Matrix Renormalization Group algorithm The Density Matrix Renomrmalization Group (DMRG) algorithm was originally proposed by White [32,33] and found tremendeous success in nding the ground states of local and gapped one dimensional quantum Hamiltonians. Here, we discuss its modern re-inretpretation in terms of matrix product states. We rst give an intuitive overview and then follow up with the mathematical details. The algorithm is based on the variational principle of minimizing the expected energy min |Ψ⟩⟨Ψ|H|Ψ⟩ ⟨Ψ|Ψ⟩ (2.29) for a trial matrix product state |Ψ⟩ and a matrix product operator H . We follow the approach in [42] and introduce a Lagrangian 20 Chapter 2. Introduction to Tensor Network methods for quantum many-body systems multiplier to dene the objective function O := ⟨Ψ|H|Ψ⟩−λ⟨Ψ|Ψ⟩ (2.30) that we want to minimize. Directly minimizing O is highly nonlinear and therefore practically impossible for realistic hyper parameters χ max and d . Instead, one solves the problem locally and sweeps through the system until convergence is reached. We start by xing all MPS parameters but those at site i . We can assume a mixed canonical form that can be obtained by the recipe given in section 2.2, such that Mσi is of arbitrary gauge and all remaining sites are left- or right orthogonal, accordingly. The extremum condition of setting the derivative of O with respect to the elements of Mσi to zero then yields the Eigenproblem H e M−λM= 0 (2.31) for the eective Hamiltonian H e (graphically illustrated in g. 2.4) for that site and vector M=M(σ′ i,a′ i−1,a′ i) . The size of the vector M is dχ2 max . In practice we use d=O(10) and χ max = O(10 −1000) and are therefore suitable for nummerical solvers like Lanczos that yield the lowest algebraic Eigenvalue and Eigenvector. The idea of DMRG is then to sweep through the system, iteratively optimizing the tensor at each bond locally, while all other tensors are xed, until some overall convergence criterion is reached. There are a lot of tricks that help speed up this procedure which we elaborate on in the mathematical details below. Mathematical details and Python implementation This subsection is dedicated to understanding DMRG in detail and providing a Python implementation. The full code can be found in [53]. 2.4. Density Matrix Renormalization Group algorithm 21 Figure 2.4: Graphical representation of the eective Hamiltonian (H e )(σi,ai−1,ai),(σ′ i,a′ i−1,a′ i) at site i consisting of the local MPO element, the left environment L and right environment R . The Eigenproblem in eq. (2.31) is nding the Eigenvector M(σ′ i,a′ i−1,a′ i) corresponding to the smallest Eigenvalue of H e . Let us start by formally dening the left- and right-environments in an MPS-MPO-MPS contraction Lai−1,a′ i−1 bi−1=X aℓ,bℓ,a′ ℓ ℓ≤i−2 i−1 Y ℓ=1  X σℓ,σ′ ℓ Uσℓ∗ aℓ−1,aℓWσℓ,σ′ ℓ bℓ−1,bℓUσ′ ℓ a′ ℓ−1,a′ ℓ  (2.32) Rai,a′ i bi=X aℓ,bℓ,a′ ℓ ℓ≥i+1 L Y ℓ=i+1  X σℓ,σ′ ℓ (V†)σℓ∗ aℓ−1,aℓWσℓ,σ′ ℓ bℓ−1,bℓ(V†)σ′ ℓ a′ ℓ−1,a′ ℓ . (2.33) A more comprehensive illustration of this denition is given in g. 2.4. With this denition we can write the Hamiltonian term of O , eq. (2.30), as ⟨Ψ|H|Ψ⟩=Lai−1,a′ i−1 bi−1Mσ′ i a′ i−1,a′ iWσi,σ′ i bi−1,biMσi∗ ai−1,aiRai,a′ i bi, (2.34) where the brakets are solely for highlighting the central block at site i , and where we use Einstein convention of implicitly summing over all double indices. Now dierentiating with respect 22 Chapter 2. Introduction to Tensor Network methods for quantum many-body systems to Mσi∗ ai−1,ai simply removes this term and, accordingly, the summation over its incides. We reinterpret the remaining term as ∂⟨Ψ|H|Ψ⟩ ∂Mσi∗ ai−1,ai = (H e )(σi,ai−1,ai),(σ′ i,a′ i−1,a′ i)M(σ′ i,a′ i−1,a′ i) (2.35) with the denition of H e graphically in g. 2.4. The norm term in eq. (2.30) is simply ⟨Ψ|Ψ⟩=Mσi ai−1,aiMσi∗ ai−1,ai, (2.36) again with Einstein convention, due to the mixed canonical form. The derivative simply removes the tensor and summations again and together with eq. (2.35) we arrive at eq. (2.31). We can implement this local site update in terms of the following (incomplete) code. The rst denition is the local update routine, which is part of a DMRG object that we specify in more detail later. The second denition is just the eective Hamiltonian from the MPO. Note that this implementation is not very ecient as it explicitly constructs the matrix heffmat . More eciently, but more cumbersome, would be to give the H_eff object instructions on how to multiply vectors with the matrix, which in the numpy / scipy ecosystem can be done using a private _matvec() method. 1 import scipy.sparse.linalg.eigen.arpack as arp 2 def site_update(self,i): 3 ''' 4 Solves the Eigenvalue problem H_eff v = E v 5 6 Returns updated matrix M 7 ''' 8 LP = self.LPs[i] 9 RP = self.RPs[i] 10 W = self.MPO.Ws[i] 11 heff = H_eff(LP,RP,W) 12 heffmat = heff.Heff_mat 13 Mshape_ = self.MPS.Thetas[i].shape 14 vguess = self.MPS.Thetas[i].reshape(np.prod(Mshape_)) 15 e, v = arp.eigsh(heffmat , k=1, which='SA', return_eigenvectors=True , v0=vguess) 16 M = v[:,0].reshape(Mshape_) 17 return M , e[0] 18 19 2.4. Density Matrix Renormalization Group algorithm 23 20 class H_eff(object): 21 ''' 22 effective Hamiltonian of the contracted right - and left part 23 .--a_l -1 a_l --. 24 | s_l | 25 | | | 26 LP--b_l-1--W--b_l--RP 27 | | | 28 | s'_l | 29 .--a'_l a'_l--. 30 input:: 31 LP[a_l-1,b_l-1,a'_l-1] 32 RP[a_l,b_l,a'_l] 33 W[b_l-1, b_l, s_l, s'_l] 34 output:: 35 H[(a_l -1, s_l, a_l),(a'_l-1, s'_l, a'_l)] 36 ''' 37 def __init__(self ,LP,RP,W): 38 self.RP = RP 39 self.LP = LP 40 self.W = W 41 chiL1 ,chiLw ,chiLd = LP.shape 42 chiR1 ,chiRw ,chiRd = RP.shape 43 chiLw , chiRw , d, dd = W.shape 44 self.Heff = self.init_Heff() 45 self.Heff_mat = self.Heff.reshape(chiL1*chiR1*d, dd*chiL1*chiR1) 46 47 def init_Heff(self): 48 '''return the ndim=6 tensor that is H_eff[a_l -1,a'_l-1, s_l, s'_l, a_l,a'_l] 49 ''' 50 temp = np.tensordot(self.W,self.RP,axes=([1],[1])) 51 temp = np.tensordot(self.LP,temp ,axes=([1],[0])) 52 # has indeces: 53 # [a_l-1, a'_l-1, s_l, s'_l, a_l, a'_l] 54 # want indices: 55 # [a_l-1, s_l, a_l, a'_l-1, s'_l, a'_l] 56 # therefore permute 57 return np.transpose(temp ,(0,2,4,1,3,5)) To maintain the mixed canonical form, we normalize the resulting tensor. When sweeping from left to right, we can use the following function, and similarily when going from right to left (for more details see [53]). It is performing a SVD and then only keeping the χ max singular values (or less in case all eigenvalues are smaller than the given threshold eps ). 24 Chapter 2. Introduction to Tensor Network methods for quantum many-body systems 1 from scipy.linalg import svd 2 def left_norm(M,eps,chi_max=None): 3 chiL , d, chiR = M.shape 4 Psi = M.reshape(chiL*d,chiR) 5 U,S,Vh = svd(Psi,full_matrices=False) 6 nonzeros = S>eps 7 if chi_max is None: 8 chi_max = min(chiL*d,chiR) 9 newchi = min(chi_max ,np.sum(nonzeros)) 10 if newchi == 0: 11 newchi = 1 12 Ut, St, Vht = U[:,:newchi],S[:newchi],Vh[:newchi ,:] 13 St = St / np.linalg.norm(St) 14 newU = Ut.reshape(chiL ,d,newchi) 15 return newU ,St,Vht With this we have everything we need for our full DMRG sweep routine. It is ecient to keep track of the left and right environments for every site and simply build them from the previous step. I.e., after updating site i , we can contract L(i) 5 with the newly obtained tensor and MPO element of site i , to build L(i+ 1) . The same is true going from right to left. Note that in the very beginning, we need to initialize all right environments for the trial state. 1 class DMRG(object): 2 ''' 3 Abstract DMRG engine class 4 5 attributes: 6 MPS*: the current MPS 7 MPO: the model MPO 8 RPs*: list of right environments 9 LPs*: list of left environments 10 (*): get regular updates 11 12 Parameters: 13 MPS: object , matrix product state 14 MPO: object , matrix product operator 15 eps: float , epsilon determining the threshold of which singular values to keep , standard set to 10^-10 16 chi_max: int, maximal bond dimension of system 17 18 19 ''' 20 def __init__(self , MPS, MPO, chi_max , eps=1e-10): 5 the left environment at site i , i.e. excluding site i itself. 2.4. Density Matrix Renormalization Group algorithm 25 21 MPS.right_normalize() 22 self.MPS = MPS 23 self.MPO = MPO 24 self.L = self.MPS.L 25 self.eps = eps 26 self.chi_max = chi_max 27 28 ### initialize right - and left parts 29 # create empty list of correct size 30 self.LPs = [None] * self.L 31 self.RPs = [None] * self.L 32 # LP can stay empty except for dummy one 33 self.LPs[0] = np.ones((1,1,1)) 34 self.RPs[-1] = np.ones((1,1,1)) 35 # when starting from left to right (default) 36 # we need to initialize all the RPs once 37 for iin range(self.L - 1,0,-1): 38 # from L-1 to 1 39 self.RPs[i-1] = self.next_RP(i) 40 41 def site_update(self,i): 42 ''' 43 Solves the Eigenvalue problem H_eff v = E v 44 45 Returns updated matrix M 46 ''' 47 LP = self.LPs[i] 48 RP = self.RPs[i] 49 W = self.MPO.Ws[i] 50 heff = H_eff(LP,RP,W) 51 heffmat = heff.Heff_mat 52 Mshape_ = self.MPS.Ms[i].shape 53 vguess = self.MPS.Ms[i].reshape(np.prod(Mshape_)) 54 e, v = arp.eigsh(heffmat , k=1, which='SA', return_eigenvectors=True , v0=vguess) 55 M = v[:,0].reshape(Mshape_) 56 return M , e[0] 57 58 def left_to_right(self): 59 ''' 60 Runs through the MPS from left to right 61 ''' 62 eps = self.eps 63 chi_max = self.chi_max 64 65 for iin range(self.L): 66 M = self.MPS.Ms[i] 67 # update to new M 68 M,e = self.site_update(i) 26 Chapter 2. Introduction to Tensor Network methods for quantum many-body systems 69 ### ..AA[M']BB.. 70 # left_normalize to A 71 A,S,V = left_norm(M,eps,test=self.test) 72 # update Ms 73 self.MPS.Ms[i] = A 74 ### ..AA[A](SVB)B.. 75 if i < self.L - 1: 76 ### ..AA[A](B'=SVB)B.. 77 SV = np.tensordot(np.diag(S),V,1) 78 self.MPS.Ms[i+1] = np.tensordot(SV,self.MPS.Ms[i+1],1) 79 self.LPs[i+1] = self.next_LP(i) 80 81 def next_LP(self ,i): 82 ''' 83 short version: LP[i] |-> LP[i+1] 84 85 extend LP from site i to the next site i+1 86 .------a_j-1----M[j]--a_j 87 | | 88 LP[j]--b_j-1----W[j]--b_j 89 | | 90 .-----a'_j-1---M*[j]--a'_j 91 92 result: np.array[ndim=3] # a_i b_i a'_i 93 ''' 94 F = self.LPs[i] 95 96 F = np.tensordot(F,self.MPS.Ms[i],axes=[2,0]) 97 F = np.tensordot(self.MPO.Ws[i],F,axes=([2,0],[2,1])) 98 F = np.tensordot(self.MPS.Ms[i].conj(),F,axes=([0,1],[2,1])) 99 return F 2.5 Other algorithms innite DMRG (iDMRG) We can extend DMRG to the thermodynamic limit (iDMRG) in terms of innite matrix product states (iMPS). Such iMPS are almost identical in structure to their nite counterparts described in section 2.2. The main dierence is that we assume translational invariance and that the system is described by an innitely repeating unit cell of size L∞ . So an iMPS is also described by a nite set of rank 3 tensors Γσi and singular values Λ[i] , that are 2.5. Other algorithms 27 in canonical form like in eq. (2.9). This allows for ecient calculation of local expectation values in terms of the central tensor ⟨Ψ|O|Ψ⟩= tr  X σi˜σi Θσi†Oσi˜σiΘ˜σi , (2.37) exactly the same way as for the nite case as illustrated in g. 2.2. Here, the index i indicates the position within the unit cell rather than the absolute position of an innite system. With an iMPS we can calculate the correlation functions of arbitrary distances. For distances within the unit cell i, j ≤L∞ , it is just the explicit contraction between sites i and j . Furthermore, we can compute correlation functions for distances beyond the unit cell, and even for arbitrary distances at the same cost. This can be done by denining the transfer matrix 6 EO for some operator O (that can be identity) in terms of E[i] O=X σi,σ′ i Uσi†Oσi,σ′ iUσ′ i (2.38) that has open virtual indices ai−1, ai and a′ i−1, ai as illustrated in g. 2.5 a). Here we assumed left-orthonormal regrouping in terms of Uσi= Λ[i−1]Γσi . Correlation functions like ⟨Ψ|OiOj|Ψ⟩ can then be evaluated by exponentiating the transfer matrix by the distance between unit cells, as illustrated in g. 2.5 b), which on the other hand can be done by diagonalizing it. But how do we obtain such ground states in the thermodynamic limit? The iDMRG algorithm that we use in this thesis is given by [56]. On a rst glance, it may appear similar to the traditional DMRG algorithm by White [32,33] in that a small system is grown by adding sites in the center. However, there are important conceptual dierences. Most notably, we set up a recurrence relation in order to nd a xed point that is translationally invariant by construction. Furthermore, the algorithm proposed by McCulloch [56] has advantages in terms of convergence and stability in comparison to alternative formulations. For clarity and analogy to the original paper [56], we assume a two-site unit cell and note 6 The name transfer matrix is of historical origin and may be confusing since the object is clearly not a matrix (rank 2 tensor). 34 Chapter 2. Introduction to Tensor Network methods for quantum many-body systems Figure 2.9: The expectation value of an operator can be computed by contracting the sandwiched operator with the site's environment and dividing by its norm, which is the same contraction but without the operator. Simple and full update of a PEPS There is a multitude of algorithms to nd ground states for PEPS. We here want to focus on imaginary time evolution as described in the second part of section 2.5. The algorithm itself works in the analogous fashion, i.e. by trotterizing the evolution operator and applying 2-site gates locally. We can do this in an analogous fashion to MPS via SVD, as illustrated in g. 2.10. This is referred to as the simple update as it only involves the local tensors where the gate is applied. It was introduced in [60] though it shall be noted that here we present a slightly optimized version with the trick of separating virtual and physical indices before applying the gate. We can introduce a pseudo-canonical form in analogy to Vidal's form for MPS by explicitly separating singular values Λ and local tensors Γ . To obtain and maintain this form, we multiply the nal tensors in g. 2.10 by the inverses of the three untouched virtual bonds. This pseudo-canonical form does not fulll any orthonormality conditions and the singular values do not have a physical interpretation like the entanglement spectrum. However, we will later see that we can still make use of this quantity and infer physical properties via machine learning from them. The simple update scheme is insucient to capture the full physical picture as it does not yield an optimal state approximation of the state after application of the gate (and therefore loses information due to the xed and nite bond dimension D ). This is ultimately due to the lack of a canonical form that allowed 2.7. Area law 35 Figure 2.10: Simple Update: Applying a 2-site gate to a PEPS in analogous fashion to MPS. We start by separating the physical and virtual bonds by a rst SVD (a), such that we can apply the gate onto the physical parts (b). We then split the new tensor via SVD (c) and only keep the D largest singular values (d). Between c) and d) we multiplied U and V† to the left and right side, accordingly. for optimal local updates in MPS. To capture the full physical picture, one has to perform the full update [61] that takes into account the full wave function at each update, and is therefore more costly. The idea is to nd the best approximation |Ψ′⟩ after applying the gate g onto the state |Ψ⟩ by explicitly minimizing |||Ψ′⟩ − g|Ψ⟩||2=⟨Ψ′|Ψ′⟩−⟨Ψ′|g|Ψ⟩−⟨Ψ|g†|Ψ′⟩+⟨Ψ|g†g|Ψ⟩ . Especially for innite PEPS (iPEPS), the full update algorithm can be improved by incorporating corner transfer matrix methods and renormalization considerations via the fast full update algorithm [62]. 2.7 Area law The area law of entanglement for ground states of gapped and local Hamiltonians states that the entanglement scales with the surface area that a subsystem is occupying [29,30,31]. For a d euc - dimensional hyper lattice in euclidean real space with subsystem A being a hyper cube of volume Ld euc , we have S(ρA)∝Ld euc −1 . This is in contrast to general states in Hilbert space that follow a volume law of entanglement . This is of practical importance especially for states in 1D and 2D as S(ρ1D A) = const and S(ρ2D A)∝L , respectively. MPS and PEPS have been shown to be suitable Ansätze for ground state calculations of gapped and local Hamiltonians in [63,64]. One reason for this is the fact that they obey the area 36 Chapter 2. Introduction to Tensor Network methods for quantum many-body systems law. Let us see why by starting with MPS: Recall from eq. (2.15) in section 2.2 that S(ρA) = −PiΛ2 ilog(Λ2 i) where Λi are the singular values separating the chain. Since we x the maximal number of singular values by setting the bond dimension χ max we obtain S(ρA)≤log(χ max ) 11 . We can obtain the area law for PEPS by analogous reasoning. A subsystem of L2 is connected through 4L links that each can take up to bond dimension D values. Hence, the entanglement entropy for the PEPS is bounded by S(ρA)≤log(D4L)=4Llog(D)∝L , so it scales with the circumference L of subsystem A . If we relax the conditions and allow for gapless Hamiltonians the entanglement scaling changes to S(ρA)∝log(L) in 1D. This can be incorporated by utilizing the multi scale entanglement renormalization (MERA) Ansatz [65,66]. In practice, we can also use normal MPS and extrapolate in χ max , which is what we do for the critical superuid and supersolid phases we investigate in the main body of this thesis. 11 It is known that the von Neumann entropy is maximal for a uniform distribution, i.e. for Λ2 i= 1/χ max and hence max(S) = −Pilog(1/χ max )/χ max = log(χ max ) = const . 37 Chapter 3 Introduction to deep learning Deep learning is a subeld of machine learning in which articial neural networks (NNs) are used to perform tasks like computer vision, speech recognition or natural language processing by learning from data [67,68]. These tasks are typically part of the eld of articial intelligence (AI), which has seen a great boost with the development of deep learning. This success swapped over to the natural sciences, where on one hand many useful applications of deep learning have been found, and vice versa, methods and theories in natural sciences gave insights to the theory of deep learning [69]. Deep learning algorithms build on the success of learning algorithms like support vector machines [70] by following the same data-driven paradigm. For many tasks in AI like computer vision, it is notoriously hard to provide explicit instructions to differentiate images of, say, cats and dogs. In learning algorithms following the data-driven paradigm, one instead leverages many examples of labeled images (training data) to let a computer program learn to dierentiate them. In the case of deep learning we use general purpose functions in the form of articial neural networks. Learning then amounts to optimizing the free parameters of the NN by minimizing a loss function that quanties the dierence between the outputs and the true values (labels). The overall goal of deep learning is then to be able to generalize and correctly make predictions for inputs that have not been part of the training data. Note that the above actually describes the more specic task of supervised classication. On one hand, there are semi-supervised and unsupervised learning in addition to supervised learning. On 38 Chapter 3. Introduction to deep learning the other hand, there is a variety of other deep learning tasks in addition to classication problems. Among others, there is parameter estimation, where the continuous values of a function is learned or generative models for translation or text generation in natural language processing. However, all of these dierent subelds of deep learning follow a similar approach to supervised classication as stated above, which is why we use it as a representative of deep learning in the following and point out dierences when necessary. A typical deep learning procedure, exemplied here by the task of dierentiating cats and dogs, will consist of these four steps: 1. We assemble a training set consisting of example images x of various dierent cats and dogs, and a correct label y(x) for each image. 2. We build an articial neural network , that is a highly nonlinear function with trainable, free parameters ϕ . It maps the images x to y out (x) , where y out 1(x) = p( dog |x) and y out 2(x) = p( cat |x) aim to approximate the respective probabilities. So in terms of the labels, we have y(x) = (1,0) for an image of a dog and y(x) = (0,1) for a cat. 3. We have to dene a loss function that quanties the difference between the output distribution y out (x) and the labels y(x) . More generally, it describes our objective in a mathematically dierentiable function. Training then simply amounts to minimizing this loss function with respect to the free parameters of the neural network. 4. We then test our predictions on a test set , consisting of images that have not been used during training. Our goal is that the NN generalizes and makes accurate predictions beyond the training data. In the case of supervised classi- cation, additionally, the goal is not to have minimal loss for the test data, but high accuracy of predictions (which is related to the loss but not the same). 3.1 Deep learning basics In this section we will introduce the basic concepts of deep learning, hinted above, in more detail. We do so by explaining supervised classication as it covers the general concepts present in 3.1. Deep learning basics 39 most deep learning methods. Data sets We dierentiate between three datasets: 1. Training data: (labeled) data used during training. 2. Validation data: (labeled) data not used during training, but typically from the same source as the training data. I.e. by splitting a random fraction o the training data. 3. Test data: labeled or unlabeled data not used during training and ideally from a dierent source. As an example we take the MNIST handwritten digits dataset as training data [71]. This is a professionally curated set by the US national institute of standards and technology consisting of 10k examples for each digit {0, .., 9} , respectively. Now we take a fraction, say, 9/10 as our training data and 1/10 for validation. Images of digits written by ourselves could then for example serve as a test data set. To dierentiate between test and validation set like this is not standard in literature, but will be used for the remainder of this chapter. We will use physical data from numerical simulations in the main body of the text and thus do not have access to a third party source, such that the notion will be ambiguous again in the other chapters. Articial neurons Articial neural networks (NNs) are composed of dierent layers with trainable parameters. One core building block of NNs is a fully connected layer made up of articial neurons. Here, all articial neurons at layer k−1 send a signal to each articial neuron at layer k , as illustrated in g. 3.1. This is in analogy to how the human brain connects neurons that re electrical signals. Let us look at the k -th layer of a fully connected neural network. Mathematically, the output y(k) of each layer is computed by y(k) i=f act  X j ω(k) ij y(k−1) j−b(k) i  (3.1) 40 Chapter 3. Introduction to deep learning Figure 3.1: Articial neural network composed of articial neurons, symbolized by orange circles. The output of each articial neuron is computed by eq. (3.1), the weighted sum of the outputs of the previous layer, subtracted by a local bias and processed through an activation function. where y(k−1) is the output from the previous layer and y(0) =x is the input and y(n)=y out (x) the output. So an articial neuron computes a weighted sum subtracted by a neuron-specic bias. These weights ω(k) and biases b(k) are free parameters and subject to optimization (training) to achieve a certain task. Note that this reduces to a linear transformation of the inputs. In order to gain an advantage in expressibility by connecting multiple consecutive layers, one introduces a non-linear activation function f act (·) at each layer, whose functional form depends on the task. In this work, we mainly use the so-called rectied linear unit function ReLU x= (0 if x≤0; x if x≥0) or tanh(x) . In classi- cation tasks one aims to approximate a probability distribution. Therefore, one typically uses a softmax function σ with elements σi(x) = exi Pjexj (3.2) on each neuron as the activation function on the nal layer. This guarantees all outputs to be y(n) i∈[0,1] in order to mimic the behavior of a probability distribution. Loss function In supervised classication tasks we want the network to approximate a probability distribution for a list of classes. So for example when there are N classes classes, we want the network to output y label = (1,0,···) if the input image x was of the rst class. In order to achieve this task, we dene a loss function that 3.1. Deep learning basics 41 captures the success of this endeavor. For classication, where we try to approximate probability distributions, it is natural to use the KullbackLeibler divergence D KL (y label ||y out ) = X i y label ilog y label i y out i that quanties the distance between the true distribution y label and the NN output y out . Later we want to minimize this function summed over all training examples with respect to the NN paramters ϕ= (ω, b) . Since only y out depends on these paramters one typically looks at the cross entropy H(y label , y out ) = −X i y label ilog y out i (3.3) instead. The loss function for our classication task is then L=X xH(y label (x), y out (x)) (3.4) for all training examples x . Because y label i= 1 only for the correct label and zero otherwise, we note that this amounts to minimum likelihood estimation for the negative log likelihood −Pxlog(p(x)) . This is the loss that is typically minimized in generative models where we try to model the probability distribution from which a dataset is generated in order to generate new samples. Training Training then comes down to minimizing this loss function with respect to the trainable parameters ϕ= (ω, b) of the network layers. This high-dimensional optimization problem can be tackled with Gradient Descent, where the parameters are iteratively shifted in the direction of the negative gradient, i.e. ϕ→ϕ−α∇ϕL, (3.5) where α is the so-called learning rate and a hyper-parameter. While this is the foundation of the general optimization strategy, 42 Chapter 3. Introduction to deep learning there are several improvements that allow for adapting the learning rate during training. These are typically based on momentum , which is a method that takes into account the speed at which the optimizer has moved through the loss landscape in previous steps. Another point is to speed up the evaluations and introduce stochasticity by drawing random samples from the training set instead of optimizing over all of them at each evaluation. The latest and most widespread version of momentum based stochastic gradient-descent optimization strategies is ADAM [72], which we will use in the main body of this thesis. Since y out (x) is a chain of linear transformations followed by an activation function, one can calculate ∇ϕL via the chain rule knowing all the derivatives of the activation functions. The resulting formulas are nested in the sense that the derivatives depend on the derivatives of the next layer, i.e. δn=∇y out L⊙f′ act (zn) (3.6) δk= ((ω(k+1))Tδk+1)⊙f′ act (zk) (3.7) ∂L ∂b(k) i =δk i (3.8) ∂L ∂ω(k) ij =y(k−1) jδk i (3.9) where ⊙ is element-wise multiplication and f′ indicates the derivative. zk=ω(k)yk−1−b is the output of the k -th layer before the activation. For a pedagogical derivation of the backpropagation formulas (3.6) - (3.9) we refer to [68]. So overall we can compute the derivative for all parameters of the network by passing through the network from the end to the start, which is why this procedure is referred to as the backpropagation algorithm [73]. Modern machine learning libraries can automatically compute derivatives with backpropagation by keeping track of the forward pass that needs to be composed of functions whose derivative is known to the program. This makes prototyping new models as easy as putting together Lego TM blocks, which signicantly helps to accelerate deep learning research. 3.1. Deep learning basics 43 Figure 3.2: One dimensional convolution (a,b) and pooling (c). a) Input x in of size = 5 (orange) with a singular channel (horizontal dimension), n_ch = 1 , and zero-padding pad = 2 (yellow). The lter w1 (purple) of dim = 3 (the number of channels of the lter always matches that of the input) is convoluted over the input by summing the elementwise multiplication with parts of the input. These parts are placed on the input with stride = 2 , such that the output has dimension 4 = (size - dim + 2 pad)/stride + 1 . b) Input x in of size = 5 and n_ch = 2 . Two lter w1 and w2 ( n_filters=2 ), each of dim = 3 . Now with stride = 1 and pad = 1 , the output has dimension (5,2) , just like the input. Note that each lter generates one output channel. c) Taking the output of b), applying ReLU (x) = {x if x≥0; else 0} and then max-pooling with pool_size = 3 , stride = 1 and pad = 0 , resulting in a spatial dimension 3 = (size - pool_size + 2 pad)/stride + 1 . Convolutional layers Another core building block of NNs for Deep Learning are convolutional layers. These layers are particularily well-suited for feature extraction in images. A convolutional layer consists of three steps: 1) , a number of lters are convoluted with the input, where the lter values are trainable parameters and the number and size of the lters are hyper-parameters provided by the user. 2) The second step is a non-linear activation function , where we again mostly use the ReLU function. 3) In the last step, the dimensionality may be reduced by pooling (optional). Let us explain in more detail what is meant by convolving an input with a lter. This is best explained by means of an example, illustrated in g. 3.2 for 1 dimensional convolution. In case a), we have an input x of size = 5 in a single channel ( n_ch = 1 ), zero-padding of pad = 2 , we move the lter by a stride = 2 and we 50 Chapter 3. Introduction to deep learning sequences due to its sequential nature, which we advertised as one of the big advantages of these models, is at the same time its biggest drawback. This is because modern CPUs and GPUs have stagnated in terms of processing frequencies and the biggest speed-ups can be achieved through parallelizing computation. Due to the sequential nature of the processing in seq2seq models, this hinders training of very large datasets. The current state of the art in natural language processing is provided by transformer models which circumvent this problem and allow for parallel processing. This comes at the cost of not being able to input arbitrary sized sequences. However, the trick is to pad each input sequence with special tokens 0 to achieve the same, potentially large, input size. Because the processing in a transformer is relatively light as it uses a lot of parameter sharing, we can allow for very large (xed) input lengths and therefore restore this exibility in practice 1 . The transformer model relies almost entirely on the previously described attention mechanism, hence the snappy title "Attention Is All You Need" of the original article [22]. It is still a seq2seq model in the sense that it consists of an encoder and a decoder. The encoder performs self-attention , that is, it relates all embeddings of the input sequence with each other and outputs the attention vectors. We can process all embeddings of the input sequence at once, which amounts to simple matrix multiplications of Me= (e0,e1,···) (3.15) with itself to generate the scores. After applying a softmax rowwise for normalizing the weights, we can perform another matrix multiplication to achieve the weighted sums of the attention mechanism. Typically, inputs take on dierent roles as query Q , value V and key K in this process, which includes a trainable mapping, e.g. Q=Q(Me) . The resulting output is then simply Attention (Me) = softmax QKTV, (3.16) where Q , K , and V are all results of the input embeddings Me . Optionally the weights are rescaled before softmax is applied [22]. At the decoder, the inputs are processed in the same fashion with self-attention. However, to avoid future-inference at time t from 1 For very large inputs this remains a problem. 3.3. Modern deep learning architectures 51 time τ > t , masking is utilized, which is a process that sets all future tokens to be ignored (typically with a special token 0 ). The decoder hidden states are then attended by the encoder outputs in the same fashion as described before between encoder and decoder. Architectural details may vary from model to model. The original paper additionally uses feed-forward neural networks at the end of the encoder and decoder [22]. For translation or prediction tasks, we want to output probability vectors, so we need to apply a softmax function to the last layer. Another detail we have left out so far is the addition of a positional encoding to the input embeddings. That is, adding a xed (but potentially trainable) vector depending on the position in the sequence to the embeddings to restore (or rather mimic) a sense of sequential ordering. All the processing in the encoder and decoder are parallelizable and fairly simple being almost exclusively matrix multiplications. This enables processing of very large datasets, which on the other hand allow for surprisingly realistic text generation or translation with large transformer models [81,82]. 53 Chapter 4 Introduction to variational quantum algorithms Quantum computing has been a continuously developing eld ever since the breakthrough discovery of Shor's algorithm in 1994 [20]. Most quantum algorithms, like the ones discussed in the textbook by Nielsen and Chuang [83], require a fault tolerant quantum computer [84]. That is, a quantum computer whose elementary operations are executed with such low error rates, that the few errors that still occur can be corrected with quantum error correction. Beyond Shor's algorithm, such a quantum computer would allow general purpose quantum simulation algorithms like quantum phase estimation [85,83] or adiabatic quantum computation [86] to simulate practically relevant systems with the potential to enable unprecedented technological advancements [13,14,87]. Fault tolerant quantum computers, however, are for the moment out of reach, though there has been substantial progress in experimental quantum error correction [88,89]. To speed up these eorts and make practical quantum computers available, big industry players started investing in their own quantum computing programs, acquired full research labs from universities, as well as quantum startups forming and taking part in the academic research environment. This commercialization, in part fueled by what some argue to be a quantum hype [90], led to the availability of contemporary quantum computers in the cloud , that is, quantum computers in labs of the providing company that are operated remotely by researchers and customers around the world. Some, like a big part of IBM Quantum 's devices, are free to use for researchers. All these machines are inherently noisy and are therefore severely restricted in the gate count of operations that can be executed 54 Chapter 4. Introduction to variational quantum algorithms before the system decoheres or errors accumulate. Additionally, these machines are restricted in their overall size and connectivity, which is why the term noisy intermediate scale quantum (NISQ) devices was coined [91]. The aforementioned fault tolerant quantum algorithms are therefore not suitable for these machines. Instead, one typically performs variational quantum algorithms [92,93] on contemporary, noisy hardware. This approach shares similarities with the data-driven approach in training machine learning models, discussed in the previous chapter, in that a cost function is minimized to achieve a certain goal [94,95,96]. The typical approach is having a variational quantum circuit with trainable parameters θ prepare a variational quantum state |Ψ(θ)⟩ , and then a cost function which is the expectation value of some observable with respect to said state. One of the most natural algorithms in that setting is the variational quantum eigensolver (VQE) [97], where the cost function L=⟨Ψ(θ)|H|Ψ(θ)⟩ (4.1) is the expected energy and the goal is to approximate the ground state energy of the system. In this chapter, we introduce variational quantum circuits by exemplary going through the steps of VQE, which covers the essence of the majority of variational algorithms and will be important for the main body of this thesis. Like in deep learning, discussed in the previous chapter, it is not clear how to design such variational circuits a priori. One attempt to salvage this problem is an adaptive approach called ADAPT-VQE [98], that we discuss next. We further introduce the quantum approximate optimization algorithm (QAOA) [99] as a special case of VQE. We conclude by discussing the serious practical and fundamental restrictions of VQE in terms of scalability due to noise and Barren plateaus, the phenomenon of an exponentially vanishing gradient of the loss function [100,101]. 4.1 Variational quantum eigensolver The goal of the variational quantum eigensolver algorithm is to optimize a parametrized circuit V(θ) such that it minimizes the 4.1. Variational quantum eigensolver 55 expected energy E(θ) = ⟨0|V(θ)†HV (θ)|0⟩ (4.2) with respect to the variational state V(θ)|0⟩ . Note that since V(θ) is a unitary operation there is no need to explicitly normalize this expectation value. This formulation is very similar to DMRG that we discussed in chapter 2. This time, instead of using a classical approximation of the ground state as an Ansatz, we use a variational circuit that approximately prepares the ground state wavefunction on a quantum computer. For DMRG we could make use of the canonical form that allows for very ecient exact and local optimizations such that we iteratively sweep through the system to reach the global minimum. Here, we resort to gradient descent, which is typically used in machine learning as discussed in the previous chapter. However, we do not have direct access to the gradient since our wave function is encoded in physical qubits on a quantum computer. Yet, the gradient can be computed as an expectation value on the same device via the parameter shift rule [102,103]. Let us briey derive this. For simplicity, let V(θ) be a single qubit Pauli rotation Rx(θ) = exp(−iθσx/2) . The partial derivative then becomes ∂E ∂θ =∂ ∂θ ⟨0|R† x(θ)HRx(θ)|0⟩=i 2⟨0|R† x(θ)[σx, H]Rx(θ)|0⟩. (4.3) We can then use the general identity for Pauli operators and Hermitian H [102], [σx, H] = −iR† xπ 2HRxπ 2−R† x−π 2HRx−π 2, (4.4) to derive the parameter-shift rule for variational quantum circuits ∂E(θ) ∂θ =1 2Eθ+π 2−Eθ−π 2. (4.5) Since eq. (4.4) is valid for any pauli operator and Hermitian operator H , this can readily be extended to general variational circuits consisting of Pauli rotations. More generally, the parameter shift rule is valid for any parametrized unitary that is generated by a self-inverse operator (like Pauli matrices). Therefore, we obtain 56 Chapter 4. Introduction to variational quantum algorithms a rule for many possibilities of parametrized gates. Note that in the IBM machines that we employ later, the set of native gates only contains Pauli rotations as parametrized gates. The set of native gates is the universal (and potentially overcomplete) set of operations that the physical device can execute. They are universal in the sense that any unitary operation can be decomposed in terms of them [104]. One common example would be N=nRz, X, √X, CX , 1 o (4.6) with Rz(θ) = e−iθσz , X=σx , CX = 1 ⊗ |0⟩⟨0|+X⊗ |1⟩⟨1| (CNOT gate) and √X=1 21 + i1−i 1−i1 + i, (4.7) the square root of X in the sense that (√X)2=X . With Rz and √X we can build arbitrary single qubit rotation gates. For this, rst note that Y=√X†Z√X (4.8) and that exp(−iθn·σ) = cos(θ) 1 +isin(θ)n·σ for any unit vector n and σ = (σx, σy, σz) . Then it is straight forward to see that Ry(θ) = √X†Rz(θ)√X. (4.9) Another example for 2-qubit gates is decomposing a SWAP gate in terms of three CX gates SWAP 01 =    1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1     =    1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0         1 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0         1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0     = CX 01 CX 10 CX 01. So for a quantum computer with the native gate set N in eq. (4.6), 4.2. ADAPT-VQE 57 any parametrized circuit will ultimately be decomposed into rotations and xed gates such that we can estimate the gradient of E(θ) in 2n params evaluations of E . Computational overheads for contemporary quantum computers are still rather large, so this is often still too costly in practice. Alternatively, we can use stochastic methods to approximate the gradient like simultaneous perturbation stochastic approximation (SPSA) [105], which is less expensive in function evaluations. 4.2 ADAPT-VQE The composition of V(θ) restricts the search for the ground state to the manifold of states that can be reached with V(θ) . For DMRG it is known that MPS span the correct manifold of target states for ground states of gapped and local Hamiltonians. Similarily, in variational circuits there are problem inspired Ansatze, especially for quantum chemical Hamiltonians (see e.g. [93] for a review). Due to noise restrictions in physical quantum computers, it is often desired to use a minimal Ansatz. The Adaptive Derivative- Assembled Pseudo-Trotter Ansatz Variational Quantum Eigensolver (ADAPT-VQE) algorithm is a way to adaptively construct such an approximation to a minimal Ansatz [98]. Its original formulation was derived for quantum chemical methods, but we can formulate it for a general operator pool of which we want to construct our Ansatz. A unitary operator U is generally generated by a Hermitian operator H in the way that U= exp(−iθH) . Let us dene a nite operator pool P={Ui} consisting of parametrized unitary operators of this form. Imagine we already have an Ansatz Vℓ−1(θ) = Uℓ−1(θℓ−1)..U2(θ2)U1(θ1) (4.10) with optimized parameters θi . We use superscripts in U to indicate the ordering in V and subscripts to indicate the enumeration in the operator pool (which here is left unspecied). We now want to ask how much adding the i -th operator of the pool at the ℓ -th position, Uℓ i(θℓ) = exp(−iθℓHℓ) , would aect the expectation value ⟨0|V†HV |0⟩ . So we append Uℓ i(θℓ) to the left of V and compute the derivative around θℓ= 0 , for which V would stay unaected. This calculation is analogous to that of 58 Chapter 4. Introduction to variational quantum algorithms the parameter-shift rule and yields ∂⟨0|Vℓ†HV ℓ|0⟩ ∂θℓθℓ=0 =i⟨0|Vℓ−1†[Hℓ, H]Vℓ−1|0⟩. (4.11) So it is the expectation value of the commutator between the Hamiltonian and the generator of U with respect to the current trial state Vℓ−1|0⟩ 1 . We then compute eq. (4.11) for all U∈ P and pick the one with largest magnitude in order to grow our Ansatz to Vℓ . All parameters θ1, .., θℓ are then optimized again. This process is repeated until either a maximum number of gates is achieved or the absolute value of all derivatives are below a user-specied threshold. 4.3 QAOA We want to briey comment on the quantum approximate optimization algorithm (QAOA) [99], which is a special case of VQE. Here, the problem is of classical nature and encoded in the minimization of a spin Hamiltonian HP . A typical example is the maxcut problem for graphs [106]. These kind of problems can be solved with adiabatic quantum computing. That is, one prepares the system in the ground state of a simple Hamiltonian Hx=−Piσx , |+⟩⊗N and adiabatically evolves the state according to a time dependent Hamiltonian H(t) that interpolates between Hx and HP . According to the adiabatic theorem, the evolved state remains in the ground state of the system, as long as the gap of the Hamiltonian does not close and the evolution is slow . In practice, this is harder to do since the slow evolution requires long coherence times and applying many time evolution gates, since evolution on a digital quantum computer amounts to applying trotterized time evolution operators, just like in section 2.5. QAOA aims to approximate this procedure by evolving according to HP and Hx in an alternating fashion V(t) = e−it1HPe−it2Hxe−it3HPe−it4Hx..., (4.12) 1 Note that since we evaluate at θℓ= 0 we obtain Vℓ−1 . It is the task of the following step to determine the nonzero value of θℓ . 4.4. Restrictions of VQE 59 where the the times t= (t1, t2, ..) are variational parameters that are optimized with respect to the objective function is the expectation value ⟨+|V†HPV|+⟩ . In that sense, QAOA is a special case of VQE with a problem inspired Ansatz circuit. 4.4 Restrictions of VQE Variational algorithms like VQE suer from serious limitations in scalability. On one hand, noisy hardware accumulates errors and does not allow for coherent application of many consecutive gates. This can in principle be counteracted with improved error rates, error mitigation and error correction. A more fundamental problem is the occurrence of barren plateaus that make training deep circuits on quantum computers with many qubits practically impossible [100]. This is because it has been shown that for generic variational circuits and Hamiltonians, the expectation value of the gradient is zero and its variance vanishes exponentially for any circuit of depth O( poly (N)) , where N is the number of qubits [101]. In the case of generic Ansätze, that is problem-independent circuits with no heuristic for initialization, only for shallow circuits with depth O(log(N)) and local cost functions is there a chance to be able to optimize the circuit. Further, it has been shown that gradient-free optimization does not salvage this problem [107]. And while other approaches promise trainability [108,109], the problem for large scale VQE simulations persists. Barren plateaus are not a problem for structured problems where good heuristics are known. Examples for this are QAOA as discussed above and ADAPT-VQE for quantum chemistry with the operator pool consisting of unitary coupled cluster operators. In both cases, physical insights give heuristics for structuring and initializing the Ansatz, which avoids barren plateaus and therefore allows trainability. However, poor scaling in molecule sizes pose serious limitations for VQE calculations of molecules of relevant sizes [110]. This ultimately means that variational algorithms are likely not scalable to system sizes that are beyond what is reachable with tensor network methods and serve more as a proof of principle [111]. While the latest estimates for practically relevant quantum computations like computational catalysis require O(1000) logical qubits [14], variational algorithms are still one of the only 66 Chapter 5. Deep Anomaly Detection for unsupervised phase discovery Here, AnomalyDetection (T) corresponds to training an autoencoder with the data from the training region T and outputting the loss phase diagram, i.e. the loss L for all x( λ) in the phase diagram D . Instructions like extract phase boundary are ambiguous as various dierent methods can be used to achieve this. One very simple example would be setting a xed threshold as a hyper parameter set by the user and classify the data according to the loss being above or below that threshold. Similarily, extract regions of high loss can for example be achieved by picking the maxima of the loss phase diagram and drawing circles of constant size around it. This is to say that there are general subroutines that execute these instructions, however, in the following thesis we will mainly do these steps by hand (or rather eye) due to the small number of phases and the 1D and 2D nature of most phase diagrams we look at. As is common in machine learning, the success of algorithm 1 will strongly depend on the quality of the data and how well suited the autoencoder architecture is. Finding a suitable architecture is typically a matter of trial and error, though we will nd that for most of our applications very simple architectures like purely dense, purely convolutional and mixed dense-convolutional autoencoders perform similarily. It shall also be noted that this is by far not the only possibility to map out phase diagrams in an unsupervised fashion. A very similar approach is presented in [116], where the authors train a neural network to predict physical parameters from the input. These predictions fail at and around phase transitions, which can then be used as an anomaly syndrome 3 to nd transition points. 3 The authors do not use dierent terminology, but the relation to anomaly detection discussed here is evident. Chapter 5. Deep Anomaly Detection for unsupervised phase discovery 67 Algorithm 1 Unsupervised mapping of phase diagram k= 0 Draw random training region T0⊂ D from phase diagram D result 0= Anomaly Detection (T0) Extract phase boundary from result 0 and append to list of boundaries while list of boundaries =∅ do k=k+ 1 Extract regions of high loss Ak i from previous result k−1 if ∄Ak i such that Ak i∩Sk−1 l=0 Tl=∅ then break end if Sort Ak i by maximal loss value in descending order Tk=Ak i for rst i that satises Ak i∩Sk−1 l=0 Tl=∅ result k= Anomaly Detection (Tk) Extract phase boundary from result 0 and append to list of boundaries end while return list of boundaries 69 Chapter 6 Discovering new features in the extended Bose Hubbard model In this chapter we will apply the aforementioned anomaly detection algorithm 1, discussed in chapter 5, to map out the phase diagram of the extended Bose Hubbard model. We will discover unexpected new features that we then thoroughly analyze. The content of this chapter is a unication of our publications entitled Unsupervised phase discovery with deep anomaly detection [1] and Supersolid-Superuid phase separation in the extended Bose- Hubbard model [2]. We elaborate on the importance of Bose Hubbard models in section 6.1 and summarize its physical properties in section 6.2. Anomaly detection is used to map out the phase diagram for various dierent quantities representing the ground states in sections 6.3 and 6.4. We nd new features in accordance with [117] and expand the results in the following aspects. In section 6.5, we perform a numerical analysis of the mechanical stability in terms of second derivatives of the energy and the Gibbs potential as a function of the density n , that leads to phase separation. In section 6.6, we investigate the spatial oscillations of the entanglement spectra for the homogeneous SF phase in the regime of parameters corresponding to the phase separation/phase coexistence. Here, all single-particle observables seem to be spatially homogeneous, while entanglement Rényi entropies and entanglement spectra exhibit oscillations. The spatial period of these oscillations, as well as the period of the Schmidt gap closing, is of the order of 10-20 lattice constants, i.e. has nothing to do with the periodicity of the CDW or SS, which is 2 lattice constants. 70 Chapter 6. Discovering new features in the extended Bose Hubbard model In section 6.7, we use Luttinger liquid theory to explain the presence of oscillations in the entanglement spectrum thus ruling out the possibility that these oscillations appear due to topological eects. Both in SF and SS phases, the excitation spectrum is governed by gapless linear phonons which make the Luttinger liquid description applicable and therefore allow predictions of the long-range behavior of the correlation functions. 6.1 Motivation Physical motivation Bosonic Hubbard models remain in the focus of interest in condensed matter and ultracold quantum matter physics since the seminal paper of Fisher et al. [118]. In recent years, considerable attention was devoted to extended/nonstandard Hubbard models (for a review cf. [119]). They are of fundamental interst as Extended Bose Hubbard models provide perhaps the simplest models that include beyond on-site interactions. They exhibit a plethora of quantum phases in 1D: Mott insulator (MI), Haldane insulator (HI), superuid (SF), supersolid (SS), and charge density wave (CDW). Furthermore, quantum simulators of these models and their variants are experimentally feasible in various platforms: ultracold atoms or molecules in optical lattices [120], systems of trapped ions, or Rydberg atoms. Machine learning motivation Compared to previous unsupervised attempts in [121,122,123,124,125], this method needs only one or few training iterations and has better generalization properties from employing deep neural networks [126,127]. This allows for ecient fully automatized phase discovery in the spirit of self-driving laboratories [128], where articial intelligence augments experimentation platforms to enable fully autonomous experimentation. Intuitively, the method explores the phase diagram until an abrupt change, an anomaly, is detected, singling out the presence of a phase transition. The intuition is similar to the approach introduced in [129], where the authors proposed to detect quantum phase transitions by looking at the overlap between neighbouring ground states in the phase diagram. Here, the machine is used to detect these anomalies. Moreover, as we explain next, it does it from scalable data. In principle, there are many possible choices as input data for training our method, including the full state vector. To improve 6.2. Bose Hubbard model 71 scalability and reach large system sizes, we propose to use quantities that arise naturally in the state description and do not require complete state information. For instance, we obtain ground states with tensor networks, from which we use the tensors themselves or the entanglement spectrum (ES) as input data. These quantities arise naturally from the state description without further processing and contain crucial information about the phase, like ES for example [130,131,132]. We stress, however, that the choice of preferred quantities to be used for ML may in general vary and depend on the simulation method. In fact, we show that our method also works well with physical data accessible in experiments such as low-order correlation functions. 6.2 Bose Hubbard model This work deals with the physics of the extended Bose Hubbard model in 1D and focuses on three of the most challenging and discussed phenomena of contemporary physics: supersolidity, phase separation, and entanglement. The extended Hubbard model in 1D has been studied extensively [133,134,135,136,137,138,139, 140,130,141] and with a focus on supersolidty for incommensurate llings [142,134,135,136]. The authors in [130] claimed to have found supersolidity for lling n= 1 without in-depth discussion. We later elaborate how this was a misconception and there is only a phase-separated region consisting of a supersolid and superuid part at this lling. The complete phase diagram of the model was described by Batrouni et al. (see [117] and references therein; our work expands the results of Ref. [133]). These authors studied the phase diagram of the one-dimensional bosonic Hubbard model with contact ( U ) and nearest-neighbor ( V ) interactions focusing on the gapped HI phase which is characterized by an exotic nonlocal order parameter. They used the Stochastic Green Function quantum Monte Carlo as well as the Density Matrix Renormalization Group (DMRG) algorithm to map out the phase diagram. Their main conclusions concern the existence of the HI at lling n= 1 , while the SS phase exists for a very wide range of parameters (including commensurate llings) and displays power-law decay in the one-body Green function. In addition, they found that at xed integer density, the system exhibits phase separation in the (U, V ) plane. 72 Chapter 6. Discovering new features in the extended Bose Hubbard model We apply the the density matrix renormalization group (DMRG) algorithm in terms of Tensor Networks, i.e. Matrix Product States (MPS), described in chapter 2, to study the ground-state properties of the extended Bose-Hubbard model, H=−tX ib† ibi+1 +b† i+1bi +U 2X i ni(ni−1) + VX i nini+1, (6.1) with nearest neighbour interaction on a one dimensional chain with L sites. Here, ni=b† ibi is the number operator for Bosons dened by [bi, b† j] = δij . The model is characterized by three energy scales: the nearest-neighbor tunneling amplitude t , onsite interactions of strength U , and nearest-neighbor interactions tuned by V . We set the energy scales in units of the tunneling coecient by setting t= 1 and continue with dimensionless quantities. Typically, we are interested in varying the on-site interaction U and nearest-neighbour interaction V . We explicitly enforce lling n:= Pi⟨ni⟩/L∞= 1 by employing U(1) symmetric tensors [143], which we implement using the open source library TeNPy [144]. We perform simulations both in a microcanonical ensemble (xed number N of particles) and a canonical ensemble (xed chemical potential µ and uctuating number of particles). One way to physically classify these phases is to look at the correlators C SF (i, j) = ⟨b† ibj⟩ (6.2) C DW (i, j) = ⟨δni(−1)|i−j|δnj⟩ (6.3) C HI (i, j) = ⟨δniexp  −iπ X i≤l≤j−1 δnl δnj⟩ (6.4) with δni=ni−¯n . C SF discriminates the Mott-insulating (MI) phase and the superuid (SF) phase, where it decays exponentially and with a power-law, respectively. The correlators for density-wave (DW) and Haldane-insulating (HI) phases decay to a constant value in the respective phases. More details about the characterization of the system can be found in [133]. The 6.2. Bose Hubbard model 73 0 1 2 3 4 5 V 0 2 4 6 8 U SF MI OSF 0.0 0.5 1.0 DW SS ODW HI OHI SF+ V U 0 2 4 6 8 0 1 2 3 4 5 0 1 2 3 4 5 Figure 6.1: Extended BH phase diagram with ve distinct phases obtained by the correlators eqs. (6.2) to (6.4). MI: Mott Insulator, SF: Super Fluid, SS: Super Solid, DW: Density Wave, HI: Haldane Insulator. The dashed lines indicate the transition points observed from diverging correlation lengths between MI-HI-DW and non-zero S:= maxk=0 Pj⟨nj⟩e−ikj/L 2 between SF and SF+SS. non-local string term in eq. (6.4) is characteristic of topological order, where the translational symmetry remains protected with a transition in the Luttinger liquid universality class from MI and gets broken with a transition in the Ising universality class to DW [141]. We visualize the phase diagram by computing O•=Pi,j C•(i, j)/L2 ∞ in g. 6.1 in the thermodynamic limit for a repeating unit cell of L∞= 64 sites with a maximum bond dimension χ max = 100 and assuming a maximum occupation number n max = 3 , which results in a local dimension d=n max + 1 = 4 . We use data from these states for the following machine learning analysis using deep anomaly detection. 74 Chapter 6. Discovering new features in the extended Bose Hubbard model 6.3 Machine Learning setup We perform deep anomaly detection to map out phase diagrams as described in chapter 5. I.e., for each ground state |ψ⟩ we take corresponding data x , such as its entanglement spectrum (ES), central tensors or low order correlation functions. That data has characteristic features that the autoencoder (AE) learns to encode into the latent variable z at the bottleneck [25], from which it is ideally able to reconstruct the original input. The loss L directly indicates the success of this endeavour, which we improve by employing symmetric shortcut connections (SSC, see g. 5.1), inspired from [145] to typical losses <5% . Now, the intuition is that, when confronted with data from unknown phases, the AE is unable to encode and decode x . This leads to a higher loss, from which we deduce that the states do not belong to the same phase as the ones used to train the AE. Deep learning architectures are known to generalize well [126, 127], such that it suces to train in a small region of the parameter space. Compared to known supervised deep learning methods this anomaly detection scheme does not rely on labeled data. We choose training data from one or several regions of the phase diagram, and ask how the loss of a test data point from any region of the phase diagram compares to the loss of these training points. This can be performed with no a priori knowledge and in a completely unsupervised manner. The computationally most expensive step is the training and with our method it has to be performed only once to map the whole phase diagram, as opposed to multiple trainings like in [121,122]. Furthermore, it does not require a full description of the physical states in contrast to [129], where full contraction is necessary. Thus, for higher dimensional systems, [129] is infeasible as contraction is known to be generally inecient for 2d tensor network states (commonly referred to as PEPS, see [45]). We will expand on this notion of using anomaly detection with PEPS data further in the next chapter, 7. The specic architecture in use consists of two 1d-convolutional encoding and decoding layers with SSCs (g. 5.1), implemented in TensorFlow [146]. To ensure the reproducibility of our results, we made the source code available under an open source license [147]. 6.4. Discovering new features using deep anomaly detection 75 Data Recall from chapter 2 that an MPS in canonical form [37] is written in terms of |Ψ⟩=X σ Γσ1Λ[1] ···Λ[i−1]ΓσiΛ[i]··· Λ[L−1]ΓσL|σ1. . . σi. . . σL⟩. (6.5) At site i , {Γσi} is a set of d matrices and Λ[i] the diagonal singular value matrix of a bipartition of the chain between site i and i+ 1 , i.e. the Schmidt values (see [42]). As input data x corresponding to the ground state |Ψ⟩ , we nd best results by using the entanglement spectra exp(−Λ[i]/2) , which are known to contain relevant information about quantum phase transitions [130]. We can also use the local tensors Θσi= Λ[i−1]ΓσiΛ[i] , from which all local observables can be computed and implicitly contain the entanglement spectra. We will use the tensor from the middle of the chain and refer to it as the central tensor Θ . Further, we also use low-order correlation functions like C SF in eq. (6.2) that are straight-forward to access in an experiment. 6.4 Discovering new features using deep anomaly detection We start by using the ES as our data. Assuming no a priori knowledge, we start by training with data points at the origin of the parameter space (U, V )∈[0,1.3]2 , which in our case accounts to training in SF. By testing with data points from the whole phase diagram we can clearly see the boundaries to all other phases from SF in g. 6.2. The BKT transition between SF and MI is matched by an abrupt rise in loss (g. 6.2, inset a)). In this particular case, we can already determine the dierent phases inside the anomalous region due to their dierent loss levels and the appearance of two valleys at the phase boundaries between MI, HI and SF (g. 6.2, inset b)). Physically, we can explain these valleys by the criticality of these Luttinger and Ising type transitions, which lead to a slowly decaying ES at the boundary, just like in the critical SF phase. It is not necessarily always the case that one can dierentiate the dierent phases inside the high-loss anomalous region. Thus, we propose picking homogeneous and high contrast anomalous 82 Chapter 6. Discovering new features in the extended Bose Hubbard model 0.80 0.82 0.84 0.86 0.88 0.90 0.92 n 0.0 0.1 0.2 0.3 0.4 0.5 1 SF PS 1) d = 6, max = 100, U = 0.5, V= 4.0 L = 101 L = 127 L = 201 L = 301 0.815 0.825 0.35 0.40 0.45 b) n 1022 × 1023 × 102 2.6 × 10 1 2.8 × 10 1 3 × 10 1 3.2 × 10 1 3.4 × 10 1 L a) n=0.834 1.05 1.10 1.15 1.20 1.25 1.30 1.35 1.40 n 3 2 1 0 1 1 PS SS 2) max = 400 L = 25 L = 51 L = 65 L = 101 0 1/101 1/25 1.20 1.27 1/L a) nc 0 50 100 0.00 2.55 i b) n = 1.17 ni Figure 6.7: Finite-size study of the inverse compressibility κ−1 , Eq. (6.6), as a function of the lling n for (U, V ) = (0.5,4) as in g. 6.6. Vanishing thermodynamic value of κ−1 eq. (6.6) signals instability towards phase separation. 1) SF-PS transition: The transition point is estimated at critical lling n SF-PS c= 0.815 dened as the position of the intersection of lines corresponding to dierent system sizes. In the phase-separated region, n > nc region, the value of the inverse compressibility κ−1 is lowered as the system size is increased (lines correspond to L= 101; 127; 201; 301 , from top to bottom) and vanishes in the thermodynamic limit. Inset (1a): example power-law decay of the inverse compressibility κ−1 as a function of system size L in the phaseseparated regime, n>nc Inset (1b): Zoom-in on the intersection. 2) PS-SS transition: Dependence of the inverse compressibility on lling n is scaled with the system size L leading to the estimated value for the critical density equal to n PS-SS c= 1.27 (Inset (2a)). Inset (2b): Example density in PS state close to the transition to SS. Note that in the solid part the average density n≈2.55/2 matches the critical lling n PS-SS c . 6.6. Spatial oscillations in SF phase 83 1.10 1.11 1.12 1.13 1.14 1.15 µ 0.8 0.9 1.0 1.1 1.2 1.3 n d = 6, max = 100, U = 0.5, V= 4.0 L = 65 L = 127 L = 201 L = 257 0 1/1271/257 0.817 0.930 1/L n b) µ = 1.1296 1 2 1 2 SF SS PS a) µ n Figure 6.8: Filling n versus chemical potential µ for nite chains of length L with OBC and no explicit U(1) symmetry. The apparent discontinuity at roughly µ≈1.13 signals spinodal decomposition for llings between n= 0.817 and 1.31 . Insets (a) Wider range in µ showing the extent of the SS phase, (b) Finite-size extrapolation for the lling values in the main plot at µ= 1.1296 to estimate the lower critical lling nc= 0.817 . larger average densities n > 1 if the nearest neighbor interaction is weak. Therefore, the reported eects go beyond the usual commensurate eects between lattice geometry and average density. 6.6 Spatial oscillations in SF phase For the homogeneous superuid at llings below the phase-separated phase, enhanced spatial oscillations appear in the entanglement spectrum (ES) and other observables (see gs. 6.10 to 6.13). These signatures are present in SF states for weak on-site interactions U over a broad range of V . Such oscillatory patterns were reported earlier in Ref. [130] at (U, V ) = (0.5,3) and n= 1 . However, for the superuid at integer llings, we observe the absence of oscillations in the thermodynamic limit such that they cannot be linked to a bulk feature of the given phase and must be related to nite-size eects, instead. We demonstrate this in g. 6.10, where we show the spatial period of the oscillatory patterns in the entanglement spectrum (examples thereof are visible in insets a) and b)) as a function of the system size, for which we 84 Chapter 6. Discovering new features in the extended Bose Hubbard model 0.5 1.0 1.5 2.0 2.5 3.0 µ 0.5 1.0 1.5 2.0 2.5 3.0 n V = 4 1) max = 100, d = 6 U = 0.50; L = 33 U = 0.67; L = 33 U = 0.83; L = 33 U = 1.00; L = 33 U = 1.17; L = 33 U = 1.33; L = 33 U = 1.50; L = 33 ; L = 65 ; L = 65 ; L = 65 ; L = 65 ; L = 65 ; L = 65 ; L = 65 ; L = 127 ; L = 127 ; L = 127 ; L = 127 ; L = 127 ; L = 127 ; L = 127 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 µ 0.50 0.75 1.00 1.25 1.50 1.75 2.00 2.25 n U = 0.5 2) V = 2; L = 33 V = 3; L = 33 V = 4; L = 33 V = 5; L = 33 ; L = 65 ; L = 65 ; L = 65 ; L = 65 ; L = 127 ; L = 127 ; L = 127 ; L = 127 Figure 6.9: Dependence of lling n on the chemical potential µ for dierent system sizes L and dierent values of U The phase separation is seen as a discontinuity in n(µ) . 1) Fixing V= 4 we alter U and see that beyond Uc≈1 the systems form a CDW, seen by the plateaus at lling n= 1 (lines are ordered in increasing order of U from the top line to the bottom one). 2) For smaller V , PS occurs at higher llings such that it is not present in the n= 1 phase diagram for small V anymore (lines are ordered in increasing order of U from the top lines to the bottom ones). 6.6. Spatial oscillations in SF phase 85 60 80 100 120 140 160 180 200 L 14 16 18 20 22 24 26 = (0.081 ± 0.005) L + (9.2 ± 0.6) 90 100 110 0.1 0.2 0.3 bonds b) L = 200 0 100 0.1 0.2 0.3 bonds c) L = 100 10 20 30 40 0.10 0.25 bonds a) L = 50 1 2 3 4 Figure 6.10: Spatial period Λ taken from the Entanglement spectrum (ES) at (U, V ) = (0.5,3) with OBC and χ max = 100 , d= 6 as a function of the system size L . This state was reported as SS in Ref. [130], but it is actually an SF. Further, the spatial oscillations vanish in the thermodynamic limit as the spatial period grows linearly in system size. However, we show that for incommensurate llings like in gs. 6.11 and 6.12 this kind of oscillations do survive in the thermodynamic limit. a,b) ES λsi for bonds at the center of a system of length L= 50 and L= 200 , respectively. c) ES for iDMRG simulation in the thermodynamic limit with a unit cell size L∞= 100 showing no spatial oscillations. 86 Chapter 6. Discovering new features in the extended Bose Hubbard model 40 45 50 55 60 65 0.0002 0.0001 0.0000 0.0001 Ssl L 1 1) OBC; n = 0.77, L = 104, max = 800, d = 6 40 45 50 55 60 65 bond i 0.1 0.2 0.3 si 2) 1 2 3 4 065 1 4.0 4.3 a) fit Figure 6.11: Entanglement properties of the superuid bulk for lling n= 0.77 and (U, V ) = (0.5,4) close to phase-separation. 1) Oscillatory sub-leading part S sl of the Rényi-2 entropy S2 in section 6.6. 2) The four largest squared Schmidt coecients λsi shown spatially along the bonds. The inset 1a) shows spatial frequencies from Fourier analysis of λsi . The extrapolation yields a spatial period Λ=4.3 in the thermodynamic limit. observe a linear increase, i.e. a vanishing frequency for L→ ∞ . This is in agreement with iDMRG simulations (thereby directly approximating the ground state in the thermodynamic limit), for which we do not nd oscillations at all. It shall also be noted that the system is in a superuid phase for these parameters, and not a supersolid phase as claimed in [130]. The commensurate scenario at n= 1 is in strong contrast to incommensurate llings, for which oscillations in the entanglement spectrum are a robust feature of the bulk. In the inset of g. 6.11 a), we display a nite-size extrapolation of the spatial period, which is extracted from the leading frequency in the Fourier transform of the oscillatory part of the entanglement spectrum (see g. 6.11 2))). Notably, Λ(1/L →0) ≈4.3 assumes a nite value in the thermodynamic limit. The oscillations of the entanglement spectrum cannot be detected by standard local observables and two-body correlations, but, interestingly, they appear prominently in non-local observables like the string-order correlator, for which the long-range power-law 6.6. Spatial oscillations in SF phase 87 0 1 2 Csl a) iDMRG; n = 0.65, max = 400, d = 6 0.0000 0.0001 Ssl +1.5569 b) 0 10 20 30 40 50 60 70 80 bond j 0.05 0.10 0.15 0.20 0.25 0.30 0.35 c) 1 2 3 4 Figure 6.12: a) Sub-leading part C sl containing the oscillatory part of the string-order correlator C HI eq. (6.4). b) Oscillatory part of the Rényi-2 entropy S2 . c) The spatial dependence of the four largest squared Schmidt coecients λ2 si on the bonds of the MPS. For all a),b) and c): The orange lines are guides to the eye with every third data point plotted to highlight the envelope. We highlight one line in cyan color in all three subplots as a guide to the eye, making it apparent that the period is the same in all three quantities. 88 Chapter 6. Discovering new features in the extended Bose Hubbard model 100101102 site j 10 5 10 4 10 3 10 2 10 1 = -0.29 < b 0 bj > = -0.93 | < n 0 dj > | = -1.23 | < b 0 bj > | = -2.10 < n 0 nj > Figure 6.13: Comparison of dierent common correlators for the same state as in g. 6.12 in the SF phase with oscillating ES. We denote the non-local string term as Π = exp −iπ P0≤l<j δnl with δnl= nl−n . We see that only the correlators with this string term show the oscillations matching the ES. The critical exponent α is obtained from linear tting the respective correlator in a double logarithmic scale (dotted lines in corresponding colors). decay is modulated by oscillations of the same frequency (c.f. g. 6.12 a)). In order to extract the oscillatory part of C sl we t it with a power-law decay C HI (i, j) = c/|i−j|αC sl and divide the correlator by the envelope c/|i−j|α to show the remaining oscillatory part. In contrast, common correlators without the non-local string term do not show this oscillatory behavior as depicted in g. 6.13. All of the correlators here decay algebraically, in particular the ones involving the non-local string term, indicating lack of long range trivial and topological order, but power-law correlations. The correlators with string term exhibit oscillations in the tails reminding us of the oscillations of the ES. A complementary way to resolve these spatial oscillations is given by the Rényi entropy Sα(ℓ) = −ln(Trρα(ℓ))/(1 −α), (6.7) accessible in experiments for the special case α= 2 . S2(ℓ) depends on the purity ρ2(ℓ) for a lattice block of size ℓ , which can be detected in the framework of trapped ions through quantum state tomography [155] or through direct measurement of the quantum purity [156]. 6.7. Luttinger liquid description 89 The asymptotic decay of the Rényi entropies Sα(ℓ) for critical systems is well-known [157,158] and given by Sα(ℓ) = α+ 1 α c 6bln (d[ℓ|L]) + Ssl +γ, (6.8) d[ℓ|L] = |L/π sin (πℓ/L)|. (6.9) The leading contribution to Sα(ℓ) is proportional to ln (d[ℓ|L]) and describes a universal scaling law with prefactor factor c called the central charge of the conformal eld theory (in a fermionic system, it is equal to the number of Fermi points). An additional factor b distinguishes the case of periodic ( b= 1 ) and open ( b= 2 ) boundary conditions and γ constitutes a non-universal constant. Subleading terms are denoted by Ssl and, in general, oscillate in space. The subtle oscillations of the entanglement spectrum are obviously carried over to the subleading terms of the Rényi entropies, which we present in gs. 6.11 and 6.12. We note that we observe the same properties for the homogeneous SS above the lling for phase separation. The main dierence is that for this SS, there is a spatial solid pattern in the density. Taking this into account, the remaining properties are the same as is shown in appendix A. Overall, the spatial oscillations in the entanglement spectrum, that can be uncovered by looking at the string order correlators or Rényi entropies, are a clear manifestation of a broken translational symmetry. This point is further strengthened by simulations with iDMRG: Upon choosing a suitable unit cell size, iDMRG can converge, as is the case in g. 6.12, and yields results in agreement with the bulk of nite size simulations. For unit cell sizes incommensurate with the spatial period, iDMRG has trouble converging. We show further details about this in appendix A. This feature distinguishes the superuid phase under investigation from the superuid phase at lling n= 1 . In the following, we convince ourselves that this phase is still well described by Luttinger liquid theory and shows the same critical nite-size scaling behavior. 6.7 Luttinger liquid description Long-range properties of gapless one-dimensional systems are well captured by the Luttinger liquid theory and are governed by the 90 Chapter 6. Discovering new features in the extended Bose Hubbard model 0.00 0.01 0.02 0.03 0.04 0.05 1/(L+1) 0.00 0.05 0.10 0.15 0.20 0.25 E a) p = -0.931 ± 0.006 p = -1.026 ± 0.002 p = -0.995 ± 0.001 0.00 0.01 0.02 0.03 0.04 0.05 1/L 1.0 1.2 1.4 1.6 c b) c = 0.996 ± 0.024 c = 0.988 ± 0.005 c = 1.001 ± 0.049 Figure 6.14: Critical scaling for a superuid and supersolid states with and without spatial oscillations. Solid blue lines: SF at (U, V ) = (0.5,4) with n= 0.62 and spatial oscillations. Dashed orange lines: SF at (U, V ) = (0.5,0.5) at integer lling without spatial oscillations. Dotted green lines: SS at (U, V ) = (0.5,4) with n= 1.333 and spatial oscillations. Despite very dierent spatial features, all states seem to be well described within the same eld theoretic description. a) Finite-size scaling of the level splitting ∆E=E1−E0 vanishing in the thermodynamic limit and yielding the critical exponent p from ∆E∝1/(L+ 1)p , roughly matching the expected p LL =−1 for a Luttinger liquid. b) Central charge c eq. (6.11) extrapolated to the thermodynamic limit c∞ from c=c∞+ const ./L matching the central charge c LL = 1 for a spinless Luttinger liquid. Luttinger parameter K . This theory is based on using an eective low-energy Hamiltonian and can be used to calculate the smallmomentum and long-range behavior of the correlation functions. The Luttinger theory, being an eective one, takes the Luttinger parameter as an input and an independent calculation is needed to relate the value of K to the microscopic parameters of the lattice model. In the following, we use two independent ways to calculate K , which is useful for the characterization of the system properties. Furthermore, it serves as a stringent test for the internal consistency of the numerics. We check various other quantities and compare them with known parameters for an SF without spatial oscillations. Within the Luttinger liquid description, the lowest-lying excitation spectrum is 6.7. Luttinger liquid description 91 considered to be linear in momentum k , i.e. E(k) = ℏkvs , where vs is the speed of sound. Furthermore, the speed of sound is related to the compressibility through mv2 s=n∂µ/∂n = (nκ)−1 [159]. In a nite-size (open boundary) system of size L , the minimum allowed value of the momentum is inversely proportional to the length of the wire, i.e. kmin =π/(L+ 1) . As a result, the excitation spectrum has a level splitting ∆E=πℏvs L+ 1 (6.10) which vanishes in the thermodynamic limit, L→ ∞ . We conrm this antiproportional scaling ∆E∝(L+1)p in g. 6.14(a) by a t of the critical exponent p=−0.931 ±0.006 , which is consistent with the expected value of p LL =−1 . We further extract the central charge c from the von Neumann entropy (Rényi entropy in the limit α→1 ) S1=c 6log(d[ℓ|L]) (6.11) for which we obtain an extrapolated value of c(L→ ∞)≈0.99 throughout the superuid phases, which is in perfect agreement with the predicted result c LL = 1 for a spinless Luttinger liquid (see g. 6.14 panel b)). To check the validity of eq. (6.10), we compute the speed of sound vs at four distinct points in parameter space (V, n)∈ {(4,0.6),(4,0.4),(0.5,1),(0.5,0.6)} with xed U= 0.5 and compare them with dynamical simulations. For this, we disturb the ground state at the middle of the chain |δΨ0⟩=b† L/2|Ψ0⟩ and compute its time evolution |Ψ(t)⟩= exp (−iτH)|δΨ0⟩ via trotterization (TEBD) [160,38]. We then compute the density distribution at each time step and substract the ground state density, ⟨δni⟩=⟨Ψ(τ)|ni|Ψ(τ)⟩ − ⟨Ψ0|ni|Ψ0⟩ . The resulting lightcones are displayed in g. 6.15 and match well the overlayed tted speed of sound from eq. (6.10) (in magenta). Further we compare these values of the speed of sound obtained via vs= 1/ℏπn2κK , incorporating the Luttinger parameter K from eq. (6.23) and the compressibility κ from eq. (6.6). We extrapolate results to the thermodynamic limit and nd a reasonable agreement within 18%,14%,1% and 9% , again for (V, n)∈ {(4,0.6),(4,0.4),(0.5,1),(0.5,0.6)} and xed U= 0.5 , respectively. This is a stringent test of the internal consistency of the 99 Chapter 7 Unsupervised mapping of phase diagrams of 2D systems from iPEPS via deep anomaly detection The following chapter is a taken over from our publication Unsupervised mapping of phase diagrams of 2D systems from in- nite projected entangled-pair states via deep anomaly detection [3] with slight modications to put it into context of this thesis. We are again applying algorithm 1, but this time look at data from two-dimensional systems. This necessitates substantially more complicated physical simulation algorithms and changes the data format. I.e. the singular values that arose naturally in previous simulations have a clear physical interpretation as the entanglement spectrum, whereas in 2D this is not the case. Here we show that singular values taken from 2D tensor networks still contain sucient information to map out the phase diagram. Curiously, we nd that training with one single example is sucient, which raises the question of the necessity of neural networks in the rst place. 7.1 Introduction With the introduction of a new data-driven computation paradigm, machine learning (ML) techniques have been very successful in performing recognition tasks and have had a big impact on industry and society. ML has been successfully applied to a variety 100 Chapter 7. Unsupervised mapping of phase diagrams of 2D systems from iPEPS via deep anomaly detection of physical problems, and vice versa, physics has inspired new directions to explore in understanding or improving ML techniques [69]. Among the most prominent and successful applications of ML in physics is the classication of phases in many body physics [123,172,173,174,122,124,125,175,176,177,178,179,180,132, 131,181,182,142,183]. Of particular interest are unsupervised methods that require no or little prior information for labeling [172,122,123,124,125,184]. In particular, phase diagrams have been mapped out in a completely unsupervised fashion with no prior physical knowledge from 1D tensor network data [1] and experimental data [5] via anomaly detection as described in algorithm 1. In this work, we extend the application of anomaly detection for phase characterization to 2D quantum many body systems with projected entangled-pair states (PEPS). PEPS have been introduced as an ecient ansatz for ground states for 2D Hamiltonians [44,185,186] and extended to simulate the thermodynamic limit with innite PEPS (iPEPS) [61]. Various methods to optimize the iPEPS tensors exist, including (fast-) full update imaginary time evolution algorithms [61,62] and energy minimization approaches [187,188,189]. Computationally cheaper alternatives were introduced with the simple update [37,60] and cluster update [190] algorithms that perform optimizations locally at the cost of numerical accuracy. Progress in the systematic study of continuous phase transitions has recently been achieved based on a nite correlation length scaling analysis [191,192,193]. The intention of the scheme presented in this work is not to improve numerical accuracy of determining phase boundaries, but to obtain a qualitative phase diagram with low computational cost and no physical a priori knowledge . The former, low computational cost, is achieved by employing the simple update optimization algorithm with contractions omitted throughout the whole process. Physical knowledge in this scheme is redundant as we resort to quantities obtained directly from the iPEPS wave function from simulations as inputs for the machine learning method; in this case singular values between bonds or reduced density matrices. In other words, we do not need to choose and compute suitable observables that contain sucient information about the phase boundaries for the machine learning processing. In 1D systems, the singular values between bonds have a clear physical interpretation, as they characterize the entanglement properties 7.1. Introduction 101 between the subsystems at each end of the bond. In 2D, however, there is no such interpretation and it is non-trivial to show that singular values at bonds are still sucient to determine phase boundaries. In the considered approach, phase boundaries are characterized without the need to know the order parameter or symmetry groups of the phases. In fact, in a scenario where we are given data from iPEPS to analyze, in principle we do not even need to know the Hamiltonian. In contrast to supervised methods, where at least a rough idea of the regions of dierent phases (and the number of separate phases) is needed for labeling a training set, we do not need to know anything about the phase diagram by using unsupervised anomaly detection. This is because in this scheme a region of the diagram is chosen to represent normal data and is then tested for the whole diagram. Initially, this normal region is chosen randomly and may contain states from one or multiple phases. When states from dierent phases than it has been trained on are tested, they are marked as anomalies. Between those states and the training region, there is a transition from normal to anomalous data that corresponds to the phase transition. In the next training iteration, the normal region is put where anomalies have been found in the previous round and the process repeated until no previously unseen anomalous region is found. This process only needs O(N phases ) iterations where N phases is the number of phases in the diagram. This is in contrast to learning by confusion schemes where the phase diagram is scanned by iteratively shifting the labeling and retraining [172,122]. In spirit, the approach presented here is similar to the method described in [194,195]. There, phase transitions are determined by looking at the overlap (delity) between neighboring ground states in the phase diagram, with a drop in the delity at quantum phase transitions as the overlap between states from dierent phases is small (zero) for nite (innite) system sizes. The big advantage of the approach presented here is that we avoid computationally expensive contractions of the tensor network, which, in contrast, is needed to compute overlaps. As an example, we examine the 2D frustrated bilayer Heisenberg model, a challenging problem which suers from the negative sign problem [196]. The model contains two 1st order and one 2nd order phase transition and is therefore a good benchmark for the success of this method. This manuscript is organized as follows: 102 Chapter 7. Unsupervised mapping of phase diagrams of 2D systems from iPEPS via deep anomaly detection The general approach of applying anomaly detection with neural networks to map out phase diagrams is described in section 7.2. Details on iPEPS are described in section 7.3 and a brief overview of the 2D frustrated bilayer Heisenberg model is given in section 7.4. The results are then presented in section 7.5, followed by our conclusions in section 7.6. 7.2 Anomaly Detection We follow the approach in described in the previous chapters 5 and 6, where it was shown that phase diagrams can be mapped out from dierent data types in an unsupervised fashion via anomaly detection . The scheme works in the following way: We employ a special neural network architecture, called an autoencoder, to e- ciently decode and encode data of the type it has been trained on (data specic compression). For the training 1 , we dene a training dataset containing normal data. The autoencoder is trained to eciently reproduce data with the same or similar characteristics. Anomalies are detected by deviations of a loss function between input and output of the autoencoder, compared to the region it has been trained on and amount to separate phases in the diagram. This training has to be performed only O(N phases ) times where N phases is the number of phases present in the phase diagram. Moreover, this procedure does not necessitate any prior physical knowledge about the system as one starts with an arbitrary parameter range, typically at the origin of the parameter space. From there, abrupt changes in the reproduction loss are saved as possible phase boundaries and the next training iteration is done in the region with the highest loss after the previous training. Note that in principle one does not even need to know the underlying Hamiltonian, it suces to be provided with data and the corresponding physical parameters. We employ autoencoder neural network architectures implemented with TensorFlow [146]. An autoencoder is composed of an encoder and a decoder. The encoder takes the input x and maps it to a latent space variable z . This latent space variable is then mapped by the decoder to the output y(x) . Both encoder and decoder are composed of multiple consecutive layers, parametrized 1 Training in machine learning refers to data-specic optimization. This is described in more detail below around eq. (7.1). 7.3. Innite projected entangled-pair states 103 by free parameters θ . We tried dierent architectures comprising dierent combinations of fully-connected and convolutional layers. We nd no specic model dependence, with dierent architectures performing similarly such that simple vanilla autoencoders composed solely of fully-connected layers suce and are used throughout this paper. For details about the implementation see [197]. The goal of the autoencoder is to reproduce x , i.e. matching the output of the network with its input y(x) = x , which is achieved by minimizing the reproduction loss L(θ) = X i||xi−yi(xi)||2 (7.1) with respect to the free parameters θ ( y(x) implicitly depends on θ ). The sum reaches over the training examples dened for the training iteration. Here we have chosen the loss to be the mean squared error as it is simple and eective for our task, but in principle there is a variety of possible and valid loss functions depending on the task and data at hand. The optimization task of minimizing L is achieved by gradient descent θ7→ θ−α∇θL(θ) , i.e. computing the gradient of L and changing the free parameters in the opposite direction for some stepsize α (hyper parameter given by the user). For neural networks, there is an e- cient implementation called backpropagation [198]. We employ ADAM , a modern optimization scheme with adaptive stepsizes based on gradient descent with backpropagation for faster optimization [72]. 7.3 Innite projected entangled-pair states An iPEPS [61] is a tensor network ansatz to represent 2D ground states directly in the thermodynamic limit and can be seen as a generalization of 1D innite matrix product states (iMPS) to 2D. The ansatz consists of a unit cell of rank-5 tensors repeated periodically on a lattice. Here we use a unit cell with two tensors arranged in a checkerboard pattern on a square lattice, with one tensor per dimer in the bilayer model introduced in Sec. 7.4. Each tensor has one physical index representing the local Hilbert space of a dimer and four auxiliary indices, which connect to the four nearest-neighbor tensors. The accuracy of the variational ansatz 104 Chapter 7. Unsupervised mapping of phase diagrams of 2D systems from iPEPS via deep anomaly detection is systematically controlled by the bond dimension D of the auxiliary indices. To improve the eciency of the calculation we use tensors which exploit the U(1) symmetry of the model [199,200]. In this paper the optimization of the tensors is done based on an imaginary time evolution, which involves a truncation of a bond index at each time step (see Refs. [61,201,62] for details). While an optimal truncation requires a full contraction of the 2D tensor network (called the full update [61]), which is computationally expensive, there exist also local, approximate schemes avoiding the full contraction. In the simple-update approach [37,60], which we use in this work, the truncation is performed by a local singular value decomposition of two neighboring tensors. A more accurate, but still local scheme is provided by the cluster update introduced in Ref. [190], in which the truncation is done based on a cluster of tensors, where the accuracy is controlled by the cluster size. We start the iPEPS optimizations from random initial states, thereby avoiding the need for any knowledge of the system a priori. Depending on the initial state, the iPEPS may converge to a local minimum. To improve the convergence behavior, the state is initially evolved for a few steps at large bond dimension and large imaginary time step, then projected to D= 1 , and then evolved at the target D . Optimization runs are discarded and repeated when convergence is not reached after a certain number of steps. Finally, the state is further evolved at the target dimension at a smaller time step until convergence is reached. We found that this scheme improves the eciency and quality of the results, compared to an evolution only at the target D , especially close to the rst order phase transition line of the model. As input data for the anomaly detection, we use the singular values of the four auxiliary bonds obtained from the simple-update approach. In 1D iMPSs in canonical form, they correspond to the Schmidt coecients, characterizing the entanglement between the two sides of the system connected by the bond. In 2D, however, there exists no canonical form and the singular values do not correspond to the Schmidt coecients because of the loops in the tensor network ansatz. Still, we will show that the singular values contain information that can be used for and interpreted by the machine learning algorithm to characterize the underlying ground state. For comparison we also consider the 2-site reduced density matrix 7.4. Model 105 as input data, which is computed by contracting the 2D tensor network using the corner transfer matrix method [202,203,46]. 7.4 Model We test the anomaly detection scheme in combination with iPEPS for the S= 1/2 2D frustrated bilayer Heisenberg model - a challenging problem, where a large part of the phase diagram is inaccessible to Quantum Monte Carlo due to the negative sign problem [196]. The model can be represented as a two-dimensional lattice of coupled dimers, formed by the two S= 1/2 's of the adjacent layers. The Hamiltonian reads H=X i J⊥ Si,1· Si,2+X i,m=1,2 j=i+ˆx,i+ˆy hJ∥ Si,m · Sj,m +Jx Si,m · Sj, ¯mi (7.2) where J∥ is the nearest-neighbor intralayer coupling and J⊥ ( Jx ) the nearest (next-nearest) neighbor interlayer coupling, i is the index of a dimer, j runs over the nearest-neighbor dimers, m denotes the two layers, and ¯m the layer opposite to m . In the limit of strong J⊥ the ground state is a dimer singlet (DS) state with vanishing local magnetic moment. For Jx= 0 the model is unfrustrated with an ordered bilayer antiferromagnetic (BAF) ground state for J⊥/J∥<2.5220(2) [204], separated from the DS phase by a continuous transition. The limit Jx= J|| corresponds to the fully-frustrated Heisenberg bilayer model with a dimer-triplet antiferromagnetic (DTAF) ground state for J⊥/J∥<2.3279(1) [205], in which spins on a dimer are parallel (in contrast to the BAF phase where the spins on a dimer are antiparallel). The ground state phase diagram of the full model was mapped out with iPEPS in Ref. [196] and is shown in g. 7.1 1a) by the white-dashed lines. It hosts a quantum critical endpoint at which the line of continuous transitions between the BAF and DS phase terminates on the rst order line separating the DTAF phase from the DS and BAF phases. 7.5 Numerical Results We now use the anomaly detection scheme described in section 7.2 with data from iPEPS, described in section 7.3 to map out the 106 Chapter 7. Unsupervised mapping of phase diagrams of 2D systems from iPEPS via deep anomaly detection 0.0 0.2 0.4 0.6 0.8 1.0 Jx / J || DTAF BAF DS 1a Loss (%) 0.0 0.2 0.4 0.6 0.8 1.0 2a Loss (%) 0.0 0.2 0.4 0.6 0.8 1.0 3a Loss (%) 10 15 Loss (%) 1b 15 20 Jx / J || = 0.3 2b 5.0 7.5 3b 01234 J / J || 20 30 40 Loss (%) 1c train 01234 J / J || 20 40 Jx / J || = 0.3 2c 01234 J / J || 10 20 30 3c 5 10 15 20 25 Figure 7.1: Three training iterations to map out all three phases of the phase diagram without contraction and prior knowledge of the system, i.e. using simple update algorithm starting from random initial iPEPS. The cyan rectangles show the training regions. Overlayed in white are theoretical predictions, extrapolated to the innite D limit with full update optimization from [196]. Deviations of the second order BAF-DS transition are expected due to nite D= 6 and simple update optimization. 1a) Starting the training at the top-left (in DTAF phase) yields the rst-order transition line. Even the second order transition line is already pronounced inside the region of higher loss beyond the rst order line. 2a) Second iteration in the region of highest loss (DS phase) from the previous picture showing the part of the rst order line adjacent to the DS phase and the second order line. 3a) Conrming and completing the picture by training in the BAF phase. The second row (1b-3b) is a single cut as indicated by the magenta line in the phase diagram above. The third row (1c-3c) shows the loss after training and evaluating extra single cut data with ve independent simulations per data point. Around the rst order transition two branches are obtained due to the characteristic hysteresis behavior. 7.5. Numerical Results 107 phase diagram of the model without prior physical knowledge in g. 7.1. Three training iterations suce to map out the boundaries of all three phases of the system. We start in the top-left corner of the phase diagram corresponding to the DTAF phase in g. 7.1 1a) and obtain the rst order transition line. The noise around the line is due to hysteresis eects in the vicinity of the rst order phase transition: Depending on the random initial tensors, the converged states end up in one of the two adjacent phases. We will later see how a sharp transition line can be obtained by measuring the energy of the states. Note how the second order transition line is already indicated within the anomalous region of high loss. The second training is performed in the region of highest loss from the previous iteration in the top-right corner corresponding to DS in g. 7.1 2a). The second order transition line to the BAF phase is again signaled by a bump in the loss diagram. To complete and conrm both lines, training is performed in the BAF phase in g. 7.1 3a). In g. 7.1 (1c-3c) we present data for the single cut at Jx/J|| = 0.3 with ve independent simulations for each value of J⊥/J|| , illustrating the characteristic hysteresis behavior around the rst order DTAF-BAF transition. All the results in g. 7.1 are overlaid with the previous iPEPS simulation results from [196]. Note that those results are much more precise since the iPEPS were optimized with the more expensive full update algorithm and the data has been extrapolated to the innite D limit, whereas here we only consider simpleupdate data at nite bond dimension D= 6 . Thus a quantitative deviation can be expected, especially for the location of the second order BAF-DS transition line. However, the main goal here is to get a cheap and fast overview of the phase diagram, which serves as a useful starting point for more accurate numerical investigations (e.g. based on a nite correlation length scaling analysis [191,192]). We note that the ML approach could also be combined with the more accurate cluster update scheme [190], which is still a local approach, or with the full-update [61,62] or energy minimization schemes [187,188,189,206], which require full contractions 2 . To get an even clearer picture of the predicted phase boundaries, we compute the energy of the states to post-select the best ground 2 In the latter two cases the singular values can be extracted using the approach described in Ref. [207]. 114 Chapter 8. Variational Quantum Anomaly Detection [212], or kernel functions [213] to perform classical machine learning tasks like supervised learning [214,215]. There are cases, where quantum models have provable advantages over classical models [216], but it has been argued that these instances are special cases and no quantum speed up is to be expected for quantum machine learning with classical data [217]. On the other hand, applying classical machine learning to quantum physics has been a great success story [69], most prominently for the classication and mapping of phase diagrams [218,172, 219]. These methods rely on classical data and are therefore restricted by the available classical simulation methods. With physical devices surpassing system sizes that are classically tractable [16], there is need for methods to investigate physical quantum states with quantum computers. In this paper, we propose a quantum machine learning algorithm for quantum data . The data are ground states of quantum manybody systems that are prepared by a quantum simulation subroutine and serve as the input for Variational Quantum Anomaly Detection (VQAD). Our quantum anomaly detection scheme belongs to the category of variational quantum algorithms where the circuit learns characteristic features of the input state 1 . This can in principle be leveraged for obtaining physical insights of the system from training [220] and is in contrast to previous proposals that are based on kernel methods (one-class support vector machines) [221,222]. In the present study, we use it to map out an unknown phase diagram of a system without requiring knowledge about the order parameter or the number and location of the dierent phases. In anomaly detection, the task is to dierentiate normal data from anomalous data, opposed to supervised learning tasks, where a xed set of classes with labels for training are dierentiated. On the other hand, the task of anomaly detection requires an anomaly syndrome , i.e., an observable that is trained to be of a certain value (typically 0 ) when normal data is input, and be signicantly larger for anomalous data it is tested on. In classical machine learning, anomaly detection has already been used to extract phase diagrams in an unsupervised fashion from simulated and experimental data [1,5,3]. VQAD allows us to perform anomaly detection directly on a quantum computer, and, 1 The term learning is commonly used in (quantum) machine learning and data-driven problem solving to refer to data-specic optimization. 8.2. Proposal 115 Figure 8.1: Overview of our proposal. First, the quantum states are prepared via VQE. Then, they are processed through the anomaly syndrome, consisting of a parameterized unitary U(θ) and a measurement of a subset of qubits, referred to as trash qubits. Ry indicates a parameterized y-axis rotation and CZ a (xed) controlled-z gate. with programmable devices readily available, we demonstrate it experimentally on a real device. 8.2 Proposal The task of detecting anomalies in ground states of quantum many-body Hamiltonians can be loosely divided into two sub tasks: Preparing the ground state for specic Hamiltonian parameters, and computing an anomaly syndrome indicating whether the state corresponds to a normal example or an anomaly. An overview of our proposed algorithm is shown in g. 8.1. The problem of state preparation on quantum computers is one of ongoing research, and in principle, one can use any state preparation subroutine for preparing the ground state. Here, we choose the Variational Quantum Eigensolver (VQE) as it has the lowest hardware requirements while achieving reliable results on current devices [97,223]. The VQE algorithm iteratively minimizes the expectation value of a Hamiltonian with the ansatz circuit to nd the ground state by optimizing the parameters of the circuit via a quantum-classical feedback loop. We choose a minimal ansatz as depicted in g. 8.1 that is sucient for simulating the Ising Hamiltonian discussed in Sec. 8.3. A shallow ansatz allows us to run both, the quantum simulation, and the quantum anomaly detection on real noisy devices. For more complex systems, the 116 Chapter 8. Variational Quantum Anomaly Detection 0 100 200 300 400 500 iteration 0.0 0.5 1.0 1.5 2.0 2.5 cost L = 3 L = 4 L = 8 L = 16 L = 32 Figure 8.2: Scaling of the training cost of the anomaly syndrome ansatz. Successful training of the proposed anomaly syndrome ansatz for L∈ {3,4,8,16,32} corresponding to nt∈ {1,2,3,4,5} trash qubits (and therefore nt circuit layers). The result for L= 32 was obtained through MPS simulations with a maximal bond dimension of BD = 100 . We used 1000 shots per evaluation and achieve a perfect cost value of 0.00 for all system sizes, however the run for L= 32 shown here nished at 0.03 . problem of nding a suitable hardware ecient ansatz can be addressed for example by the adaptive VQE algorithm [98]. In this work we employed the VQE implementation provided by the Qiskit library [224] and optimized it using simultaneous perturbation stochastic approximation (SPSA) [225]. For all technical details we refer to App. 8.5. Once the ground state is prepared on the quantum device a subsequent circuit serves as the anomaly syndrome. Our circuit ansatz is inspired by the recently proposed quantum auto-encoder, which similar to its classical counterpart can be used for compression of classical and quantum data [226,227]. It is composed of several layers each consisting of parameterized single qubit y-rotations and controlled-z gates. After the nal layer a predened number nt of trash qubits is measured in the computational basis. The objective is to decouple the trash qubits from the rest of the system, eectively compressing the original ground state into a smaller number of qubits. The circuit parameters are then optimized to faithfully compress states that are considered normal . However, when the optimized circuit is tested on anomalous states not seen during training, it is expected that the circuit fails to decouple the trash qubits from the rest of the system. To quantify the degree of decoupling we use the Hamming distance dH of the 8.2. Proposal 117 trash qubit measurement outcomes to the |0⟩⊗nt state, i.e., the number of 1s in a bit-string of measurement outcomes [227]. The cost function C can then be dened as the Hamming distance averaged over several circuit evaluations C= 1/N PN idHi , where N is the number of performed measurements or shots. The cost function can also be rewritten in terms of expectation values of local Pauli-z operators Zj C=1 N N X i=1 dHi =1 2 nt X j=1 (1 −⟨Zj⟩). (8.1) The VQAD circuit achieves perfect compression if the trash qubits are fully disentangled from the remaining qubits and mapped into the pure |0⟩⊗nt state resulting in a cost equal to zero. The specic circuit ansatz for the anomaly syndrome is shown in g. 8.1 for the case of nt= 2 trash qubits. Each layer of the circuit starts with parameterized single-qubit y-rotations applied to every qubit followed by a sequence of entangling controlled-z gates. The currently available NISQ devices are inherently noisy and the computations are subject to gate errors. To minimize the number of two-qubit gates we apply the controlled-z gates only between trash qubits and non-trash-qubits as well as between trash qubits themselves instead of an all-to-all entangling map [227]. This entangling map is physically motivated as the goal of the circuit is to disentangle the trash qubits from the rest, with the trash qubits resulting in the |0⟩⊗nt state. In a single layer each non-trash qubit will be coupled to exactly one trash qubit. This entangling scheme is repeated in the subsequent layers until every non-trash qubit has been coupled to each trash qubit exactly once, i.e. the number of layers of the circuit is equal to nt . After the nal layer, additional single-qubit y-rotations act on the trash qubits before they are measured. Barren Plateaus are the fundamental obstacle prohibiting training of variational circuits with increasing numbers of qubits [100]. It was previously shown that using local cost functions and circuits featuring a number of layers scaling at most logarithmically in the system size can prevent the occurrence of Barren Plateaus [101]. Additionally for realistic devices, gate errors lead to decoherence, making quantum simulation on real devices a challenging task even for small systems and low depths [228]. The former calls for a minimal number of layers while the latter calls for a 118 Chapter 8. Variational Quantum Anomaly Detection minimal number of gates overall. Therefore, we seek a minimal solution for our variational circuit that we want to implement on a readily available NISQ-era quantum computer. On the other hand, it is desirable to have an ansatz as general as possible to be able to capture a wide range of problems (see circuit complexity [229,230]). For the anomaly syndrome in this paper, we propose an ansatz that aims at compromising between being general enough to compress the ground states of the investigated systems while still being trainable. One way to make our circuit scalable for larger systems is to choose the number of trash qubits nt=⌊log2L⌋ , where L is the total number of qubits. Together with the fact that our cost function is composed of only local operators, the training is expected to not suer from Barren Plateaus. We empirically conrm successful trainability, i.e., achieving a cost of 0.0 for ground states of the systems discussed later in the manuscript, for L∈ {3,4,8,16,32} , corresponding to nt∈ {1,2,3,4,5} , respectively. In g. 8.2, a ground state of the Ising model eq. (8.5) at gx, gz, J = (0.3,0,1) is taken as a realistic example and we can conrm successful trainability in all cases. Note that in principle the trash qubits can be placed anywhere in the circuit, however, when performing computations on a real quantum device it proved advantageous to explicitly take the qubit connectivity structure of the device into account in order to reduce the number of required SWAP operations. Specically here, we placed the trash qubits in the middle of the IBMQ devices. The training and inference procedure is identical to the classical anomaly detection schemes for mapping out phase diagrams [1]. In the rst step, one randomly chooses a training region in the phase diagram that represents normal data, which is an arbitrary denition. Note that no prior knowledge about the phase diagram is therefore required. The circuit representing the anomaly syndrome is then trained on ground states of the training region, and tested on the whole phase diagram. States in the same phase as the training data are normal and can be disentangled, leading to a low cost. Anomalous states can be inferred through an increase in the cost function signaling that the corresponding ground state cannot be disentangled by the optimized circuit. From the resultant cost prole, we can deduce the phase boundary between the phase the circuit has been trained on and any other phases 8.2. Proposal 119 −0.5 0.0 0.5 δJ (a) DMRG 100 V/J −0.5 0.0 0.5 δJ (b) 10−1101 V/J −0.5 0.0 0.5 δJ (c) MI TMI CDW 10−1101 V/J (d) 10−1101 V/J (e) 0.5 1.0 OCDW 0.25 0.50 0.75 DES 0 1 2 3 cost 0 1 2 3 cost 0 1 2 3 cost Figure 8.3: (a)-(b) Phase diagram of the DEBHM from Eq. (8.2) using (a) the order parameter OCDW dened in Eq. (8.3), and (b) the degeneracy of the entanglement spectrum, DES , dened in Eq. (8.4). The results were obtained from DMRG simulations for a system of length L= 12 at half lling ¯n= 0.5 . We x the maximum bond dimension BD = 50 and the maximum number of bosons per site to n0= 1 . (c)-(e) Cost/anomaly syndrome of a VQAD trained on a single ground state (indicated by a cross) of the L= 12 DEBHM using nt= 6 trash qubits in the (c) MI phase, (d) CDW phase, and (e) TMI phase. The cost at each data point is the Hamming distance averaged over 1000 measurement shots using an ideal quantum device simulator. in the diagram. This procedure is then repeated by training in the anomalous region from the previous iteration until all phase boundaries are found. An example is provided in g. 8.3. Anomaly detection is a semi-supervised learning task. The setting is typically that one is provided with one class of data that is well known, normal data, and aims at nding outliers of that distribution, anomalous data. An archetypical example is credit card fraud where a big database of normal transactions is provided and one aims at nding fraudulent ones. We consider anomaly detection semi-supervised as labeled data (x, normal) is provided for training while (x, anomalous) is to be inferred. Here, however, we arbitrarily dene (x, normal) and iteratively nd the dierent classes (phases of matter). The denition of (x, normal) is arbitrary and does not necessitate prior knowledge. Furthermore, it is merely a means to an end to nd the dierent classes. In that sense, the way anomaly detection is used to map out the phase diagram can be regarded as an unsupervised learning method. Note that in previous works, where the same task has been tackled with classical machine learning techniques, it has been shown that a single ground state was sucient to successfully train the model [3]. This feature stems from the fact that ground states within the same phase share similar properties and there is very little 120 Chapter 8. Variational Quantum Anomaly Detection variance when changing the physical parameters inside one phase. We observe this feature also in the training of the VQAD. 8.3 Results Simulations with ideal quantum data In order to test the performance of VQAD, we rst study the one-dimensional extended Bose Hubbard model with dimerized hoppings (DEBHM) [231], H=− L−1 X i=1 (J+δJ(−1)i)(b† ibi+1 + h.c. ) + +U 2 L X i ni(ni−1) + V L−1 X i nini+1, (8.2) where b† i(bi) is the bosonic operator representing the creation (annihilation) of a particle at site i of a lattice of length L . The tunneling amplitudes J−δJ (J+δJ) indicate hopping processes on odd (even) links connecting nearest-neighbor sites, while V represents the nearest-neighbor (NN) repulsion. Here, we take the hardcore boson limit, i.e. the on-site repulsion U/J → ∞ , such that the local Hilbert space is two-dimensional and each site can only accommodate 0 or 1 bosons. This model can be eectively mapped into a spin- 1/2 system [232]. Previous studies of the DEBHM model at half lling ( ¯n= 0.5 ) have demonstrated the existence of three distinct phases [231]. For small and intermediate values of V/J and δJ > 0 , we nd a topological Mott insulator (TMI) displaying features analogous to a symmetry protected topological phase appearing in the dimerized spin-1/2 bond-alternating Heisenberg model [232]. On the other hand, for negative values of δJ we expect a trivial Mott insulator (MI), while in the regime where the nearest-neighbor repulsion dominates, a charge density wave (CDW) appears. In g. 8.3(a)-(b), we study the phase diagram of the model in Eq. (8.2) in terms of the parameters δJ and V/J , using the density matrix renormalization group algorithm (DMRG) [233,234, 144]. In order to dierentiate between the Mott insulating phases 8.3. Results 121 and the CDW, one can compute the CDW order parameter OCDW = L/2 X i=1 (−1)iδni, (8.3) which detects staggered patterns in the density. In g. 8.3(a) we report a vanishing value of OCDW everywhere but in the region with large values of V/J , which corresponds to the CDW 2 . To characterize the TMI we study the entanglement spectrum (ES), which is expected to be doubly degenerate in a topologically non-trivial phase [235] due to the existence of edge states. The entanglement spectrum {λi} is dened in terms of the positive real-valued Schmidt coecients {αi} of a bipartite decomposition of the system by α2 i= exp(−λi) . We determine its degeneracy using DES =X i (−1)ie−λi. (8.4) In g. 8.3(b), we show that the quantity DES vanishes only for small NN interaction strengths V and positive values of δJ , which correponds to the TMI. The trivial MI and CDW phases do not show a degeneracy and hence do not host topological edge states. In the following, we test the capabilities of the VQAD with ideal states obtained from DMRG simulations. The anomaly syndrome is trained using a single representative ground state within one of the phases such that the cost measured at the trash qubits is minimised and the states of this phase can be eciently compressed by the circuit. Afterwards, the trained circuit processes all states from the full phase diagram, ideally with similarly low cost in the same phase and signicantly higher cost in other phases. In g. 8.3(c)-(e) we show the resultant cost diagram for three circuits, each optimized at a dierent point in the phase diagram. Indeed, ground states outside of the training phase give rise to a large cost and hence are correctly classied by the VQAD as anomalous. Surprisingly, a single ground state example (indicated by the cross) was sucient to successfully train the VQAD and infer all three phases. Similar results were recently reported for 2 In the denition of OCDW , we consider only half of the sites of the system because the DMRG algorithm outputs a symmetric state, which is a superposition of the two degenerate ground states. 122 Chapter 8. Variational Quantum Anomaly Detection −0.5 0.0 0.5 δJ (a) 10−1101 V/J −0.5 0.0 0.5 δJ (b) 0.50 0.75 1.00 1.25 cost 0.8 1.0 cost Figure 8.4: Cost of a VQAD trained on a single ground state in the MI phase (marked by the cross) of the DEBHM with L= 12 sites and nt= 2 trash qubits. The gates of the VQAD circuit are subject to depolarizing noise with p err = 0.001 (single-qubit gates) and (a) p err = 0.01 , (b) p err = 0.07 (two-qubit gates). The chosen values are motivated by the error probabilities of real devices. the case of classical anomaly detection using neural network autoencoders [3]. To demonstrate the robustness of the VQAD against noise present in currently available NISQ devices we apply a depolarizing noise channel after each gate with error probabilities p err = 0.001 (singlequbit gates) and p err = 0.01,0.07 (two-qubit gates) and show two exemplary cost proles of the trained anomaly detector in g. 8.4. Since the noise becomes more prominent with larger circuit depths, we used the two-layer VQAD circuit ansatz with only two trash qubits in this case. While it is not possible to reach a cost of zero in the training phase, the optimization still converges 8.3. Results 123 and all three phases can be successfully inferred. Hence, this suggests that even if the VQAD is not able to fully disentangle the trash qubits, the phase diagram can still be recovered from the resultant cost prole. Experiments on a real quantum computer We have seen that with ideal quantum data, VQAD can map out non-trivial phase diagrams including topologically non-trivial phases with and without noise in the anomaly syndrome. Next, we discuss its performance in real-noise simulations, that is with noise proles and qubit connectivities from a real quantum device. Furthermore, we perform the quantum simulation subroutine, i.e., the ground state preparation via VQE, on the same circuit. For this task, we consider the paradigmatic transverse longitudinal eld Ising (TLFI) model [236] H=J L X i=1 ZiZi+1 −gx L X i=1 Xi−gz L X i=1 Zi, (8.5) where Xi, Zi are the Pauli matrices on site i , J is the coupling strength, and gx, gz are the transverse and longitudinal elds, respectively. For gz= 0 the model is exactly solvable and shows a quantum phase transition from a ferromagnetic (antiferromagnetic) phase for gx/J < 1 and J negative (positive) to a paramagnetic one for gx/J > 1 [237]. In the following we set J= 1 and vary the longitudinal and transverse elds. In this regime the model is not exactly solvable and the phase diagram has been extensively studied numerically [238,239]. The antiferromagnetparamagnet quantum phase transition is best characterized by the order parameter which in this case is the staggered magnetization ˆ S= L X i=1 (−1)iZi L. (8.6) We simulate the ground states of the Hamiltonian in eq. (8.5) using VQE for L= 5 . On a noisy device, long-range entangling gates are performed by consecutive local two-qubit gates (SWAP operation), increasing the actual circuit depth. A large number of consecutive gates leads to decoherence due to gate errors and destroys the results. With the circuit presented in g. 8.1 for 131 Chapter 9 Discussion We have provided a tool to study phase diagrams of quantum many-body systems in an unsupervised fashion requiring no prior physical knowledge about the phases of the Hamiltonian. We demonstrate this on various dierent platforms and models. Foremost, we have employed matrix product states to simulate the extended Bose Hubbard model. We were able to reproduce the full phase diagram at integer lling, including the mostly overlooked phase-separating phase between a supersolid and a superuid part of the system. This led us to further physical investigations of this region and we found previously unknown features of this model with a homogeneous superuid and supersolid with hidden broken translational symmetry. Even though this hidden broken symmetry can be unraveled with the same string observables that are typically employed for symmetry protected topological phases, we provide convincing evidence that this eect is most likely not of topological nature. Still, it would be very interesting to observe these phases of matter experimentally to conrm our ndings. Continued analytical, numerical and experimental investigations may shed light on the nature of this new eect. Further, we demonstrate the viability of this anomaly detection approach with data from projected entangled pair states of a two dimensional system. We show that even though the singular values between nodes do not have a clear physical interpretation like the entanglement spectrum for matrix product states, they can still be used to infer information about the quantum phase of matter using machine learning. A notable observation is that a training set of just one single data point suces for this training. This on the other hand suggests that deep learning might be superuous when training with singular values from classically 132 Chapter 9. Discussion simulated quantum states, which are harder to obtain experimentally. A natural question to ask is for which phases and which data types purely geometric approaches struggle or generally fail and deep learning becomes a necessity. Answering this question in general is most likely dicult, but testing with a variety of examples may already give a lot of insights. Finally, we extend this method to the quantum machine learning (QML) realm. Here, quantum data in form of simulated ground states serve as input to our QML routine, where a parametrized quantum circuit is optimized in a quantum-classical feedback loop to disentangle the trash qubits of the system from the rest of the state. This data-specic disentangling scheme can then be used in the same fashion as an anomaly syndrome when states of dierent structures, i.e. from dierent quantum phases of matter, are input. We demonstrated this both in noisy simulation, showing scalability up to 32 qubits and on a real quantum device with 5 physical qubits. The most obvious continuation of this is scaling it up to larger system sizes, i.e. employing tensor network methods for simulation. The viability of variational quantum algorithms is heavily debated due to the onset of barren plateaus for larger system sizes. The complexity (depth) of an Ansatz to partially disentangle the input state is unclear, so it would be interesting to test this for larger system sizes and see whether there is a trade o between trainability and complexity for disentangling the state. Our initial vision was to have an articial intelligence go through a catalog of known and unknown quantum Hamiltonians and point out interesting eects. We here provided a method to map out phase diagrams in an unsupervised fashion. There are several extensions of this work that may one day let this initial dream come to fruition. While we provide a general procedure with algorithm 1, in practice we perform all these steps by hand. Encapsulating this procedure in a truly automated fashion would be a very interesting and useful engineering task. Moreover, this method points out phases which can then be compared with a known catalog of phases to spot novelties that may have previously been overlooked. Setting up such a catalog would be a matter of collecting information from publications of the last ∼30 years, for which natural language processing tools and web scrapers could be useful. After all, a fully automatized articial Chapter 9. Discussion 133 intelligence agent that performs these tasks with no human interference seems out of sight since the two most crucial parts, quantum simulation and interpretation, still necessitate expert knowledge. Still, setting up such a framework can vastly reduce the required work per person and enable accelerated scientic discovery. 135 Bibliography [1] K. Kottmann, P. Huembeli, M. Lewenstein and A. Acín, Unsupervised Phase Discovery with Deep Anomaly Detection , Phys. Rev. Letters 125 (17), 170603 (2020), doi:10.1103/PhysRevLett.125.170603. [2] K. Kottmann, A. Haller, A. Acín, G. E. Astrakharchik and M. Lewenstein, Supersolid-superuid phase separation in the extended bose-hubbard model , Phys. Rev. B 104 , 174514 (2021), doi:10.1103/PhysRevB.104.174514. [3] K. Kottmann, P. Corboz, M. Lewenstein and A. Acín, Unsupervised mapping of phase diagrams of 2D systems from innite projected entangled-pair states via deep anomaly detection , SciPost Phys. 11 , 25 (2021), doi:10.21468/SciPostPhys.11.2.025. [4] K. Kottmann, F. Metz, J. Fraxanet and N. Baldelli, Variational quantum anomaly detection: Unsupervised mapping of phase diagrams on a physical quantum computer , Phys. Rev. Research 3 , 043184 (2021), doi:10.1103/PhysRevResearch.3.043184. [5] N. Käming, A. Dawid, K. Kottmann, M. Lewenstein, K. Sengstock, A. Dauphin and C. Weitenberg, Unsupervised machine learning of topological phase transitions from experimental data , Machine Learning: Science and Technology 2 (3), 035037 (2021), doi:10.1088/2632-2153/abe7. [6] T. Szoªdra, P. Sierant, K. Kottmann, M. Lewenstein and J. Zakrzewski, Detecting ergodic bubbles at the crossover to many-body localization using neural networks , Phys. Rev. B 104 , L140202 (2021), doi:10.1103/PhysRevB.104.L140202. [7] S. Reddy and V. K. Kuppa, Molecular dynamics simulations of organic photovoltaic materials: Investigating the formation of pi-stacked 136 BIBLIOGRAPHY thiophene clusters in oligothiophene/fullerene blends , Synthetic Metals 162 (23), 2117 (2012), doi:https://doi.org/10.1016/j.synthmet.2012.09.020. [8] S. B. Mirza, R. E. Salmas, M. Q. Fatmi and S. Durdagi, Virtual screening of eighteen million compounds against dengue virus: Combined molecular docking and molecular dynamics simulations study , Journal of Molecular Graphics and Modelling 66 , 99 (2016), doi:https://doi.org/10.1016/j.jmgm.2016.03.008. [9] M. H. Khatami, U. C. Mendes, N. Wiebe and P. M. Kim, Gate-based quantum computing for protein design , doi:10.48550/ARXIV.2201.12459 (2022). [10] J. G. Bednorz and K. A. Müller, Possible high tc superconductivity in the ba-la-cu-o system , Zeitschrift für Physik B Condensed Matter (1986), doi:10.1007/BF01303701. [11] Y. Cao, V. Fatemi, S. Fang, K. Watanabe, T. Taniguchi, E. Kaxiras and P. Jarillo-Herrero, Unconventional superconductivity in magic-angle graphene superlattices , Nature 556 (2018), doi:10.1038/nature26160. [12] M. Qin, C.-M. Chung, H. Shi, E. Vitali, C. Hubig, U. Schollwöck, S. R. White and S. Zhang, Absence of superconductivity in the pure two-dimensional hubbard model , Phys. Rev. X 10 , 031016 (2020), doi:10.1103/PhysRevX.10.031016. [13] M. Reiher, N. Wiebe, K. M. Svore, D. Wecker and M. Troyer, Elucidating reaction mechanisms on quantum computers , Proceedings of the National Academy of Sciences 114 (29), 7555 (2017), doi:10.1073/pnas.1619152114. [14] V. von Burg, G. H. Low, T. Häner, D. S. Steiger, M. Reiher, M. Roetteler and M. Troyer, Quantum computing enhanced computational catalysis , Phys. Rev. Research 3 , 033055 (2021), doi:10.1103/PhysRevResearch.3.033055. [15] D. Poulin, A. Qarry, R. Somma and F. Verstraete, Quantum simulation of time-dependent hamiltonians and the convenient illusion of hilbert space , Phys. Rev. Lett. 106 , 170501 (2011), doi:10.1103/PhysRevLett.106.170501. BIBLIOGRAPHY 137 [16] F. Arute, K. Arya, R. Babbush, D. Bacon, J. C. Bardin, R. Barends, R. Biswas, S. Boixo, F. G. Brandao, D. A. Buell, B. Burkett, Y. Chen et al. , Quantum supremacy using a programmable superconducting processor , Nature 574 (7779), 505 (2019), doi:10.1038/s41586-019-1666-5. [17] F. Pan and P. Zhang, Simulation of quantum circuits using the big-batch tensor network method , Phys. Rev. Lett. 128 , 030501 (2022), doi:10.1103/PhysRevLett.128.030501. [18] Y. Wu, W.-S. Bao, S. Cao, F. Chen, M.-C. Chen, X. Chen, T.-H. Chung, H. Deng, Y. Du, D. Fan, M. Gong, C. Guo et al. , Strong quantum computational advantage using a superconducting quantum processor , Phys. Rev. Lett. 127 , 180501 (2021), doi:10.1103/PhysRevLett.127.180501. [19] H.-S. Zhong, Y.-H. Deng, J. Qin, H. Wang, M.-C. Chen, L.-C. Peng, Y.-H. Luo, D. Wu, S.-Q. Gong, H. Su, Y. Hu, P. Hu et al. , Phase-programmable gaussian boson sampling using stimulated squeezed light , Phys. Rev. Lett. 127 , 180502 (2021), doi:10.1103/PhysRevLett.127.180502. [20] P. Shor, Algorithms for quantum computation: discrete logarithms and factoring , In Proceedings 35th Annual Symposium on Foundations of Computer Science , pp. 124134, doi:10.1109/SFCS.1994.365700 (1994). [21] D. Ciregan, U. Meier and J. Schmidhuber, Multi-column deep neural networks for image classication , In 2012 IEEE Conference on Computer Vision and Pattern Recognition , pp. 36423649, doi:10.1109/CVPR.2012.6248110 (2012). [22] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser and I. Polosukhin, Attention is all you need , doi:10.48550/ARXIV.1706.03762 (2017). [23] D. Silver, T. Hubert, J. Schrittwieser, I. Antonoglou, M. Lai, A. Guez, M. Lanctot, L. Sifre, D. Kumaran, T. Graepel, T. Lillicrap, K. Simonyan et al. , A general reinforcement learning algorithm that masters chess, shogi, and go through self-play , Science 362 (6419), 1140 (2018), doi:10.1126/science.aar6404. 138 BIBLIOGRAPHY [24] H.-Y. Huang, M. Broughton, J. Cotler, S. Chen, J. Li, M. Mohseni, H. Neven, R. Babbush, R. Kueng, J. Preskill and J. R. McClean, Quantum advantage in learning from experiments , doi:10.48550/ARXIV.2112.00778 (2021). [25] R. Iten, T. Metger, H. Wilming, L. del Rio and R. Renner, Discovering Physical Concepts with Neural Networks , Phys. Rev. Lett. 124 (1), 010508 (2020), doi:10.1103/PhysRevLett.124.010508. [26] A. Dawid, P. Huembeli, M. Tomza, M. Lewenstein and A. Dauphin, Phase detection with neural networks: interpreting the black box , New Journal of Physics 22 (11), 115001 (2020), doi:10.1088/1367-2630/abc463. [27] A. Dawid, P. Huembeli, M. Tomza, M. Lewenstein and A. Dauphin, Hessian-based toolbox for reliable and interpretable machine learning in physics , Machine Learning: Science and Technology 3 (1), 015002 (2021), doi:10.1088/2632-2153/ac338d. [28] A. Dawid, J. Arnold, B. Requena, A. Gresch, M. Pªodzie«, K. Donatella, K. Nicoli, P. Stornati, R. Koch, M. Büttner, R. Okuªa, G. Muñoz-Gil et al. , Modern applications of machine learning in quantum sciences , doi:10.48550/ARXIV.2204.04198 (2022). [29] M. Srednicki, Entropy and area , Phys. Rev. Lett. 71 , 666 (1993), doi:10.1103/PhysRevLett.71.666. [30] M. B. Plenio, J. Eisert, J. Dreiÿig and M. Cramer, Entropy, entanglement, and area: Analytical results for harmonic lattice systems , Phys. Rev. Lett. 94 , 060503 (2005), doi:10.1103/PhysRevLett.94.060503. [31] J. Eisert, M. Cramer and M. B. Plenio, Colloquium: Area laws for the entanglement entropy , Reviews of Modern Physics 82 (1), 277 (2010), doi:10.1103/RevModPhys.82.277. [32] S. R. White, Density matrix formulation for quantum renormalization groups , Physical Review Letters 69 (19), 2863 (1992), doi:10.1103/PhysRevLett.69.2863. BIBLIOGRAPHY 139 [33] S. R. White, Density-matrix algorithms for quantum renormalization groups , Physical Review B 48 (14), 10345 (1993), doi:10.1103/PhysRevB.48.10345. [34] M. Fannes, B. Nachtergaele and R. F. Werner, Entropy estimates for nitely correlated states , Annales de l'I.H.P. Physique théorique 57 (3), 259 (1992). [35] S. Östlund and S. Rommer, Thermodynamic limit of density matrix renormalization , Phys. Rev. Lett. 75 , 3537 (1995), doi:10.1103/PhysRevLett.75.3537. [36] J. Dukelsky, M. A. Martín-Delgado, T. Nishino and G. Sierra, Equivalence of the variational matrix product method and the density matrix renormalization group applied to spin chains , Europhysics Letters (EPL) 43 (4), 457 (1998), doi:10.1209/epl/i1998-00381-x. [37] G. Vidal, Ecient classical simulation of slightly entangled quantum computations , Phys. Rev. Lett. 91 , 147902 (2003), doi:10.1103/PhysRevLett.91.147902. [38] G. Vidal, Ecient simulation of one-dimensional quantum many-body systems , Phys. Rev. Lett. 93 , 040502 (2004), doi:10.1103/PhysRevLett.93.040502. [39] G. Vidal, Classical simulation of innite-size quantum lattice systems in one spatial dimension (2006), doi:10.1103/PhysRevLett.98.070201. [40] F. Verstraete, V. Murg and J. Cirac, Matrix product states, projected entangled pair states, and variational renormalization group methods for quantum spin systems , Advances in Physics 57 (2), 143 (2008), doi:10.1080/14789940801912366. [41] I. P. McCulloch, From density-matrix renormalization group to matrix product states (2007), doi:10.1088/1742- 5468/2007/10/P10014. [42] U. Schollwöck, The density-matrix renormalization group in the age of matrix product states , Annals of Physics 326 (1), 96 (2011), doi:https://doi.org/10.1016/j.aop.2010.09.012. [43] S.-J. Ran, E. Tirrito, C. Peng, X. Chen, L. Tagliacozzo, G. Su and M. Lewenstein, Tensor Network Contractions , vol. 946, Springer (2020).