Exact Ising Model Simulation On A Quantum Computer
Exact Ising Model Simulation On A Quantum Computer
Alba Cervera-Lierta1,2
1
Barcelona Supercomputing Center (BSC), Barcelona, Spain
2
Institut de Ciències del Cosmos, Universitat de Barcelona, Barcelona, Spain
December 20, 2018
We present an exact simulation of a one- only company that has launched this kind of ser-
dimensional transverse Ising spin chain vice: Rigetti Computing also allows the use of
with a quantum computer. We construct its 19-qubits device on the cloud [3]. Although
an efficient quantum circuit that diagonal- both companies are betting for superconducting
izes the Ising Hamiltonian and allows to qubits, their respective device characterization is
arXiv:1807.07112v3 [quant-ph] 19 Dec 2018
obtain all eigenstates of the model by just not the same: basic gate sets and qubits connec-
preparing the computational basis states. tivity are some of the differences. As more quan-
With an explicit example of that circuit for tum devices are appearing, it is important to find
n = 4 spins, we compute the expected value some methods to test their quality when running
of the ground state transverse magneti- sophisticated quantum algorithms.
zation, the time evolution simulation and Several approaches on computer’s quantumness
provide a method to also simulate thermal have already been tried. The first published ar-
evolution. All circuits are run in IBM and ticle using an IBM device tested the violation of
Rigetti quantum devices to test and com- Bell inequalities by more than two qubits (Mer-
pare them qualitatively. min inequalities) [4], or a recent article tests if the
16-qubit IBM device can be fully entangled by
generating graph states [5]. Other works tried to
1 Introduction exploit different few qubit experiments, such as
In recent years the quantum computing has dived error correcting codes and quantum arithmetics
fully into the experimental realm. Control of [6].
quantum systems has improved so much that On the other hand, the community has not for-
quantum computing devices have become a near got Feynman’s original aim for the proposal of
term reality. These experimental advances rely construction of a quantum computer [7]: the sim-
on some criteria proposed in the 2000’s by DiVi- ulation of quantum systems. Many classical tech-
cenzo [1]: scalable physical system to characterize niques have been developed in that direction, for
the qubits, simple fiducial qubit state initializa- instance quantum Monte Carlo methods [8, 9, 10]
tion, long coherence times (longer than the gate or tensor networks algorithms [11]. However, the
implementation times), universal set of quantum first suffer from the well-known sign problem and
gates and qubit-specific measurement capability. the second are only efficient for slightly entangled
Although there are some candidates that can ful- systems [12]. In the end, very strongly correlated
fill the first criterion, the field is still in an early quantum systems, such as those displaying frus-
stage of development of this technology, where tration, will need a quantum computer to be ef-
the improvement of qubits control is crucial to ficiently simulated [13]. There are some works
accomplish the others. that propose quantum algorithms to construct
Private companies have also joined the field. arbitrary Slater determinants, both in one and
Since 2016, IBM offers cloud based quantum com- two dimensions, to simulate the dynamics of the
putation platform [2]. Any user can run quantum ground state of fermionic hamiltonians, in partic-
algorithms on their two five qubits devices, their ular the Hubbard model [14, 15]. Other propos-
16 qubits device, and their 20 qubits device which als introduce the concept of compressed quantum
is available for hubs and partners. It is not the computation, i.e. simulation of n-spin chain using
log n qubits [16]. This method has been tested in
Alba Cervera-Lierta: a.cervera.lierta@gmail.com
one of the IBM’s quantum computers also simu-
a†k = uk c†k − ivk c−k . (13) Thus we first undo Bogoliubov transformation
This will be implemented by a two-qubit gate by applying (Bkn )† gates, followed by undoing
which acts over qubits that represent opposite the Fourier transform using the (Fkn )† gates and
momenta. For the case of Ising model, this gate finally undo the Jordan-Wigner transformation
is which, fortunately, does not need from any gate
as has been explained in the previous section.
θk θk
cos 2 0 0 i sin 2 For n = 4, the Bogoliubov modes are ±3π/2
0 10 0 and ±π/2, so we need two Bogoliubov gates. No-
Bkn = ,
0 01 0 tice that we have removed the B0† gate from the
circuit of Figure 1; this gate corresponds with
i sin 2 0 0 cos θ2k
θk
the identity for λ > 1 and exchange qubits in the
λ−cos( 2πk
) same state for λ < 1, i.e. |00i → −i|11i and
n
θk = arccos q 2
,(14)
|11i → −i|00i. As the initial state for λ < 1
2πk
(λ−cos( )) +sin2 ( 2πk
n )
n
is the |0001i and B0† is applied over the last two
and its decomposition in basic gates is shown in qubits, it does not affect this state and we can
the appendix. avoid it. If we want to obtain an excited state
Then, we have finally arrived to the diagonal which eigenstate in the diagonal basis contains
Hamiltonian: |00i or |11i states, then we should only apply bit
n/2 flip gates over the last two qubits to implement
ωk a†k ak , the B0† gate.
X
H
e = Ha = (15)
k=−n/2+1 The circuit shown in Figure 1 also contains
r fSWAP gates represented with crosses. These will
2
be necessary if even and odd qubits are not phys-
2πk 2πk
where ωk = λ − cos n + sin2 n .
ically connected and, as much, they will increase
the total number of gates in n2 . We can eliminate
2.4 n = 4 spin chain them if the implementation is done in the ibmqx5
The explicit circuit for a n = 4 chain is shown in device, which allow us to save up to 16 gates of
Figure 1. First, we prepare the initial state as the depth according to IBM gate set, but they are in-
ground state for the diagonal Hamiltonian H: e dispensable for the implementation in the other
( IBM device, ibmqx4, as well as in Rigetti’s 19-
|0000i for λ > 1, qubit chip.
|gsi = (16)
|0001i for λ < 1.
• • References
H ≡ S† H T† T H S [1] D. P. DiVincenzo, Fortschritte der Physik
48, 771 (2000).
[2] IBM Quantum Experience, https://www.
Figure 9: Controlled-Hadamard gate.
research.ibm.com/ibm-q/.
[3] R. Smith, M. J. Curtis and W. J. Zeng,
7.3 Bogoliubov transformation
arXiv:1608.03355 [quant-ph] (2016).
Bogoliubov transformation is implemented using [4] D. Alsina and J. I. Latorre, Phys. Rev. A 94,
Bkn gates written in Eq. (14). The explicit de- 012314 (2016).
composition is shown in Figure 10, where the
controlled-RX gate (shown in Figure 11 has been [5] Y. Wang, Y. Li, Z. Yin and B. Zeng, npj
decomposed using the methods of Ref.[29]). Ro- Quantum Information 4, 46 (2018).
tational gates are part of the basic Rigetti gate set [6] J. S. Devitt, Phys. Rev. A 94, 032329 (2016).
and are equivalent to IBM’s gates RX ≡ U3 (φ = [7] R. P. Feynman, Int. J. Theor. Phys. 21, 467
0, λ = π), RY ≡ U3 (φ = λ = 0) and RZ ≡ U1 . (1982).
[8] M. H. Kalos, Phys. Rev. 128, 1791 (1962).
• [9] B.L. Hammond, W. A. Lester Jr. and P.J.
Bkn Reynolds, MonteCarlo Methods in Ab Initio
≡ X • RX (θk ) • X Quantum Chemistry, World Scientific, Sin-
gapore (1994).
Figure 10: Bogoliubov gate decomposition. Controlled- [10] N. S. Blunt, T. W. Rogers, J. S. Spencer and
RX gate needed is shown in Figure 11. W. M. C. Foulkes, Phys. Rev. B 89, 245124
(2014).
• • •
[11] R. Orús, Ann. Phys. 349, 117 (2014).
RX (θk ) ≡ A B C [12] G. Vidal, Phys. Rev. Lett. 91, 147902
(2003).
[13] G. Ortiz, J. E. Gubernatis, E. Knill, and R.
Figure 11: Controlled-RX gate decomposition in terms
of the rotational gates A = RZ π2 RY θ2 , B =
Laflamme, Phys. Rev. A 64, 022319 (2001).
RY − θ2 and C = RZ − π2 .
[14] D. Wecker, M. B. Hastings, N. Wiebe, B. K.
Clark, C. Nayak and M. Troyer, Phys. Rev.
7.4 Initial state preparation A 92, 062318 (2015).
The ground state of the n = 4 Ising model in [15] Z. Jiang, K. J. Sung, K. Kechedzhi, V. N.
the diagonal basis is |0000i for λ > 1 and |0001i Smelyanskiy and S. Boixo, Phys. Rev. Appl.
for λ < 1. Qubits are always initialized in the 9, 044036 (2018).
|0i state both in IBM and Rigetti devices. Then, [16] B. Kraus, Phys. Rev. Lett. 107, 250503
to compute the ground state, we only need to (2011).