Skip to main content
QUICK REVIEW

[Paper Review] GA4QCO: Genetic Algorithm for Quantum Circuit Optimization

Leo Sünkel, Darya Martyniuk|arXiv (Cornell University)|Feb 2, 2023
Quantum Computing Algorithms and ArchitectureComputer Science11 citations
TL;DR

GA4QCO uses a genetic algorithm to automatically generate and optimize quantum circuits guided by user-defined fitness functions, demonstrated with fidelity targets and restricted gate sets.

ABSTRACT

The design of quantum circuits is often still done manually, for instance by following certain patterns or rule of thumb. While this approach may work well for some problems, it can be a tedious task and present quite the challenge in other situations. Designing the architecture of a circuit for a simple classification problem may be relatively straightforward task, however, creating circuits for more complex problems or that are resilient to certain known problems (e.g. barren plateaus, trainability, etc.) is a different issue. Moreover, efficient state preparation or circuits with low depth are important for virtually most algorithms. In attempts to automate the process of designing circuits, different approaches have been suggested over the years, including genetic algorithms and reinforcement learning. We propose our GA4QCO framework that applies a genetic algorithm to automatically search for quantum circuits that exhibit user-defined properties. With our framework, the user specifies through a fitness function what type of circuit should be created, for instance circuits that prepare a specific target state while keeping depth at a minimum and maximizing fidelity. Our framework is designed in such a way that the user can easily integrate a custom designed fitness function. In this paper, we introduce our framework and run experiments to show the validity of the approach.

Motivation & Objective

  • Motivate automatic quantum circuit design to cope with NISQ limitations and complex trainability issues.
  • Provide a framework where users define custom fitness functions to steer circuit design.
  • Demonstrate the framework by optimizing fidelity to target states and under gate-set restrictions.

Proposed method

  • Represent each circuit as an n-by-m grid of gates with metadata for gate type, qubits, parameters, and connectivity.
  • Allow user-defined fitness functions to guide the evolution toward desired circuit properties (e.g., fidelity, entanglement, ML performance).
  • Employ GA components (population, selection, crossover, mutation) with strategies like tournament/roulette/random selection and single/multi-point/blockwise crossovers.
  • Support various mutation operators (gate flips, qubit/gate count changes, column swaps, parameter tweaks).
  • Enable padding of circuits to equal sizes before crossover, and reconstruct multi-qubit gates after crossover.
  • Implement in Python with Qiskit, exposing a GitHub repository for accessible experimentation with configurable population, generations, depths, and gate sets.

Experimental results

Research questions

  • RQ1Can a GA-based framework discover quantum circuits achieving high fidelity with a given target state?
  • RQ2How does restricting the gate set affect the GA's ability to reach near-optimal circuits?
  • RQ3What are the effects of circuit depth and width constraints on optimization outcomes?
  • RQ4Can user-defined fitness functions guide the search toward specific circuit properties beyond fidelity (e.g., entanglement, ML objectives)?

Key findings

  • Fidelity optimization without gate restrictions yielded steadily improving fitness toward about 0.8 in 1000 generations with population 200.
  • With a restricted gate set {id, rz, sx, x, cx}, the best fidelity reached 0.994 (out of 1.0) across 10 runs, outperforming random baselines (best random ~0.79, average ~0.29).
  • Experiments used 4-qubit circuits with depth 20, demonstrating the framework can improve target-state fidelity over random guessing.
  • The framework easily demonstrates that custom fitness functions can guide the search toward task-specific circuit properties.
  • Results are implemented in Python with Qiskit and are available in a public GitHub repository for reproducibility.

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.