1. Introduction
Quantum computers are thought to enable calculations that cannot be carried out on classical computers [
1,
2,
3,
4,
5]. For simulating quantum systems, classical computers are limited to exact diagonalization as there are no good approximation methods available in general. However, exact diagonalization cannot be employed in large systems, as the Hilbert space grows exponentially with respect to the system size [
3]. One challenging problem in many-body physics is to determine the zero-temperature phase diagram of finite systems that have level crossings in the ground state as the parameters in the Hamiltonian are tuned across the transition [
6,
7]. Such phase diagrams commonly occur when a system has competing order parameters [
8]. One possible approach to solving this problem is to simply create circuits for target wave functions that can have their parameters varied to allow for a variational determination of the approximate ground state. Then, one can determine the phase diagram by examining the quantum numbers and the symmetries of the variational wave function. However, such an approach is likely to fail or to be inaccurate; this is because there are low-lying states near the level crossings and the variational calculations need to be done with high accuracy to carry out such a program. This becomes especially complicated if the variational state ansatz does not belong to the subspace corresponding to the ground-state quantum numbers.
Another approach one could try is to use adiabatic state preparation: start the system in an easy to prepare state that is the ground state of the Hamiltonian for a given parameter, and then slowly change the parameters in the Hamiltonian. If we change slowly enough, the adiabatic theorem guarantees that we stay in the ground state. This approach may also have problems, because the time evolution will preserve the symmetry of the wave function, and level crossings can only occur between states with different symmetries.
However, we can modify the adiabatic state preparation protocol by adding a small symmetry-breaking field, and we can find the phase transition point by monitoring the expectation value of the quantum numbers corresponding to the different symmetries on either side of the phase transition. Now, because the symmetries are only approximate, a sufficiently slow time evolution will map out the ground-state phase diagram. We then repeat with different magnitudes of the symmetry-breaking field and extrapolate the results to the limit where the symmetry-breaking field vanishes. In this fashion, we can employ adiabatic state preparation to carry out a mapping of the ground-state phase diagram. It is unlikely that fast forwarding techniques such as QAOA [
9] or shortcuts to adiabaticity [
10,
11], will help with carrying out this approach because it may require very accurate optimization near the level crossing, or knowledge of the eigenstates or invariants of motion, which maybe costly to find.
We test our approach on the ground-state phase diagram of an isotropic 1D XY model in a magnetic field along the
z-direction. This system is a stringent test for such an approach, because there are
N phase transitions for an N-site system in the region where
. As the system size is made larger, the problem becomes increasingly more challenging to solve. In fact, the model may exhibit a devil’s staircase in the ground-state phase diagram [
12]. The conserved symmetry (quantum number) is the
z-component of total spin, so we can monitor the phase diagram by measuring the magnetization of the system.
Our strategy is to start the system in a large
field, and to add a small symmetry-breaking field
in a perpendicular direction. The initial state will be taken to be polarized along the
z-direction, which is easy to prepare. We ramp the
z-field down, keeping the
x-field fixed, using a local adiabatic ramp [
13]. This approach was originally used to generate the ground state of the transverse-field Ising model in ion-trap quantum simulators. For the two-site system, we also performed the experiment starting from all spins aligned down and ramping up the
field. We find that for two- and three-site systems, this approach gives accurate phase diagrams in IBM quantum machines.
2. Materials and Methods
We work with the one-dimensional isotropic XY model with periodic boundary conditions and a magnetic field along the
z direction, as shown in Equation (
1) for a system with
L spins:
where
are the usual Pauli matrices obtained by setting
in the spin operators of the
ith site,
. This model can be solved exactly by fermionization using a Jordan–Wigner (JW) transformation [
14] and a subsequent Fourier transformation to momentum space [
15]. The boundary term needs more care as it still has the JW string in it. Usually, for a large system this term is negligible. Alternatively, we simply consider the periodic term without a JW string attached, so that the usual Fourier transform yields the fermionic eigen energies. Then, the fermionic Hamiltonian takes the form
where
and
, with
.
For a finite-size system the boundary term matters; this can be dealt with by making use of the fermionic parity [
16]. The system is decoupled into odd and even parity sectors, where periodic and anti-periodic boundary terms emerge, respectively. This results in the same form for the fermionic Hamiltonian, but with different momenta for the different parity sectors. For odd parity sector, the momenta are the ones mentioned above (which includes the zero momentum point), whereas for an even parity sector, the momenta are shifted to
, with
. One challenge with this approach is that each parity sector has
eigenvalues while the exact solution (over both parities) has exactly
eigenvalues. To avoid any of these issues, we work in the original spin representation throughout this paper.
The ground state has many level crossings as a function of the magnetic field
. This is illustrated in
Figure 1 and
Figure 2.
Figure 1 shows the expectation value of the
z-component of spin (also known as the magnetization) as a function of
. Each of the vertical steps on the exact curve corresponds to a level crossing, where the quantum number for the
z-component of spin shifts by one unit; the plot also shows an adiabatic-time evolution, which will be discussed later. In this work, we show how to obtain these quantum phase transition points (critical
values) on a quantum computer.
In adiabatic-state preparation, we start from the ground state of a Hamiltonian, which is easy to prepare, and then we slowly evolve the state using time evolution with a Hamiltonian that interpolates from the initial Hamiltonian to the target Hamiltonian. The amount of diabatic excitations are determined by how fast the Hamiltonian changes near the avoided-crossing spectral gaps between the ground and excited states. The initial Hamiltonian can be thought of as a Hamiltonian with
, or equivalently with
. Then, the magnetic field is ramped down to a final value (e.g., zero) where ideally we end up in the ground state of the final Hamiltonian. However, this cannot occur if there is additional symmetry in the Hamiltonian. Here, because
commutes with
H, we can simultaneously diagonalize both operators and this means the quantum number corresponding to the total
z-component of spin (
m) are unchanged during time evolution. Thus, we only stay in the ground state of a system with definite
z-component of spin. This can be seen in
Figure 2, where the dotted lines show a level crossing for a two- and three-site system.
In order to achieve adiabatic-state preparation, we must break the symmetry. We do so by adding a small
field, upon which
. This means states that used to have different
m quantum numbers are now coupled together. This can be seen in
Figure 2, where the solid lines show avoided level crossings for a two- and three-site system with a
field. This then allows adiabatic-state preparation to take place, and if we go slow enough, we will have limited diabatic excitation out of the ground state.
Figure 1 shows that with a
field one can traverse through all the magnetization sectors in a 10-site system. However, the
term changes the Hamiltonian and its energy levels. We only have quantum phase transitions when
, which implies we must extrapolate to the
limit. With the
term, the modified Hamiltonian is
The time evolution is implemented with a local adiabatic ramp [
17,
18], which is constructed to yield the same diabatic excitation for each time step of the time evolution. It does so by ramping faster when the gap to the first excited state is large and more slowly when the gap is small. It is determined by adjusting the rate
according to the instantaneous energy gap
such that
[
18]. This provides the highest fidelity ramp for a given total time of evolution.
The total time for the local ramp is determined by an adiabaticity parameter (
). We require
for an adiabatic ramp, where
. Starting from a magnetic field
and ramping down to a magnetic field
the ramp time
t is given by
where
is the energy difference between first excited state and ground state and the minus sign indicates that we are ramping down. One can either choose the adiabaticity parameter first, and determine the total time, or one can fix the total time and infer the adiabaticity parameter. A resulting local adiabatic ramp for a two- and three-site system is shown in
Figure 3. The ramp was implemented via a Trotter product formula. We selected the adiabaticity parameter and the number of Trotter steps such that we can accurately determine the different steps in the magnetization; the magnetization then signals the different regions of the ground-state-phase diagram. Specifically, we fixed
and increased the number of steps from a small number of total steps such that the magnetization switches to the next sector for all the
values. The goal is to implement the ramp with a small total number of steps so that depth of the circuits implemented on the quantum computer is reduced.
The same strategy is used on a quantum computer. We use the first-order Trotter product formula for the time-evolution operator from
to
t:
Then, each Trotter step further is decomposed into two qubit and single qubit gates so that it can be implemented on the IBM machines using their native gate set.
This procedure yields values for
that are larger than is typical for Trotter decomposition; for example, for the two-site system we obtain
for
=
(see
Figure 4). However, while the absolute value of
is large, it is ameliorated by two factors. First, the non-commuting part of the Hamiltonian is entirely proportional to
, which is small, so that the effective small parameter is really
. Second, the leading-order commutator arising from the Baker–Campbell–Hausdorff (BCH) expansion of the time evolution from
to
when
is further suppressed by the slowly varying magnetic field
as
Thus, as long
is not too large, the error arising from Trotterization is manageable—this is expected because when the Hamiltonian is time independent, it commutes with itself at all times and no error arises from the BCH expansion. One additional source of Trotter error arises from the gate decomposition of the time evolution operator—here, the leading error is similarly proportional to
. This is the leading order in BCH expansion when
, e.g., in our three-site experiments (see
Figure 5). For two sites and three sites, we have confirmed empirically that the magnetization goes to the next sector with the given
(run on a simulator). The behavior of the crossing points for a 1000 Trotter step evolution is shown in
Figure 6 and
Figure 7. For larger systems, one might need to increase the number of Trotter steps so that
is small and follows the adiabatic evolution more closely.
The determination of the phase diagram then proceeds as follows: (i) we initialize the system in a state that is all up and with the magnetic field equal to and with a fixed value for ; (ii) we evolve the system from to t using the local adiabatic ramp for ; (iii) at each time step, we measure the magnetization; (iv) using the magnetization, we determine the critical value of , which corresponds to the midpoint of the step in the magnetization between two successive m quantum numbers; (v) we repeat these steps for a different value of ; and (vi) we extrapolate the critical field to the limit where .
Extrapolation to find critical can be done by fitting polynomial curves to the data. The operator only connects states with definite m eigenvalues that are shifted by one: , for . Then, a simple argument using perturbation theory shows that the perturbed energy eigenvalues are functions of even powers of for small values. This means that when we try to extrapolate the exact results for the critical field, we should use a dependence on even powers of only. Hence, we include only quadratic and quartic terms in the fitting curve for the data generated on a classical computer via exact diagonalization.
For the data from a quantum computer, we instead fit with a linear regression, because the noise on the quantum computer changes the behavior from even powers of to a nearly linear dependence. When quantum computers become capable of doing longer time runs, with less noise and decoherence, then, we can fit a quadratic polynomial without the linear term for smaller values to estimate the critical point in a more systematic way.
3. Results
In order to demonstrate the technique, we first examine a two-site system. At large
, the ground state has all spins aligned in the up direction; the calculation starts with this state. The system is time evolved using the Trotter product formula using a local adiabatic ramp given in Equation (
4). The integral produces
with uniform steps in
. We convert to
with uniform steps in
t by inverting the map and employing an Akima spline, which preserves the shape (see
Figure 3). We choose
and the number of time steps such that the time evolution spans the change in magnetization by one full unit (see
Figure 4). We repeat the same procedure to find the time evolution for each
value. The time evolution is implemented in the quantum simulation using two-qubit and single-qubit gates. We decompose each Trotter step into the XY part, the
part, and the
part:
The XY part is further decomposed to implement in the quantum simulation using two CNOTs [
20], as shown in
Figure 8. The
part and
part are implemented using single-qubit gates.
For the two-site case, we decrease
from
to
to go through the first transition point (we have set
in all our calculations). We use
values given by
,
,
, and
(see
Figure 4). For the exact curve we use 1000 Trotter steps, but since we cannot achieve high fidelity in currently available quantum computers for such a large number of Trotter steps, we look for a similar trend in the crossing point so that a fewer number of Trotter time steps is sufficient (see
Figure 6). For a two-site system the time evolution could be implemented with three CNOTs [
20] to achieve high fidelity. But since these short-depth circuits are not available in general for a large system size, we consider the explicit implementation of a Trotter circuit to enable a comparison with larger system size. Later, we also show results from a three-CNOTs version of the circuit. With 20 Trotter steps the simulator data showed reasonable results. We use an Akima spline to fit the magnetization versus
data to have a smooth curve, allowing us to determine the transition point. From the simulator data we find the crossing points where the magnetization is equal to 0.5. A quartic fit was performed to the crossing points from the simulator data and we obtained a critical value of
. This result is reasonable, since performing a quartic fit to the first four data points in the exact curve yields an extrapolated value equal to
.
We perform the quantum computer run on the
ibmq_santiago. The data obtained from the quantum computer with measurement-error mitigation [
19] is shown in
Figure 4. As a secondary error mitigation technique, we scale the data so that the initial and final magnetization values of the quantum computer data match that of the quantum simulator. This stretches and shifts the data so that the end points have the correct values (see
Figure 4). Such scaling is common to correct from decoherence and noise, and it improves the data analysis [
21,
22,
23,
24]. Here, scaling is based on the fact that for small
values the magnetization approximately follows steps as a function of
. At our initial
, the magnetization corresponds to all spins aligned up; our final magnetization decreases by a single unit for each transition. When simulator values are difficult to obtain (e.g., for a large N) the final
can be taken where the curve goes flat. The experiment is repeated for different
values and the corresponding crossing points are plotted in the
Figure 6. Since the data obtained was noisy we fitted a linear extrapolation curve to capture the trend in the quantum computer data. The extrapolated critical
value is
, which is close to the actual value of transition, which occurs at
.
For the second case, we examine the transition from
to
. While, formally, this should be the same as the case for
to
, because the
state of a quantum computer is the excited state, decoherence effects should be larger for this case. Here, the initial state has both spins down. The procedure is similar to what we explained above. A quartic fit to the simulator values obtained a critical value of
. A quartic fit to the first four data points of the exact crossings (for
= 1.5 and 1000 Trotter steps), obtained an extrapolated value of
. The data obtained from the IBM quantum computer is shown in
Figure 4. The crossing points were found from the scaled data for each
value. A linear fit to the quantum computer data gave the critical value to be
.
For the two-site model, we also performed the experiment in an
ibmq_santiago machine after optimizing the circuits with a level-three optimization in the IBM Qiskit transpiler. This reduced the number of CNOT gates to three for each time step. This is because any two-qubit unitary operation can be represented using three-CNOT gates [
20,
25]. The read-out-corrected data are shown in
Figure 4. The crossing points from these fixed-depth circuits are shown in
Figure 6. These values are closer to the simulator values than the Trotter data, as expected. A quartic fit to these data obtained a critical
value of
starting from all spins aligned up, and
starting from all spins aligned down. This kind of an efficient fixed-depth decomposition is not known in general for more than two qubits. But for certain models, efficient fixed-depth circuit decompositions can be found [
26]. These type of fixed-depth circuits can improve the performance of our method by reducing the number of gates in an adiabatic-time evolution as Trotter decomposition becomes increasingly costly with larger system sizes and more time evolution steps [
27].
Now, we move on to the three-site periodic system. We start with all spins up. The time evolution circuit for the XY part is implemented pairwise using the XY part of the two-qubit circuit for each Trotter step. The data obtained from the quantum computer with measurement-error mitigation is shown in
Figure 5, along with the scaled data which matches the end points from the simulator data. The extrapolations are shown in
Figure 7. A quartic fit to the exact values gives the critical
value to be
. A quartic fit to the simulator values gives the critical
to be
. The linear fit to the crossings from the scaled data of the IBM quantum computer give the phase transition point to be
for
ibmq_montreal and
for the
ibmq_casablanca. The actual transition is at
. These fitted values are reasonably close to the actual value.
4. Discussion
In this work, we propose a method for finding zero-temperature phase diagrams that are robust and can be carried out on quantum computers. The approach requires us to introduce a symmetry-breaking term into the Hamiltonian, determine approximate phase diagrams for the symmetry-broken system, and then extrapolate to the limit where the symmetry-breaking field vanishes. To verify that this approach works, we have worked out practical details for how to run these circuits on a quantum computer when the number of spins is two or three. The results from the quantum computers agree well with the exact results and are able to predict the phase boundaries within a few percent. This illustrates that the approach used here, based on adiabatic-state preparation, can work on NISQ machines and has the potential to be able to be applied to larger systems, even ones where we do not know the phase diagram a priori.
Note that the case we examined here, the XY model in a z-oriented magnetic field, is probably the most difficult problem to examine, because the number of level crossings increases with the system size. For most quantum phase transitions between different symmetry states, the number of phase boundaries should depend only weakly on the system size.
In order to show that this approach also applies to larger systems, we simulate the magnetization for a 10-site system in
Figure 1 using a similar local adiabatic-time evolution for 1000 Trotter steps for
= 50. Extracting the phase transitions using our methodology works well for such a system, as can be seen by comparing the two lines in the figure.
As the system size increases, finer time-evolution steps are required to prepare the state due to the higher density of energy eigenstates. This would require the quantum hardware to have better gate fidelity and less measurement errors so that the overall error in magnetization remains low. Nevertheless, for larger and more complex systems, using quantum computers is a potential way to handle quantum-simulation-related problems, as classical computers cannot deal with very large Hilbert spaces in general [
3,
5]. Once better quantum hardware is available, our method could be applied to finding the critical points for larger quantum systems.