Open Problem: Learning Quantum Circuits with Queries

Jeremy Kun, Lev ReyzinCOLT 2015

Abstract

This paper investigates the intersection of computational learning theory and quantum mechanics, focusing on the feasibility of "learning" the internal structure of a quantum circuit through interactive queries. We analyze two primary query models: Function Injection Queries (FIQ), which allow for the replacement of specific gates, and Value Injection Queries (VIQ), which involve forcing internal qubits into specific basis states. Our findings indicate that while FIQs enable efficient polynomial-time learning, the quantum setting introduces unique challenges for VIQs. Notably, we demonstrate that quantum circuits break the "test-path lemma"—a fundamental tool in classical circuit learning—leaving the complexity of learning via value injection as a significant open problem.

Introduction

In classical computational learning theory, "learning a circuit" involves reconstructing its internal gates and connectivity by observing its input-output behavior. A standard technique for this task is the use of Value Injection Queries (VIQ), where a learner can "poke" internal wires to take on specific values (0 or 1) and observe the resulting changes in output. While this approach is well-established for classical, probabilistic, and even analog circuits, its application to quantum circuits is non-trivial. Quantum phenomena such as superposition and entanglement mean that local modifications can have global consequences, potentially destroying the information necessary for reconstruction. This work seeks to formalize these query models in the quantum realm and assess their efficiency.

Query Models for Quantum Circuits

We define a quantum circuit $C$ with $k$ gates and $n$ qubits and consider two primary methods for interacting with it:

  1. Function Injection Queries (FIQ): In this model, the learner can replace any specific gate in the unknown circuit with a unitary matrix of their choosing. This is analogous to replacing a component on a physical circuit board with a known part to observe the system's response.
  2. Value Injection Queries (VIQ): Here, the learner can force a subset of qubits at a specific gate to take on a specific basis state (e.g., $|0\rangle$ or $|1\rangle$). This is implemented by augmenting the circuit with auxiliary qubits and "swap" gates.

These models are analyzed under two observational conditions: with measurements, where only the final bitstring output is accessible, and observing the full state vector, a theoretical variant where the unmeasured state is known.

Learning via Function Injection

The authors demonstrate that learning via FIQs is computationally tractable. By injecting identity matrices and specific permutations, a learner can effectively isolate each gate. This isolation allows for the reconstruction of each gate's unitary matrix, from which the entire sequence of gates can be determined. Specifically, there exists an $O(nk + k \log k)$ query algorithm to learn a quantum circuit to 0-behavioral equivalence using FIQs without measurement. Even with measurements, the problem remains solvable in polynomial time with a $poly(k/\epsilon)$ overhead.

The Quantum Barrier: Failure of the Test-Path Lemma

The most significant challenge arises with Value Injection Queries. In classical probabilistic circuits, one can often trace a "test path" from an input to an output to deduce internal structure. However, the authors prove that this "test-path lemma" fails in the quantum setting.

By constructing a specific quantum "gadget" using the Bell basis, the authors show that injecting a value into a gate that lies on a path to the output can cause the output to become uniformly random. In a deterministic classical circuit, such an injection would typically yield a predictable change; in the quantum case, the injection can destroy the interference patterns required for a deterministic output. This "randomization" effect obscures the internal structure, preventing the direct application of classical VIQ learning techniques.

Key Results

The complexity of learning quantum circuits under these models is summarized in the following table:

Summary of complexity results for learning quantum circuits under different query models.

As shown, while FIQ results in polynomial complexity, the status of VIQ remains an open problem due to the failure of the test-path lemma. Lemma 2 in the paper formally establishes that there exists a circuit where every measured VIQ makes the output qubit uniformly random, despite the circuit being deterministic without injections.

Conclusion and Future Work

The primary contribution of this work is the identification of a fundamental gap between classical and quantum circuit learning. The failure of the test-path lemma suggests that researchers cannot simply "port" classical learning algorithms to quantum hardware. The complexity of learning via VIQs remains open: it is neither proven to be efficient nor proven to be hard. Future research must develop new mathematical frameworks that account for quantum interference and the complex interactions between value injections and entangled states. Resolving this open problem will have profound implications for quantum reverse-engineering and the verification of quantum devices.

Summary updated

BibTeX
@inproceedings{kun2015open,
  author = {Jeremy Kun and Lev Reyzin},
  title = {{Open Problem: Learning Quantum Circuits with Queries}},
  booktitle = {Conference on Learning Theory},
  year = {2015},
}
Figure