
Restoring broken symmetries using oracles
Edgar Andres Ruiz Guzman∗and Denis Lacroix†
Universit´e Paris-Saclay, CNRS/IN2P3, IJCLab, 91405 Orsay, France
(Dated: October 21, 2022)
We present a new method to perform variation after projection in many-body systems on quantum
computers that does not require performing explicit projection. The technique employs the notion
of “oracle”, generally used in quantum search algorithms. We show how to construct the oracle
and the projector associated with a symmetry operator. The procedure is illustrated for the parity,
particle number, and total spin symmetries. The oracle is used to restore symmetry by indirect
measurements using a single ancillary qubit. An Illustration of the technique is made to obtain the
approximate ground state energy for the pairing model Hamiltonian.
I. INTRODUCTION
Quantum computers promise to speed up the compu-
tation of some selected problems that are hard to solve
on classical computers [1, 2]. One of the opportunities of-
fered by quantum technologies is the simulation of many-
body quantum systems with a large number of particles,
where the exponential scaling of their Hilbert space pre-
vents their ab-initio description in classical computers as
the number of degrees of freedom increases. Assuming we
can describe the physical system accurately in the quan-
tum computer, multiple methods have been designed to
estimate the ground state energy of a Hamiltonian, e.g.,
[3–8]. We are now in the Noisy intermediate-scale quan-
tum (NISQ) computers era [9, 10]; in this period, the al-
gorithms should be tailor-made to handle a limited num-
ber of gates and qubits and the presence of noise. The
variational quantum eigensolver (VQE) [3, 4] is one of the
currently used best candidates to fill the requirements
listed above due (i) to its comparatively short coherence
time and (ii) to the possibility of customizing the ans¨atz
to the physical problem at hand.
Because of the inherent noise of current quantum pro-
cessors, the symmetry that a wave function should re-
spect when solving a physical problem will most likely be
broken accidentally. A possible way to control the errors
is eventually to enforce the symmetry with specific algo-
rithms [12–14, 16–19]. In some cases, like when a system
encounters a spontaneous symmetry breaking, it can also
be helpful to break some symmetries on purpose [20–24].
In both cases, wanted or unwanted symmetry-breaking
(SB), specific methods should be designed to restore the
symmetry (SR) in quantum computations. In the many-
body context, this avenue has been recently explored,
requiring [25] or not [26] the explicit construction of the
symmetry projected wave function. The method pro-
posed in [25] applies to any symmetries, including spin
projection problems [27]. The symmetry projection was
used in addition to classical optimization post-processing
calculations in Refs. [28, 29] to obtain ground state
∗Electronic address: ruiz-guzman@ijclab.in2p3.fr
†Electronic address: denis.lacroix@ijclab.in2p3.fr
and excited states in many-body systems. In particular,
in [28], the equivalent to the Variation-After-Projection,
called Q-VAP, has been applied to superfluid systems.
This method is based on the Quantum-Phase-Estimation
(QPE) algorithm, using the indirect measurements of a
set of ancillary qubits with a large set of quantum op-
erations to perform in the circuit. This resource de-
mand limited us to only testing the method on quan-
tum emulators, which will probably be usable on quan-
tum platforms after the NISQ period. Alternative meth-
ods to restore symmetries, eventually with lower circuit
depths and lengths, have been discussed recently in Refs.
[30, 31].
One of the promising methods evoked in Ref. [31] is
those based on oracles. Oracles are specific operators
that have been introduced in quantum search algorithms.
Among these algorithms, one can mention the Grover
method [32–35] that has been recognized as optimal for
specific query problems [36, 37]. The practical use of or-
acles depends strongly on the difficulty of constructing
them. We analyze how oracles can be implemented to
restore symmetries in the Quantum-Variation After Pro-
jection (Q-VAP) method of Ref. [29].
The procedure reduces the cost of the indirect measure-
ments compared to the QPE to that of a single qubit. It
can also continuously monitor symmetry restoration dur-
ing the variational optimization process. In particular, it
can avoid explicitly projecting the variational state each
time the energy is estimated. Illustrations of the oracle
construction are given for the parity, particle number,
and total spin symmetries. Applications are performed
on the pairing model.
II. QUANTUM
VARIATION-AFTER-PROJECTION WITH
ORACLE
Similarly to the Variation-After-Projection (VAP) per-
formed on a classical computer, in the Q-VAP approach,
a symmetry-breaking state |Ψ ({θi})iis considered where
{θi}are a set of parameters that are varied to minimize
arXiv:2210.11181v1 [quant-ph] 20 Oct 2022