arXiv:2611.04381quant-phNov 2026

Manuscript Offprint

arXiv:2611.04381

On the Hardness of Approximate Quantum Circuit Membership and Optimization

Adam Husted Kjelstrøm, Jaco van de Pol, Andreas Pavlogiannis

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Adam Husted Kjelstrøm, Jaco van de Pol, and Andreas Pavlogiannis

Department of Computer Science, Aarhus University

Quantum circuit optimization is a standard, indispensable component of the quantum software stack, used to reduce noise, maximize performance, alleviate costs of quantum error correction, or tailor quantum circuits to specific hardware platforms. Another natural problem is the approximate membership question: for a fixed set of unitaries S\mathcal{S}, decide whether a given circuit CC can be approximated within a distance ε\varepsilon by a unitary in S\mathcal{S}, according to some metric mm. Membership is a special case of optimization, where S\mathcal{S} specifies a set of unitaries that can be implemented at no cost (e.g., with noise-minimal circuits, or without the need for magic states). In a well-known result, Janzing, Wocjan, and Beth (Int. J. Quantum Inf., 2005) showed that, for mm being the operator metric, the special case of membership where S={I}\mathcal{S} = \{\mathbf{I}\} (i.e., approximate identity) is QMA-complete when CC comes with a promise that it is either close to the identity or sufficiently far from it.

In this work, we generalize the setting of Janzing, Wocjan, and Beth in three natural directions: (i) we work over promise-free inputs, (ii) besides the case S={I}\mathcal{S} = \{\mathbf{I}\}, we also consider the cases where S\mathcal{S} contains only Clifford unitaries, or only generalized permutation matrices (i.e., no superposition), and (iii) we measure unitary distances under several metrics mm, namely, the trace-based, spectral, and operator metrics. We show that, in all cases, the approximate membership question is hard even for PP\mathbf{PP}, for wide ranges of ε\varepsilon, provided CC's gate set can implement Clifford+T, which is a property of the gate-sets provided by standard hardware. In particular, if S={I}\mathcal{S} = \{\mathbf{I}\}, or if S\mathcal{S} contains only generalized permutation matrices, I∈SI \in \mathcal{S}, and mm is a trace-based distance, then PP\mathbf{PP}-hardness holds for all possible (non-trivial) values of ε\varepsilon. Moreover, if S={I}\mathcal{S} = \{\mathbf{I}\} and mm is a trace-based distance, then PP\mathbf{PP}-hardness holds even for circuits CC over classical-reversible gate-sets.

Overall, our results indicate that the approximate membership problem is harder over promise-free inputs, compared to QMA-completeness of Janzing, Wocjan, and Beth, and this hardness persists across quantum resources (any gates, non-Clifford, superposition) and various distance metrics. Finally, these results directly imply the PP\mathbf{PP}-hardness of circuit optimization when minimizing total, non-Clifford, or superposition gate depth or count.

Adam Husted Kjelstrøm: husted@cs.au.dk

Jaco van de Pol: jaco@cs.au.dk

Andreas Pavlogiannis: pavlogiannis@cs.au.dk

1 Introduction

Optimizing quantum circuits, that is, given a circuit CC, obtaining an (approximately) equivalent circuit C′C' that minimizes an objective function, is a standard task to improve the performance of quantum computers, thus producing circuits that are tailored to a given quantum run-time environment. By picking different objective functions, optimization can target both NISQ and error-corrected platforms by minimizing, e.g., the number of multi-qubit gates or non-Clifford resources. Permitting a bit of slack, i.e., allowing an output circuit that is a close (but not necessarily exact) match, is typical [1, 2, 3, 4, 5, 6, 7, 8, 9]. This is partly because it gives the optimizer more freedom, which may yield better results, and partly because it is often unavoidable: for finite gate-sets such as Clifford+T, universality holds only approximately, so most unitaries cannot be implemented exactly. Circuit optimization is often phrased as a decision problem given a circuit CC and budget kk. It is parameterized by a cost function ff, a metric mm, a tolerance ε≥0\varepsilon \geq 0, and a gate-set G\mathcal{G}, where dm(C,C′)d_m(C, C') denotes the distance between the unitaries of CC and C′C' under mm:

APPROXOPT(f,m,ε,G)\text{APPROXOPT}(f, m, \varepsilon, \mathcal{G})

Input: A circuit CC over G\mathcal{G} and an integer k≥0k \geq 0. Question: Is there a circuit C′C' over G\mathcal{G} s.t. dm(C,C′)≤εd_m(C, C') \leq \varepsilon and f(C′)≤kf(C') \leq k?

Another common computational problem is the (approximate) equivalence question: given two circuits CC and C′C', are their corresponding unitaries ε\varepsilon-close to each other, according to some metric mm? The equivalence question often serves as a subroutine of peephole optimization, whereby a subcircuit CC can be replaced by a circuit C′C' with a small cost f(C′)f(C'), provided that it encodes an equivalent computation. The case where C′C' is the empty circuit (asking whether CC is ε\varepsilon-close to the identity) has received special attention. Indeed, besides being theoretically fundamental, this question also underpins practical circuit-reduction techniques, whereby parts of a circuit are deleted if they are deemed to be close enough to the identity [10, 11, 12]. When CC comes with a promise that its distance from I in the operator metric is either ≤ε\leq \varepsilon or ≥δ\geq \delta with δ−ε>n−O(1)\delta - \varepsilon > n^{-O(1)}, the resulting problem, known as non-identity check, is well known to be QMA-complete over gate-sets G\mathcal{G} of arbitrary one- and two-qubit gates [13]. On the other hand, insisting on ε=0\varepsilon = 0 corresponds to exact non-identity check, which is NQP-complete for circuits CC over Clifford+T [14, 15, 16].

A natural generalization of equivalence is the membership question. It is parameterized by a set of unitaries S\mathcal{S} that are considered to be of minimal cost. Instead of comparing with a single candidate circuit C′C', the task is to decide whether CC is approximately equivalent to any element of S\mathcal{S}.

APPROXMEMBER(S,m,ε,G)\text{APPROXMEMBER}(\mathcal{S}, m, \varepsilon, \mathcal{G})

Input: A circuit CC over G\mathcal{G}. Question: Is there a U∈SU \in \mathcal{S} s.t. dm(C,U)≤εd_m(C, U) \leq \varepsilon?

Approximate equivalence with the empty circuit is the special case S={I}\mathcal{S} = \{\mathbb{I}\} of APPROXMEMBER, which we call APPROXID. In this work, we consider two additional cases for S\mathcal{S}, namely, S⊆SCliff\mathcal{S} \subseteq \mathcal{S}_{\text{Cliff}} and S⊆SGP\mathcal{S} \subseteq \mathcal{S}_{\text{GP}}, where SCliff\mathcal{S}_{\text{Cliff}} is the set of unitaries imple-

S\mathcal{S}mmIdentityAny Clifford setAny generalized permutation set
Trace (Sine)(0, 1)(0, 2/4\sqrt{2}/4)(0, 1)
Spectral(0, 2)(0, 2/4\sqrt{2}/4)(0, 2\sqrt{2})
Operator(0, 2)(0, 2/4\sqrt{2}/4)(0, 2\sqrt{2})

Table 1: The open interval of P-time computable ε\varepsilon for which Theorem 1 establishes PP-hardness for APPROXMEMBER(S,m,ε,G\mathcal{S}, m, \varepsilon, \mathcal{G}), per metric mm and set of unitaries S\mathcal{S}, where the columns cover S={l}\mathcal{S}=\{\mathrm{l}\}, every S\mathcal{S} with l∈S⊆SCliffl \in \mathcal{S} \subseteq \mathcal{S}_{\mathrm{Cliff}}, and every S\mathcal{S} with l∈S⊆SGPl \in \mathcal{S} \subseteq \mathcal{S}_{\mathrm{GP}}, respectively. Boldface entries mark ranges equal to (0,Dm)(0, D_m), i.e., every ε\varepsilon strictly between 0 and the diameter DmD_m of the metric.

mented by Clifford circuits and SGP\mathcal{S}_{\mathrm{GP}} is the set of generalized permutation matrices (which do not create superposition). We further require that I∈SI \in \mathcal{S}. Each case asks whether CC can be approximated to precision ε\varepsilon with restricted quantum resources: no gates at all (S={I}\mathcal{S}=\{\mathrm{I}\}), only Clifford gates (S⊆SCliff\mathcal{S} \subseteq \mathcal{S}_{\mathrm{Cliff}}), or no superposition gates (S⊆SGP\mathcal{S} \subseteq \mathcal{S}_{\mathrm{GP}}).

We consider three standard metrics mm for defining the distance between two unitaries UU and VV. The Sine metric is defined as a function of the trace ∣Tr(U†V)∣|\mathrm{Tr}(U^\dagger V)|, which captures the “average-case” difference between U∣ψ⟩U|\psi\rangle and V∣ψ⟩V|\psi\rangle. Related measures include the Bures angle, Bures metric [17], and average gate distance measures [18]. These have seen extensive use in quantum circuit synthesis [2, 3, 4, 5, 6, 7]. The spectral metric, induced by the operator norm, captures the “worst-case” difference between U∣ψ⟩U|\psi\rangle and V∣ψ⟩V|\psi\rangle. This is the metric in which the Solovay-Kitaev theorem is stated [1]; it is also used for quantum circuit optimization [8, 9]. The operator metric, also considered in [16], is given by the minimum of the spectral metric between UU and eiαVe^{i\alpha}V over α∈R\alpha \in \mathbb{R}. This is a natural choice as the global phase is physically irrelevant, potentially permitting better optimizations.

Our contributions. Our main result is that APPROXMEMBER(S,m,ε,G\mathcal{S}, m, \varepsilon, \mathcal{G}) is PP-hard for every set of unitaries S\mathcal{S}, metric mm, and tolerance ε\varepsilon covered by Table 1, where ε\varepsilon is P-time computable, i.e., computable to bb bits of precision in time bO(1)b^{O(1)}.

Theorem 1. Consider any gate-set G\mathcal{G} that exactly implements Clifford+T. For each combination of a set of unitaries S\mathcal{S}, metric mm, and P-time computable ε\varepsilon in the range given by the corresponding cell in Table 1, we have that APPROXMEMBER(S,m,ε,G\mathcal{S}, m, \varepsilon, \mathcal{G}) is PP-hard.

In the context of optimization, given some cost function ff, let Sf\mathcal{S}_f denote the set of unitaries UC′U_{C'} of circuits C′C' with f(C′)=0f(C') = 0. Theorem 1 yields the following corollary.

Corollary 1. Consider any gate-set G\mathcal{G} that exactly implements Clifford+T. For each combination of a set of unitaries S\mathcal{S}, metric mm, and P-time computable ε\varepsilon in the range given by the corresponding cell in Table 1, and any ff for which Sf=S\mathcal{S}_f = \mathcal{S}, we have APPROXOPT(f,m,ε,G)(f, m, \varepsilon, \mathcal{G}) is PP-hard.

A few consequences are worth highlighting, with ε\varepsilon P-time computable throughout. First, optimizing total gate depth or count is PP-hard under each of the three metrics for every ε\varepsilon strictly between 0 and the diameter of the metric. Second, the same holds for optimizing superposition gate depth or count, this time only for the Sine metric. Third, optimizing non-Clifford (e.g., T) gate depth or count is PP-hard for 0<ε<2/4≈0.35360 < \varepsilon < \sqrt{2}/4 \approx 0.3536. This strengthens a result of Van de Wetering and Amy [16] who, under the operator metric, established NP-hardness for 0<ε<sin⁡(π/16)≈0.19510 < \varepsilon < \sin(\pi/16) \approx 0.1951, and also generalizes it to the other metrics. Fourth, APPROXID(Sine, ε\varepsilon, G\mathcal{G}), and APPROXOPT(ff, Sine, ε\varepsilon, G\mathcal{G}) for ff the total gate depth or count, remain PP-hard for all 0<ε<10 < \varepsilon < 1 even when G\mathcal{G} consists only of classical-reversible gates (e.g., X, CNOT, and TOF), which cannot create superposition; see Remark 1.

Our PP-hardness results also generalize in two ways. First, for any distance measure m2m_2 that is derivable from one of the considered metrics m1m_1, i.e., dm2(⋅,⋅)=g(dm1(⋅,⋅))d_{m_2}(\cdot,\cdot) = g(d_{m_1}(\cdot,\cdot)) for some strictly increasing function gg, the corresponding membership and optimization problems under m2m_2 are also PP-hard, for the respective approximation range obtained under gg (see Lemma 1). In particular, every Sine entry of Table 1 transfers to the Bures angle, the Bures metric, and the average gate distance at the correspondingly transformed threshold. This covers, for instance, the distance measures used in [4, 7], and shows that minimizing total depth or count to within any non-trivial (measure-specific) ε\varepsilon for any distance measure derived from the Sine metric is PP-hard. Second, the optimization problems remain PP-hard even to approximate the minimum cost within any factor (constant or not), because the hardness holds already when the minimum cost is 0 (i.e., the optimal circuit C′C' has f(C′)=0f(C') = 0 and thus UC′∈SfU_{C'} \in \mathcal{S}_f); see Remark 2.

Paper organization and proof structure. The remainder of the paper is organized as follows. Section 2 fixes notation and recalls standard background on unitaries, quantum circuits, distance measures, and the class PP. Fig. 1 shows the chain of reductions towards Theorem 1. We use ATMOSTSAT as the source of PP-hardness, which asks whether a propositional formula φ\varphi is satisfied by at most a fraction β\beta of its assignments. In Section 3, Lemma 2 shows that ATMOSTSAT remains PP-hard under the promise that at most a fraction κ\kappa of all assignments satisfy φ\varphi; we call this promise problem PROMISEATMOSTSAT. We then use the PP-hardness of PROMISEATMOSTSAT to establish the hardness of PROMISEAPPROXID under all three metrics we consider (Theorem 2). In words, PROMISEAPPROXID is a promise version of APPROXID, asking whether a circuit CC is ε\varepsilon-close to I under the promise that it is τ\tau-close to it. This naturally yields hardness for APPROXID (as the two problems agree on every circuit satisfying the promise), and thus completes the case S={I}\mathcal{S} = \{\mathbf{I}\} of Theorem 1. In Section 4, we establish Theorem 1 for the cases I∈S⊆SCliffI \in \mathcal{S} \subseteq \mathcal{S}_{\text{Cliff}} and I∈S⊆SGPI \in \mathcal{S} \subseteq \mathcal{S}_{\text{GP}}. We show that the hard circuits CC for PROMISEAPPROXID are also hard for APPROXMEMBER(S\mathcal{S}) with I∈S⊆SCliffI \in \mathcal{S} \subseteq \mathcal{S}_{\text{Cliff}}: intuitively,

Figure

Figure 1: The chain of reductions. ATMOSTSAT(β\beta) is by folklore PP-hard for every fixed efficiently computable 0<β<10 < \beta < 1, and each arrow is a Karp reduction, where an arrow into the bottom row reduces to APPROXMEMBER(S,m,ε,G\mathcal{S}, m, \varepsilon, \mathcal{G}) for the indicated S\mathcal{S}, with I∈SI \in \mathcal{S} throughout. Hardness for each S\mathcal{S} is obtained in one of three ways: via a reduction from a promise problem to its promise-free variant, as is the case for (⋆\star); via the triangle inequality argument of Lemma 6, which is the route taken for S⊆SCliff\mathcal{S} \subseteq \mathcal{S}_{\text{Cliff}}; or via Lemma 3, as is the case for S⊆SGP\mathcal{S} \subseteq \mathcal{S}_{\text{GP}}.

the promise that CC is always τ\tau-close to I, combined with the triangle inequality of the respective metric, implies that the only elements of S\mathcal{S} that can be ε\varepsilon-close to CC are those at distance 0 from I, and thus APPROXMEMBER(S\mathcal{S}) coincides with PROMISEAPPROXID on circuits satisfying its promise, which is PP-hard by Theorem 2. The case of I∈S⊆SGPI \in \mathcal{S} \subseteq \mathcal{S}_{\mathrm{GP}} proceeds by reduction from PROMISEATMOSTSAT: given φ\varphi, we construct circuits CC which are ε\varepsilon-close to I when φ\varphi is satisfied by at most a fraction δ\delta of its assignments, and at a distance greater than ε\varepsilon from S\mathcal{S} otherwise (Theorems 4 and 5). We conclude in Section 5 with open problems.

References (29)