Scientific Reports (Jul 2023)

GASP: a genetic algorithm for state preparation on quantum computers

  • Floyd M. Creevey,
  • Charles D. Hill,
  • Lloyd C. L. Hollenberg

DOI
https://doi.org/10.1038/s41598-023-37767-w
Journal volume & issue
Vol. 13, no. 1
pp. 1 – 8

Abstract

Read online

Abstract The efficient preparation of quantum states is an important step in the execution of many quantum algorithms. In the noisy intermediate-scale quantum (NISQ) computing era, this is a significant challenge given quantum resources are scarce and typically only low-depth quantum circuits can be implemented on physical devices. We present a genetic algorithm for state preparation (GASP) which generates relatively low-depth quantum circuits for initialising a quantum computer in a specified quantum state. The method uses a basis set of $$R_x$$ R x , $$R_y$$ R y , $$R_z$$ R z , and CNOT gates and a genetic algorithm to systematically generate circuits to synthesize the target state to the required fidelity. GASP can produce more efficient circuits of a given accuracy with lower depth and gate counts than other methods. This variability of the required accuracy facilitates overall higher accuracy on implementation, as error accumulation in high-depth circuits can be avoided. We directly compare the method to the state initialisation technique based on an exact synthesis technique by implemented in IBM Qiskit simulated with noise and implemented on physical IBM Quantum devices. Results achieved by GASP outperform Qiskit’s exact general circuit synthesis method on a variety of states such as Gaussian states and W-states, and consistently show the method reduces the number of gates required for the quantum circuits to generate these quantum states to the required accuracy.