OpenFrontiers
← Back to the index
OP-0070OpenLearning theory

Learning Quantum Circuits with Queries

We pose an open problem on the complexity of learning the behavior of a quantum circuit with value injection queries. We define the learning model for quantum circuits and give preliminary results. Using the…

Status reported by the supplied archiveAs of 2026-09-05Source & evidence ↓

The research question

We pose an open problem on the complexity of learning the behavior of a quantum circuit with value injection queries. We define the learning model for quantum circuits and give preliminary results. Using the…

Read the original paper for precise definitions, assumptions, and numbered questions. The dated archive notes below describe reported progress and the remaining questions.

Lean 4

Not yet attached

No Lean statement or proof is attached yet. Have a formalization? Share its source to add it to this problem.

Read the original paper Full text & figures

Open Problem: Learning Quantum Circuits with Queries

Jeremy Kun (JKUN2@UIC.EDU)
Lev Reyzin (LREYZIN@MATH.UIC.EDU) Department of Mathematics, University of Illinois at Chicago

Abstract

We pose an open problem on the complexity of learning the behavior of a quantum circuit with value injection queries. We define the learning model for quantum circuits and give preliminary results. Using the test-path lemma of Angluin et al. (2009a), we show that new ideas are likely needed to tackle value injection queries for the quantum setting.

1. Introduction

Learning classical circuits with value injection queries (VIQ) was defined by Angluin et al. (2009b). In the VIQ model, one assigns values to subsets of the circuit wires and observes the output. This model has been extended to large alphabet, analog, and probabilistic circuits (Angluin et al., 2008, 2009a). There has also been work on learning networks with similar kinds of queries (Angluin et al., 2010; Kempe et al., 2003). Here, we ask how to learn a quantum circuit using VIQs. There is much work in physics on inferring the structure of specific quantum systems, but little on their generic learnability. Progress on this problem will bring together rich ideas from both the quantum and learning communities.

Model

A size kk quantum circuit CC on nn qubits is a list of gates G1,…,GkG_1, \ldots, G_k, where each GiG_i consists of an 8×88 \times 8 unitary matrix Ai:C8→C8A_i : \mathbb{C}^8 \to \mathbb{C}^8 and a list (i1,i2,i3)∈{0,1,…,n}3(i_1, i_2, i_3) \in \{0, 1, \ldots, n\}^3 of the indices of the qubits on which AiA_i operates. A qubit vv is a unit vector in C2\mathbb{C}^2. Denote the basis vectors of C2\mathbb{C}^2 as e0,e1e_0, e_1. The input to a quantum circuit is a unit vector in (C2)⊗n=C2n(\mathbb{C}^2)^{\otimes n} = \mathbb{C}^{2^n}, the nn-fold tensor product of C2\mathbb{C}^2 with itself, where each copy of C2\mathbb{C}^2 corresponds to a qubit. We denote the basis vectors of C2n\mathbb{C}^{2^n} by eie_i where 0≤i<2n0 \leq i < 2^n is written as a binary string i=b1⋯bsi = b_1 \cdots b_s and ei=⨂t=1sebte_i = \bigotimes_{t=1}^{s} e_{b_t} is the tensor product of basis states from the copies of C2\mathbb{C}^2 (called a pure state). In our model all inputs to quantum circuits will be pure states.

The computation of an input vector v=v1∈C2nv = v_1 \in \mathbb{C}^{2^n} is as follows. In step ii the following is applied to viv_i: swap columns s.t. i1,i2,i3i_1, i_2, i_3 are the first 3 columns, apply the unitary map Ai⊗I2n−3A_i \otimes I_{2^{n-3}}, and then reverse the column swap. Note that operations that only "depend" on three qubits can affect the entire state vector viv_i. After all kk gates are computed, vk+1v_{k+1} is measured, returning index ii w.p. ∣vi∣2|v_i|^2, and vk+1v_{k+1} "collapses" to the basis vector eie_i.

An instance of our model is a pair of integers n,kn, k, an unknown quantum circuit CC on nn qubits of size kk, and an unknown permutation σ\sigma on {1,…,k}\{1, \ldots, k\} masking the order of the gates. A function injection query (FIQ) is a tuple (x,S,(Bi:i∈S))(x, S, (B_i : i \in S)) where x∈{0,1}nx \in \{0,1\}^n, S⊂{1,…,k}S \subset \{1, \ldots, k\}, and BiB_i are 8×88 \times 8 unitary matrices. The response to a query is a string yy which is the final measured state of the quantum circuit formed by replacing the matrix AiA_i of gate GiG_i with Bσ(i)B_{\sigma(i)} for each i∈Si \in S and run on the starting state vector exe_x. We define an unmeasured variant where the query response is the entire state vector before measurement.

with measurements observing full state vector
VIQ open (fails test-path lemma) open
FIQ poly poly

Table 1: Summary of our results for learning quantum circuits with open problems in bold.

Given v∈{0,1}3v \in \{0,1\}^3, a value injection of vv into a gate GjG_j of a circuit CC with matrices AjA_j operating on bits (i1,i2,i3)(i_1, i_2, i_3) is an augmented circuit C′C' with three additional qubits fixed to the states ev1,ev2,ev3e_{v_1}, e_{v_2}, e_{v_3} and an additional gate HjH_j following GjG_j defined by swapping the new qubits with i1,i2,i3i_1, i_2, i_3, respectively. One can similarly inject values into a subset of gate outputs. A value injection query (VIQ) is a tuple (x,S,(vi∈{0,1}3:i∈S))(x, S, (v_i \in \{0,1\}^3 : i \in S)) where x∈{0,1}nx \in \{0,1\}^n and S⊂{1,…,k}S \subset \{1, \ldots, k\}. The response to a query is a string yy which is the measurement of the first nn qubits of the final state of the quantum circuit formed by injecting each value viv_i into gate σ(i)\sigma(i) of CC and running the resulting augmented circuit on input exe_x. We define the analogous unmeasured variant as well.

An algorithm learns to ε\varepsilon-behavioral equivalence if for any circuit CC it outputs C′C' s.t. the distributions over responses to VIQs/FIQs for CC and C′C' differ by ≤ε\leq \varepsilon in l1l_1 norm. The query complexity of an algorithm is measured in the total number of VIQs/FIQs it uses, and it has been extensively studied for classical circuit families (Angluin et al., 2008, 2009a,b).

Open Problem Determine the query complexity of learning quantum circuits with VIQs.

2. Preliminary Results

Now we give some preliminary results on learning quantum circuits with VIQs and FIQs. These results elucidate which of the questions in Table 1 are known and which remain open.

2.1. Learning quantum circuits with FIQs

Proposition 1 There is a O(klog⁡k+kn)O(k \log k + kn)-query algorithm for learning a quantum circuit with FIQs (without measurement) to 0-behavioral equivalence.

Proof The algorithm learns the gates individually and then their order. First, for each gate 1≤j≤k1 \leq j \leq k and 0≤i≤70 \leq i \leq 7, query Qj,i=(i0n−3,[k]∖{j},(I8)l∈S)Q_{j,i} = (i0^{n-3}, [k] \setminus \{j\}, (I_8)_{l \in S}). With O(n)O(n) overhead (see below), assume gate GjG_j acts on the first 3 qubits. Fixing jj and looking at all Qj,iQ_{j,i}, each output vector consists of the iith column of AjA_j. Repeat on all gates makes O(nk)O(nk) FIQs. To find the qubits GjG_j acts on: inject the identity everywhere except jj and a 3-cycle permutation at jj, and query each e1le_{1_l} where 1l1_l is the string of 0s with a 1 at position ll.

Next sort the gates in O(klog⁡k)O(k \log k) queries, ordering two gates Gj,Gj′G_j, G_{j'} as follows. Fix two permutations σ,σ′∈S8\sigma, \sigma' \in S_8 that do not commute. Form BσB_\sigma by permuting the columns of the identity matrix according to σ\sigma. Inject the identity into every gate except j,j′j, j', BσB_\sigma into jj, and Bσ′B_{\sigma'} into j′j'. Choose xx such that σσ′(x)≠σ′σ(x)\sigma\sigma'(x) \neq \sigma'\sigma(x) and input exe_x. If the order of j,j′j, j' matters the response to the query will differ, and it is trivial to determine the correct order. Note the comparisons do not need the full state vector. The query complexity is O(nk+klog⁡k)O(nk + k \log k). ■\blacksquare

Measurement adds poly⁡(k/ε)\operatorname{poly}(k/\varepsilon) FIQs to the above algorithm to make it ε\varepsilon-approximate. Consider the case with two gates Gj,Gj′G_j, G_{j'} with Aj,Aj′A_j, A_{j'} operating on the same qubits. Decompose AjA_j according to a basis of the vector space SU(8)SU(8). Inject the identity everywhere but j,j′j, j' and inject all pairwise sums of basis operations to Aj′A_{j'}, query all 8 basis vectors, and measure the outputs. Using the basis coefficients of AjA_j as variables, this gives a system of polynomial equalities in which all parameters are O(1)O(1). It can be solved to accuracy ε/k\varepsilon/k. It is easy to see that the errors across gates grow linearly, and the general case is similar.

2.2. Quantum circuits fail the test path lemma with measured VIQs

Angluin et al. (2009a) use the idea of "test paths" (from Angluin et al. (2009b)), to bound the query complexity of learning boolean probabilistic circuits. Their analysis also shows test paths fail for probabilistic circuits with an alphabet size greater than two. We show quantum circuits have the same barrier by constructing a gadget analogous to that of Angluin et al. (2009a) (Lemma 8). Define BB as a matrix as in Figure 1. Further define the standard quantum XOR gate using an extra scratchwork qubit by the mapping eijk↦eij(k⊕i⊕j)e_{ijk} \mapsto e_{ij(k \oplus i \oplus j)}.

Lemma 2 There is a circuit on which every (measured) VIQ leaving a path free makes the last output qubit uniformly random, yet with no VIQ the last output qubit is deterministic.

Proof Define CC on three qubits as in Figure 1. The circuit normally maps e000↦12(e000+e110)e_{000} \mapsto \frac{1}{\sqrt{2}}(e_{000} + e_{110}), e010↦12(e000−e110)e_{010} \mapsto \frac{1}{\sqrt{2}}(e_{000} - e_{110}), e100↦12(e111+e101)e_{100} \mapsto \frac{1}{\sqrt{2}}(e_{111} + e_{101}), and e110↦12(e111−e101)e_{110} \mapsto \frac{1}{\sqrt{2}}(e_{111} - e_{101}), i.e., the last qubit is 1 iff the input's first qubit is 1. Likewise, when the scratch-work qubit is 1, the output bit is flipped. When there is a VIQ, say, of 1 at the identity gate acting on the 2nd qubit, the mapping becomes e000↦12(e0110+e1101)e_{000} \mapsto \frac{1}{\sqrt{2}}(e_{0110} + e_{1101}), e010↦12(e0110−e1101)e_{010} \mapsto \frac{1}{\sqrt{2}}(e_{0110} - e_{1101}), e100↦12(e0111+e1100)e_{100} \mapsto \frac{1}{\sqrt{2}}(e_{0111} + e_{1100}), and e110↦12(e0111−e1100)e_{110} \mapsto \frac{1}{\sqrt{2}}(e_{0111} - e_{1100}). The extra qubit introduced by the VIQ is the last index, and the qubit of interest is the third qubit, which is uniformly random. ■\blacksquare

B=(11000011001−11−100)B = \begin{pmatrix} 1 & 1 & 0 & 0 \\ 0 & 0 & 1 & 1 \\ 0 & 0 & 1 & -1 \\ 1 & -1 & 0 & 0 \end{pmatrix}

Figure 1 Figure extracted from page 3 of the published PDF (300 DPI crop).

Figure 1: Left: the circuit for Lemma 2. Right: the columns of BB form the Bell basis.

References

Dana Angluin, James Aspnes, Jiang Chen, and Lev Reyzin. Learning large-alphabet and analog circuits with value injection queries. Mach. Learn., 72(1-2):113–138, 2008.

Dana Angluin, James Aspnes, Jiang Chen, David Eisenstat, and Lev Reyzin. Learning acyclic probabilistic circuits using test paths. J. Mach. Learn. Res., 10(Aug):1881–1911, August 2009a.

Dana Angluin, James Aspnes, Jiang Chen, and Yinghua Wu. Learning a circuit by injecting values. J. Comput. System Sci., 75(1):60–77, January 2009b.

Dana Angluin, James Aspnes, and Lev Reyzin. Optimally learning social networks with activations and suppressions. Theor. Comput. Sci., 411(29-30):2729–2740, 2010.

David Kempe, Jon Kleinberg, and Éva Tardos. Maximizing the spread of influence through a social network. In Proceedings of the Ninth ACM SIGKDD, pages 137–146, 2003.

Questions & status notes Supplied archive · 2026-09-05

These notes reproduce the supplied archive’s summaries, some of which are abbreviated or truncated. Use the original paper for a complete mathematical statement. Reported resolutions may rely on unrefereed work.

Q1 [open] Open Problem: "Determine the query complexity of learning quantum circuits with VIQs." (value injection queries, in the model of Section 1: unknown size-k quantum circuit on n qubits with gate order masked by an unknown permutation sigma; a VIQ is a tuple (x, S, (v_i in {0,1}^3 : i in S)) whose response is the measurement of the first n qubits after injecting each value v_i into gate sigma(i); lea Q1a [open] Table 1, row VIQ, column 'with measurements': query complexity of learning quantum circuits with (measured) value injection queries - marked "open (fails test-path lemma)"; Lemma 2 shows the test-path approach of Angluin et al. (2009a) fails: "There is a circuit on which every (measured) VIQ leaving a path free makes the last output qubit uniformly random, yet with no VIQ the last output qubit is Q1b [open] Table 1, row VIQ, column 'observing full state vector': query complexity of learning quantum circuits with value injection queries in the unmeasured variant ("We define the analogous unmeasured variant as well") - marked "open".

Progress & source assessment

Read the archive’s progress assessment
Status notes from the supplied COLT archive (2026-09-05; later corrections retained where present). Preprint claims are not independent proof verification. As of September 2026 nothing beyond the original note is published. Known: (FIQ, unmeasured) O(k log k + kn) queries for exact learning (Prop. 1); (FIQ, measured) additional poly(k/eps) queries (sketched). (VIQ, measured and unmeasured) no nontrivial upper or lower bound in the literature; the only result is the Lemma 2 barrier (a 3-qubit gadget on which every measured VIQ that leaves a path free makes the output qubit uniformly random, so the Angluin et al. test-path lemma fails). Trivial bounds: brute force is exponential in n and k; measured learning of even one gate to l1 error eps needs Theta(1/eps^2)-type sampling (only the unistochastic matrix |A_yx|^2 of a final gate is behaviorally visible). A structural fact verified here numerically (and provable by cyclicity of the partial trace): the unitary of an injected gate has no effect on the response on the n circuit qubits (distribution or reduced density matrix), so a measured VIQ is exactly 'replace that gate by a reset of its 3 wires to a chosen basis state'. If the 'unmeasured' variant means the full state vector including ancillas, injecting into all gates makes the final state a product state whose ancilla registers hold the columns A_i|abc>, giving an essentially immediate poly(n,k) upper bound (order/wire identification as in Prop. 1); if it means only the first-n-qubit reduced state, the question is a reset-augmented tomography problem and is genuinely open.
References
  1. [1]Open Problem: Learning Quantum Circuits with Queries. COLT 2015. link
  2. [2]Original published PDF link
  3. [3]Open Problem: Learning Quantum Circuits with Queries (Semantic Scholar record, citations endpoint) (2015) linkEvidence cited by the supplied archive; not independently re-reviewed in this import.
  4. [4]Lev Reyzin - publications page (current through 2026) (2026) linkEvidence cited by the supplied archive; not independently re-reviewed in this import.
  5. [5]arXiv author listing for Reyzin (au:Reyzin), 31 papers through 2026-05 (2026) linkEvidence cited by the supplied archive; not independently re-reviewed in this import.
  6. [6]Learning a circuit by injecting values (2009) linkEvidence cited by the supplied archive; not independently re-reviewed in this import.
  7. [7]Learning shallow quantum circuits (2024) linkEvidence cited by the supplied archive; not independently re-reviewed in this import.

Recorded progress

Add yours →

Nothing recorded yet. A pointer to a paper the entry is missing counts.

Machine attempts

0 recorded

Attempts run against the statement below and are recorded in full, including the failures. The point is to stop the next model — and the next person — from re-walking a road that is already known to end. Each attempt costs 25 credits.

No machine attempts recorded.

Sign in to run an attempt. New accounts start with enough credits for ten.

Discussion

0 notes

Notes are for clarifying the statement, flagging a missing reference, or recording why an approach fails. Claimed solutions belong in a submission, where they can be reviewed.

No notes yet.

Sign in to add a note.