
merely simplicity. When one wishes to imple-
ment these encodings on specific hardware, one
generally needs to think carefully about how the
encoding can be made to “fit” into the device,
given the particular algorithm – generally with
the aim of minimizing circuit depth and quan-
tum memory use. This can be fairly non-trivial
and it suggests that instead of using an out of
the box encoding, it may be more fruitful to au-
tomatically generate a new encoding tailored to
the specifics of the hardware and of the model.
Some work has been done in this direction.
Ref. [12] explores finding optimal arrangements
of the Jordan-Wigner transform onto a specific
hardware geometry. This has the benefit of min-
imizing the operator weights of the terms in
a given Hamiltonian, while not increasing the
qubit overhead. However it may be desirable
to make such a trade-off, in which case differ-
ent methods are required in order to search over
the space of fermionic encodings that employ an-
cillary qubits to reduce the operator weight. In
Ref. [13] custom codes for the purposes of par-
allelization are considered. Here the optimiza-
tion is over the class of encodings described in
[14]. However there are many potential encod-
ings which may not fall within this class.
In this work we present a method for gener-
ating fermionic encodings tailored to the given
hardware connectivity of a device, and to a given
fermionic Hamiltonian. This method takes as
input a set of fermionic operators, constituting
the terms in the Hamiltonian, a graph specifying
the possible two-qubit interactions of the hard-
ware, and a maximum cost. The method finds
the fermionic encoding with the least possible
cost, or otherwise determines that no encoding
exists with cost less than the specified maximum.
Unlike earlier methods, ours searches in an ex-
haustive fashion over an extremely broad family
of encodings, namely all encodings which would
map Majorana monomials to Pauli operators. To
our knowledge this family subsumes nearly all
existing second quantized fermionic encodings –
with the notable exception of Ref. [15]2.
2This exception differs from the other encodings in
The cost model we consider is as follows.
Given an encoding, every term in the Hamilto-
nian is mapped to a qubit operator, which has
support on a subset of qubits. In order to simu-
late the term, these qubits must be made to mu-
tually interact. This requires interactions across
at least all edges of a minimal Steiner tree (on
the hardware graph) that contains these qubits.
Thus an effective proxy for the circuit depth of
simulating this term is the number of edges in
this Steiner tree, and the cost of a given encod-
ing is the maximum of this metric over all terms
in the Hamiltonian.
The method is brute force and employs a
branch-and-bound algorithm to search the space
of possible encodings. The size of the search
space grows very rapidly with the number of
terms in the Hamiltonian and the size of the
hardware graph. We introduce a number of
strategies to reduce the size of this search space
and exit branches early, which makes it possible
to solve small problem sizes. For large problem
sizes, it is likely that this method rapidly be-
comes too costly.
However there is a specific use case where the
size of the input specification remains small and
where our method is likely to be useful. This
is where both the system being modelled and
the hardware graph each possess translational
symmetry, and may be described concisely by
a unit cell. Translational symmetry is ubiqui-
tous in physics, but the domain where we ex-
pect this will find most use is in material sci-
ence and condensed matter, where the major-
ity of systems of interest possess translational
symmetry. Furthermore, we have already ob-
served that as superconducting quantum com-
puters scale up, qubits are being arranged in a
tiled pattern. We expect this trend to continue,
as it lends itself well to large scale manufactur-
ing. Since translational invariance is so impor-
that it constitutes a representation of the unitary group
of Majorana monomials, instead of an algebra homomor-
phism on the group algebra of the Majorana monomials,
and leverages block encodings and linear combination of
unitaries methods to simulate a unitary generated by the
required element of the algebra.
2