Skip to main content
QUICK REVIEW

[Paper Review] GASP -- A Genetic Algorithm for State Preparation

Floyd M. Creevey, Charles D. Hill|arXiv (Cornell University)|Feb 22, 2023
Quantum Computing Algorithms and ArchitectureComputer Science3 citations
TL;DR

This paper introduces GASP, a genetic algorithm for efficient quantum state preparation in NISQ-era quantum computing. By evolving low-depth quantum circuits using Rx, Ry, Rz, and CNOT gates, GASP achieves higher fidelity with significantly fewer gates—reducing circuit depth and CNOT counts by over two orders of magnitude compared to Qiskit's exact synthesis method, especially for entangled states like W-states and Gaussian states.

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_y, 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.

Motivation & Objective

  • Address the challenge of efficient quantum state preparation in the noisy intermediate-scale quantum (NISQ) era, where circuit depth and gate count are critical constraints.
  • Overcome the limitations of existing exact synthesis methods, such as Qiskit’s SBM-based approach, which produce high-depth circuits unsuitable for near-term hardware.
  • Develop a stochastic, evolutionary approach to generate compact, high-fidelity quantum circuits for arbitrary target states using a minimal gate set.
  • Demonstrate improved robustness to noise and reduced resource requirements on both simulated and physical quantum devices compared to deterministic exact synthesis.
  • Enable practical state preparation for applications in quantum chemistry, machine learning, and optimization by minimizing error accumulation in shallow circuits.

Proposed method

  • Employ an asexual genetic algorithm framework with a single initial individual, evolving through iterative mutation and fitness evaluation to optimize quantum circuit parameters.
  • Represent quantum circuits as chromosomes using a list-based gene encoding of rotation (Rx, Ry, Rz) and CNOT gate parameters (angles and qubit targets).
  • Use a fitness function based on state fidelity to the target state, with a target fidelity threshold (e.g., 99%) guiding the evolutionary process.
  • Apply a stochastic optimization strategy where gate parameters are perturbed via Gaussian-distributed random variations during mutation, avoiding local optima.
  • Evolve circuits to minimize total gate count and circuit depth while maintaining high state fidelity, with a focus on reducing CNOT gate count due to their high error rates.
  • Benchmark results against Qiskit’s exact synthesis method using both noisy simulations (based on IBM’s ibmq_guadalupe) and physical device runs on the same hardware.
Figure 1: Overview of the GASP approach, given a desired target state vector $|\psi_{\rm{target}}\rangle$ . (i) Then, create initial population $\{P\}$ , of individuals, $P_{i}$ , which are each a quantum circuit, that generates the population states $|\psi(\vec{\theta})_{P}\rangle$ , with the appro
Figure 1: Overview of the GASP approach, given a desired target state vector $|\psi_{\rm{target}}\rangle$ . (i) Then, create initial population $\{P\}$ , of individuals, $P_{i}$ , which are each a quantum circuit, that generates the population states $|\psi(\vec{\theta})_{P}\rangle$ , with the appro

Experimental results

Research questions

  • RQ1Can a genetic algorithm generate quantum circuits for state preparation that are significantly more compact (lower depth and gate count) than exact synthesis methods like Qiskit’s SBM approach?
  • RQ2How does the performance of GASP compare to Qiskit’s exact synthesis in terms of fidelity and noise resilience when simulated with realistic gate noise models?
  • RQ3Does GASP achieve better fidelity on physical NISQ devices due to reduced circuit depth and lower error accumulation?
  • RQ4How does the circuit complexity of GASP scale with the number of qubits for highly entangled states such as W-states compared to Gaussian states?
  • RQ5To what extent does the stochastic nature of GASP affect its reliability and runtime compared to deterministic exact synthesis, and is the trade-off justified by improved hardware feasibility?

Key findings

  • GASP reduced the number of CNOT gates by over two orders of magnitude compared to Qiskit’s exact synthesis for 6-qubit W-states, achieving 59 gates versus 125.
  • For a 6-qubit W-state, GASP produced a circuit with depth 22, compared to Qiskit’s depth of 120, significantly reducing error accumulation in noisy environments.
  • In noisy simulations using IBM’s ibmq_guadalupe noise model, GASP maintained higher fidelity than Qiskit across all tested qubit counts from 2 to 10, especially at fidelities above 50%.
  • On physical IBM Quantum devices, GASP’s results closely matched the noise-simulated distributions, while Qiskit’s performance degraded more severely due to high circuit depth.
  • GASP demonstrated superior noise robustness, with resultant state distributions closely matching the ideal target even under realistic noise, as shown in 6-qubit W-state comparisons.
  • The method showed lower polynomial scaling in gate count compared to Qiskit’s exponential scaling (2^{n+1} - 2n CNOTs), particularly benefiting high-qubit systems.
Figure 2: (a) Comparison between sample solution circuits generated by GASP and Qiskit for a 6 qubit Gaussian. GASP produced a circuit with a depth of 13 and 35 gates, Qiskit produced a circuit with a depth of 120 and 125 gates. Note: these are circuits before compilation on real hardware. (b) Compa
Figure 2: (a) Comparison between sample solution circuits generated by GASP and Qiskit for a 6 qubit Gaussian. GASP produced a circuit with a depth of 13 and 35 gates, Qiskit produced a circuit with a depth of 120 and 125 gates. Note: these are circuits before compilation on real hardware. (b) Compa

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.