BKSF
BKSF
orderings of the exponentiated terms and found lower Trotter errors than previously reported for Jordan-Wigner
and Bravyi-Kitaev algorithms. These results open the door to further study of the BKSF algorithm for quantum
simulation.
with
N N
X ∇2xi 1 X 1
H(~x) = − + Vext (xi ) +
i
2 2 j
|x i − x j |
(2)
Here ~x = (x1 , x2 , ...xN ) represents the spatial coordinates
of all N electrons and ω ~ = (ω1 , ...ωN ) represents their spin
coordinates with ωj = ± 12 . Note that we assumed that the
external electronic potential is constant in time which is con-
sistent with the approximation of static nuclei.
Our primary focus in this article is on electronic structure.
Consequently, we will require that the N -body wave function
Ψ be completely antisymmetric. To enforce antisymmetry, we
will impose the fermionic algebra on the creation and annihi-
lation operators, {a†j }M M
j=1 and {aj }j=1 respectively. In the
second quantization formalism, the operators create and anni-
hilate into single particle modes {χj (x, ω)}M j=1 . These single
particle wave functions are called modes or orbitals through-
out this paper.
The antisymmetric property of the wave function, is built
into the algebra by having the creation and annihilation oper-
ators satisfy following relations:
aj ak + ak aj = 0, aj a†k + a†k aj = δjk 1 (3)
The action of creation and annihilation operators on
occupation number N -body basis states |f1 ...fM i =
(a†i )f1 ...(a†M )fM |Ωi is given by:
a†j |f1 ...fj−1 0fj+1 ...fM i = (−1)Γj |f1 ...fj−1 1fj+1 ...fM i
a†j |f1 ...fj−1 1fj+1 ...fM i = 0
aj |f1 ...fj−1 1fj+1 ...fM i = (−1)Γj |f1 ...fj−1 0fj+1 ...fM i
aj |f1 ...fj−1 0fj+1 ...fM i = 0 (4)
Pj−1
Here Γj = s=1 fs , and fi represents the occupation of
fermionic mode χi (x, ω) and |Ωi is the vacuum state with no
fermionic particles present.
With these operators in hand, we can turn to expressing
FIG. 1. Quantum simulation of fermionic systems requires encod- both the Hamiltonian and N -body wave function in terms of
ing the fermionic system onto qubits, studying their evolution over the underlying one-particle basis set. Firstly, we can write the
time and then decoding the qubits to get relevant fermionic system Hamiltonian as
parameters. The Jordan-Wigner transformation, shown on the left,
M M
maps each mode to a qubit. The Bravyi-Kitaev Superfast (BKSF) 1X
hij a†i aj + hijkl a†i a†j ak al
X
transformation, shown on the right, maps each edge to a qubit. The H= (5)
ij
2
schematic representation of the Bravyi-Kitaev transform is the same ijkl
as the Jordan-Wigner.
with hij and hijkl one-electron and two-electron integrals of
the operators projected into the basis set. That is to say,
∇2x
Z
∗
A. Fermionic Systems and Second Quantization hij = χi (x, ω) − + Vext (x) χj (x, ω)dxdω
2
∇2x
Z
∗
The evolution of a non-relativistic quantum system is gov- = δσi σj φi (x) − + Vext (x) φj (x)dx (6)
2
erned by Schrödinger’s equation, which in atomic units (me =
e = ~ = 1), is given by and
φ∗i (x1 )φ∗j (x2 )φk (x2 )φl (x1 )
Z
hijkl = δσi σl δσj σk dx1 dx2
|x1 − x2 |
∂Ψ
i (~x, ω
~ , t) = H(~x)Ψ(~x, ω
~ , t) (1) (7)
∂t
3
Here, the modes within the basis set were decomposed as where
χi (x, ω) = φi (x)σi (ω) with φi (x) as the spatial orbital and
1
σi (ω) as the spin function. Since the Hamiltonian does not p1 = p2 = p4 = p5 = 1 , p3 = 1 − 4p1
interact with the spin component of the wave function, σi is 4 − 43
either α(ω) or β(ω) corresponding to spin up or spin down. for the fourth order. In our study we focused on comparing
The two orthogonal spin functions are defined via α( 21 ) = the results of different algorithms using the first order Trotter-
β(− 12 ) = 1 and α(− 12 ) = β( 12 ) = 0. Suzuki formula. We present the results in the Section VI.
The fermionic operators used in the second quantized rep- An alternative is the Taylor approximation method where
resentation of electronic Hamiltonian obey the fermionic al-
gebra which is different from the algebra obeyed by qubits. x
X
Therefore, a transformation from fermionic operators to qubit Ũapprox = (−it)n H n (13)
operators is required to represent the Hamiltonian in terms of n=0
qubit operators.
is projected onto a unitary operator using amplitude amplifi-
cation [30].
B. Implementing qubit Hamiltonians on quantum computers
C. Phase Estimation Algorithm
Qubit representation of the Hamiltonian can be used to time
evolve a given state on a quantum computer. To implement
Given an unitary operator, U , and its eigenvector, v, the
the evolution, we need to implement the unitary, exp(−iHt).
phase estimation algorithm [35] allows us to calculate the
If all the qubit operators in the Hamiltonian commute then
eigenvalue, exp(2πiφ) corresponding to the given eigenvec-
the time evolution of a given state under a given electronic
tor. To carry out the algorithm we need two registers, one con-
Hamiltonian is relatively simple to achieve. The exponential
taining the eigenvector, and another to store the eigenvalue.
can be implemented as follows:
! The schematic of the algorithm is as follows:
X Y
exp(−iHt) = exp −i Hi t = exp(−iHi t) (8) |0i / QF T • QF T −1
i i
where H is the Hamiltonian, and Hi represents individual |vi / U
terms of H with qubit operators. So, each of the qubit op-
erator terms can be exponentiated in succession to implement The eigenstate, |vi, is initialized and then U is applied for a
the Hamiltonian. given amount of time. The eigenstate picks up a phase pro-
But, in general, the terms do not commute. Even in the portional to the time for which the unitary was applied and
case of hydrogen molecule in a minimal basis set, there are this phase is read from the first register. For the case of the
many non-commuting terms in the Hamiltonian. So, an ap- electronic Hamiltonian, the unitary is exp(−iHt), and the
proximation to the time evolution operator is required. The eigenvector is the ground state. As discussed earlier, apply-
Trotter-Suzuki formula [33, 34] is used to approximate the ing exp(−iHt) is not trivial for the Hamiltonian that contains
time evolution of the Hamiltonian. For two non-commuting non-commuting terms. Hence, the Trotter-Suzuki approxima-
operators A and S, the first order Trotter-Suzuki formula is tion presented in the last subsection, is used. The number of
given as: Trotter steps can be increased until chemical precision of 10−4
At St n Hartrees is achieved.
e(A+S)t ≈ e n e n + O(t(δt)) (9)
where, t is the time for which time evolution takes place, δt = D. State preparation
t/n is the time step, and n is the number of Trotter steps used
for the approximation. Increasing the number of Trotter steps
Although the phase estimation algorithm can be used to in-
decreases the error and hence, better approximates the original
terrogate the state efficiently on quantum computers, it is not
time evolution operator.
always obvious how to prepare the initial state of the simula-
Another way to reduce the error is to use higher order
tion. In fact, such state preparation problems can be formu-
Trotter-Suzuki formulas [33, 34]. The second, third and fourth
lated as representatives of the quantum NP class [36]. Despite
order Trotter-Suzuki formulas are given as:
At St At n the difficulty of the worst case problem instances, many prac-
e(A+S)t ≈ e 2n e n e 2n + O(t(δt)2 ) (10) tical instances can be approached using classical and quantum
7At 2St 3At −2St −1At St n heuristics for state preparation.
e(A+S)t ≈ e 24n e 3n e 4n e 3n e 24n e n + O(t(δt)3 ) Classical approximations for the wave function with poly-
nomial length fixed-basis expansions can be input to quan-
(11) tum computers [17, 37]. Thus, Hartree-Fock wave functions
5
!n
Y pi At pi St pi At [38, 39] as well as post-Hartree-Fock wave functions [40, 41]
e(A+S)t ≈ e 2n e n e 2n + O(t(δt)4 ) (12) can be used as approximate ground states. If the approximate
i=1 state has polynomial overlap with the ground state, the phase
4
estimation algorithm can then be used a polynomial number A. Jordan-Wigner and Bravyi-Kitaev Transformation
of times to project the approximate state into the ground state.
In the cases that the classical approximation is insufficient, Just as classical computers use two-level bits as their ba-
quantum heuristics have also been developed to assist with sic units, quantum computers use qubits as their basic units
state preparation. Adiabatic state preparation [25, 38] starts which are also two-level systems. There exists an useful cor-
with a Hamiltonian with an easy to prepare ground state and respondence between orbitals and qubits, since the occupation
slowly changes it to the electronic Hamiltonian of interest. number of a particular orbital can be associated with the two
The rate of change should be slow to satisfy the adiabatic the- states of the qubits. Direct identification between occupation
orem, however it is usually not known beforehand what the of orbitals and the two levels of qubits, was first defined in
optimal schedule is. the context of 1D lattice models [18] and then proposed as a
Another quantum state preparation and measurement tech- scheme for simulating fermions [17].
nique is the variational quantum eigensolvers (VQE) [5, 13, The raising and lowering operators for qubits, given as:
31]. The VQE allows a feedback loop between the classical
and quantum computer to be established [31] and has been 1 x
Q± = (σ ∓ iσ y ) (14)
used in experimental investigations [2]. 2
do not satisfy the anti-commutation relations described by Eq.
(4). This motivates the following definition for creation and
E. OpenFermion annihilation operators:
a†j ≡ 1⊗n−j−1 ⊗ Q+ z ⊗j
j ⊗ [σ ] (15)
To facilitate the wide-spread adoption of quantum simula-
tion, researchers have been developing a Python-based toolset aj ≡ 1 ⊗n−j−1
⊗ Q−
j
z ⊗j
⊗ [σ ] (16)
called OpenFermion. OpenFermion (previously known as
Fermilib) [14] is an open source project providing the classical With these operators, the fermionic Hamiltonian represented
routines necessary for simulating fermionic models and quan- in second quantization can be transformed to the qubit Hamil-
tum chemistry problems on quantum computers. It is written tonian.
mostly in Python and supports ProjectQ [42], Psi4 [43] and Analyzing the expressions above, it is seen that the locality
few other open source projects for quantum chemistry prob- of a single fermionic operation scales as O(M ) where M is
lems. ProjectQ provides an interface for hardware and Psi4 the number of modes. This is because for an operation with
provides an interface for standard electronic structure routines the creation or annihilation operator, the qubits preceding it
such as Gaussian integral evaluations. are also involved to get the correct parity (sign). This O(M )
cost can turn out to be quite expensive as M gets large. The
The quantum simulation of a molecule begins with Hamil-
circuit for the transformed Hamiltonian can be processed be-
tonian integrals computed using Psi4. These Hamiltonian pa-
fore actually implementing it on a quantum computer. This
rameters are transformed to the qubit operators, e.g. via the
has been explored by [45] and the cost can be brought down.
BKSF algorithm, using OpenFermion. The qubit Hamiltonian
Another way to improve the simulation is by using a map-
can be further compiled to quantum hardware such as e.g. for
ping that lowers the cost of creation and annihilation opera-
the IBM Quantum Experience [44]. The hardware interfacing
tors. If instead of occupation numbers, the parity is stored in
can be done directly through OpenFermion or via ProjectQ.
the qubits then the cost for the parity operator would come
To validate the algebraic expressions of different opera-
down from O(M ) to O(1). But, with this parity scheme, ev-
tors in BKSF, Matlab code was developed for both BKSF
ery time a fermionic operator is applied it will be required to
and Jordan-Wigner. After validation, the code was ported to
update all the qubits following it to store the right parity. So,
Python and contributed to the OpenFermion project. Most of
there is no improvement and the cost for the fermionic op-
the work presented in this paper including full implementa-
erators remain O(M ). The alternative to this was provided
tion of BKSF and extensive test routines can be found at the
by Bravyi and Kitaev [21] and had already been explored
OpenFermion repository [14].
from computer science perspective [46]. The idea is to strike
a balance between storing parity and occupation number in
the qubits. It is similar to idea of Fenwick trees [19, 46] in
III. TRANSFORMATIONS FROM FERMIONIC classical computation. With Fenwick trees, occupation num-
OPERATORS TO QUBIT OPERATORS ber basis are mapped to different basis such that the cost of
parity operators and update operators is log(n). In essence,
One of the main steps of quantum simulation and the cen- Bravyi-Kitaev is a compromise between the Jordan-Wigner
tral idea for this paper is the mapping from fermionic opera- and parity-scheme.
tors to qubits operators. Given the coherence times of current
quantum computers, it is crucial to have an efficient mapping.
The mapping affects efficiency with which time evolution un- B. Bravyi-Kitaev Superfast (BKSF) Algorithm
der a given Hamiltonian can be implemented. This section
will describe Jordan-Wigner and Bravyi-Kitaev transforma- BKSF defines another spin-fermion mapping where the
tion briefly. BKSF will be explained in detail. number of gates required to implement fermion operators are
5
O(d), where d is a constant. This model draws some inspi- to the modes. If there is no interaction term in the Hamilto-
ration from Kitaev’s honeycomb model [47, 48] where Majo- nian for the two modes, then the corresponding edge in not re-
rana modes are used to make the diagonalization of the Hamil- quired in the graph. After constructing the graph correspond-
tonian tractable. First proposed by Ettore Majorana [49], the ing to the Hamiltonian, qubits are put on the edges and new
Majorana modes were real solutions to the Dirac equation. edge operators are defined which can generate the algebra of
Each modes can, at least mathematically, be split into two Ma- modes on the vertices. These operators are defined in terms of
jorana modes. Majorana modes can be defined as follows: Majorana modes.
For a case with M modes, the graph will have M vertices
c2j = aj + a†j (17) and let us assume that we have E, edges. Now, corresponding
to the creation and annihilation operators, a†j and aj , for the
c2j+1 = −i(aj − a†j ) (18)
vertices, edge operators are defined as follows [21]:
These operators are Hermitian and satisfy: Bi = −ic2i c2i+1 for each vertex, (20)
cj ck + ck cj = 2δjk (19) Aij = −ic2i c2j for each edge (i, j) ∈ E, (21)
where c2j and c2j+1 are the Majorana modes (19). The edge
With the above definition, Majorana fermions should exist in
operators satisfy the following relations [21]:
all fermionic systems.
An interesting approach, first presented by Kitaev in the Bi† = Bi , A†ij = Aij ,
context of quantum memory, was to pair Majorana fermions
by interaction [50]. This would lead to few unpaired Majo- Bi2 = 1, A2ij = 1,
rana modes which cannot interact with environment on their Bi Bj = Bj Bi , Aij = −Aji
own because the operator, cj is not physical. And hence infor- δik +δjk
Aij Bk = (−1) Bk Aij ,
mation encoded in such a system would stay protected from
δik +δil +δjk +δjl
the environment. Aij Akl = (−1) Akl Aij
The BKSF model uses Majorana modes as intermediate op- p
i Aj0 j1 Aj1 j2 ....Ajp−2 jp−1 Ajp−1 j0 = 1 (22)
erators corresponding to the interaction of fermionic modes,
for any closed loop path on the graph
which are then transformed to qubit operators. Unlike the
Jordan-Wigner and Bravyi-Kitaev algorithms, the BKSF algo- As will be shown in Section IV, all the physical fermionic
rithm requires the mapping of problem to a new model where operators can be represented in terms of these edge opera-
more qubits are required. tors. In essence, the edge operators can be used to generate
A brief summary of the BKSF algorithms is: fermionic algebra.
Furthermore, in this model, only the sector of the Hamilto-
1) Map the orbitals/modes to vertices of a graph. Number nian that has an even number of particles is examined. This
of modes required are equal to the number of one parti- is because, with the two edge operators available to us, Aij
cle basis set functions used to expand Hamiltonian. and Bi , there is no combination of Aij and Bi that produces
2) Given the Hamiltonian, get the number of edges re- single/odd number of Majorana mode operators. Similarly, an
quired for the model. individual or an odd number of creation and annihilation op-
erator represented using Majorana modes involve odd number
3) Put the qubits on the edges and find the edge operator of Majorana modes. So, we can establish that we cannot rep-
expressions for terms in the Hamiltonian using expres- resent single/odd number of creation and annihilation opera-
sions presented in Section IV. tors in the BKSF model. But this is not a problem for physical
operators because all the physical operators contain even mul-
4) Find the qubit operator representation of edge operators tiples of creation and annihilation operators which lead to an
using Eq. (24) and (25). In the Hamiltonian, replace the even number of Majorana mode operators. So, the edge op-
edge operators, Aij and Bi with Ãij and B̃i . erators are sufficient to represent the electronic Hamiltonian
and the model can be used to look at the even sector. For
5) Find the independent loops in the graph. Define stabi- the even sector of the Hamiltonian the model satisfies another
lizers for those loops. constraint:
6) Use the stabilizers to find the relevant subspace for
Y
Bi = 1 (23)
quantum simulation and the vacuum state. i
After these steps the Hamiltonian expressed in qubit operators We can sketch a way to simulate odd number of particles,
can be used along with the phase estimation algorithm (PEA) but we have not included the details in our discussion. The
to find the energy of the molecule. We will now present details Hilbert space of the abstract model defined for the Hamilto-
about the BKSF algorithm. nian can be expanded by adding an extra mode. We can make
BKSF algorithm defines an abstract model by mapping sure that the added mode does not interact with the rest of the
fermionic modes to the vertices of a graph. If two modes in- modes by not having any terms in the Hamiltonian that in-
teract then an edge is put between the vertices corresponding clude the energy for this mode. The even sector of this new
6
consequence of antisymmetric nature of the fermionic wave Double excitation operator For double excitation operator
function. The algebraic expression for Coulombic/exchange we take the usual approach where we put in the expressions
operator is a†i a†j aj ai which can also be written as a†i ai a†j aj , for a†i and ai in terms of the Majorana modes and make use of
since ai a†j aj = a†j aj ai . Therefore, we have the properties of Majorana modes to simplify the expression.
The double excitation operator is given by:
a†i ai a†j aj = (a†i ai )(a†j aj )
a†i a†j ak al + a†l a†k aj ai
1 − Bi 1 − Bj
= . (34)
2 2 Let us start with a†i a†j ak al :
Excitation operator Excitation operator provides informa-
a†i a†j ak al
tion about the kinetic energy associated with fermions while
going from one modes to the other. The expression for the (c2i − ic2i+1 ) (c2j − ic2j+1 ) (c2k + ic2k+1 ) (c2l + ic2l+1 )
=
excitation operator is given as a†i aj + a†j ai . We represent this 2 2 2 2
expression in terms of Majorana modes as:
Similarly,
(c2i − ic2i+1 ) (c2j + ic2j+1 )
a†i aj = a†l a†k aj ai
2 2
1 (c2l − ic2l+1 ) (c2k − ic2k+1 ) (c2j + ic2j+1 ) (c2i + ic2i+1 )
= (c2i c2j + ic2i c2j+1 − ic2i+1 c2j + c2i+1 c2j+1 ) =
4 2 2 2 2
Similarly, Now, if we add the two expressions, we are left with:
V. ELECTRONIC HAMILTONIAN OF HYDROGEN FIG. 3. Pictorial representation of the fermionic modes and the inter-
MOLECULE action between them for the hydrogen molecule. This graph is based
on the Hamiltonian given in Eq. (41) and (43).
We will use the abstract model presented in the previous
section and apply it to the example of hydrogen molecule. The
electronic Hamiltonian, Eq. 5, in minimal basis will have four the numbering would go something like,
fermionic modes and hence we will need four vertices for the
graph. The Hamiltonian was worked out by [39] and is given
4 3 2 1
as follows: z }| { z }| { z }| { z }| {
(3, 4) ← (2, 3) ← (1, 4) ← (1, 2)
H(1) = h11 a†1 a1 + h22 a†2 a2 + h33 a†3 a3 + h44 a†4 a4
So, we would need four qubits in total to simulate.
H(2) = h1221 a†1 a†2 a2 a1 + h3443 a†3 a†4 a4 a3 + h1441 a†1 a†4 a4 a1 +
The required operators for BKSF model in terms of Pauli
h2332 a†2 a†3 a3 a2 + (h1331 − h1313 )a†1 a†3 a3 a1 operators are given below. We make use of Eq. (24) and (25),
+ (h2442 − h2424 )a†2 a†4 a4 a2 to get the Pauli representation of the edge operators.
substituting edge operators and simplifying we get: corresponding to the Hamiltonian. From Figure 3, we can see
that there is just one loop:
h1221
H(2) = (1 − B1 − B2 + B1 B2 )
4 L1 → (1234) (45)
h3443
+ (1 − B3 − B4 + B3 B4 )
4 and it agrees with the formula for the number of independent
h1441 loops, L − M + 1 = 1 − 1 + 1 = 1. The expressions for the
+ (1 − B1 − B4 + B1 B4 ) stabilizer for this loop is given by:
4
h2332
+ (1 − B2 − B3 + B2 B3 ) StabL1 = A12 A23 A34 A41 (46)
4
(h1331 − h1313 ) The edge operators Aij can be replaced by the corresponding
+ (1 − B1 − B3 + B1 B3 )
4 Ãij and Pauli representation for the stabilizers could be found.
(h2442 − h2424 ) As we presented in Section III C, stabilizer operators define
+ (1 − B2 − B4 + B2 B4 )
4 the code-space for the system. The stabilizer presented here
h1243 will define the code-space for the hydrogen molecule system.
+ A12 A43 (−1 − B1 B2 + B1 B4 + B1 B3
8 We can find the vacuum state of the system in BKSF basis
+ B2 B4 + B2 B3 − B4 B3 + B1 B2 B4 B3 ) using Eq. (32). Once the state is initialized using the vacuum
h1423 state, the state will remain in the code space.
+ A14 A23 (−1 − B1 B4 + B1 B2 + B1 B3
8
+ B4 B2 + B4 B3 − B2 B3 + B1 B4 B2 B3 )
VI. RESULTS
Now, replacing Aij and Bi with Ãij and B̃i , Eq. (40) in H(1)
and H(2) we get the Pauli representation of the Hamiltonian In this section we start by presenting the Hamiltonian
as: for hydrogen molecule in BKSF, Jordan-Wigner and Bravyi-
Kitaev basis. Next, we present the number of gates required
1 to implement a given term in the Hamiltonian. The number
H = (2h11 + 2h22 + 2h33 + 2h44 + h1221 + h3443
4 of gates required for a single Trotter step are presented in the
+ h1441 + h2332 + h1331 − h1313 + h2442 − h2424 ) Table III. Finally, we present the analysis of Jordan-Wigner,
1 Bravyi-Kitaev, and BKSF algorithm for the case of hydrogen
+ (−2h11 − h1221 − h1441 − h1331 + h1313 )σ2z σ1z molecule.
4
1 To obtain the spin Hamiltonian, we used a combination of
+ (−2h22 − h1221 − h2332 − h2442 + h2424 )σ3z σ1z Psi4 and OpenFermion. The necessary molecular integrals are
4
1 given in Table II. First, the hydrogen molecular Hamiltonian
+ (−2h33 − h3443 − h2332 − h1331 + h1313 )σ4z σ3z via BKSF is given by:
4
1
+ (−2h44 − h3443 − h1441 − h2442 + h2424 )σ4z σ2z HBKSF = − 0.045321σ4z σ3x σ2x σ1z − 0.045321σ4z σ3y σ2y σ1z
4
1 1 + 0.171201σ2z σ1z + 0.045321σ4x σ1x
+ (h1221 + h3443 )σ3z σ2z + (h1441 + h2332 )σ4z σ1z + 0.171201σ3z σ1z + 0.3429725σ3z σ2z
4 4
1
+ (h1331 − h1313 + h2442 − h2424 )σ4z σ3z σ2z σ1z + 0.045321σ4y σ1y − 0.2227965σ4z σ3z
4 + 0.045321σ4y σ3z σ2z σ1y − 0.2227965σ4z σ2z
h1243 x x
+ (σ4 σ1 + σ4y σ1y + σ4y σ3z σ2z σ1y ) − 0.045321σ3y σ2y + 0.2410925σ4z σ3z σ2z σ1z
4
h1423 + 0.331736σ4z σ1z − 0.812610I (47)
+ (−σ4z σ3x σ2x σ1z − σ3y σ2y − σ4z σ3y σ2y σ1z ) (44)
4 The qubit Hamiltonians corresponding to the Jordan-Wigner
This completes the transformation of the Hamiltonian to qubit and Bravyi-Kitaev algorithms are given by:
operators. This Hamiltonian can be exponentiated and be used
along with phase estimation algorithm (PEA) to get the ener- HJW = − 0.81261I − 0.045321σ4x σ3x σ2y σ1y
gies of the molecule. − 0.222796σ3z + 0.045321σ4x σ3y σ2y σ1x
To restrict the dynamics to the Fock space, we need to make − 0.222796σ4z + 0.045321σ4y σ3x σ2x σ1y
use of stabilizers. Stabilizers can be used to get the vacuum
state of the system, which then can be used to initialize a given + 0.17434925σ4z σ3z − 0.045321σ4y σ3y σ2x σ1x
state. Once a state is initialized in the code space, it remains in + 0.171201σ1z + 0.171201σ2z
code space as the edge operators commute with the stabilizer + 0.1686232σ2z σ1z + 0.165868σ3z σ2z
operators.
+ 0.165868σ4z σ1z + 0.120546σ3z σ1z
As we discussed in the last section the stabilizers for a given
Hamiltonian are based on the independent loops in the graph + 0.120546σ4z σ2z (48)
11
TABLE II. One-electron and two-electron molecular integrals for hy- TABLE III. Total gate requirements to implement the unitary
drogen molecule. The integrals were calculated using the Psi4 with exp(−iHt) for Jordan-Wigner, Bravyi-Kitaev, and BKSF algorithm.
STO-3G [55] as the basis set, and bond length 0.7414 Å.
Hamiltonian Gate Count
Integrals Value (in Atomic Units) HJW 82
h11 = h22 -1.25246357 HBK 74
h33 = h44 -0.47594871 HBKSF 79