Quantum Architecture Search with Unsupervised Representation Learning

Yize Sun, Zixin Wu, Volker Tresp, Yunpu Ma · DOI

TL;DR

This paper introduces a novel framework for Quantum Architecture Search (QAS) that decouples the learning of circuit structures from the search for high-performance designs. By using unsupervised representation learning to map quantum circuits into a smooth, continuous latent space, the authors enable efficient, "predictor-free" searching that significantly reduces computational costs and eliminates the need for massive labeled datasets.

What Problem Does This Paper Address?

Designing effective quantum circuits for Noisy Intermediate-Scale Quantum (NISQ) devices is notoriously difficult. Researchers typically use Variational Quantum Algorithms (VQAs), but finding the right circuit "ansatz" (architecture) is a game of trial and error.

Existing Quantum Architecture Search (QAS) methods suffer from two main bottlenecks:

  1. High Computational Cost: Most algorithms couple the search and evaluation phases, requiring thousands of expensive quantum simulations or hardware runs.
  2. The Labeling Burden: "Predictor-based" methods try to estimate circuit performance, but they require large datasets of labeled circuits (circuits paired with their performance scores) to train. Generating these labels is time-intensive and often impractical for large-scale problems.

The authors aim to bridge this gap by learning what makes a circuit structure unique before ever measuring its performance.

Methods

The authors propose a two-stage framework inspired by classical neural architecture search (specifically the Arch2vec algorithm):

Stage 1: Unsupervised Representation Learning The goal here is to create a "map" of the circuit search space.

  • Encoding: Circuits are represented as Directed Acyclic Graphs (DAGs). The authors introduced an enhanced encoding scheme that distinguishes between control and target qubits in two-qubit gates (like CNOT) and uses edge weights to reflect the complexity of multi-qubit interactions.
  • The Model: They use a Variational Graph Autoencoder (VGAE) with a Graph Isomorphism Network (GIN) as the encoder. GIN is chosen for its superior ability to distinguish subtle structural differences in graphs. The model is trained on 100,000 unlabeled, randomly generated circuits to reconstruct the original circuit from a compressed latent representation ($Z$).

Stage 2: Predictor-Free Search Once the latent space $Z$ is learned and frozen, the search begins. Instead of searching the discrete, messy space of all possible gate combinations, algorithms like REINFORCE (Reinforcement Learning) and Bayesian Optimization (BO) explore the smooth, continuous latent space to find high-performing candidates.

Figure 1: Illustration of our algorithm. In Figure 1a, each circuit’s architecture is first transformed into a DAG and represented by two matrices. Each row of the gate matrix corresponds to a node in the graph, with one-hot encoding used to indicate the node type, and additional columns encoding position information, such as the qubits the gate acts on. For two-qubit gates, −1 and 1 represent the control and target qubits, respectively. The weights in the adjacency matrix reflect the number of qubits involved in each interaction. In Figure 1b, the left side depicts the process of representation learning, where Z represents the latent space of circuit architectures. In the middle, the encoder is shown as the mechanism used to learn this latent space. On the right, Bayesian optimization (BO) and reinforcement learning (RL) are employed to explore the latent space for various quantum machine learning tasks. The algorithm ultimately outputs a set of candidate circuits.

Datasets

The framework was pre-trained on a dataset of 100,000 randomly generated quantum circuits (ranging from 4 to 12 qubits).

To evaluate the search performance, the authors tested the framework on three benchmark quantum machine learning applications:

  • Quantum State Preparation: Finding circuits that can accurately prepare a specific target quantum state.
  • Max-Cut Problems: A combinatorial optimization task solved using the Variational Quantum Eigensolver (VQE).
  • Quantum Chemistry: Calculating the ground-state energy of molecules like $H_2$ and $LiH$, and simulating the Transverse Field Ising Model (TFIM).

Key Insights and Ideas

  • Decoupling is Key: By separating structure learning from performance evaluation, the learned representations can be reused across different downstream tasks (e.g., a representation learned once can be used for both chemistry and optimization tasks).
  • Structural Smoothness: The "aha moment" is that circuits with similar structural properties naturally cluster together in the latent space. Because structure strongly influences performance in VQAs, these clusters often correspond to performance "sweet spots," even though the model was never shown a single performance label during pre-training.
  • Qubit Roles Matter: The enhanced encoding (assigning -1 to control and +1 to target qubits) proved vital. Prior methods treated all qubits in a gate equally, leading to ambiguous representations that hindered search efficiency.

Key Results

  • Efficiency: The framework identified high-performing circuits with significantly fewer search iterations compared to random search.
  • Competitive Performance: The "predictor-free" approach achieved results comparable to state-of-the-art predictor-based methods, but without the massive overhead of generating labeled training data.
  • Hardware Validation: The authors took the best Max-Cut circuits discovered by their algorithm and ran them on IBM’s ibm_sherbrooke quantum processor. Despite real-world hardware noise and decoherence, the circuits maintained 100% probability of measuring the optimal bitstring, proving the discovered architectures are robust.

Limitations and Future Work

  • Scalability to High Qubit Counts: While successful at 4 and 8 qubits, the search efficiency dipped slightly at 12 qubits. The authors note that 100,000 circuits might not be enough to fully "map" the exponentially larger search space of higher-qubit systems.
  • Latent Space Complexity: As the number of qubits increases, the latent space becomes less "smooth," making it harder for RL and BO agents to navigate.
  • Future Directions: The authors suggest investigating more advanced architecture representation techniques and developing even more efficient search strategies specifically tailored for the latent spaces of quantum circuits.

Summary updated

BibTeX
@inproceedings{sun2024quantum,
  author = {Yize Sun and Zixin Wu and Volker Tresp and Yunpu Ma},
  title = {{Quantum Architecture Search with Unsupervised Representation Learning}},
  booktitle = {Quantum},
  year = {2024},
  doi = {10.22331/q-2026-02-03-1994},
}
Figure