AI use disclosure. AI use disclosure. ChatGPT (from 5.5 Pro to 6 Astra) was used during the preparation of this manuscript. Many of the constructions and proofs, as well as initial drafts of some sections, were generated by ChatGPT. The authors wrote the current manuscript based on these materials with AI assistance and take full responsibility for its content.
Contents
1 Introduction 3
1.1 Our Results 3
1.2 Applications 4
1.3 Notation 5
2 Trapdoored Matrix Distributions 5
2.1 Definition 5
2.2 Base Construction from (Dual) Ring-LPN Assumptions 6
2.3 Trapdoored Triangular Matrices 8
2.4 Trapdoored Invertible Triangular Matrices with Efficient Inversion 12
2.5 Trapdoored Invertible Matrices with Efficient Inversion 14
2.6 Depth-Efficient Implementation 16
3 Trapdoored Clifford Distributions 17
3.1 Uniform random Clifford Oprators and Decomposition of Clifford Operators 17
3.2 Trapdoored Hadamard-free Clifford Operators 18
3.3 Trapdoored Clifford Operators 20
4 Applications 21
4.1 Clifford authentication 21
4.2 Worst-case to Average-case Reductions 22
4.3 From average-case parallel Clifford implementations to matrix multiplication 24
Introduction
Clifford circuits, also known as stabilizer circuits and generated by Hadamard, phase, and controlled-NOT (CX) gates, play a central role in quantum computing. Their algebraic structure enables efficient classical simulation via the stabilizer formalism [2 ] . On the other hand, adjoining a non-Clifford gate such as the T T T gate yields a universal gate set for quantum computation. These properties also make Clifford operators central to quantum error correction [22 ] and fault-tolerant quantum computation [23 ] . Random Clifford operators are also widely used in various areas of quantum computing, including randomized benchmarking [38 ] , classical shadow estimation [28 ] , and quantum state tomography [33 ] . They also underpin constructions of random stabilizer codes [10 ] and quantum authentication schemes [1 ] .
Efficient sampling of uniformly random Clifford operators and their efficient circuit implementation have been extensively studied. For n n n -qubit Cliffords, Koenig and Smolin [32 ] gave an O ( n 3 ) O(n^3) O ( n 3 ) -time classical sampling algorithm. Bravyi and Maslov [15 ] achieved O ( n 2 ) O(n^2) O ( n 2 ) sampling time with circuits of size O ( n 2 ) O(n^2) O ( n 2 ) , and van den Berg [40 ] subsequently gave a simpler method with the same complexity. This is near-optimal as the optimal circuit size is known to be Θ ( n 2 / log n ) \Theta(n^2/\log n) Θ ( n 2 / log n ) [2 Corollary 9] . This may still be unsatisfactory: even a single application of a uniformly random Clifford operator typically requires a nearly quadratic number of elementary gates and nearly linear depth.
In this paper, we ask whether this cost can be circumvented by relaxing uniform randomness to pseudorandomness , i.e., indistinguishability from uniform randomness against efficient quantum algorithms. This relaxation suffices for most applications, which involve only polynomial-time quantum computations. We further require these operators to admit hidden, efficient circuit implementations, whose descriptions serve as trapdoors . We call such operators trapdoored Clifford operators , a quantum analogue of the trapdoored matrices introduced in [16 , 41 ] .
Our Results
Our main result is the construction of trapdoored Clifford operators under the cryptographic assumptions.
Theorem 1.1 (Informal). Under the (dual) ring learning parity with noise (LPN) assumption, we can sample (a description of) a trapdoored n n n -qubit Clifford operator C C C together with its trapdoor t d C \mathrm{td}_C td C in n 1 + ε n^{1+\varepsilon} n 1 + ε time, where t d C \mathrm{td}_C td C gives an implementation of C C C using n 1 + ε n^{1+\varepsilon} n 1 + ε elementary gates and n 1 + ε n^{1+\varepsilon} n 1 + ε clean ancillary qubits for arbitrarily small constant ε > 0 \varepsilon> 0 ε > 0 . These can be reduced into n ⋅ poly log ( n ) n \cdot\operatorname{poly}\log(n) n ⋅ poly log ( n ) assuming subexponential hardness.
Our trapdoored Clifford operators also support near-linear evaluation of the corresponding conjugate action on any Pauli label, providing a more efficient classical simulation. Furthermore, the Clifford circuit implementation can be done in a polylogarithmic depth under all-to-all connectivity.
A key ingredient of our trapdoored Clifford operators is the trapdoored matrices over finite field that supports efficient multiplication, inversion and more under the same assumptions. This resolves an open question left in [41 Section 3] .
Theorem 1.2 (Informal). Under the (dual) ring learning parity with noise (LPN) assumption, we can sample (a description of) a trapdoored invertible matrix M ∈ GL ( n , F q ) M \in\operatorname{GL}(n,\mathbb{F}_q) M ∈ GL ( n , F q ) together with its trapdoor t d M \mathrm{td}_M td M in n 1 + ε n^{1+\varepsilon} n 1 + ε time for any ε > 0 \varepsilon> 0 ε > 0 . The trapdoor supports matrix-vector multiplication by M M M , M T M^{\mathsf{T}} M T , M − 1 M^{-1} M − 1 , and M − T M^{-\mathsf{T}} M − T in n 1 + ε n^{1+\varepsilon} n 1 + ε time and polylogarithmic depth. The time can be reduced into n ⋅ poly log ( n ) n \cdot\operatorname{poly}\log(n) n ⋅ poly log ( n ) assuming subexponential hardness.
Along the way, we also construct the trapdoored triangular and symmetric matrices. Together all of these, we can embed them into the Bravyi–Maslov Clifford sampler [15 ] , which was obtained using the Bruhat decomposition. Interestingly, the Bruhat decomposition is used in constructing the above trapdoored matrices with efficient inversions. This structure also allows efficient computation of determinant of the sampled matrices, which answers another question in [41 ] affirmatively.
Applications
Immediate applications. For many fundamental protocols repeatedly sample and apply random Clifford operations, our construction immediately replace them by the trapdoored Clifford operators.
_Efficient simulation and verification._ Given the trapdoor, conjugating a Pauli operator by Cliffords takes near-linear time. This speeds up the Pauli calculations in stabilizer simulation [2 ] and direct fidelity estimation of Clifford channels [20 ] . It also can be used in few T T T -gate simulation [12 ] , imposing random-looking Cliffords to the actual quantum algorithm while allowing efficient classical simulation using trapdoors.
_3 3 3 -designs and classical shadows._ Uniform random Cliffords form an exact 3 3 3 -design [43 , 42 ] . The trapdoored Clifford operators may lose this property, yet they still look like an (approximate) 3 3 3 -design from the efficient algorithm’s view. This motivates its use in classical shadows [28 ] : one applies a sampled Clifford to an unknown state and records the measurement outcome repeatedly. The resulting data can later be used to predict many efficiently computable observables, including fidelities with stabilizer states chosen after measurement.
_Random stabilizer codes._ Applying a uniform random Clifford to a state followed by zero ancillas gives a random stabilizer code. This can be used in several protocols including quantum secret sharing and erasure-resilient communications [39 , 37 , 31 ] .
_Clifford authentication._ The same template used in the Clifford authentication [1 ] . Using trapdoored Clifford improves their efficiency; for the quantum authentication, this argument only ensures the soundness against efficient attacks. Adapting the technique used in [1 ] turning arbitrary adversary into Paulis, we actually prove the negligible soundness error against all adversarial behavior in § 5.1 .
Other applications include gate-set shadow estimation and quantum data hiding [26 , 18 ] .
Worst-case to average-case reductions. The worst-to-average reduction for the matrix multiplication asks if given a black-box algorithm to compute the matrix multiplication for an average input, one can compute A ⋅ B A \cdot B A ⋅ B for almost all A , B A, B A , B using almost the same time. It was considered in [13 ] and answered in a positive way. Subsequent works showed that this is possible even if the given algorithm works correctly (or even approximately correctly [30 , 25 ] ) only on a very small fraction of inputs [3 , 29 ] .
Using the trapdoored matrices, [41 ] showed that this worst-to-average behavior is prevalent in many linear algebra problems. Our trapdoored invertible matrices also yield worst-case-to-average-case reductions for linear algebra and Clifford problems, extending this framework.
Our main application for the linear algebra problems are the iterated matrix multiplication and determinant computation. The worst-case to average-case reduction for the iterated matrix multiplication was studied in [21 , 24 ] for the black-box algorithm works correctly most (or at least half for large characteristic [24 ] ) of the inputs. We show the worst-case to average-case reduction for the iterated matrix multiplication even when the given algorithm works correctly for a tiny fraction of the inputs. The determinant computation was studied in [41 ] . We improve the error rate: For any ε > 0 \varepsilon> 0 ε > 0 , the reduction works with the error rate 1 / 2 + ε 1/2 + \varepsilon 1/2 + ε for sufficiently large q q q .
Finally, we study the cost of synthesizing Clifford circuits. We prove the worst-to-average reduction for the Clifford circuit synthesis given the tableau. Further, we relate the average-case of _batched_ Clifford circuits to the worst-case matrix multiplication. Suppose an algorithm, given the tableau of a random 2 n 2n 2 n -qubit Clifford C C C , constructs a Clifford circuit for C ⊗ n C^{\otimes n} C ⊗ n with constant success probability. We convert it into an algorithm that multiplies any two n × n n \times n n × n matrices over F 2 \mathbb{F}_2 F 2 with high probability. Thus, faster synthesis of circuits applying the same Clifford operator to multiple registers would imply faster worst-case matrix multiplication, even if synthesis produces approximate implementations for only an arbitrarily small constant fraction of random Clifford operators. In other words, batched Clifford circuit synthesis is at least as hard as matrix multiplication.
Notation
Fields and Matrices. Let q q q be a fixed prime power, and let F q \mathbb{F}_q F q denote the field with q q q elements. For positive integers n n n and m m m , write [ n ] : = { 1 , … , n } [n] := \{1,\ldots,n\} [ n ] := { 1 , … , n } and let Mat n × m ( F q ) \operatorname{Mat}_{n\times m}(\mathbb{F}_q) Mat n × m ( F q ) denote the set of n × m n \times m n × m matrices over F q \mathbb{F}_q F q . All matrix classes below are defined over F q \mathbb{F}_q F q ; we omit the field from the notation. We write U n \mathcal{U}_n U n and L n \mathcal{L}_n L n for the sets of n × n n \times n n × n upper and lower triangular matrices, respectively. The subsets of strictly upper triangular and invertible upper triangular matrices are denoted by U n ∘ \mathcal{U}_n^\circ U n ∘ and U n ∗ \mathcal{U}_n^* U n ∗ , respectively:
U n ∘ : = { U ∈ U n ∣ U i i = 0 for all i ∈ [ n ] } , \mathcal{U}_n^\circ:= \{U \in\mathcal{U}_n \mid U_{ii}=0\text{ for all }i\in[n]\}, U n ∘ := { U ∈ U n ∣ U ii = 0 for all i ∈ [ n ]} ,
U n ∗ : = { U ∈ U n ∣ U i i ≠ 0 for all i ∈ [ n ] } . \mathcal{U}_n^* := \{U \in\mathcal{U}_n \mid U_{ii}\ne0\text{ for all }i\in[n]\}. U n ∗ := { U ∈ U n ∣ U ii = 0 for all i ∈ [ n ]} .
The classes L n ∘ \mathcal{L}_n^\circ L n ∘ and L n ∗ \mathcal{L}_n^* L n ∗ are defined analogously. We denote the set of symmetric matrices by
Sym n : = { M ∈ Mat n × n ( F q ) ∣ M T = M } , \operatorname{Sym}_n := \{M \in\operatorname{Mat}_{n\times n}(\mathbb{F}_q) \mid M^T=M\}, Sym n := { M ∈ Mat n × n ( F q ) ∣ M T = M } ,
where M T M^T M T denotes the transpose of M M M . Finally, S n S_n S n denotes the set of n × n n \times n n × n permutation matrices, which have exactly one entry equal to 1 in each row and each column and all other entries equal to 0.
Cryptography. A nonnegative function negl ( n ) \operatorname{negl}(n) negl ( n ) is negligible if, for every c > 0 c>0 c > 0 , it is smaller than n − c n^{-c} n − c for all sufficiently large n n n . We use computational indistinguishability against any quantum polynomial-time (QPT) distinguishers, denoted by ≈ c \approx_c ≈ c .
Complexity. All logarithms are to base 2. All asymptotic statements are with respect to the dimension n n n as n → ∞ n\to\infty n → ∞ . We write O ~ ( n ) = O ( n ⋅ polylog n ) \widetilde{O}(n)=O(n\cdot\operatorname{polylog}n) O ( n ) = O ( n ⋅ polylog n ) for quasi-linear complexity bounds.
Probability and Distributions. The uniform distribution over a set X X X is denoted by Unif ( X ) \operatorname{Unif}(X) Unif ( X ) . For a noise rate ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) , let Ber F q ( ε ) \operatorname{Ber}_{\mathbb{F}_q}(\varepsilon) Ber F q ( ε ) denote the distribution over F q \mathbb{F}_q F q that outputs 0 with probability 1 − ε 1-\varepsilon 1 − ε and a uniformly random element of F q ∖ { 0 } \mathbb{F}_q\setminus\{0\} F q ∖ { 0 } with probability ε \varepsilon ε .
Trapdoored Matrix Distributions
We begin with a general definition of trapdoored matrix distributions. We then formalize our (dual) ring-LPN assumptions and review the existing construction that serves as our starting point. Building on this construction, we obtain trapdoored triangular matrices and extend the construction to the invertible matrices. The resulting distributions admit efficient sampling, and their trapdoors support efficient matrix–vector multiplication by both the sampled matrix and its inverse.
Definition
Definition 2.1 (Trapdoored Matrix Distribution). For any n ∈ N n\in\mathbb{N} n ∈ N and m = poly ( n ) m=\operatorname{poly}(n) m = poly ( n ) , let H ⊆ Mat n × m ( F q ) \mathcal{H}\subseteq\operatorname{Mat}_{n\times m}(\mathbb{F}_q) H ⊆ Mat n × m ( F q ) be a nonempty family of matrices and F = { f i : H × X i → Y i } \mathcal{F}=\{f_i:\mathcal{H}\times\mathcal{X}_i\to\mathcal{Y}_i\} F = { f i : H × X i → Y i } be a family of mappings. An efficiently samplable distribution D \mathcal{D} D over tuples
( M , { C f i , M } ) , (M,\{C_{f_i,M}\}), ( M , { C f i , M }) , where M ∈ H M\in\mathcal{H} M ∈ H and each C f i , M C_{f_i,M} C f i , M is a circuit, is called a trapdoored matrix distribution over H \mathcal{H} H supporting F \mathcal{F} F if the following conditions hold:
(i) Correctness. For every sampled tuple ( M , { C f i , M } ) (M,\{C_{f_i,M}\}) ( M , { C f i , M }) , every f i ∈ F f_i\in\mathcal{F} f i ∈ F , and every x ∈ X i x\in\mathcal{X}_i x ∈ X i ,
C f i , M ( x ) = f i ( M , x ) . C_{f_i,M}(x)=f_i(M,x). C f i , M ( x ) = f i ( M , x ) . (ii) Pseudorandomness. The marginal distribution of M M M under D \mathcal{D} D is computationally indistinguishable from Unif ( H ) \operatorname{Unif}(\mathcal{H}) Unif ( H ) . Namely, for every QPT distinguisher A \mathcal{A} A , for all sufficiently large n n n , with m = poly ( n ) m=\operatorname{poly}(n) m = poly ( n ) as above,
∣ Pr ( M , { C } ) ← D [ A ( M ) = 1 ] − Pr U ← Unif ( H ) [ A ( U ) = 1 ] ∣ ≤ negl ( n ) . \left|\Pr_{(M,\{C\})\leftarrow\mathcal{D}}[\mathcal{A}(M)=1]-\Pr_{U\leftarrow\operatorname{Unif}(\mathcal{H})}[\mathcal{A}(U)=1]\right|\leq\operatorname{negl}(n). ( M , { C }) ← D Pr [ A ( M ) = 1 ] − U ← Unif ( H ) Pr [ A ( U ) = 1 ] ≤ negl ( n ) .
The circuit family { C f i , M } \{C_{f_i,M}\} { C f i , M } is called the trapdoor for M M M .
For any fixed H ⊆ Mat n × m ( F q ) \mathcal{H} \subseteq\operatorname{Mat}_{n \times m}(\mathbb{F}_q) H ⊆ Mat n × m ( F q ) , we define the matrix–vector multiplication map
mult : H × F q m → F q n , mult ( H , x ) = H x , \operatorname{mult} : \mathcal{H} \times\mathbb{F}_q^m \to\mathbb{F}_q^n,\qquad\operatorname{mult}(H,x) = Hx, mult : H × F q m → F q n , mult ( H , x ) = H x ,
and the transpose multiplication map
mult T : H × F q n → F q m , mult T ( H , x ) = H T x . \operatorname{mult}^{\mathsf{T}} : \mathcal{H} \times\mathbb{F}_q^n \to\mathbb{F}_q^m,\qquad\operatorname{mult}^{\mathsf{T}}(H,x) = H^{\mathsf{T}}x. mult T : H × F q n → F q m , mult T ( H , x ) = H T x .
When n = m n=m n = m , we also define the inverse multiplication map
inv : H × F q n → F q n ∪ { ⊥ } , inv ( H , x ) = { H − 1 x , if H is invertible , ⊥ , otherwise , \operatorname{inv} : \mathcal{H} \times\mathbb{F}_q^n \to\mathbb{F}_q^n \cup\{\perp\},\qquad
\operatorname{inv}(H,x) =
\begin{cases}
H^{-1}x, & \text{if } H \text{ is invertible},\\
\perp, & \text{otherwise},
\end{cases} inv : H × F q n → F q n ∪ { ⊥ } , inv ( H , x ) = { H − 1 x , ⊥ , if H is invertible , otherwise ,
and the inverse-transpose multiplication map
inv T : H × F q n → F q n ∪ { ⊥ } , inv T ( H , x ) = { ( H T ) − 1 x = ( H − 1 ) T x , if H is invertible , ⊥ , otherwise . \operatorname{inv}^{\mathsf{T}} : \mathcal{H} \times\mathbb{F}_q^n \to\mathbb{F}_q^n \cup\{\perp\},\qquad
\operatorname{inv}^{\mathsf{T}}(H,x) =
\begin{cases}
(H^{\mathsf{T}})^{-1}x = (H^{-1})^{\mathsf{T}}x, & \text{if } H \text{ is invertible},\\
\perp, & \text{otherwise}.
\end{cases} inv T : H × F q n → F q n ∪ { ⊥ } , inv T ( H , x ) = { ( H T ) − 1 x = ( H − 1 ) T x , ⊥ , if H is invertible , otherwise .
We track the sampling complexity of the distribution and the evaluation complexity of its trapdoor circuits, as formalized below.
Definition 2.2 (Sampling and Trapdoor Efficiency). Let D D D be a trapdoored matrix distribution supporting F = { f i } \mathcal{F} = \{f_i\} F = { f i } . We say that D D D is T T T -samplable if a description of a tuple drawn from D D D can be sampled in time T T T with overwhelming probability.1 We say that D D D supports T i T_i T i -efficient evaluation of f i f_i f i if, with overwhelming probability, the sampled circuit C f i , M C_{f_i,M} C f i , M can be evaluated in time T i T_i T i on every input.
Base Construction from (Dual) Ring-LPN Assumptions
The standard decisional learning parity with noise (LPN) assumption concerns noisy linear equations over F 2 \mathbb{F}_2 F 2 [11 , 4 , 35 ] ; we use its analogue over a fixed finite field F q \mathbb{F}_q F q [BCGI18]. For a suitable noise rate ε > 0 \varepsilon> 0 ε > 0 , this assumption asserts that polynomially many samples
( r i , r i ⋅ s + e i ) , r i ← Unif ( F q n ) , e i ∼ Ber F q ( ε ) , (r_i, r_i \cdot s + e_i),\qquad r_i \leftarrow\operatorname{Unif}(\mathbb{F}_q^n),\ e_i \sim\operatorname{Ber}_{\mathbb{F}_q}(\varepsilon), ( r i , r i ⋅ s + e i ) , r i ← Unif ( F q n ) , e i ∼ Ber F q ( ε ) ,
with a shared secret s ← Unif ( F q n ) s \leftarrow\operatorname{Unif}(\mathbb{F}_q^n) s ← Unif ( F q n ) are jointly computationally indistinguishable from independent uniform samples in F q n × F q \mathbb{F}_q^n \times\mathbb{F}_q F q n × F q . The vectors r i r_i r i and errors e i e_i e i are sampled independently of one another and of s s s .
Ring-LPN is a structured variant of LPN in which the noisy linear equations are defined over a polynomial quotient ring [27 BCG+20] . We consider the ring R = F q [ x ] / ( x n − 1 ) R = \mathbb{F}_q[x]/(x^n - 1) R = F q [ x ] / ( x n − 1 ) and sample a shared secret s ← Unif ( R ) s \leftarrow\operatorname{Unif}(R) s ← Unif ( R ) . For a suitable noise rate ε > 0 \varepsilon> 0 ε > 0 , each error is a polynomial
e i ( x ) = ∑ j = 0 n − 1 e i j x j , e i j ∼ Ber F q ( ε ) . e_i(x) = \sum_{j=0}^{n-1} e_{ij}x^j,\qquad e_{ij} \sim\operatorname{Ber}_{\mathbb{F}_q}(\varepsilon). e i ( x ) = j = 0 ∑ n − 1 e ij x j , e ij ∼ Ber F q ( ε ) .
The corresponding decisional ring-LPN assumption asserts that polynomially many samples
( r i , r i s + e i ) , r i ← Unif ( R ) , (r_i,r_i s+e_i),\qquad r_i\leftarrow\operatorname{Unif}(R), ( r i , r i s + e i ) , r i ← Unif ( R ) ,
are jointly computationally indistinguishable from independent uniform samples in R × R R\times R R × R . All r i r_i r i and error coefficients e i j e_{ij} e ij are sampled independently of one another and of s s s , and all operations are performed in R R R .
A dual-LPN assumption is specified by an efficient sampler for a public matrix H ∈ Mat n × k ( F q ) H\in\operatorname{Mat}_{n\times k}(\mathbb{F}_q) H ∈ Mat n × k ( F q ) , where n < k = poly ( n ) n<k=\operatorname{poly}(n) n < k = poly ( n ) . For a specified matrix distribution and suitable noise rate ε > 0 \varepsilon>0 ε > 0 , the dual-LPN assumption states that [8 ]
( H , u ) ≈ c ( H , H e ) , u ← Unif ( F q n ) , e ∼ Ber F q ( ε ) k . (H,\mathbf{u})\approx_c(H,H\mathbf{e}),\qquad\mathbf{u}\leftarrow\operatorname{Unif}(\mathbb{F}_q^n),\ \mathbf{e}\sim\operatorname{Ber}_{\mathbb{F}_q}(\varepsilon)^k. ( H , u ) ≈ c ( H , H e ) , u ← Unif ( F q n ) , e ∼ Ber F q ( ε ) k .
The sampling of H H H is included in both distributions, and H H H , e \mathbf{e} e , and u \mathbf{u} u are sampled independently. A standard hybrid argument over the columns then implies that, for any m = poly ( n ) m=\operatorname{poly}(n) m = poly ( n ) and the same sampled H H H ,
( H , U ) ≈ c ( H , H E ) , U ← Unif ( Mat n × m ( F q ) ) , E ∼ Ber F q ( ε ) k × m . (H,U)\approx_c(H,HE),\qquad U\leftarrow\operatorname{Unif}(\operatorname{Mat}_{n\times m}(\mathbb{F}_q)),\ E\sim\operatorname{Ber}_{\mathbb{F}_q}(\varepsilon)^{k\times m}. ( H , U ) ≈ c ( H , H E ) , U ← Unif ( Mat n × m ( F q )) , E ∼ Ber F q ( ε ) k × m .
Structured LPN variants use public matrices that admit fast matrix–vector multiplication, such as Toeplitz matrices [35 ] and suitable quasi-cyclic matrices [BCG+20, AMBD+18]. Following [8 ] , we use quasi-cyclic matrices of the form H = [ I n ∣ C ] H=[I_n\mid C] H = [ I n ∣ C ] , where C C C is a uniformly random n × n n\times n n × n circulant matrix. Identifying vectors with coefficient vectors in R R R , multiplication by C C C corresponds to multiplication by a uniformly random ring element a ∈ R a\in R a ∈ R . Thus, writing e = ( e 0 , e 1 ) \mathbf{e}=(e_0,e_1) e = ( e 0 , e 1 ) , the syndrome H e H\mathbf{e} H e corresponds to e 0 + a e 1 e_0+ae_1 e 0 + a e 1 , where both e 0 e_0 e 0 and e 1 e_1 e 1 have independent noisy coefficients. We refer to the hardness assumption for this distribution as (dual) ring-LPN ; its secret e 1 e_1 e 1 is sparse, whereas the introductory ring-LPN formulation above uses a uniform secret. Multiplication by H H H takes O ( n log n log log n ) O(n\log n\log\log n) O ( n log n log log n ) field operations via fast polynomial multiplication [17 ] , and hence admits a circuit of size O ( n log 2 n ) O(n\log^2 n) O ( n log 2 n ) .
We formalize this instantiation in two forms, which we call the standard (dual) ring-LPN assumption and the strong (dual) ring-LPN assumption . In each experiment below, the displayed random variables are sampled independently, and the probability also includes the distinguisher’s internal randomness and measurement outcomes. Let Q n Q_n Q n denote the following family of quasi-cyclic matrices:
Q n : = { [ I n ∣ C ] ∣ C is an n × n circulant matrix } . Q_n:=\left\{[I_n\mid C]\mid C\text{ is an }n\times n\text{ circulant matrix}\right\}. Q n := { [ I n ∣ C ] ∣ C is an n × n circulant matrix } .
Conjecture 2.4 (Standard Ring-LPN Assumption in Dual Form [8 ] ). For a suitable noise rate ε ( n ) > 0 \varepsilon(n)>0 ε ( n ) > 0 satisfying
n ε ( n ) log 2 n ⟶ ∞ , ε ( n ) < 1 4 , \frac{n\varepsilon(n)}{\log^2 n}\longrightarrow\infty,\qquad\varepsilon(n)<\frac{1}{4}, log 2 n n ε ( n ) ⟶ ∞ , ε ( n ) < 4 1 , every QPT distinguisher A A A satisfies
∣ Pr Q ← Unif ( Q n ) e ← Ber F q ( ε ( n ) ) 2 n [ A ( Q , Q e ) = 1 ] − Pr Q ← Unif ( Q n ) u ← Unif ( F q n ) [ A ( Q , u ) = 1 ] ∣ ≤ negl ( n ) \left|
\Pr_{\substack{Q\leftarrow\operatorname{Unif}(Q_n)\\ e\leftarrow\operatorname{Ber}_{\mathbb{F}_q}(\varepsilon(n))^{2n}}}[A(Q,Qe)=1]
-
\Pr_{\substack{Q\leftarrow\operatorname{Unif}(Q_n)\\ u\leftarrow\operatorname{Unif}(\mathbb{F}_q^n)}}[A(Q,u)=1]
\right|\leq\operatorname{negl}(n) Q ← Unif ( Q n ) e ← Ber F q ( ε ( n ) ) 2 n Pr [ A ( Q , Q e ) = 1 ] − Q ← Unif ( Q n ) u ← Unif ( F q n ) Pr [ A ( Q , u ) = 1 ] ≤ negl ( n ) for all sufficiently large n n n . The negligible function may depend on A A A and ε \varepsilon ε .
In particular, we conjecture that this assumption holds for ε ( n ) = ( log n ) c / n \varepsilon(n)=(\log n)^c/n ε ( n ) = ( log n ) c / n with any fixed c > 2 c>2 c > 2 ; these rates satisfy the stated parameter restrictions for all sufficiently large n n n . Motivated by the subexponential LPN assumption in [41 ] , we also consider a quantitative assumption against quantum distinguishers.
Conjecture 2.5 (Strong Ring-LPN Assumption in Dual Form). There exists a constant α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) such that, for any suitable noise rate ε ( n ) > 0 \varepsilon(n)>0 ε ( n ) > 0 satisfying
n ε ( n ) log 2 n ⟶ ∞ , ε ( n ) < 1 4 , \frac{n\varepsilon(n)}{\log^2 n}\longrightarrow\infty,\qquad\varepsilon(n)<\frac{1}{4}, log 2 n n ε ( n ) ⟶ ∞ , ε ( n ) < 4 1 ,
every quantum 2 ( n ε ( n ) ) α 2^{(n\varepsilon(n))^\alpha} 2 ( n ε ( n ) ) α -time distinguisher A \mathcal{A} A satisfies
∣ Pr Q ← Unif ( Q n ) e ← Ber F q ( ε ( n ) ) 2 n [ A ( Q , Q e ) = 1 ] − Pr Q ← Unif ( Q n ) u ← Unif ( F q n ) [ A ( Q , u ) = 1 ] ∣ ≤ 2 − ( n ε ( n ) ) α \left|\Pr_{\substack{Q\leftarrow\operatorname{Unif}(\mathcal{Q}_n)\\e\leftarrow\operatorname{Ber}_{\mathbb{F}_q}(\varepsilon(n))^{2n}}}[\mathcal{A}(Q,Qe)=1]-\Pr_{\substack{Q\leftarrow\operatorname{Unif}(\mathcal{Q}_n)\\u\leftarrow\operatorname{Unif}(\mathbb{F}_q^n)}}[\mathcal{A}(Q,u)=1]\right|\le2^{-(n\varepsilon(n))^\alpha} Q ← Unif ( Q n ) e ← Ber F q ( ε ( n ) ) 2 n Pr [ A ( Q , Q e ) = 1 ] − Q ← Unif ( Q n ) u ← Unif ( F q n ) Pr [ A ( Q , u ) = 1 ] ≤ 2 − ( n ε ( n ) ) α
for all sufficiently large n n n .
The strong assumption quantifies security as a function of the noise rate on the stated parameter range. For ε ( n ) = ( log n ) c / n \varepsilon(n)=(\log n)^c/n ε ( n ) = ( log n ) c / n with c > 2 c>2 c > 2 and c α > 1 c\alpha>1 c α > 1 , it guarantees negligible advantage against every QPT distinguisher. For any fixed noise rate ε ∈ ( 0 , 1 / 4 ) \varepsilon\in(0,1/4) ε ∈ ( 0 , 1/4 ) , it assumes security against 2 ( n ε ) α = 2 Θ ( n α ) 2^{(n\varepsilon)^\alpha}=2^{\Theta(n^\alpha)} 2 ( n ε ) α = 2 Θ ( n α ) -time quantum algorithms, with advantage at most 2 − ( n ε ) α = 2 − Θ ( n α ) 2^{-(n\varepsilon)^\alpha}=2^{-\Theta(n^\alpha)} 2 − ( n ε ) α = 2 − Θ ( n α ) .
Several constructions of trapdoored matrix distributions over Mat n × m ( F q ) \operatorname{Mat}_{n\times m}(\mathbb{F}_q) Mat n × m ( F q ) are known under variants of the LPN assumption [16 , 8 , 41 ] . We use the (dual) ring-LPN construction of [8 ] , instantiated with the quasi-cyclic matrix family Q n \mathcal{Q}_n Q n . The following lemma states its guarantees in terms of our efficiency definition.
Lemma 2.6 ([8 ] ). Let n ∈ N n\in\mathbb{N} n ∈ N , m = Θ ( n ) m=\Theta(n) m = Θ ( n ) , and ε ( n ) = ( log n ) c / n \varepsilon(n)=(\log n)^c/n ε ( n ) = ( log n ) c / n for a fixed constant c > 2 c>2 c > 2 . Under Conjecture 2.4 at noise rate ε ( n ) \varepsilon(n) ε ( n ) , there exists an O ( n m ε ) O(nm\varepsilon) O ( nm ε ) -samplable trapdoored matrix distribution over Mat n × m ( F q ) \operatorname{Mat}_{n\times m}(\mathbb{F}_q) Mat n × m ( F q ) supporting O ( n m ε ) O(nm\varepsilon) O ( nm ε ) -efficient evaluation of mult.
Proof. Independently sample H = [ I n ∣ C ] ← Unif ( Q n ) H=[I_n\mid C]\leftarrow\operatorname{Unif}(\mathcal{Q}_n) H = [ I n ∣ C ] ← Unif ( Q n ) and E ∼ Ber F q ( ε ) 2 n × m E\sim\operatorname{Ber}_{\mathbb{F}_q}(\varepsilon)^{2n\times m} E ∼ Ber F q ( ε ) 2 n × m , and set M = H E M=HE M = H E . The trapdoor evaluates M x Mx M x as H ( E x ) H(Ex) H ( E x ) , so correctness is immediate. Pseudorandomness follows from Conjecture 2.4 by the column hybrid argument above.
Let W W W denote the number of nonzero entries of E E E , so that E [ W ] = 2 n m ε \mathbb{E}[W]=2nm\varepsilon E [ W ] = 2 nm ε . Sparse multiplication by E E E costs O ( n + m + W ) O(n+m+W) O ( n + m + W ) , while quasi-cyclic multiplication by H H H costs O ( n log 2 n ) O(n\log^2 n) O ( n log 2 n ) . Thus the expected circuit size is O ( n m ε + n log 2 n ) O(nm\varepsilon+n\log^2 n) O ( nm ε + n log 2 n ) , as in [8 Proposition 5.1] . For sampling, we store only the n n n defining coefficients of C C C and the nonzero entries of E E E . Exact geometric skipping [9 ] generates these sparse entries in expected time O ( n m ε ) O(nm\varepsilon) O ( nm ε ) , giving the same expected bound for sampling the succinct matrix description and its trapdoor circuit.
By a Chernoff bound, W = O ( n m ε ) W=O(nm\varepsilon) W = O ( nm ε ) with overwhelming probability, since n m ε = Θ ( n ( log n ) c ) nm\varepsilon=\Theta(n(\log n)^c) nm ε = Θ ( n ( log n ) c ) . Hence the sampled circuit runs in O ( n m ε + n log 2 n ) O(nm\varepsilon+n\log^2 n) O ( nm ε + n log 2 n ) time on every input with overwhelming probability. Concentration of the gap-sampling times gives the same bound for sampling.2
Finally, m = Θ ( n ) m=\Theta(n) m = Θ ( n ) and c > 2 c>2 c > 2 imply n log 2 n = o ( n m ε ) n\log^2 n=o(nm\varepsilon) n log 2 n = o ( nm ε ) , so the sparse-error contribution dominates the quasi-cyclic cost:
O ( n m ε + n log 2 n ) = O ( n m ε ) . O(nm\varepsilon+n\log^2 n)=O(nm\varepsilon). O ( nm ε + n log 2 n ) = O ( nm ε ) .
Both efficiency requirements of Definition 2.2 follow.
Trapdoored Triangular Matrices
For n , m ∈ N n,m\in\mathbb{N} n , m ∈ N with m = Θ ( n ) m=\Theta(n) m = Θ ( n ) and a suitable noise rate ε ( n ) > 0 \varepsilon(n)>0 ε ( n ) > 0 , let D M ( n , m , ε ) \mathcal{D}_M(n,m,\varepsilon) D M ( n , m , ε ) denote the trapdoored matrices distribution over Mat n × m ( F q ) \operatorname{Mat}_{n\times m}(\mathbb{F}_q) Mat n × m ( F q ) defined in Lemma 2.6. In this subsection, we construct trapdoored matrix distributions over triangular matrices with efficient sampling and trapdoor circuits for mult, multT ^\mathsf{T} T . The complexity bounds are near-linear under the standard (dual) ring-LPN assumption and quasi-linear under its strong variant. Corollary 2.13 summarizes the results for upper-triangular, lower-triangular, and symmetric matrices. We begin with strictly upper-triangular matrices.
Theorem 2.7. Recall that U n ∘ \mathcal{U}_n^\circ U n ∘ denotes the set of n × n n\times n n × n strictly upper-triangular matrices. The following statements hold:
(i) Under the standard (dual) ring-LPN assumption, for any 0 < δ < 1 0 < \delta< 1 0 < δ < 1 , there exists an O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) -samplable trapdoored matrix distribution over U n ∘ U_n^{\circ} U n ∘ supporting O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) -efficient mult.
(ii) Under the strong (dual) ring-LPN assumption, there exists an O ~ ( n ) \widetilde{O}(n) O ( n ) -samplable trapdoored matrix distribution over U n ∘ U_n^{\circ} U n ∘ supporting O ~ ( n ) \widetilde{O}(n) O ( n ) -efficient mult.
Both parts of Theorem 2.7 use the same sampling algorithm, Algorithm 1 below. Fix an integer c > 2 c > 2 c > 2 ; in the strong case, choose c c c so that c α > 1 c\alpha> 1 c α > 1 , where α \alpha α is the constant in Conjecture 2.5 . The choice of assumption determines the base dimension b b b . For part (i), we take b = ⌈ n δ ⌉ b = \lceil n^\delta\rceil b = ⌈ n δ ⌉ for the chosen 0 < δ < 1 0 < \delta< 1 0 < δ < 1 ; for part (ii), the strong assumption allows us to reduce b b b to ⌈ 8 log c n ⌉ \lceil8\log_c n\rceil ⌈ 8 log c n ⌉ . These choices yield the two complexity bounds in Theorem 2.7 . We present the common sampling algorithm and establish its pseudorandomness and efficiency for both choices of b b b .
Table 1.
The following three lemmas establish pseudorandomness, sampling efficiency, and circuit size, respectively. Throughout the remainder of this subsection, we assume that the initial dimension n n n is a sufficiently large power of 2 2 2 and that c c c is chosen as specified above.
Lemma 2.8. The matrix distribution induced by Algorithm 1 is computationally indistinguishable from Unif ( U n ∘ ) \operatorname{Unif}(U_n^{\circ}) Unif ( U n ∘ ) under either of the following parameter choices: under the standard (dual) ring-LPN assumption, take b = ⌈ n δ ⌉ b = \lceil n^\delta\rceil b = ⌈ n δ ⌉ for a fixed 0 < δ < 1 0 < \delta< 1 0 < δ < 1 and an integer c > 2 c > 2 c > 2 ; under the strong (dual) ring-LPN assumption, take b = ⌈ 8 log c n ⌉ b = \lceil8\log_c^n\rceil b = ⌈ 8 log c n ⌉ with an integer c > 2 c > 2 c > 2 satisfying c α > 1 c\alpha> 1 c α > 1 .
Proof. Let Hybrid i \operatorname{Hybrid}_i Hybrid i denote the matrix distribution obtained by setting the base dimension in Algorithm 1 to
b i = max { n 2 i , b } , b_i = \max\left\{\frac{n}{2^i}, b\right\}, b i = max { 2 i n , b } ,
while keeping the original n n n in the noise rates. Then Hybrid 0 = Unif ( U n ∘ ) \operatorname{Hybrid}_0 = \operatorname{Unif}(U_n^{\circ}) Hybrid 0 = Unif ( U n ∘ ) , and Hybrid L \operatorname{Hybrid}_L Hybrid L coincides with the output distribution of Algorithm 1, where L = ⌈ log ( n / b ) ⌉ L = \lceil\log(n/b)\rceil L = ⌈ log ( n / b )⌉ . Fix a QPT distinguisher A A A , and write
d i = n 2 i , ϵ i = 2 log c n d i = 2 i + 1 log c n n . d_i = \frac{n}{2^i}, \qquad\epsilon_i = \frac{2\log_c^n}{d_i} = \frac{2^{i+1}\log_c^n}{n}. d i = 2 i n , ϵ i = d i 2 log c n = n 2 i + 1 log c n .
For i ∈ [ L ] i \in[L] i ∈ [ L ] , adjacent hybrids differ only in 2 i − 1 2^{i-1} 2 i − 1 off-diagonal blocks: these are uniform in Hybrid i − 1 \operatorname{Hybrid}_{i-1} Hybrid i − 1 and sampled from D M ( d i , d i , ϵ i − 1 ) \mathcal{D}_M(d_i,d_i,\epsilon_{i-1}) D M ( d i , d i , ϵ i − 1 ) in Hybrid i \operatorname{Hybrid}_i Hybrid i . A hybrid argument over the blocks and then over their d i d_i d i columns reduces distinguishing the two hybrids to distinguishing a uniform vector from Q e Qe Q e , where Q ← Unif ( Q d i ) Q \leftarrow\operatorname{Unif}(\mathcal{Q}_{d_i}) Q ← Unif ( Q d i ) and e ∼ Ber F q ( ε i − 1 ) 2 d i e \sim\operatorname{Ber}_{\mathbb{F}_q}(\varepsilon_{i-1})^{2d_i} e ∼ Ber F q ( ε i − 1 ) 2 d i . The columns within each real block share the same public Q Q Q . Choosing a block and a column uniformly gives a single-sample quantum reduction running in time poly ( n ) \operatorname{poly}(n) poly ( n ) . Denoting its advantage by η i \eta_i η i , we obtain
Δ i : = ∣ Pr [ A ( Hybrid i ) = 1 ] − Pr [ A ( Hybrid i − 1 ) = 1 ] ∣ \Delta_i := \left|\Pr[\mathcal{A}(\operatorname{Hybrid}_i)=1]-\Pr[\mathcal{A}(\operatorname{Hybrid}_{i-1})=1]\right| Δ i := ∣ Pr [ A ( Hybrid i ) = 1 ] − Pr [ A ( Hybrid i − 1 ) = 1 ] ∣
≤ 2 i − 1 d i η i = n 2 η i . \le2^{i-1}d_i\eta_i=\frac{n}{2}\eta_i. ≤ 2 i − 1 d i η i = 2 n η i .
Under the standard (dual) ring-LPN assumption in Conjecture 2.4 , take b = ⌈ n δ ⌉ b=\lceil n^\delta\rceil b = ⌈ n δ ⌉ for a fixed 0 < δ < 1 0<\delta<1 0 < δ < 1 . Since d i ≥ d L > b / 2 d_i\ge d_L>b/2 d i ≥ d L > b /2 , for sufficiently large n n n we have
d i > n δ 2 , ε i − 1 = log c n d i < 2 log c n n δ < 1 4 . d_i>\frac{n^\delta}{2},\qquad\varepsilon_{i-1}=\frac{\log^c n}{d_i}<\frac{2\log^c n}{n^\delta}<\frac{1}{4}. d i > 2 n δ , ε i − 1 = d i log c n < n δ 2 log c n < 4 1 .
Moreover,
d i ε i − 1 log 2 d i = log c n log 2 d i ≥ log c − 2 n ⟶ ∞ . \frac{d_i\varepsilon_{i-1}}{\log^2 d_i}=\frac{\log^c n}{\log^2 d_i}\ge\log^{c-2}n\longrightarrow\infty. log 2 d i d i ε i − 1 = log 2 d i log c n ≥ log c − 2 n ⟶ ∞.
Thus the noise rates lie in the required range. Since n < ( 2 d i ) 1 / δ n<(2d_i)^{1/\delta} n < ( 2 d i ) 1/ δ , each reduction runs in polynomial time in d i d_i d i . The assumption therefore gives η i = negl ( d i ) = negl ( n ) \eta_i=\operatorname{negl}(d_i)=\operatorname{negl}(n) η i = negl ( d i ) = negl ( n ) , and summing over the L = O ( log n ) L=O(\log n) L = O ( log n ) levels yields
∑ i = 1 L Δ i ≤ n 2 ∑ i = 1 L η i = negl ( n ) . \sum_{i=1}^{L}\Delta_i\le\frac{n}{2}\sum_{i=1}^{L}\eta_i=\operatorname{negl}(n). i = 1 ∑ L Δ i ≤ 2 n i = 1 ∑ L η i = negl ( n ) .
Under the strong (dual) ring-LPN assumption in Conjecture 2.5 , take b = ⌈ 8 log c n ⌉ b=\lceil8\log^c n\rceil b = ⌈ 8 log c n ⌉ . Now d i > b / 2 ≥ 4 log c n d_i>b/2\ge4\log^c n d i > b /2 ≥ 4 log c n , so
ε i − 1 = log c n d i < 1 4 , d i ε i − 1 log 2 d i ≥ log c − 2 n ⟶ ∞ . \varepsilon_{i-1}=\frac{\log^c n}{d_i}<\frac{1}{4},\qquad\frac{d_i\varepsilon_{i-1}}{\log^2 d_i}\ge\log^{c-2}n\longrightarrow\infty. ε i − 1 = d i log c n < 4 1 , log 2 d i d i ε i − 1 ≥ log c − 2 n ⟶ ∞.
Hence these noise rates also lie in the required range. Since c α > 1 c\alpha>1 c α > 1 , the time bound
2 ( d i ε i − 1 ) α = 2 ( log n ) c α = n ( log n ) c α − 1 2^{(d_i\varepsilon_{i-1})^\alpha}=2^{(\log n)^{c\alpha}}=n^{(\log n)^{c\alpha-1}} 2 ( d i ε i − 1 ) α = 2 ( l o g n ) c α = n ( l o g n ) c α − 1
eventually exceeds the polynomial running time of each reduction. The single-sample advantage is therefore bounded by η i ≤ 2 − ( log n ) c α \eta_i\le2^{-(\log n)^{c\alpha}} η i ≤ 2 − ( l o g n ) c α , giving
∑ i = 1 L Δ i ≤ n L 2 2 − ( log n ) c α = negl ( n ) . \sum_{i=1}^{L}\Delta_i\le\frac{nL}{2}2^{-(\log n)^{c\alpha}}=\operatorname{negl}(n). i = 1 ∑ L Δ i ≤ 2 n L 2 − ( l o g n ) c α = negl ( n ) .
In either case, Hybrid L \operatorname{Hybrid}_L Hybrid L is computationally indistinguishable from Hybrid 0 \operatorname{Hybrid}_0 Hybrid 0 , completing the proof.
Lemma 2.9. Algorithm 1 runs in time O ( n log c + 1 n + n b ) O(n\log^{c+1}n+nb) O ( n log c + 1 n + nb ) with overwhelming probability.
Proof. Let L = ⌈ log ( n / b ) ⌉ L=\lceil\log(n/b)\rceil L = ⌈ log ( n / b )⌉ . At depth i = 0 , … , L − 1 i=0,\ldots,L-1 i = 0 , … , L − 1 , there are 2 i 2^i 2 i blocks of dimension d i = n / 2 i d_i=n/2^i d i = n / 2 i , each using an error matrix of size d i × ( d i / 2 ) d_i\times(d_i/2) d i × ( d i /2 ) at rate ε i = 2 log c n / d i \varepsilon_i=2\log^c n/d_i ε i = 2 log c n / d i . Let W i W_i W i be the total number of nonzero error entries at this depth. Then
E [ W i ] = 2 i ⋅ d i 2 2 ⋅ ε i = n log c n . \mathbb{E}[W_i]=2^i\cdot\frac{d_i^2}{2}\cdot\varepsilon_i=n\log^c n. E [ W i ] = 2 i ⋅ 2 d i 2 ⋅ ε i = n log c n .
Chernoff bounds and a union bound over the L = O ( log n ) L=O(\log n) L = O ( log n ) depths give W i = O ( n log c n ) W_i=O(n\log^c n) W i = O ( n log c n ) simultaneously at every depth with overwhelming probability in n n n .
The error matrices are sampled by exact geometric skipping. Applying the sampling-time concentration argument from Lemma 2.6 to the gap calls across all blocks at each depth gives O ( n log c n ) O(n\log^c n) O ( n log c n ) sampling time with overwhelming probability. Sampling the defining coefficients and constructing the circuits adds O ( n log 2 n + W i ) O(n\log^2 n+W_i) O ( n log 2 n + W i ) time with overwhelming probability. Since c > 2 c>2 c > 2 , the total cost per depth is O ( n log c n ) O(n\log^c n) O ( n log c n ) .
Trapdoored Invertible Triangular Matrices with Efficient Inversion
The leaf dimensions sum to n n n and are at most b b b , so sampling the uniform leaf matrices and constructing their circuits costs O ( n b ) O(nb) O ( nb ) with overwhelming probability. Summing these costs gives
O ( n log c n ⋅ log ( n / b ) + n b ) = O ( n log c + 1 n + n b ) , O(n\log^{c} n\cdot\log(n/b)+nb)=O(n\log^{c+1}n+nb), O ( n log c n ⋅ log ( n / b ) + nb ) = O ( n log c + 1 n + nb ) ,
as claimed.
Lemma 2.10. With overwhelming probability, the circuit C m u l t , U C_{\mathrm{mult},U} C mult , U sampled by Algorithm 1 has size O ( n log c + 1 n + n b ) O(n\log^{c+1}n+nb) O ( n log c + 1 n + nb ) .
Proof. Let W i W_i W i be the total error weight at depth i i i , as in the proof of Lemma 2.9 . Sparse multiplication contributes O ( n + W i ) O(n+W_i) O ( n + W i ) gates, while quasi-cyclic multiplication and the additions combining the recursive blocks contribute O ( n log 2 n ) O(n\log^2 n) O ( n log 2 n ) gates. With overwhelming probability, W i = O ( n log c n ) W_i=O(n\log^c n) W i = O ( n log c n ) at every depth, so c > 2 c>2 c > 2 gives a total of O ( n log c n ) O(n\log^c n) O ( n log c n ) gates per depth. Summing over the O ( log ( n / b ) ) O(\log(n/b)) O ( log ( n / b )) depths and adding the O ( n b ) O(nb) O ( nb ) gates at the leaves yields O ( n log c + 1 n + n b ) O(n\log^{c+1}n+nb) O ( n log c + 1 n + nb ) , completing the proof.
The distribution sampled by Algorithm 1 also supports efficient m u l t T \mathrm{mult}^{\mathsf T} mult T . We obtain the corresponding trapdoor circuit by applying Tellegen’s principle, also known as the transposition principle. For later use, we state the principle in the following general form.
Lemma 2.11 (Tellegen’s Principle [14 ] ). Let F F F be a field and M ∈ Mat n × m ( F ) M\in\operatorname{Mat}_{n\times m}(F) M ∈ Mat n × m ( F ) , where n , m ∈ N n,m\in\mathbb{N} n , m ∈ N and m = O ( n ) m=O(n) m = O ( n ) . Suppose a circuit C C C of size T ( n ) T(n) T ( n ) computes x ↦ M x x\mapsto Mx x ↦ M x using only additions and multiplications by constants in F F F . Then a circuit C T C^{\mathsf T} C T of size O ( T ( n ) + n ) O(T(n)+n) O ( T ( n ) + n ) computing y ↦ M T y y\mapsto M^{\mathsf T}y y ↦ M T y can be constructed from C C C in time O ( T ( n ) + n ) O(T(n)+n) O ( T ( n ) + n ) .
Remark 2.12. Once the sampled trapdoor is fixed, all circuits we construct for m u l t \mathrm{mult} mult and for i n v \mathrm{inv} inv on invertible matrices use only additions and multiplications by field constants. Unrolling any recursive calls therefore yields linear arithmetic circuits to which Lemma 2.11 applies. Throughout the paper, we will invoke this lemma without further comment to obtain the corresponding circuits for m u l t T \mathrm{mult}^{\mathsf T} mult T and i n v T \mathrm{inv}^{\mathsf T} inv T . Our sampling and circuit-size bounds have the same order and are at least linear in n n n , so this preserves the stated sampling and evaluation bounds.
Combining Theorem 2.7 with Lemma 2.11 , we extend the construction to the matrix families in the following corollary. Recall that L n 0 \mathcal{L}^{0}_{n} L n 0 and L n \mathcal{L}_{n} L n denote the sets of strictly lower-triangular and lower-triangular n × n n\times n n × n matrices over F q \mathbb{F}_q F q , respectively, and Sym n \operatorname{Sym}_{n} Sym n denotes the set of n × n n\times n n × n symmetric matrices over F q \mathbb{F}_q F q .
Corollary 2.13. Let H \mathcal{H} H be any of the matrix families U n 0 \mathcal{U}^{0}_{n} U n 0 , L n 0 \mathcal{L}^{0}_{n} L n 0 , U n \mathcal{U}_{n} U n , L n \mathcal{L}_{n} L n , or Sym n \operatorname{Sym}_{n} Sym n . Then the following statements hold:
Under the standard (dual) ring-LPN assumption, for any fixed 0 < δ < 1 0<\delta<1 0 < δ < 1 , there exists an O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) -samplable trapdoored matrix distribution over H \mathcal{H} H supporting O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) -efficient evaluation of both m u l t \mathrm{mult} mult and m u l t T \mathrm{mult}^{\mathsf T} mult T .
Under the strong (dual) ring-LPN assumption, there exists an O ~ ( n ) \widetilde{O}(n) O ( n ) -samplable trapdoored matrix distribution over H \mathcal{H} H supporting O ~ ( n ) \widetilde{O}(n) O ( n ) -efficient evaluation of both m u l t \mathrm{mult} mult and m u l t T \mathrm{mult}^{\mathsf T} mult T .
Proof. Sample U U U from the distribution in Theorem 2.7 , and independently sample a diagonal matrix D D D whose diagonal entries are independent and uniform in F q \mathbb{F}_q F q . For the five choices of H \mathcal{H} H listed above, use, respectively,
U , U T , U + D , U T + D , U + U T + D . U,\qquad U^{\mathsf T},\qquad U+D,\qquad U^{\mathsf T}+D,\qquad U+U^{\mathsf T}+D. U , U T , U + D , U T + D , U + U T + D . When U U U is uniform over U n 0 \mathcal{U}^{0}_{n} U n 0 , these matrices are uniform over their respective families. Pseudorandomness therefore follows by efficient post-processing.
Each multiplication circuit uses at most one copy of the circuit for U U U and one for U T U^{\mathsf T} U T , together with O ( n ) O(n) O ( n ) additional gates for diagonal multiplication and additions. The same holds for transpose multiplication. Sampling D D D and constructing these circuits preserves the stated sampling and evaluation bounds, completing the proof.
Trapdoored Invertible Triangular Matrices with Efficient Inversion
We now extend the construction in Corollary 2.13 to U n ∗ U_n^* U n ∗ , the group of invertible upper-triangular matrices over F q \mathbb{F}_q F q (a Borel subgroup of GL ( n , F q ) \operatorname{GL}(n,\mathbb{F}_q) GL ( n , F q ) ). In addition to matrix–vector multiplication, the resulting trapdoors support the inverse and inverse-transpose actions inv \operatorname{inv} inv and inv T \operatorname{inv}^{\mathsf{T}} inv T defined in § 3.1 . The following theorem summarizes our guarantees.
Theorem 2.14. Let U n ∗ U_n^* U n ∗ denote the group of n × n n \times n n × n invertible upper-triangular matrices over F q \mathbb{F}_q F q .
(i) Under the standard (dual) ring-LPN assumption, for any fixed 0 < δ < 1 0 < \delta< 1 0 < δ < 1 , there exists an O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) -samplable trapdoored matrix distribution over U n ∗ U_n^* U n ∗ supporting O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) -efficient mult \operatorname{mult} mult , mult T \operatorname{mult}^{\mathsf{T}} mult T , inv \operatorname{inv} inv , and inv T \operatorname{inv}^{\mathsf{T}} inv T .
(ii) Under the strong (dual) ring-LPN assumption, there exists an O ~ ( n ) \widetilde{O}(n) O ( n ) -samplable trapdoored matrix distribution over U n ∗ U_n^* U n ∗ supporting O ~ ( n ) \widetilde{O}(n) O ( n ) -efficient mult \operatorname{mult} mult , mult T \operatorname{mult}^{\mathsf{T}} mult T , inv \operatorname{inv} inv , and inv T \operatorname{inv}^{\mathsf{T}} inv T .
Both parts of Theorem 2.14 use Algorithm 3, with Algorithm 2 as a subroutine. As in the preceding subsection, fix an integer c > 2 c > 2 c > 2 ; in the strong case, also require c α > 1 c\alpha> 1 c α > 1 , where α \alpha α is the constant in Conjecture 2.5 . We take b = ⌈ n δ ⌉ b = \lceil n^\delta\rceil b = ⌈ n δ ⌉ in part (i) and b = ⌈ 8 log c n ⌉ b = \lceil8\log_c n\rceil b = ⌈ 8 log c n ⌉ in part (ii).
An upper-triangular matrix is invertible if and only if all its diagonal entries are nonzero. Accordingly, Algorithm 3 forms U ∗ = U + D U^* = U + D U ∗ = U + D , where U U U is sampled by Algorithm 1 and D D D is an independent, uniformly random invertible diagonal matrix. Algorithm 2 follows the recursive block structure of U U U to construct a circuit C inv , U ∗ C_{\operatorname{inv},U^*} C inv , U ∗ computing y ↦ ( U ∗ ) − 1 y \mathbf{y} \mapsto(U^*)^{-1}\mathbf{y} y ↦ ( U ∗ ) − 1 y . The circuit computes the lower diagonal block first and substitutes the result into the upper block; and use back-substitution3 at the base dimension.
Algorithm 2 Generating an Efficient Inversion Circuit
Require: ( U , C mult , U ) (U, C_{\operatorname{mult},U}) ( U , C mult , U ) from Algorithm 1, an invertible diagonal matrix D D D , and the same base dimension b b b .
procedure EfficientInversionCircuit ( d , U , C mult , U , D ) \operatorname{EfficientInversionCircuit}(d,U,C_{\operatorname{mult},U},D) EfficientInversionCircuit ( d , U , C mult , U , D )
U ∗ ← U + D U^* \leftarrow U + D U ∗ ← U + D
if d ≤ b d \le b d ≤ b then
Construct a size-O ( d 2 ) O(d^2) O ( d 2 ) circuit C inv , U ∗ C_{\operatorname{inv},U^*} C inv , U ∗ by back-substitution.
else
d 1 ← ⌈ d / 2 ⌉ d_1 \leftarrow\lceil d/2\rceil d 1 ← ⌈ d /2 ⌉ , d 2 ← ⌊ d / 2 ⌋ d_2 \leftarrow\lfloor d/2\rfloor d 2 ← ⌊ d /2 ⌋
Obtain the stored block descriptions U 1 U_1 U 1 , U 2 U_2 U 2 , M M M from U U U , and write D = diag ( D 1 , D 2 ) D = \operatorname{diag}(D_1,D_2) D = diag ( D 1 , D 2 ) .
Obtain the circuits C mult , U 1 C_{\operatorname{mult},U_1} C mult , U 1 , C mult , U 2 C_{\operatorname{mult},U_2} C mult , U 2 , and C mult , M C_{\operatorname{mult},M} C mult , M from the recursive description of C mult , U C_{\operatorname{mult},U} C mult , U .
C 1 ← EfficientInversionCircuit ( d 1 , U 1 , C mult , U 1 , D 1 ) C_1 \leftarrow\operatorname{EfficientInversionCircuit}(d_1,U_1,C_{\operatorname{mult},U_1},D_1) C 1 ← EfficientInversionCircuit ( d 1 , U 1 , C mult , U 1 , D 1 )
C 2 ← EfficientInversionCircuit ( d 2 , U 2 , C mult , U 2 , D 2 ) C_2 \leftarrow\operatorname{EfficientInversionCircuit}(d_2,U_2,C_{\operatorname{mult},U_2},D_2) C 2 ← EfficientInversionCircuit ( d 2 , U 2 , C mult , U 2 , D 2 )
Define C inv , U ∗ C_{\operatorname{inv},U^*} C inv , U ∗ on input ( y 1 , y 2 ) (y_1,y_2) ( y 1 , y 2 ) by: z ← C 2 ( y 2 ) z \leftarrow C_2(y_2) z ← C 2 ( y 2 ) ; output ( C 1 ( y 1 − C mult , M ( z ) ) , z ) (C_1(y_1-C_{\operatorname{mult},M}(z)),z) ( C 1 ( y 1 − C mult , M ( z )) , z ) .
end if
return C inv , U ∗ C_{\operatorname{inv},U^*} C inv , U ∗
end procedure
Pseudorandomness follows from Lemma 2.8 by common hybrid argument. The sampled multiplication circuit C mult , U ∗ C_{\operatorname{mult},U^*} C mult , U ∗ has the same asymptotic size as in Corollary 2.13 , since the diagonal contribution costs only
x i = a i i − 1 ( y i − ∑ j = i + 1 d a i j x j ) , i = d , d − 1 , … , 1. x_i=a_{ii}^{-1}\left(y_i-\sum_{j=i+1}^{d}a_{ij}x_j\right), \qquad i=d,d-1,\ldots,1. x i = a ii − 1 ( y i − j = i + 1 ∑ d a ij x j ) , i = d , d − 1 , … , 1.
The diagonal inverses are precomputed circuit constants. There are d ( d − 1 ) / 2 d(d-1)/2 d ( d − 1 ) /2 off-diagonal terms, so constructing and evaluating the circuit both take O ( d 2 ) O(d^2) O ( d 2 ) time. O ( n ) O(n) O ( n ) . It remains to establish the correctness of Algorithm 2 and to bound its running time and the size of its output circuit C i n v , U ∗ C_{\mathrm{inv},U^*} C inv , U ∗ .
Algorithm 3 Sampling from a Trapdoored Matrix Distribution over U n ∗ U_n^* U n ∗
Require: Dimension n n n , with c c c and b b b chosen as in Algorithm 1 for the relevant assumption.
procedure InvertibleUpperTriangular( n ) (n) ( n )
Sample D = diag ( a 1 , … , a n ) D = \operatorname{diag}(a_1,\ldots,a_n) D = diag ( a 1 , … , a n ) with independent a i ← Unif ( F q ∖ { 0 } ) a_i \leftarrow\operatorname{Unif}(\mathbb{F}_q \setminus\{0\}) a i ← Unif ( F q ∖ { 0 }) .
Construct a size-O ( n ) O(n) O ( n ) circuit C m u l t , D C_{\mathrm{mult},D} C mult , D computing x ↦ D x \mathbf{x} \mapsto D\mathbf{x} x ↦ D x .
( U , C m u l t , U ) ← StrictUpperTriangular ( n ) (U,C_{\mathrm{mult},U}) \leftarrow\operatorname{StrictUpperTriangular}(n) ( U , C mult , U ) ← StrictUpperTriangular ( n )
U ∗ ← U + D U^* \leftarrow U+D U ∗ ← U + D
C m u l t , U ∗ : x ↦ C m u l t , U ( x ) + C m u l t , D ( x ) C_{\mathrm{mult},U^*}: \mathbf{x} \mapsto C_{\mathrm{mult},U}(\mathbf{x})+C_{\mathrm{mult},D}(\mathbf{x}) C mult , U ∗ : x ↦ C mult , U ( x ) + C mult , D ( x )
C i n v , U ∗ ← EfficientInversionCircuit ( n , U , C m u l t , U , D ) C_{\mathrm{inv},U^*} \leftarrow\operatorname{EfficientInversionCircuit}(n,U,C_{\mathrm{mult},U},D) C inv , U ∗ ← EfficientInversionCircuit ( n , U , C mult , U , D )
return ( U ∗ , C m u l t , U ∗ , C i n v , U ∗ ) (U^*,C_{\mathrm{mult},U^*},C_{\mathrm{inv},U^*}) ( U ∗ , C mult , U ∗ , C inv , U ∗ )
end procedure
Lemma 2.15. Algorithm 2 runs in time O ( n log c + 1 n + n b ) O(n\log^{c+1} n+nb) O ( n log c + 1 n + nb ) with overwhelming probability over the input sampled by Algorithm 1, for any invertible diagonal matrix D D D . The same running-time bound holds for Algorithm 3 with overwhelming probability.
Proof. We access the input subcircuits through their stored references and construct the output circuit by writing each gate once. At an internal node of dimension d d d , we copy C m u l t , M C_{\mathrm{mult},M} C mult , M and add O ( d ) O(d) O ( d ) gates to connect the two recursively constructed inverse circuits. The child circuits are constructed directly in the output, so their gates are not copied again at their parent nodes.
By the proof of Lemma 2.10 , the total size of the off-diagonal circuits at each depth is O ( n log c n ) O(n\log^c n) O ( n log c n ) with overwhelming probability, simultaneously over all depths. The connecting gates add only O ( n ) O(n) O ( n ) per depth. There are O ( log ( n / b ) ) O(\log(n/b)) O ( log ( n / b )) internal levels. At the leaves, constructing the circuits costs ∑ ℓ O ( d ℓ 2 ) ≤ O ( n b ) \sum_\ell O(d_\ell^2) \le O(nb) ∑ ℓ O ( d ℓ 2 ) ≤ O ( nb ) , since d ℓ ≤ b d_\ell\le b d ℓ ≤ b and ∑ ℓ d ℓ = n \sum_\ell d_\ell=n ∑ ℓ d ℓ = n . Thus the total construction time is
n log c n ⋅ log ( n / b ) + n b = O ( n log c + 1 n + n b ) . n\log^c n\cdot\log(n/b)+nb=O(n\log^{c+1} n+nb). n log c n ⋅ log ( n / b ) + nb = O ( n log c + 1 n + nb ) .
For Algorithm 3, Lemmas 2.9 and 2.10 give the same bound for sampling U U U and constructing the multiplication circuit. Sampling D D D and handling diagonal multiplication add only O ( n ) O(n) O ( n ) work with overwhelming probability, so the claimed bound follows.
Lemma 2.16. For every input satisfying the requirements of Algorithm 2, the constructed circuit C i n v , U ∗ C_{\mathrm{inv},U^*} C inv , U ∗ correctly computes y ↦ ( U ∗ ) − 1 y \mathbf{y}\mapsto(U^*)^{-1}\mathbf{y} y ↦ ( U ∗ ) − 1 y . With overwhelming probability over the input sampled by Algorithm 1, its size is O ( n log c + 1 n + n b ) O(n\log^{c+1} n+nb) O ( n log c + 1 n + nb ) .
Proof. Correctness follows by induction on the block dimension d d d . For d ≤ b d\le b d ≤ b , the circuit solves ( U + D ) x = y (U+D)\mathbf{x}=\mathbf{y} ( U + D ) x = y by back-substitution. Otherwise, let A 1 = U 1 + D 1 A_1=U_1+D_1 A 1 = U 1 + D 1 and A 2 = U 2 + D 2 A_2=U_2+D_2 A 2 = U 2 + D 2 , both of which are invertible. By induction, the algorithm’s circuit computes
z = A 2 − 1 y 2 , x 1 = A 1 − 1 ( y 1 − M z ) . \mathbf{z}=A_2^{-1}\mathbf{y}_2,\qquad\mathbf{x}_1=A_1^{-1}(\mathbf{y}_1-M\mathbf{z}). z = A 2 − 1 y 2 , x 1 = A 1 − 1 ( y 1 − M z ) .
Hence its output satisfies
( U + D ) [ x 1 z ] = [ A 1 x 1 + M z A 2 z ] = [ y 1 y 2 ] , (U+D)
\begin{bmatrix}
\mathbf{x}_1\\
\mathbf{z}
\end{bmatrix}
=
\begin{bmatrix}
A_1\mathbf{x}_1+M\mathbf{z}\\
A_2\mathbf{z}
\end{bmatrix}
=
\begin{bmatrix}
\mathbf{y}_1\\
\mathbf{y}_2
\end{bmatrix}, ( U + D ) [ x 1 z ] = [ A 1 x 1 + M z A 2 z ] = [ y 1 y 2 ] ,
proving correctness.
Each internal node contributes one off-diagonal multiplication circuit and O ( d ) O(d) O ( d ) additional gates, while each leaf contributes O ( d 2 ) O(d^2) O ( d 2 ) gates. The gate count in the proof of Lemma 2.15 therefore gives the claimed size bound with overwhelming probability.
Substituting the two choices of b b b into Lemmas 2.15 and 2.16 gives bounds of O ( n 1 + δ ) \mathcal{O}(n^{1+\delta}) O ( n 1 + δ ) and O ( n log c + 1 n ) \mathcal{O}(n\log^{c+1}n) O ( n log c + 1 n ) , respectively. For each fixed sample, the inverse circuit uses only additions and multiplication by field constants, so Lemma 2.11 also yields an inverse-transpose circuit with the same asymptotic bounds. Together with the pseudorandomness and multiplication guarantees above, this proves Theorem 2.14 .
As in Corollary 2.13 , transposing the sampled matrices gives the same guarantees for the family L n ∗ L_n^* L n ∗ of invertible lower-triangular matrices. Transposition simply interchanges mult with mult T \operatorname{mult}^{\mathsf{T}} mult T and inv with inv T \operatorname{inv}^{\mathsf{T}} inv T , preserving all sampling and evaluation bounds.
Trapdoored Invertible Matrices with Efficient Inversion
We now extend our construction from invertible triangular matrices to the full general linear group GL ( n , F q ) \operatorname{GL}(n,\mathbb{F}_q) GL ( n , F q ) , preserving efficient sampling and all four trapdoor operations. The following theorem summarizes the resulting guarantees.
Theorem 2.17. Let GL ( n , F q ) \operatorname{GL}(n,\mathbb{F}_q) GL ( n , F q ) denote the group of n × n n \times n n × n invertible matrices over F q \mathbb{F}_q F q .
(i) Under the standard (dual) ring-LPN assumption, for any fixed 0 < δ < 1 0 < \delta< 1 0 < δ < 1 , there exists an O ~ ( n 1 + δ ) \widetilde{\mathcal{O}}(n^{1+\delta}) O ( n 1 + δ ) -samplable trapdoored matrix distribution over GL ( n , F q ) \operatorname{GL}(n,\mathbb{F}_q) GL ( n , F q ) supporting O ~ ( n 1 + δ ) \widetilde{\mathcal{O}}(n^{1+\delta}) O ( n 1 + δ ) -efficient mult, mult T \operatorname{mult}^{\mathsf{T}} mult T , inv, and inv T \operatorname{inv}^{\mathsf{T}} inv T .
(ii) Under the strong (dual) ring-LPN assumption, there exists an O ~ ( n ) \widetilde{\mathcal{O}}(n) O ( n ) -samplable trapdoored matrix distribution over GL ( n , F q ) \operatorname{GL}(n,\mathbb{F}_q) GL ( n , F q ) supporting O ~ ( n ) \widetilde{\mathcal{O}}(n) O ( n ) -efficient mult, mult T \operatorname{mult}^{\mathsf{T}} mult T , inv, and inv T \operatorname{inv}^{\mathsf{T}} inv T .
Our construction relies on the Bruhat decomposition for split reductive groups. In this decomposition, the double cosets of a Borel subgroup partition the group and are indexed by elements of the Weyl group. For GL ( n , F q ) \operatorname{GL}(n,\mathbb{F}_q) GL ( n , F q ) , we take the Borel subgroup to be U n ∗ U_n^* U n ∗ and represent the Weyl group by the permutation matrices S n S_n S n . This gives the following standard decomposition.
Lemma 2.18 (Bruhat decomposition). The group GL ( n , F q ) \operatorname{GL}(n,\mathbb{F}_q) GL ( n , F q ) is the disjoint union of the double cosets U n ∗ σ U n ∗ U_n^*\sigma U_n^* U n ∗ σ U n ∗ indexed by σ ∈ S n \sigma\in S_n σ ∈ S n , namely,
GL ( n , F q ) = ∐ σ ∈ S n U n ∗ σ U n ∗ \operatorname{GL}(n,\mathbb{F}_q)=\coprod_{\sigma\in S_n}U_n^*\sigma U_n^* GL ( n , F q ) = σ ∈ S n ∐ U n ∗ σ U n ∗
To sample uniformly from GL ( n , F q ) \operatorname{GL}(n,\mathbb{F}_q) GL ( n , F q ) via this decomposition, we first choose σ ∈ S n \sigma\in S_n σ ∈ S n with probability proportional to the size of its double coset U n ∗ σ U n ∗ U_n^*\sigma U_n^* U n ∗ σ U n ∗ . This size is determined by the inversion number of the permutation corresponding to σ \sigma σ , defined by
I n ( σ ) : = # { ( i , j ) ∈ [ n ] × [ n ] ∣ i < j , σ ( i ) > σ ( j ) } . I_n(\sigma):=\#\{(i,j)\in[n]\times[n]\mid i<j,\ \sigma(i)>\sigma(j)\}. I n ( σ ) := # {( i , j ) ∈ [ n ] × [ n ] ∣ i < j , σ ( i ) > σ ( j )} .
Specifically,
∣ U n ∗ σ U n ∗ ∣ = ∣ U n ∗ ∣ q I n ( σ ) . \lvert U_n^*\sigma U_n^*\rvert=\lvert U_n^*\rvert q^{I_n(\sigma)}. ∣ U n ∗ σ U n ∗ ∣ = ∣ U n ∗ ∣ q I n ( σ ) .
These weights define the Mallows distribution on S n S_n S n .
Definition 2.19 (Mallows Distribution [36 ] ). The Mallows distribution M n , q \mathcal{M}_{n,q} M n , q on S n S_n S n assigns to each σ ∈ S n \sigma\in S_n σ ∈ S n the probability
Pr τ ← M n , q [ τ = σ ] = ∣ U n ∗ σ U n ∗ ∣ ∣ GL ( n , F q ) ∣ = ( q − 1 ) n q I n ( σ ) ∏ k = 1 n ( q k − 1 ) . \Pr_{\tau\leftarrow\mathcal{M}_{n,q}}[\tau=\sigma]
=\frac{\lvert U_n^*\sigma U_n^*\rvert}{\lvert\operatorname{GL}(n,\mathbb{F}_q)\rvert}
=\frac{(q-1)^nq^{I_n(\sigma)}}{\prod_{k=1}^{n}(q^k-1)}. τ ← M n , q Pr [ τ = σ ] = ∣ GL ( n , F q )∣ ∣ U n ∗ σ U n ∗ ∣ = ∏ k = 1 n ( q k − 1 ) ( q − 1 ) n q I n ( σ ) .
For fixed q q q , repeated insertion sampling generates σ ← M n , q \sigma\leftarrow\mathcal{M}_{n,q} σ ← M n , q in expected time O ( n ) \mathcal{O}(n) O ( n ) [34 ] . To obtain a uniform sample from GL ( n , F q ) \operatorname{GL}(n,\mathbb{F}_q) GL ( n , F q ) , it remains to sample uniformly within the selected double coset. The following lemma shows that independent uniform triangular factors suffice.
Lemma 2.20. If U 1 , U 2 ← Unif ( U n ∗ ) U_1,U_2\leftarrow\operatorname{Unif}(U_n^*) U 1 , U 2 ← Unif ( U n ∗ ) and σ ← M n , q \sigma\leftarrow\mathcal{M}_{n,q} σ ← M n , q are sampled independently, then
U 1 σ U 2 ∼ Unif ( GL ( n , F q ) ) . U_1\sigma U_2\sim\operatorname{Unif}(\operatorname{GL}(n,\mathbb{F}_q)). U 1 σ U 2 ∼ Unif ( GL ( n , F q )) .
Proof. Write G = GL ( n , F q ) G = \operatorname{GL}(n,\mathbb{F}_q) G = GL ( n , F q ) and B = U n ∗ B = U_n^* B = U n ∗ . Conditioned on any fixed σ \sigma σ , the pair ( A U 1 , U 2 C ) (AU_1,U_2C) ( A U 1 , U 2 C ) has the same distribution as ( U 1 , U 2 ) (U_1,U_2) ( U 1 , U 2 ) for every A , C ∈ B A,C \in B A , C ∈ B . Thus the distribution of U 1 σ U 2 U_1\sigma U_2 U 1 σ U 2 is invariant under left and right multiplication by B B B . Since these operations act transitively on B σ B B\sigma B B σ B , the product is uniform on that double coset.
For any M ∈ G M \in G M ∈ G , let s ∈ S n s \in\mathcal{S}_n s ∈ S n be the unique permutation with M ∈ B s B M \in BsB M ∈ B s B . By the definition of M n , q \mathcal{M}_{n,q} M n , q and the conditional uniformity above,
Pr [ U 1 σ U 2 = M ] = Pr [ σ = s ] ⋅ 1 ∣ B s B ∣ = ∣ B s B ∣ ∣ G ∣ ⋅ 1 ∣ B s B ∣ = 1 ∣ G ∣ . \Pr[U_1\sigma U_2=M]=\Pr[\sigma=s]\cdot\frac{1}{|BsB|}=\frac{|BsB|}{|G|}\cdot\frac{1}{|BsB|}=\frac{1}{|G|}. Pr [ U 1 σ U 2 = M ] = Pr [ σ = s ] ⋅ ∣ B s B ∣ 1 = ∣ G ∣ ∣ B s B ∣ ⋅ ∣ B s B ∣ 1 = ∣ G ∣ 1 .
Hence U 1 σ U 2 U_1\sigma U_2 U 1 σ U 2 is uniform over G G G .
For the trapdoored construction, we generate U 1 U_1 U 1 and U 2 U_2 U 2 independently using Algorithm 3 and sample σ \sigma σ independently from M n , q \mathcal{M}_{n,q} M n , q . A standard hybrid argument, replacing the two triangular factors one at a time and using Lemma 2.20 , shows that U 1 σ U 2 U_1\sigma U_2 U 1 σ U 2 is computationally indistinguishable from a uniform element of GL ( n , F q ) \operatorname{GL}(n,\mathbb{F}_q) GL ( n , F q ) .
Concretely, we independently sample ( U i , C m u l t , U i , C i n v , U i ) (U_i,C_{\mathrm{mult},U_i},C_{\mathrm{inv},U_i}) ( U i , C mult , U i , C inv , U i ) using Algorithm 3 for i ∈ { 1 , 2 } i \in\{1,2\} i ∈ { 1 , 2 } , and sample σ \sigma σ from the Mallows distribution M n , q \mathcal{M}_{n,q} M n , q independently of both tuples. Since σ \sigma σ and σ − 1 \sigma^{-1} σ − 1 simply permute coordinates, their actions admit circuits C m u l t , σ C_{\mathrm{mult},\sigma} C mult , σ and C i n v , σ C_{\mathrm{inv},\sigma} C inv , σ of size O ( n ) O(n) O ( n ) , constructible in O ( n ) O(n) O ( n ) time. Setting G = U 1 σ U 2 G=U_1\sigma U_2 G = U 1 σ U 2 , we define its trapdoor circuits by
C m u l t , G = C m u l t , U 1 ∘ C m u l t , σ ∘ C m u l t , U 2 , C i n v , G = C i n v , U 2 ∘ C i n v , σ ∘ C i n v , U 1 . \begin{aligned}
C_{\mathrm{mult},G}&=C_{\mathrm{mult},U_1}\circ C_{\mathrm{mult},\sigma}\circ C_{\mathrm{mult},U_2},\\
C_{\mathrm{inv},G}&=C_{\mathrm{inv},U_2}\circ C_{\mathrm{inv},\sigma}\circ C_{\mathrm{inv},U_1}.
\end{aligned} C mult , G C inv , G = C mult , U 1 ∘ C mult , σ ∘ C mult , U 2 , = C inv , U 2 ∘ C inv , σ ∘ C inv , U 1 .
These circuits compute multiplication by G G G and G − 1 G^{-1} G − 1 , respectively. The resulting distribution preserves the sampling and evaluation bounds of the triangular construction. Finally, Lemma 2.11 supplies circuits for mult T \operatorname{mult}^{\mathsf{T}} mult T and inv T \operatorname{inv}^{\mathsf{T}} inv T with the same asymptotic bounds. Together with the pseudorandomness argument above, this proves Theorem 2.17 .
Our construction has two further consequences: exact determinant evaluation for sampled matrices and efficient polynomial actions after a pseudorandom change of basis.
Corollary 2.21 (Efficient evaluation of determinants). Let M M M be sampled by the construction in Theorem 2.17 . Given its trapdoor, det M \det M det M can be computed exactly in time O ( n ) O(n) O ( n ) .
Proof. Write M = U σ V M=U\sigma V M = U σ V as in the construction of Theorem 2.17 . The sampler already knows the diagonal entries of U , V U,V U , V and the permutation σ \sigma σ . Let c ( σ ) c(\sigma) c ( σ ) be the number of cycles of σ \sigma σ , including fixed points. Traversing these cycles takes O ( n ) O(n) O ( n ) time and gives det σ = ( − 1 ) n − c ( σ ) \det\sigma=(-1)^{n-c(\sigma)} det σ = ( − 1 ) n − c ( σ ) . Hence
det M = ( − 1 ) n − c ( σ ) ( ∏ i = 1 n U i i ) ( ∏ i = 1 n V i i ) \det M=(-1)^{n-c(\sigma)}\left(\prod_{i=1}^{n}U_{ii}\right)\left(\prod_{i=1}^{n}V_{ii}\right) det M = ( − 1 ) n − c ( σ ) ( i = 1 ∏ n U ii ) ( i = 1 ∏ n V ii )
can be computed exactly in O ( n ) O(n) O ( n ) time. Retaining this value with the trapdoor preserves the sampling bounds and the matrix marginal.
Fast forward and inverse actions also allow efficient evaluation of matrix powers after a pseudorandom change of basis. We apply this to block-diagonal matrices with small blocks, whose powers can be computed separately.
Corollary 2.22 (Efficient powers of pseudorandom conjugates). Fix a polynomial-time constructible block-diagonal matrix B = diag ( B 1 , … , B m ) ∈ Mat n × n ( F q ) B=\operatorname{diag}(B_1,\ldots,B_m)\in\operatorname{Mat}_{n\times n}(\mathbb{F}_q) B = diag ( B 1 , … , B m ) ∈ Mat n × n ( F q ) whose blocks have size at most r = polylog ( n ) r=\operatorname{polylog}(n) r = polylog ( n ) . Under the strong (dual) ring-LPN assumption, sample G G G with its trapdoor from Theorem 2.17 and set A = G B G − 1 A=GBG^{-1} A = GB G − 1 . Then A A A is computationally indistinguishable from a uniform element of the conjugacy class
Cl ( B ) = { P B P − 1 : P ∈ GL ( n , F q ) } . \operatorname{Cl}(B)=\{PBP^{-1}:P\in\operatorname{GL}(n,\mathbb{F}_q)\}. Cl ( B ) = { P B P − 1 : P ∈ GL ( n , F q )} . Given the blocks of B B B and the trapdoor for G G G , we can compute A k v A^k v A k v in O ~ ( n ) \widetilde{O}(n) O ( n ) time for every v ∈ F q n v\in\mathbb{F}_q^n v ∈ F q n and every integer 1 ≤ k ≤ n O ( 1 ) 1\le k\le n^{O(1)} 1 ≤ k ≤ n O ( 1 ) , including the computation of the block powers.
Proof. For uniform P ∈ G L ( n , F q ) P \in\mathrm{GL}(n,\mathbb{F}_q) P ∈ GL ( n , F q ) , the matrix P B P − 1 PBP^{-1} P B P − 1 is uniform on C l ( B ) \mathrm{Cl}(B) Cl ( B ) . Since B B B is polynomial-time constructible and conjugation is polynomial-time computable, the pseudorandomness of G G G gives the first claim. For the power action, use
A k v = G ( diag ( B 1 k , … , B m k ) ( G − 1 v ) ) . A^k\mathbf{v}=G\left(\operatorname{diag}(B_1^k,\ldots,B_m^k)(G^{-1}\mathbf{v})\right). A k v = G ( diag ( B 1 k , … , B m k ) ( G − 1 v ) ) .
Writing r i r_i r i for the size of B i B_i B i , repeated squaring computes the block powers in O ( ∑ i r i 3 log ( k + 1 ) ) = O ( n r 2 log ( k + 1 ) ) = O ~ ( n ) O\left(\sum_i r_i^3\log(k+1)\right)=O(nr^2\log(k+1))=\widetilde{O}(n) O ( ∑ i r i 3 log ( k + 1 ) ) = O ( n r 2 log ( k + 1 )) = O ( n ) time. Applying the precomputed blocks takes O ( ∑ i r i 2 ) = O ( n r ) = O ~ ( n ) O\left(\sum_i r_i^2\right)=O(nr)=\widetilde{O}(n) O ( ∑ i r i 2 ) = O ( n r ) = O ( n ) time, and the two changes of basis also take O ~ ( n ) \widetilde{O}(n) O ( n ) time using the trapdoor. Correctness holds for every sample, and the resource bound follows from Theorem 2.17 .
Under the standard (dual) ring-LPN assumption, the same evaluation guarantee holds in O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) time for any fixed 0 < δ < 1 0<\delta<1 0 < δ < 1 . More generally, the identity f ( A ) = G f ( B ) G − 1 f(A)=Gf(B)G^{-1} f ( A ) = G f ( B ) G − 1 transfers any linear circuit for f ( B ) v f(B)\mathbf{v} f ( B ) v to one for f ( A ) v f(A)\mathbf{v} f ( A ) v with only the cost of the two changes of basis added. The pseudorandomness guarantee is relative to C l ( B ) \mathrm{Cl}(B) Cl ( B ) : conjugation preserves the characteristic polynomial and other similarity invariants of B B B .
Depth-Efficient Implementation
We modify Algorithms 2 and 3 so that all trapdoor circuits have poly-logarithmic depth, while preserving the preceding sampling and circuit-size bounds. The key change is to sample each block in the factored form
U ∗ = [ U 1 ∗ U 1 ∗ M 0 U 2 ∗ ] = [ U 1 ∗ 0 0 U 2 ∗ ] [ I d 1 M 0 I d 2 ] . U^*=
\begin{bmatrix}
U_1^* & U_1^*M\\
0 & U_2^*
\end{bmatrix}
=
\begin{bmatrix}
U_1^* & 0\\
0 & U_2^*
\end{bmatrix}
\begin{bmatrix}
I_{d_1} & M\\
0 & I_{d_2}
\end{bmatrix}. U ∗ = [ U 1 ∗ 0 U 1 ∗ M U 2 ∗ ] = [ U 1 ∗ 0 0 U 2 ∗ ] [ I d 1 0 M I d 2 ] .
Then, we have
( U ∗ ) − 1 = [ I d 1 − M 0 I d 2 ] [ ( U 1 ∗ ) − 1 0 0 ( U 2 ∗ ) − 1 ] . (U^*)^{-1}=
\begin{bmatrix}
I_{d_1} & -M\\
0 & I_{d_2}
\end{bmatrix}
\begin{bmatrix}
(U_1^*)^{-1} & 0\\
0 & (U_2^*)^{-1}
\end{bmatrix}. ( U ∗ ) − 1 = [ I d 1 0 − M I d 2 ] [ ( U 1 ∗ ) − 1 0 0 ( U 2 ∗ ) − 1 ] .
For the inverse matrix–vector multiplication we first applies the two diagonal inverses in parallel and then subtracts M M M times the lower output from the upper output. We measure classical depth using bounded-fan-in linear arithmetic circuits over the fixed field F q \mathbb{F}_q F q , with unrestricted fan-out. Formally, we state as following theorem:
Theorem 2.23 (Depth Optimization). Theorems 2.14 and 2.17 admit modified samplers with the same sampling and circuit-size bounds, whose circuits for mult \operatorname{mult} mult , mult T \operatorname{mult}^{\mathsf{T}} mult T , inv \operatorname{inv} inv , and inv T \operatorname{inv}^{\mathsf{T}} inv T have depth O ( log 2 n ) O(\log^2 n) O ( log 2 n ) .
The recursion continues to dimension 1, but uses uniform off-diagonal blocks whenever d ≤ b d\le b d ≤ b ; the hardness assumption is used only above this cutoff. This also avoids constructing dense inverse matrices at the leaves. We also assume that the initial dimension n n n is large power of 2.
Proof. The correctness of each circuit is clear. For the pseudorandomness, since U 1 ∗ U_1^* U 1 ∗ is always invertible, the map M ↦ U 1 ∗ M M\mapsto U_1^*M M ↦ U 1 ∗ M forms a bijection. This implies that the distribution of U 1 ∗ M U_1^*M U 1 ∗ M is computationally indistinguishable from uniform random matrices. As we mentioned, although the recursion continues to dimension 1, for nodes d ≤ b d\le b d ≤ b is filled by uniform random matrices. Hence, same with the proof of Theorem 2.14 the distribution of U 1 ∗ M U_1^*M U 1 ∗ M is computationally indistinguishable from uniform distribution.
Now we prove the depth bound. At a node of dimension d > b d>b d > b , the stored description is M = H E M=HE M = H E , where H = [ I d 1 ∣ C ] H=[I_{d_1}\mid C] H = [ I d 1 ∣ C ] and C C C is circulant. Balanced sums implement both E E E and E T E^{\mathsf{T}} E T in depth O ( log d ) O(\log d) O ( log d ) . Fast polynomial multiplication [17 ] , with the circulant coefficients fixed, gives a linear circuit for C C C of size O ( d log 2 d ) O(d\log^2 d) O ( d log 2 d ) and depth O ( log d ) O(\log d) O ( log d ) . Since C T C^{\mathsf{T}} C T is also circulant, the same bounds hold for H H H and H T H^{\mathsf{T}} H T . At dimensions 1 < d ≤ b 1<d\le b 1 < d ≤ b , balanced matrix–vector multiplication gives the same depth bound for M M M and M T M^{\mathsf{T}} M T . In each of the four factorizations above, the two diagonal-block actions run in parallel, and the shear adds only O ( log d ) O(\log d) O ( log d ) depth. Thus their maximum depth D ( d ) D(d) D ( d ) satisfies
D ( 1 ) = O ( 1 ) , D ( d ) ≤ D ( d / 2 ) + O ( log d ) , D(1)=O(1),\qquad D(d)\le D(d/2)+O(\log d), D ( 1 ) = O ( 1 ) , D ( d ) ≤ D ( d /2 ) + O ( log d ) ,
which gives D ( n ) = O ( log 2 n ) D(n)=O(\log^2 n) D ( n ) = O ( log 2 n ) .
Finally, replace the triangular samplers in § 3.6 by Algorithm 4. This proves the claim for Theorem 2.17 as well.
Algorithm 4 Sampling Depth-Efficient Trapdoored Matrices over U n ∗ U_n^* U n ∗
Require: Initial dimension n n n (assumed power of 2), with c c c and b b b as in Algorithm 1.
procedure OptimizedInvertibleUpper ( d ) (d) ( d )
if d = 1 d = 1 d = 1 then
Sample a ← Unif ( F q ∖ { 0 } ) a \leftarrow\operatorname{Unif}(\mathbb{F}_q \setminus\{0\}) a ← Unif ( F q ∖ { 0 }) .
return ( [ a ] , x ↦ a x , y ↦ a − 1 y ) ([a], x \mapsto ax, y \mapsto a^{-1}y) ([ a ] , x ↦ a x , y ↦ a − 1 y )
end if
if d ≤ b d \le b d ≤ b then
M ← Unif ( Mat d / 2 × d / 2 ( F q ) ) M \leftarrow\operatorname{Unif}(\operatorname{Mat}_{d/2 \times d/2}(\mathbb{F}_q)) M ← Unif ( Mat d /2 × d /2 ( F q ))
Construct a size O ( d 2 ) O(d^2) O ( d 2 ) -circuit C m u l t , M C_{\mathrm{mult},M} C mult , M
else
( M , C m u l t , M ) ← D M ( d 1 , d 2 , ( 2 log c n ) / d ) (M,C_{\mathrm{mult},M}) \leftarrow\mathcal{D}_{M}(d_1,d_2,(2\log^c n)/d) ( M , C mult , M ) ← D M ( d 1 , d 2 , ( 2 log c n ) / d )
end if
For i = 1 , 2 i = 1,2 i = 1 , 2 , ( U i ∗ , C m u l t , U i ∗ , C i n v , U i ∗ ) ← OptimizedInvertibleUpper ( d / 2 ) (U_i^*,C_{\mathrm{mult},U_i^*},C_{\mathrm{inv},U_i^*}) \leftarrow\operatorname{OptimizedInvertibleUpper}(d/2) ( U i ∗ , C mult , U i ∗ , C inv , U i ∗ ) ← OptimizedInvertibleUpper ( d /2 )
U ∗ ← [ U 1 ∗ 0 0 U 2 ∗ ] [ I d 1 M 0 I d 2 ] U^* \leftarrow\begin{bmatrix} U_1^* & 0 \\ 0 & U_2^* \end{bmatrix}\begin{bmatrix} I_{d_1} & M \\ 0 & I_{d_2} \end{bmatrix} U ∗ ← [ U 1 ∗ 0 0 U 2 ∗ ] [ I d 1 0 M I d 2 ]
Define C m u l t , U ∗ C_{\mathrm{mult},U^*} C mult , U ∗ on input ( x 1 , x 2 ) (x_1,x_2) ( x 1 , x 2 ) by: z ← x 1 + C m u l t , M ( x 2 ) z \leftarrow x_1 + C_{\mathrm{mult},M}(x_2) z ← x 1 + C mult , M ( x 2 ) ; output ( C m u l t , U 1 ∗ ( z ) , C m u l t , U 2 ∗ ( x 2 ) ) (C_{\mathrm{mult},U_1^*}(z),C_{\mathrm{mult},U_2^*}(x_2)) ( C mult , U 1 ∗ ( z ) , C mult , U 2 ∗ ( x 2 )) .
Define C i n v , U ∗ C_{\mathrm{inv},U^*} C inv , U ∗ on input ( y 1 , y 2 ) (y_1,y_2) ( y 1 , y 2 ) by: compute v ← C i n v , U 1 ∗ ( y 1 ) v \leftarrow C_{\mathrm{inv},U_1^*}(y_1) v ← C inv , U 1 ∗ ( y 1 ) and w ← C i n v , U 2 ∗ ( y 2 ) w \leftarrow C_{\mathrm{inv},U_2^*}(y_2) w ← C inv , U 2 ∗ ( y 2 ) in parallel; output ( v − C m u l t , M ( w ) , w ) (v-C_{\mathrm{mult},M}(w),w) ( v − C mult , M ( w ) , w ) .
return ( U ∗ , C m u l t , U ∗ , C i n v , U ∗ ) (U^*,C_{\mathrm{mult},U^*},C_{\mathrm{inv},U^*}) ( U ∗ , C mult , U ∗ , C inv , U ∗ )
end procedure
Trapdoored Clifford Distributions
We now use the trapdoored matrix distributions from § 3 to construct trapdoored Clifford Operators : efficiently samplable Clifford operators together with trapdoors, such that computationally indistinguishable from uniform and the trapdoors support efficient evaluation of selected actions. In this case, both classical actions and quantum actions are considered. The size of quantum circuits are determined by the number of basic Clifford operators including X X X , H H H , P P P , C X CX C X and number of ancilla qubits.
Let P ‾ n \overline{\mathcal{P}}_n P n and C ‾ n \overline{\mathcal{C}}_n C n denote the Pauli and Clifford operators ignoring global phases, respectively. Throughout this section, the underlying field is F 2 \mathbb{F}_2 F 2 . Clifford operators act on P ‾ n ≃ F 2 2 n \overline{\mathcal{P}}_n \simeq\mathbb{F}_2^{2n} P n ≃ F 2 2 n by conjugation. We order the Pauli generators as X 1 , … , X n , Z 1 , … , Z n X_1,\ldots,X_n,Z_1,\ldots,Z_n X 1 , … , X n , Z 1 , … , Z n . With this convention, a label ( a , b ) ∈ F 2 n × F 2 n (\mathbf{a},\mathbf{b}) \in\mathbb{F}_2^n \times\mathbb{F}_2^n ( a , b ) ∈ F 2 n × F 2 n specifies the Pauli operator represented by X a Z b X^{\mathbf{a}}Z^{\mathbf{b}} X a Z b .
Uniform random Clifford Oprators and Decomposition of Clifford Operators
Our construction builds on the uniform Clifford sampler of Bravyi and Maslov [15 ] . We recall the matrix parameters underlying this sampler, with the aim of replacing its uniform matrix distributions by the trapdoored distributions from § 3 .
The Hadamard-free Clifford operators are those Clifford operators that map each computational basis state to another computational basis state, up to a phase. We denote them by F ‾ n ⊆ C ‾ n \overline{\mathcal{F}}_n \subseteq\overline{\mathcal{C}}_n F n ⊆ C n . Up to global phase, every F ∈ F ‾ n F \in\overline{\mathcal{F}}_n F ∈ F n is specified by vectors a , b ∈ F 2 n \mathbf{a},\mathbf{b} \in\mathbb{F}_2^n a , b ∈ F 2 n , a symmetric matrix Γ ∈ Sym n \Gamma\in\operatorname{Sym}_n Γ ∈ Sym n , and an invertible matrix Δ ∈ GL ( n , F 2 ) \Delta\in\operatorname{GL}(n,\mathbb{F}_2) Δ ∈ GL ( n , F 2 ) . Its action on computational basis can be written by
F ∣ x ⟩ = i Q Γ ( x ) ( − 1 ) b T Δ x ∣ Δ x ⊕ a ⟩ , x ∈ F 2 n . F\lvert\mathbf{x}\rangle= \mathrm{i}^{Q_\Gamma(\mathbf{x})}(-1)^{\mathbf{b}^{\mathsf{T}}\Delta\mathbf{x}}\lvert\Delta\mathbf{x}\oplus\mathbf{a}\rangle,\qquad\mathbf{x}\in\mathbb{F}_2^n. F ∣ x ⟩ = i Q Γ ( x ) ( − 1 ) b T Δ x ∣ Δ x ⊕ a ⟩ , x ∈ F 2 n .
Here, Δ x ⊕ a \Delta\mathbf{x} \oplus\mathbf{a} Δ x ⊕ a and b T Δ x \mathbf{b}^{\mathsf{T}}\Delta\mathbf{x} b T Δ x are computed over F 2 \mathbb{F}_2 F 2 , while the quadratic phase Q Γ ( x ) Q_{\Gamma}(\mathbf{x}) Q Γ ( x ) is defined by
Q Γ ( x ) : = x T Γ x = ∑ j = 1 n Γ j j x j + 2 ∑ 1 ≤ j < k ≤ n Γ j k x j x k ( m o d 4 ) . Q_{\Gamma}(\mathbf{x}) := \mathbf{x}^{\mathsf{T}}\Gamma\mathbf{x} = \sum_{j=1}^{n}\Gamma_{jj}x_j + 2\sum_{1\leq j<k\leq n}\Gamma_{jk}x_jx_k \pmod{4}. Q Γ ( x ) := x T Γ x = j = 1 ∑ n Γ j j x j + 2 1 ≤ j < k ≤ n ∑ Γ j k x j x k ( mod 4 ) .
We denote this operator by F ( a , b , Γ , Δ ) = F F(\mathbf{a},\mathbf{b},\Gamma,\Delta)=F F ( a , b , Γ , Δ ) = F .
To decompose Clifford operators, we use the Borel subgroup B ‾ n ⊆ F ‾ n \overline{B}_n\subseteq\overline{\mathcal{F}}_n B n ⊆ F n , obtained by restricting Δ \Delta Δ to invertible lower-triangular matrix in L n ∗ \mathcal{L}_n^* L n ∗ . Let H i H_i H i denote the Hadamard gate on the i i i -th qubit, and identify S n S_n S n with the group of qubit permutations. The set of Clifford operators admits the Bruhat decomposition [15 Theorem 1]
C ‾ n = ⨆ h ∈ { 0 , 1 } n ⨆ S ∈ S n B ‾ n ( ∏ i = 1 n H i h i ) S B ‾ n . \overline{\mathcal{C}}_n = \bigsqcup_{\mathbf{h}\in\{0,1\}^n}\ \bigsqcup_{S\in S_n}\overline{B}_n\left(\prod_{i=1}^{n}H_i^{h_i}\right)S\overline{B}_n. C n = h ∈ { 0 , 1 } n ⨆ S ∈ S n ⨆ B n ( i = 1 ∏ n H i h i ) S B n .
A convenient variant of the Bravyi–Maslov sampler chooses ( h , S ) (\mathbf{h},S) ( h , S ) from their quantum Mallows distribution [15 Section 3] and, independently, two uniform4 Borel factors F L , F R ∈ B ‾ n F_L,F_R\in\overline{B}_n F L , F R ∈ B n . Then C = F L ( ∏ i = 1 n H i h i ) S F R C=F_L(\prod_{i=1}^{n}H_i^{h_i})SF_R C = F L ( ∏ i = 1 n H i h i ) S F R is uniform on C ‾ n \overline{\mathcal{C}}_n C n : the quantum Mallows law selects each double coset with probability proportional to its size, and the two independent uniform Borel factors give a uniform element within that coset due to Lemma 2.20.
Sampling ( h , S ) (\mathbf{h},S) ( h , S ) takes O ~ ( n ) \widetilde{O}(n) O ( n ) time [15 Lemma 6] . Each uniform Borel factor is obtained by independently sampling a , b ∈ F 2 n \mathbf{a},\mathbf{b}\in\mathbb{F}_2^n a , b ∈ F 2 n , Γ ∈ Sym n \Gamma\in\operatorname{Sym}_n Γ ∈ Sym n , and Δ ∈ L n ∗ \Delta\in\mathcal{L}_n^* Δ ∈ L n ∗ uniformly, so sampling and recording the full factorization takes O ( n 2 ) O(n^2) O ( n 2 ) time. In the following subsections, we replace these uniform symmetric and lower-triangular matrices by the trapdoored distributions from § 3 , while retaining the quantum Mallows law and uniform Pauli corrections. We first construct trapdoored Hadamard-free Clifford operators and then obtain trapdoored distributions over all Clifford operators.
Trapdoored Hadamard-free Clifford Operators
We construct trapdoored Clifford operators over F ‾ n \overline{\mathcal{F}}_n F n and B ‾ n \overline{B}_n B n , supporting both application on quantum states and tableau action on Pauli labels. For any F = F ( a , b , Γ , Δ ) ∈ F ‾ n F=F(\mathbf{a},\mathbf{b},\Gamma,\Delta)\in\overline{\mathcal{F}}_n F = F ( a , b , Γ , Δ ) ∈ F n , we define the quantum action app \operatorname{app} app by
app ( F , ∣ ψ ⟩ ) : = F ∣ ψ ⟩ \operatorname{app}(F,\lvert\psi\rangle):=F\lvert\psi\rangle app ( F , ∣ ψ ⟩) := F ∣ ψ ⟩
for every n n n -qubit state ∣ ψ ⟩ \lvert\psi\rangle ∣ ψ ⟩ , extending the computational-basis action in § 4.1 by linearity. Conjugation by F F F maps X p 1 Z p 2 X^{\mathbf{p}_1}Z^{\mathbf{p}_2} X p 1 Z p 2 to X p 1 ′ Z p 2 ′ X^{\mathbf{p}'_1}Z^{\mathbf{p}'_2} X p 1 ′ Z p 2 ′ up to a global phase. The induced classical action on Pauli labels is
tab ( F , [ p 1 , p 2 ] T ) : = [ p 1 ′ , p 2 ′ ] T = [ Δ 0 Δ − T Γ Δ − T ] [ p 1 p 2 ] = [ Δ p 1 Δ − T ( Γ p 1 + p 2 ) ] , \operatorname{tab}(F,[\mathbf{p}_1,\mathbf{p}_2]^{\mathsf{T}}):=[\mathbf{p}'_1,\mathbf{p}'_2]^{\mathsf{T}}=
\begin{bmatrix}
\Delta& 0\\
\Delta^{-\mathsf{T}}\Gamma& \Delta^{-\mathsf{T}}
\end{bmatrix}
\begin{bmatrix}
\mathbf{p}_1\\
\mathbf{p}_2
\end{bmatrix}
=
\begin{bmatrix}
\Delta\mathbf{p}_1\\
\Delta^{-\mathsf{T}}(\Gamma\mathbf{p}_1+\mathbf{p}_2)
\end{bmatrix}, tab ( F , [ p 1 , p 2 ] T ) := [ p 1 ′ , p 2 ′ ] T = [ Δ Δ − T Γ 0 Δ − T ] [ p 1 p 2 ] = [ Δ p 1 Δ − T ( Γ p 1 + p 2 ) ] ,
where Δ − T = ( Δ − 1 ) T \Delta^{-\mathsf{T}}=(\Delta^{-1})^{\mathsf{T}} Δ − T = ( Δ − 1 ) T .
We use the trapdoor framework of § 3.1 , with a quantum circuit Q app , F Q_{\operatorname{app},F} Q app , F 5 and a classical circuit C tab , F C_{\operatorname{tab},F} C tab , F . We say that the trapdoor quantum circuit supports T T T -efficient quantum application if, with overwhelming probability over sampling, Q app , F Q_{\operatorname{app},F} Q app , F uses O ( T ) O(T) O ( T ) of basic Clifford gates X , H , P , C X X,H,P,CX X , H , P , C X and r = O ( T ) r=O(T) r = O ( T ) ancillary qubits, with gates allowed between any pair of qubits. The sampled quantum circuit Q app , F Q_{\operatorname{app},F} Q app , F must satisfy
Q app , F ( ∣ ψ ⟩ ⊗ ∣ 0 ⟩ ⊗ r ) = F ∣ ψ ⟩ ⊗ ∣ 0 ⟩ ⊗ r Q_{\operatorname{app},F}(\lvert\psi\rangle\otimes\lvert0\rangle^{\otimes r})=F\lvert\psi\rangle\otimes\lvert0\rangle^{\otimes r} Q app , F (∣ ψ ⟩ ⊗ ∣ 0 ⟩ ⊗ r ) = F ∣ ψ ⟩ ⊗ ∣ 0 ⟩ ⊗ r
for every n n n -qubit state ∣ ψ ⟩ \lvert\psi\rangle ∣ ψ ⟩ .
In particular, the ancillary qubits are initialized and returned to zero. Sampling complexity includes producing a succinct description of F F F and both trapdoor circuits; efficiency for classical action tab \operatorname{tab} tab is defined same as in Definition 2.2 .
Theorem 3.1 (Trapdoored Hadamard-free Clifford Operators). Let H \mathcal{H} H be either F ‾ n \overline{\mathbb{F}}_n F n or B ‾ n \overline{\mathbb{B}}_n B n . The following statements hold:
(i) Under the standard (dual) ring-LPN assumption, for any fixed 0 < δ < 1 0 < \delta< 1 0 < δ < 1 , there exists an O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) -samplable trapdoored distribution over H \mathcal{H} H supporting O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) -efficient quantum application a p p \mathrm{app} app and classical evaluation of t a b \mathrm{tab} tab .
(ii) Under the strong (dual) ring-LPN assumption, there exists an O ~ ( n ) \widetilde{O}(n) O ( n ) -samplable trapdoored distribution over H \mathcal{H} H supporting O ~ ( n ) \widetilde{O}(n) O ( n ) -efficient quantum application a p p \mathrm{app} app and classical evaluation of t a b \mathrm{tab} tab .
In each case, the distribution of F F F , represented by F ( a , b , Γ , Δ ) F(\mathbf{a},\mathbf{b},\Gamma,\Delta) F ( a , b , Γ , Δ ) , is computationally indistinguishable from Unif ( H ) \operatorname{Unif}(\mathcal{H}) Unif ( H ) , in the sense of Definition 2.1 .
Proof. We give a common construction for both parts, writing T ( n ) ∈ { O ~ ( n 1 + δ ) , O ~ ( n ) } T(n) \in\{\widetilde{O}(n^{1+\delta}),\widetilde{O}(n)\} T ( n ) ∈ { O ( n 1 + δ ) , O ( n )} for the corresponding sampling and circuit-size bound from § 3 . Independently sample a , b ← Unif ( F 2 n ) \mathbf{a},\mathbf{b} \leftarrow\operatorname{Unif}(\mathbb{F}_2^n) a , b ← Unif ( F 2 n ) , a uniform diagonal matrix D D D , and U U U with its trapdoor from Algorithm 1. Set Γ = U + U T + D \Gamma= U + U^{T} + D Γ = U + U T + D , retaining the circuit for U U U . Independently sample Δ \Delta Δ with its trapdoor: for H = B ‾ n \mathcal{H}=\overline{\mathbb{B}}_n H = B n , transpose a sample from Theorem 2.14 ; for H = F ‾ n \mathcal{H}=\overline{\mathbb{F}}_n H = F n , use Theorem 2.17 . These constructions supply circuits for Δ \Delta Δ , Δ − 1 \Delta^{-1} Δ − 1 , and Δ − T \Delta^{-T} Δ − T with the stated bounds.
Replacing U U U and Δ \Delta Δ by independent uniform matrices, one at a time, gives computationally indistinguishable hybrids by the corresponding matrix guarantees. In the final hybrid, Γ \Gamma Γ is uniform over Sym n \operatorname{Sym}_n Sym n , since ( U , D ) ↦ U + U T + D (U,D) \mapsto U + U^{T} + D ( U , D ) ↦ U + U T + D is a bijection. Thus all four parameters of F F F are independent and uniform over their respective domains, yielding a uniform element of H \mathcal{H} H by the parameterization in § 4.1 .
For C t a b , F C_{\mathrm{tab},F} C tab , F , compute Γ p 1 \Gamma_{\mathbf{p}_1} Γ p 1 as U p 1 + U p 1 T + D p 1 U_{\mathbf{p}_1}+U^{T}_{\mathbf{p}_1}+D_{\mathbf{p}_1} U p 1 + U p 1 T + D p 1 , and then compute the two output blocks Δ p 1 \Delta_{\mathbf{p}_1} Δ p 1 and Δ − T ( Γ p 1 + p 2 ) \Delta^{-T}(\Gamma_{\mathbf{p}_1}+\mathbf{p}_2) Δ − T ( Γ p 1 + p 2 ) . The retained circuits and Lemma 2.11 give both circuit construction and evaluation in O ( T ( n ) ) O(T(n)) O ( T ( n )) time.
To construct Q a p p , F Q_{\mathrm{app},F} Q app , F , we first make the linear circuits reversible. A size-s s s XOR circuit for a matrix M M M yields the operation
E M : ∣ x ⟩ ∣ y ⟩ ⟼ ∣ x ⟩ ∣ y ⊕ M x ⟩ E_M : |x\rangle|y\rangle\longmapsto|x\rangle|y \oplus Mx\rangle E M : ∣ x ⟩ ∣ y ⟩ ⟼ ∣ x ⟩ ∣ y ⊕ M x ⟩
using O ( s + n ) O(s+n) O ( s + n ) CNOT gates and ancillary qubits: compute the intermediate values into fresh qubits, XOR the outputs into the second register, and reverse the intermediate computation. All additional workspace is returned to zero and is omitted from the notation. The matrix circuits above are linear over F 2 \mathbb{F}_2 F 2 , so this applies with s = O ( T ( n ) ) s=O(T(n)) s = O ( T ( n )) .
For the quadratic phase, use
Q Γ ( x ) = ∑ j = 1 n D j j x j + 2 ( x T U x m o d 2 ) ( m o d 4 ) . Q_{\Gamma}(x)=\sum_{j=1}^{n}D_{jj}x_j+2(x^{T}Ux\bmod2)\pmod4. Q Γ ( x ) = j = 1 ∑ n D j j x j + 2 ( x T U x mod 2 ) ( mod 4 ) .
Apply E U E_U E U to compute U x Ux U x into a zero register, apply a CZ gate between each pair of corresponding qubits in the two registers, and then reverse E U E_U E U . This produces the phase ( − 1 ) x T U x (-1)^{x^{T}Ux} ( − 1 ) x T U x and resets the second register to zero. Applying P = diag ( 1 , i ) P=\operatorname{diag}(1,i) P = diag ( 1 , i ) to each qubit j j j with D j j = 1 D_{jj}=1 D j j = 1 supplies the diagonal phase, giving i Q Γ ( x ) i^{Q_{\Gamma}(x)} i Q Γ ( x ) .
Next, implement the linear change of basis labels by
∣ x ⟩ ∣ 0 n ⟩ → E Δ ∣ x ⟩ ∣ Δ x ⟩ → S W A P ∣ Δ x ⟩ ∣ x ⟩ → E Δ − 1 ∣ Δ x ⟩ ∣ 0 n ⟩ . |x\rangle|0^n\rangle\xrightarrow{E_{\Delta}} |x\rangle|\Delta x\rangle\xrightarrow{\mathrm{SWAP}} |\Delta x\rangle|x\rangle\xrightarrow{E_{\Delta^{-1}}} |\Delta x\rangle|0^n\rangle. ∣ x ⟩ ∣ 0 n ⟩ E Δ ∣ x ⟩ ∣Δ x ⟩ SWAP ∣Δ x ⟩ ∣ x ⟩ E Δ − 1 ∣Δ x ⟩ ∣ 0 n ⟩ .
Finally, apply Z b Z^{\mathbf{b}} Z b followed by X a X^{\mathbf{a}} X a . The resulting action is exactly F ∣ x ⟩ ⊗ ∣ 0 n ⟩ F|x\rangle\otimes|0^n\rangle F ∣ x ⟩ ⊗ ∣ 0 n ⟩ , including its phase, and all ancillary qubits are returned to zero. Correctness on arbitrary input states follows by linearity.
Each sampled linear circuit is used only a constant number of times, with O ( n ) O(n) O ( n ) additional gates for the phases, register swap, and Pauli correction. Hence Q a p p , F Q_{\mathrm{app},F} Q app , F has O ( T ( n ) ) O(T(n)) O ( T ( n )) basic Clifford gates and ancillary qubits, and its gate list can be constructed in O ( T ( n ) ) O(T(n)) O ( T ( n )) time. Sampling the succinct parameters and constructing both trapdoor circuits therefore preserve the O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) and O ~ ( n ) \widetilde{O}(n) O ( n ) bounds in the two cases. Correctness holds for every sample; all resource bounds hold with overwhelming probability, as in the underlying matrix constructions. □ \square □
The construction of Theorem 3.1 also supports the inverse actions app − 1 \operatorname{app}^{-1} app − 1 and tab − 1 \operatorname{tab}^{-1} tab − 1 with the same asymptotic bounds. The inverse quantum action is app − 1 ( F , ∣ ψ ⟩ ) : = F − 1 ∣ ψ ⟩ \operatorname{app}^{-1}(F,|\psi\rangle):=F^{-1}|\psi\rangle app − 1 ( F , ∣ ψ ⟩) := F − 1 ∣ ψ ⟩ , whose computational-basis action is
F − 1 ∣ y ⟩ = i − Q Γ ( Δ − 1 ( y ⊕ a ) ) ( − 1 ) b T ( y ⊕ a ) ∣ Δ − 1 ( y ⊕ a ) ⟩ . F^{-1}|y\rangle=i^{-Q_{\Gamma}(\Delta^{-1}(y\oplus a))}(-1)^{\mathbf{b}^{\mathsf{T}}(y\oplus a)}|\Delta^{-1}(y\oplus a)\rangle. F − 1 ∣ y ⟩ = i − Q Γ ( Δ − 1 ( y ⊕ a )) ( − 1 ) b T ( y ⊕ a ) ∣ Δ − 1 ( y ⊕ a )⟩ .
The inverse tableau action is
tab − 1 ( F , [ p 1 , p 2 ] T ) = tab ( F − 1 , [ p 1 , p 2 ] T ) = [ Δ − 1 0 Γ Δ − 1 Δ T ] [ p 1 p 2 ] = [ Δ − 1 p 1 Γ Δ − 1 p 1 + Δ T p 2 ] . \operatorname{tab}^{-1}(F,[\mathbf{p}_1,\mathbf{p}_2]^{\mathsf{T}})=\operatorname{tab}(F^{-1},[\mathbf{p}_1,\mathbf{p}_2]^{\mathsf{T}})=
\begin{bmatrix}
\Delta^{-1} & 0\\
\Gamma\Delta^{-1} & \Delta^{\mathsf{T}}
\end{bmatrix}
\begin{bmatrix}
\mathbf{p}_1\\
\mathbf{p}_2
\end{bmatrix}
=
\begin{bmatrix}
\Delta^{-1}\mathbf{p}_1\\
\Gamma\Delta^{-1}\mathbf{p}_1+\Delta^{\mathsf{T}}\mathbf{p}_2
\end{bmatrix}. tab − 1 ( F , [ p 1 , p 2 ] T ) = tab ( F − 1 , [ p 1 , p 2 ] T ) = [ Δ − 1 Γ Δ − 1 0 Δ T ] [ p 1 p 2 ] = [ Δ − 1 p 1 Γ Δ − 1 p 1 + Δ T p 2 ] .
Reversing Q app , F Q_{\operatorname{app},F} Q app , F implements app − 1 \operatorname{app}^{-1} app − 1 with only constant overhead, since P − 1 = P 3 P^{-1}=P^3 P − 1 = P 3 and the other basic gates are self-inverse. For tab − 1 \operatorname{tab}^{-1} tab − 1 , the retained circuits for Γ \Gamma Γ and Δ − 1 \Delta^{-1} Δ − 1 , together with the circuit for Δ T \Delta^{\mathsf{T}} Δ T obtained by Lemma 2.11, give the same O ~ ( T ( n ) ) \widetilde{O}(T(n)) O ( T ( n )) construction and evaluation bounds.
Let F i = F ( a i , b i , Γ i , Δ i ) ∈ F ‾ n F_i=F(\mathbf{a}_i,\mathbf{b}_i,\Gamma_i,\Delta_i)\in\overline{\mathcal{F}}_n F i = F ( a i , b i , Γ i , Δ i ) ∈ F n for i = 1 , 2 i=1,2 i = 1 , 2 . Inversion and composition satisfy the following parameter identities [15 Proposition 1] , up to global phase:
F 1 − 1 = F ( Δ 1 − 1 a 1 , b − , Δ 1 − T Γ 1 Δ 1 − 1 , Δ 1 − 1 ) . F_1^{-1}=F(\Delta_1^{-1}\mathbf{a}_1,\mathbf{b}_{-},\Delta_1^{-\mathsf{T}}\Gamma_1\Delta_1^{-1},\Delta_1^{-1}). F 1 − 1 = F ( Δ 1 − 1 a 1 , b − , Δ 1 − T Γ 1 Δ 1 − 1 , Δ 1 − 1 ) .
F 1 ∘ F 2 = F ( a 1 ⊕ Δ 1 a 2 , b 12 , Γ 2 + Δ 2 T Γ 1 Δ 2 , Δ 1 Δ 2 ) . F_1\circ F_2=F(\mathbf{a}_1\oplus\Delta_1\mathbf{a}_2,\mathbf{b}_{12},\Gamma_2+\Delta_2^{\mathsf{T}}\Gamma_1\Delta_2,\Delta_1\Delta_2). F 1 ∘ F 2 = F ( a 1 ⊕ Δ 1 a 2 , b 12 , Γ 2 + Δ 2 T Γ 1 Δ 2 , Δ 1 Δ 2 ) .
Here F 1 ∘ F 2 F_1\circ F_2 F 1 ∘ F 2 applies F 2 F_2 F 2 first, and b − , b 12 ∈ F 2 n \mathbf{b}_{-},\mathbf{b}_{12}\in\mathbb{F}_2^n b − , b 12 ∈ F 2 n are the resulting Pauli-Z Z Z correction vectors, including the linear phases generated when the quadratic phases are reduced modulo 4. All matrix and vector operations in these identities are over F 2 \mathbb{F}_2 F 2 . When F 1 F_1 F 1 and F 2 F_2 F 2 have trapdoors as above with circuit-size bound T ( n ) T(n) T ( n ) , the Pauli correction vectors can be recovered in O ( n T ( n ) ) O(nT(n)) O ( n T ( n )) time by comparing the computational-basis phases at 0 , e 1 , … , e n \mathbf{0},\mathbf{e}_1,\ldots,\mathbf{e}_n 0 , e 1 , … , e n with the corresponding canonical quadratic phases, where e j \mathbf{e}_j e j is the j j j -th standard basis vector. The transformed matrix parameters retain O ( T ( n ) ) O(T(n)) O ( T ( n )) -size multiplication circuits, since their actions are sums or compositions of a constant number of the original matrix actions; the required inverse and transpose actions for the new Δ \Delta Δ parameters are obtained similarly. Composing the forward and inverse action circuits already constructed also gives O ( T ( n ) ) O(T(n)) O ( T ( n )) -size circuits for app \operatorname{app} app , app − 1 \operatorname{app}^{-1} app − 1 , tab \operatorname{tab} tab , and tab − 1 \operatorname{tab}^{-1} tab − 1 of the resulting operators, without requiring explicit recovery of the new Pauli correction vectors.
Trapdoored Clifford Operators
We now extend the construction to the full family of Clifford operators, obtaining our main result. Starting from the Bravyi–Maslov sampler recalled in § 4.1 , we replace its two uniform Borel factors by independent samples from the trapdoored distribution of Theorem 3.1 . The resulting operator distribution remains computationally indistinguishable from uniform, while the retained trapdoors support both quantum application and classical tableau action. The construction preserves the sampling and evaluation bounds of the Hadamard-free case: sampling the Hadamard and permutation layers takes quasi-linear time, and their actions incur only linear overhead.
Theorem 3.2 (Trapdoored Clifford distributions). The following statements hold:
(i) Under the standard (dual) ring-LPN assumption, for any fixed 0 < δ < 1 0<\delta<1 0 < δ < 1 , there exists an O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) -samplable trapdoored Clifford distribution over C ‾ n \overline{\mathcal{C}}_n C n supporting O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) -efficient quantum application app \operatorname{app} app and classical evaluation of tab \operatorname{tab} tab .
(ii) Under the strong (dual) ring-LPN assumption, there exists an O ~ ( n ) \widetilde{O}(n) O ( n ) -samplable trapdoored Clifford distribution over C ‾ n \overline{\mathcal{C}}_n C n supporting O ~ ( n ) \widetilde{O}(n) O ( n ) -efficient quantum application app \operatorname{app} app and classical evaluation of tab \operatorname{tab} tab .
In each case, the operator marginal is computationally indistinguishable from Unif ( C ‾ n ) \operatorname{Unif}(\overline{\mathcal{C}}_n) Unif ( C n ) , in the sense of Definition 2.1 .
Proof. We give a common construction for both parts, writing T ( n ) ∈ { O ~ ( n 1 + δ ) , O ~ ( n ) } T(n)\in\{\widetilde{O}(n^{1+\delta}),\widetilde{O}(n)\} T ( n ) ∈ { O ( n 1 + δ ) , O ( n )} for the corresponding sampling and circuit-size bound in Theorem 3.1 . Independently sample F 1 , F 2 ∈ B ‾ n F_1,F_2\in\overline{\mathcal{B}}_n F 1 , F 2 ∈ B n with their trapdoors from that theorem, taking H = B ‾ n \mathcal{H}=\overline{\mathcal{B}}_n H = B n . Independently of these factors, sample ( h , S ) (\mathbf{h},S) ( h , S ) from the quantum Mallows distribution in O ~ ( n ) \widetilde{O}(n) O ( n ) time [15 Lemma 6] , and set
H h : = ∏ j = 1 n H j h j , C : = F 1 H h S F 2 . H_{\mathbf{h}} := \prod_{j=1}^{n} H_j^{h_j}, \qquad C := F_1H_{\mathbf{h}}SF_2. H h := j = 1 ∏ n H j h j , C := F 1 H h S F 2 .
Replacing F 1 F_1 F 1 and then F 2 F_2 F 2 by independent uniform Borel operators gives computationally indistinguishable hybrids by Theorem 3.1 , since the product defining C C C is polynomial-time computable from classical descriptions of its factors. In the final hybrid, C C C is uniform on C ‾ n \overline{\mathcal{C}}_n C n by the sampler in § 4.1 . Thus the operator marginal is pseudorandom against QPT distinguishers.
For quantum application, concatenate the circuits in the same order:
Q a p p , C = Q a p p , F 1 ∘ ( H h S ) ∘ Q a p p , F 2 . Q_{\mathrm{app},C}=Q_{\mathrm{app},F_1}\circ(H_{\mathbf{h}}S)\circ Q_{\mathrm{app},F_2}. Q app , C = Q app , F 1 ∘ ( H h S ) ∘ Q app , F 2 .
where each factor acts on the data register and its own ancillary register, and is extended by the identity on the other ancillary registers. The Hadamard layer uses at most n n n gates, and S S S can be implemented using at most n − 1 n-1 n − 1 SWAP gates, each consisting of three CNOT gates. Hence Q a p p , C Q_{\mathrm{app},C} Q app , C uses O ( T ( n ) ) O(T(n)) O ( T ( n )) basic Clifford gates and ancillary qubits, implements C C C on every input state, and returns all ancillary qubits to zero.
For the classical tableau action, let D h = diag ( h 1 , … , h n ) D_{\mathbf{h}}=\operatorname{diag}(h_1,\ldots,h_n) D h = diag ( h 1 , … , h n ) and let Π S \Pi_S Π S be the permutation matrix satisfying Π S e j = e S ( j ) \Pi_S e_j=e_{S(j)} Π S e j = e S ( j ) . With our ordering of the Pauli labels, the two middle layers have tableaux
T H h = [ I n − D h D h D h I n − D h ] , T S = [ Π S 0 0 Π S ] . T_{H_{\mathbf{h}}}=
\begin{bmatrix}
I_n-D_{\mathbf{h}} & D_{\mathbf{h}}\\
D_{\mathbf{h}} & I_n-D_{\mathbf{h}}
\end{bmatrix},
\qquad
T_S=
\begin{bmatrix}
\Pi_S & 0\\
0 & \Pi_S
\end{bmatrix}. T H h = [ I n − D h D h D h I n − D h ] , T S = [ Π S 0 0 Π S ] .
Therefore T C = T F 1 T H h T S T F 2 T_C=T_{F_1}T_{H_{\mathbf{h}}}T_ST_{F_2} T C = T F 1 T H h T S T F 2 . Construct C t a b , C C_{\mathrm{tab},C} C tab , C by applying these four actions from right to left, using the sampled circuits for F 1 F_1 F 1 and F 2 F_2 F 2 . The two middle actions only permute Pauli-label bits and take O ( n ) O(n) O ( n ) time, so both construction and evaluation of C t a b , C C_{\mathrm{tab},C} C tab , C take O ( T ( n ) ) O(T(n)) O ( T ( n )) time.
Sampling the succinct factor descriptions and constructing both trapdoor circuits therefore preserve the O ~ ( n 1 + δ ) \widetilde{O}(n^{1+\delta}) O ( n 1 + δ ) and O ~ ( n ) \widetilde{O}(n) O ( n ) bounds in the two cases. Correctness holds for every sample; all resource bounds hold with overwhelming probability, as in Theorem 3.1 . □
The same modification of § 3.7 also gives depth-efficient Clifford implementations. A size-s s s , depth-d d d XOR circuit can be implemented reversibly using O ( s + n ) O(s+n) O ( s + n ) CNOT gates and clean ancillary qubits, with depth O ( ( d + 1 ) log ( s + n ) ) O((d+1)\log(s+n)) O (( d + 1 ) log ( s + n )) : replace fan-out by binary CNOT copying trees, compute the intermediate values, copy the outputs, and uncompute. The strictly upper-triangular circuits used for quadratic phases likewise have depth O ( log 2 n ) O(\log^2 n) O ( log 2 n ) , using the same shallow off-diagonal circuits and balanced sums at the leaves. Thus, using the modified matrix samplers, the constructions of Theorems 3.1 and 3.2 support quantum application and its inverse in depth O ( log 3 n ) O(\log^3 n) O ( log 3 n ) , with the same gate-count and ancilla bounds. Here we use the all-to-all connectivity model of § 4.2 ; any qubit permutation is a product of two layers of disjoint SWAP gates.
Applications
Clifford authentication
We prove that the use of trapdoored Cliffords in authentication gives information-theoretical soundness. We begin by recalling the definitions.
Definition 4.1 (One-time quantum authentication [19 ] ). A quantum authentication scheme (QAS) consists of a tuple of QPT algorithms (KeyGen, Enc, Dec) where Dec outputs a message or ⊥ \perp ⊥ . Let k ← KeyGen k\leftarrow\operatorname{KeyGen} k ← KeyGen .
(ε \varepsilon ε -soundness ) For every attack channel Λ \Lambda Λ on the ciphertext and side information E E E , there are completely positive maps Φ a c c , Φ r e j \Phi_{\mathrm{acc}}, \Phi_{\mathrm{rej}} Φ acc , Φ rej on E E E , whose sum is trace-preserving, such that
1 2 ∥ E k [ ( Dec k ⊗ id E ) ∘ Λ ∘ ( Enc k ⊗ id E ) ] − I ∥ ⋄ ≤ ε , \frac{1}{2}\left\|\mathbb{E}_{k}\left[(\operatorname{Dec}_{k}\otimes\operatorname{id}_{E})\circ\Lambda\circ(\operatorname{Enc}_{k}\otimes\operatorname{id}_{E})\right]-\mathcal{I}\right\|_{\diamond}\le\varepsilon, 2 1 ∥ E k [ ( Dec k ⊗ id E ) ∘ Λ ∘ ( Enc k ⊗ id E ) ] − I ∥ ⋄ ≤ ε ,
where I ( ρ M E ) = ( id M ⊗ Φ a c c ) ( ρ M E ) + ∣ ⊥ ⟩ ⟨ ⊥ ∣ ⊗ Φ r e j ( Tr M ρ M E ) \mathcal{I}(\rho_{ME})=(\operatorname{id}_{M}\otimes\Phi_{\mathrm{acc}})(\rho_{ME})+|\perp\rangle\langle\perp|\otimes\Phi_{\mathrm{rej}}(\operatorname{Tr}_{M}\rho_{ME}) I ( ρ M E ) = ( id M ⊗ Φ acc ) ( ρ M E ) + ∣ ⊥ ⟩ ⟨ ⊥ ∣ ⊗ Φ rej ( Tr M ρ M E ) .
Definition 4.2 (Trapdoored Clifford authentication). Let n = ℓ + e n=\ell+e n = ℓ + e and ε = 2 − e \varepsilon=2^{-e} ε = 2 − e , with e ≥ 1 e\ge1 e ≥ 1 . The trapdoored Clifford authentication scheme is as follows.
KeyGen: Generate a trapdoored Clifford C C C , and independently sample a uniform random Pauli P P P and a uniform qubit permutation π \pi π . Write k k k to denote them and C k = P π C C_k=P\pi C C k = P π C for simplicity.
Enc: Apply C k C_k C k to ∣ ψ ⟩ ⊗ ∣ 0 ⟩ ⊗ e |\psi\rangle\otimes|0\rangle^{\otimes e} ∣ ψ ⟩ ⊗ ∣0 ⟩ ⊗ e .
Dec: Apply C k † C_k^\dagger C k † and measure the last e e e qubits. Return the first ℓ \ell ℓ qubits if the outcome is 0 e 0^e 0 e , and ⊥ \perp ⊥ otherwise.
Under the strong (dual) ring-LPN assumption of Theorem 3.2 , key generation, encoding, and decoding run in time n 1 + o ( 1 ) n^{1+o(1)} n 1 + o ( 1 ) with overwhelming probability, using the retained circuit and its reversal.
Theorem 4.3. Under the pseudorandomness assumption of Theorem 3.2 , trapdoored Clifford authentication is a QAS with perfect completeness and ( ε + negl ( n ) ) (\varepsilon+\operatorname{negl}(n)) ( ε + negl ( n )) -soundness.
Proof sketch. We use the fact that averaging over P P P cancels the cross terms in the Pauli expansion of any attack [1 Lemma 5.1] . From this, it suffices to consider the attack of the form ∑ Q Q ⊗ Φ Q \sum_Q Q\otimes\Phi_Q ∑ Q Q ⊗ Φ Q , where Q ( σ ) = Q σ Q † Q(\sigma)=Q\sigma Q^\dagger Q ( σ ) = Q σ Q † , the maps Φ Q \Phi_Q Φ Q are completely positive, ∑ Q Φ Q \sum_Q\Phi_Q ∑ Q Φ Q is trace-preserving, and they are independent of V : = π C V:=\pi C V := π C . Thus it suffices to bound the acceptance probability of every Q ≠ I Q\ne I Q = I .
For uniform random Clifford C C C , the Pauli-partitioning lemma and the counting argument in the proof of [1 Theorem 1.4] give
Pr V [ V † Q V has only I , Z on the last e qubits ] = 4 ℓ 2 e − 1 4 n − 1 < 2 − e (1) \Pr_{V}\left[V^\dagger QV\text{ has only }I,Z\text{ on the last }e\text{ qubits}\right]=\frac{4^\ell2^e-1}{4^n-1}<2^{-e} \tag*{(1)} V Pr [ V † Q V has only I , Z on the last e qubits ] = 4 n − 1 4 ℓ 2 e − 1 < 2 − e (1)
for every Q ≠ I Q\ne I Q = I . Averaging over the uniform qubit permutation π \pi π makes this probability depend only on the numbers of X X X , Y Y Y , and Z Z Z in Q Q Q . There are only polynomially many such choices, and the event above can be tested efficiently using C C C and C † C^\dagger C † .
Now we consider the case of trapdoored Cliffords. Suppose that some Q Q Q had acceptance probability (the left-hand side of Eq. (1) ) at least p 0 + 1 / poly ( n ) p_0+1/\operatorname{poly}(n) p 0 + 1/ poly ( n ) for p 0 = ( 4 ℓ 2 e − 1 ) / ( 4 n − 1 ) p_0=(4^\ell2^e-1)/(4^n-1) p 0 = ( 4 ℓ 2 e − 1 ) / ( 4 n − 1 ) . Note that the acceptance probability is characterized by the numbers of its X X X , Y Y Y , and Z Z Z factors because of π \pi π . There are polynomially many cases, so we can test them to determine if there exists such Q Q Q . This gives an efficient distinguisher for two cases, contradicting the pseudorandomness. Thus every Q ≠ I Q\ne I Q = I has acceptance probability at most p 0 + negl ( n ) < ε + negl ( n ) p_0+\operatorname{negl}(n)<\varepsilon+\operatorname{negl}(n) p 0 + negl ( n ) < ε + negl ( n ) uniformly. Completeness is immediate.
Worst-case to Average-case Reductions
We revisit the worst-case to average-case reductions for linear algebra problems and consider some Clifford problems.6
Iterated matrix multiplication. We extend the worst-to-average-case reductions for linear algebra [41 ] to products of many invertible matrices.
Theorem 4.4. Let F q \mathbb{F}_q F q be a fixed finite field, let d = d ( n ) ≥ 2 d=d(n)\ge2 d = d ( n ) ≥ 2 be polynomially bounded, and let ε > 0 \varepsilon>0 ε > 0 . Assume the strong (dual) ring-LPN assumption. Let A : GL ( n , F q ) d → F q n × n \mathcal{A}:\operatorname{GL}(n,\mathbb{F}_q)^d\to\mathbb{F}_q^{n\times n} A : GL ( n , F q ) d → F q n × n be a randomized polynomial-time algorithm running in time T ( n ) T(n) T ( n ) such that, for every sufficiently large n n n ,
Pr B 1 , … , B d ← Unif ( GL ( n , F q ) ) [ A ( B 1 , … , B d ) = B d ⋯ B 1 ] ≥ ε . \Pr_{B_1,\ldots,B_d\leftarrow\operatorname{Unif}(\operatorname{GL}(n,\mathbb{F}_q))}\left[\mathcal{A}(B_1,\ldots,B_d)=B_d\cdots B_1\right]\ge\varepsilon. B 1 , … , B d ← Unif ( GL ( n , F q )) Pr [ A ( B 1 , … , B d ) = B d ⋯ B 1 ] ≥ ε .
Then we can construct an algorithm that, for any A 1 , … , A d ∈ G L ( n , F q ) A_1,\ldots,A_d \in\mathrm{GL}(n,\mathbb{F}_q) A 1 , … , A d ∈ GL ( n , F q ) , computes A d ⋯ A 1 A_d\cdots A_1 A d ⋯ A 1 with high probability, in time O ~ ( T ( n ) ) \widetilde{O}(T(n)) O ( T ( n )) .
Proof. Let A 1 , … , A d A_1,\ldots,A_d A 1 , … , A d be the input matrices. Independently sample trapdoored matrices R 1 , … , R d R_1,\ldots,R_d R 1 , … , R d from Theorem 2.17 , and let R 0 = I R_0=I R 0 = I . Define B i = R i A i R i − 1 − 1 B_i=R_iA_iR_{i-1}^{-1} B i = R i A i R i − 1 − 1 for i ∈ [ d ] i\in[d] i ∈ [ d ] , which can be computed in time O ~ ( d n 2 ) \widetilde{O}(dn^2) O ( d n 2 ) using trapdoors. We observe that
B d ⋯ B 1 = R d A d ⋯ A 1 . B_d\cdots B_1=R_dA_d\cdots A_1. B d ⋯ B 1 = R d A d ⋯ A 1 .
Thus, whenever A \mathcal{A} A is correct, Y = R d − 1 A ( B 1 , … , B d ) Y=R_d^{-1}\mathcal{A}(B_1,\ldots,B_d) Y = R d − 1 A ( B 1 , … , B d ) equals the desired product. By pseudorandomness, the candidate Y Y Y equals A d ⋯ A 1 A_d\cdots A_1 A d ⋯ A 1 with probability at least ε − negl ( n ) \varepsilon-\operatorname{negl}(n) ε − negl ( n ) . We verify correctness with high probability in O ~ ( d n 2 ) \widetilde{O}(dn^2) O ( d n 2 ) time using Freivalds’ algorithm. For sufficiently large n n n , each trial succeeds with probability at least ε / 2 \varepsilon/2 ε /2 . Repeating the procedure O ( log n ε ) O\left(\frac{\log n}{\varepsilon}\right) O ( ε l o g n ) times gives the correct product with high probability. The total running time is O ~ ( T ( n ) + d n 2 ε ) \widetilde{O}\left(\frac{T(n)+dn^2}{\varepsilon}\right) O ( ε T ( n ) + d n 2 ) as desired. □
Determinant computation. We improve the determinant reductions of [41 ] using the exact determinants provided by Corollary 2.21.
Theorem 4.5. Let F q \mathbb{F}_q F q be a fixed finite field, let ε > 0 \varepsilon>0 ε > 0 , and let s q , n = 1 − ∏ j = 1 n ( 1 − q − j ) s_{q,n}=1-\prod_{j=1}^{n}(1-q^{-j}) s q , n = 1 − ∏ j = 1 n ( 1 − q − j ) . Assume the strong (dual) ring-LPN assumption. Let A : F q n × n → F q \mathcal{A}:\mathbb{F}_q^{n\times n}\to\mathbb{F}_q A : F q n × n → F q be a randomized polynomial-time algorithm running in time T ( n ) T(n) T ( n ) such that, for every sufficiently large n n n ,
Pr B ← Unif ( F q n × n ) [ A ( B ) = det B ] ≥ { s 2 , n + ε , q = 2 , ( 1 + s q , n ) / 2 + ε , q > 2. \Pr_{B\leftarrow\operatorname{Unif}(\mathbb{F}_q^{n\times n})}[\mathcal{A}(B)=\det B]\ge
\begin{cases}
s_{2,n}+\varepsilon, & q=2,\\
(1+s_{q,n})/2+\varepsilon, & q>2.
\end{cases} B ← Unif ( F q n × n ) Pr [ A ( B ) = det B ] ≥ { s 2 , n + ε , ( 1 + s q , n ) /2 + ε , q = 2 , q > 2. Then we can construct an algorithm that, for any A ∈ F q n × n A\in\mathbb{F}_q^{n\times n} A ∈ F q n × n , computes det A \det A det A with high probability, in time O ~ ( T ( n ) ) \widetilde{O}(T(n)) O ( T ( n )) . For q > 2 q>2 q > 2 , it also suffices that A \mathcal{A} A succeeds with probability at least 1 / 2 + ε 1/2+\varepsilon 1/2 + ε on uniform G L ( n , F q ) \mathrm{GL}(n,\mathbb{F}_q) GL ( n , F q ) .
Proof sketch. We adapt the proofs of [41 Lemmas 6.6 and 6.7] , using the exact determinant of each sampled mask instead of computing it with the average-case algorithm.
For q > 2 q>2 q > 2 , sample a trapdoored R ∈ G L ( n , F q ) R\in\mathrm{GL}(n,\mathbb{F}_q) R ∈ GL ( n , F q ) , compute det R \det R det R exactly in O ( n ) O(n) O ( n ) additional time by Corollary 2.21, and set Z = A ( R A ) / det R Z=\mathcal{A}(RA)/\det R Z = A ( R A ) / det R . Since a uniform matrix is singular with probability s q , n s_{q,n} s q , n , the all-matrix promise gives
Pr B ← Unif ( G L ( n , F q ) ) [ A ( B ) = det B ] ≥ ( 1 + s q , n ) / 2 + ε − s q , n 1 − s q , n = 1 2 + ε 1 − s q , n ≥ 1 2 + ε . \Pr_{B\leftarrow\operatorname{Unif}(\mathrm{GL}(n,\mathbb{F}_q))}[\mathcal{A}(B)=\det B]\ge\frac{(1+s_{q,n})/2+\varepsilon-s_{q,n}}{1-s_{q,n}}=\frac{1}{2}+\frac{\varepsilon}{1-s_{q,n}}\ge\frac{1}{2}+\varepsilon. B ← Unif ( GL ( n , F q )) Pr [ A ( B ) = det B ] ≥ 1 − s q , n ( 1 + s q , n ) /2 + ε − s q , n = 2 1 + 1 − s q , n ε ≥ 2 1 + ε .
First analyze the case where R R R is uniform on G L ( n , F q ) \mathrm{GL}(n,\mathbb{F}_q) GL ( n , F q ) . If A A A is invertible, the matrix R A RA R A is uniform over G L ( n , F q ) \mathrm{GL}(n,\mathbb{F}_q) GL ( n , F q ) , so Pr [ Z = det A ] ≥ 1 / 2 + ε \Pr[Z=\det A]\ge1/2+\varepsilon Pr [ Z = det A ] ≥ 1/2 + ε . If A A A is singular, det R \det R det R is uniform over F q × \mathbb{F}_q^\times F q × even conditioned on R A RA R A , so each nonzero value of Z Z Z has probability at most 1 / ( q − 1 ) ≤ 1 / 2 1/(q-1)\le1/2 1/ ( q − 1 ) ≤ 1/2 . Repeat this computation independently t = O ( ε − 2 log n ) t=O(\varepsilon^{-2}\log n) t = O ( ε − 2 log n ) times. If some nonzero value appears more than ( 1 / 2 + ε / 2 ) t (1/2+\varepsilon/2)t ( 1/2 + ε /2 ) t times among the results, return that value; otherwise, return zero.
For q = 2 q=2 q = 2 , sample r r r from the rank distribution of a uniform binary matrix in O ( n 2 ) O(n^2) O ( n 2 ) time, and let R = U diag ( I r , 0 ) V R=U\operatorname{diag}(I_r,0)V R = U diag ( I r , 0 ) V , where U , V U,V U , V are independent trapdoored invertible matrices. Then det R = 1 { r = n } \det R=\mathbf{1}_{\{r=n\}} det R = 1 { r = n } . For uniform U , V U,V U , V , the matrix R R R is uniform. Writing u = 1 − s 2 , n u=1-s_{2,n} u = 1 − s 2 , n , the disagreement probability Pr [ A ( R A ) ≠ det R ] \Pr[\mathcal{A}(RA)\ne\det R] Pr [ A ( R A ) = det R ] is at most u − ε u-\varepsilon u − ε when A A A is invertible, and at least u u u when A A A is singular, by the conditional determinant argument of [41 Lemma 6.7] . Repeat this procedure independently t = O ( ε − 2 log n ) t=O(\varepsilon^{-2}\log n) t = O ( ε − 2 log n ) times. Return one if A ( R A ) ≠ det R \mathcal{A}(RA)\ne\det R A ( R A ) = det R occurs fewer than ( u − ε / 2 ) t (u-\varepsilon/2)t ( u − ε /2 ) t times, and zero otherwise.
All relevant events are polynomial-time testable from the sampled matrices, since their determinants are polynomial-time computable. Thus pseudorandomness changes the probabilities above by only negl ( n ) \operatorname{negl}(n) negl ( n ) . In both cases, O ( ε − 2 log n ) O(\varepsilon^{-2}\log n) O ( ε − 2 log n ) independent trials suffice by concentration. Each trial takes T ( n ) + O ~ ( n 2 ) T(n)+\widetilde{O}(n^2) T ( n ) + O ( n 2 ) time, giving total time O ~ ( T ( n ) + n 2 ε 2 ) = O ~ ( T ( n ) ) \widetilde{O}\left(\frac{T(n)+n^2}{\varepsilon^2}\right)=\widetilde{O}(T(n)) O ( ε 2 T ( n ) + n 2 ) = O ( T ( n )) . □
Clifford circuit synthesis. We give a worst-to-average-case reduction for Clifford circuit synthesis given the corresponding tableau. We say that an algorithm implement a Clifford C C C if it maps ∣ ϕ ⟩ ∣ 0 n ⟩ |\phi\rangle|0^n\rangle ∣ ϕ ⟩ ∣ 0 n ⟩ to C ∣ ϕ ⟩ ∣ 0 n ⟩ C|\phi\rangle|0^n\rangle C ∣ ϕ ⟩ ∣ 0 n ⟩ .
Theorem 4.6. Let ε > 0 \varepsilon> 0 ε > 0 . Assume the strong (dual) ring-LPN assumption. Let A \mathcal{A} A be a randomized polynomial-time algorithm running in time T ( n ) T(n) T ( n ) that, given a signed Clifford tableau τ D \tau_D τ D , outputs a Clifford circuit for D D D such that, for every sufficiently large n n n ,
Pr D ← Unif ( C n ) [ A ( τ D ) implements D ] ≥ ε . \Pr_{D \leftarrow\operatorname{Unif}(\mathcal{C}_n)}\left[\mathcal{A}(\tau_D)\text{ implements }D\right] \ge\varepsilon. D ← Unif ( C n ) Pr [ A ( τ D ) implements D ] ≥ ε . Then we can construct an algorithm that, given any signed Clifford tableau, outputs a correct implementation with clean ancillas with high probability, in time O ~ ( T ( n ) ) \widetilde{O}(T(n)) O ( T ( n )) .
Proof. Let C C C be the input Clifford. Sample a trapdoored Clifford R R R from Theorem 3.2 . Define D = R C D=RC D = R C , whose signed tableau can be computed in time O ~ ( n 2 ) \widetilde{O}(n^2) O ( n 2 ) using the trapdoor. Run A ( D ) \mathcal{A}(D) A ( D ) to obtain a candidate circuit Q Q Q ; whenever A \mathcal{A} A implements the correct Clifford, appending the inverse implementation of R R R to Q Q Q gives an implementation of C C C . This adds O ~ ( n ) \widetilde{O}(n) O ( n ) gates and ancillary qubits.
By pseudorandomness, Q Q Q correctly implements D D D with probability at least ε − negl ( n ) \varepsilon-\operatorname{negl}(n) ε − negl ( n ) . We verify correctness with high probability in O ~ ( T ( n ) + n 2 ) \widetilde{O}(T(n)+n^2) O ( T ( n ) + n 2 ) time using random Pauli conjugation and ancillary stabilizer tests.
Each trial succeeds with probability at least ε / 2 \varepsilon/2 ε /2 for large n n n . Repeating the procedure O ( log n ε ) O\left(\frac{\log n}{\varepsilon}\right) O ( ε l o g n ) times gives a correct implementation with high probability in time O ~ ( T ( n ) + n 2 ε ) \widetilde{O}\left(\frac{T(n)+n^2}{\varepsilon}\right) O ( ε T ( n ) + n 2 ) .
From average-case parallel Clifford implementations to matrix multiplication
We reduce worst-case matrix multiplication to constructing parallel implementations of a random Clifford. Note that the reduction from the worst-case matrix multiplication to the worst-case parallel Clifford implementations is rather straightforward using U A U_A U A below, although we were not aware of this result in the literature. The main implication here is that the same complexity persists in the parallel implementation of average-case Cliffords, even though random Cliffords are unlikely to be these classical-like U A U_A U A .
Theorem 4.7. Let ε > 0 \varepsilon> 0 ε > 0 . Assume the strong (dual) ring-LPN assumption. Let A \mathcal{A} A be a randomized polynomial-time algorithm running in time T ( n ) T(n) T ( n ) that, given the signed tableau τ C \tau_C τ C of a 2 n 2n 2 n -qubit Clifford C C C , outputs a Clifford circuit on 2 n 2 2n^2 2 n 2 qubits such that, for every sufficiently large n n n ,
Pr C ← Unif ( Cliff ( 2 n ) ) [ A ( τ C ) implements C ⊗ n ] ≥ ε . \Pr_{C \leftarrow\operatorname{Unif}(\operatorname{Cliff}(2n))}\left[\mathcal{A}(\tau_C)\text{ implements }C^{\otimes n}\right] \ge\varepsilon. C ← Unif ( Cliff ( 2 n )) Pr [ A ( τ C ) implements C ⊗ n ] ≥ ε . Then we can construct a classical algorithm that, for any A , B ∈ F 2 n × n A,B\in\mathbb{F}_2^{n\times n} A , B ∈ F 2 n × n , computes A B AB A B with high probability, in time O ~ ( T ( n ) ) \widetilde{O}(T(n)) O ( T ( n )) .
Proof. Let A , B A,B A , B be the input matrices, and define the Clifford U A ∣ u , v ⟩ = ∣ u + A v , v ⟩ U_A|u,v\rangle=|u+Av,v\rangle U A ∣ u , v ⟩ = ∣ u + A v , v ⟩ .
Sample a trapdoored 2 n 2n 2 n -qubit Clifford R R R from Theorem 3.2 . Define C = R U A C=RU_A C = R U A , whose tableau can be computed in time O ~ ( n 2 ) \widetilde{O}(n^2) O ( n 2 ) using the trapdoor. Run A ( τ C ) \mathcal{A}(\tau_C) A ( τ C ) to obtain a candidate circuit Γ \Gamma Γ .
Write B = [ b 1 ⋯ b n ] B=[\mathbf{b}_1\ \cdots\ \mathbf{b}_n] B = [ b 1 ⋯ b n ] , and define
P B = ⨂ j = 1 n ( I ⊗ n ⊗ X ( b j ) ) , X ( b ) = ⨂ k = 1 n X b k . P_B=\bigotimes_{j=1}^{n}\left(I^{\otimes n}\otimes X(\mathbf{b}_j)\right),\qquad X(\mathbf{b})=\bigotimes_{k=1}^{n}X^{b_k}. P B = j = 1 ⨂ n ( I ⊗ n ⊗ X ( b j ) ) , X ( b ) = k = 1 ⨂ n X b k .
Compute a circuit for Q = ( R † ) ⊗ n P B Γ R ⊗ n Q=(R^\dagger)^{\otimes n}P_B\Gamma R^{\otimes n} Q = ( R † ) ⊗ n P B Γ R ⊗ n , which is a product of single-qubit Paulis, using the trapdoor in total time O ~ ( T ( n ) + n 2 ) \widetilde{O}(T(n)+n^2) O ( T ( n ) + n 2 ) .
Whenever A \mathcal{A} A is correct, we have
Q = ⨂ j = 1 n ( X ( A b j ) ⊗ X ( b j ) ) . Q=\bigotimes_{j=1}^{n}\left(X(A\mathbf{b}_j)\otimes X(\mathbf{b}_j)\right). Q = j = 1 ⨂ n ( X ( A b j ) ⊗ X ( b j ) ) .
Given the product Pauli structure, we can recover the entries of A b j A b_j A b j for each j j j from the circuit for Q Q Q if it is correct. In other words, the circuit for Q Q Q gives a candidate Y Y Y for the product A B AB A B . Whenever A A A is correct, Y = A B Y = AB Y = A B .
By pseudorandomness, Y Y Y equals A B AB A B with probability at least ε − negl ( n ) \varepsilon- \operatorname{negl}(n) ε − negl ( n ) . We verify correctness with high probability in O ~ ( n 2 ) \widetilde{O}(n^2) O ( n 2 ) time using Freivalds’ algorithm. Each trial succeeds with probability at least ε / 2 \varepsilon/2 ε /2 for large n n n . Repeating the procedure O ( ε − 1 log n ) O(\varepsilon^{-1}\log n) O ( ε − 1 log n ) times gives the correct product with high probability in time O ~ ( ( T ( n ) + n 2 ) / ε ) = O ~ ( T ( n ) ) \widetilde{O}((T(n)+n^2)/\varepsilon)=\widetilde{O}(T(n)) O (( T ( n ) + n 2 ) / ε ) = O ( T ( n )) .
We next extend Theorem 4.7 to approximate implementations by general quantum circuits.
Theorem 4.8. Let ε > 0 \varepsilon> 0 ε > 0 and η ∈ [ 0 , 1 ) \eta\in[0,1) η ∈ [ 0 , 1 ) be constants. Assume the quantum-secure strong (dual) ring-LPN assumption. Let A A A be a randomized polynomial-time algorithm running in time T ( n ) T(n) T ( n ) that, given the signed tableau τ C \tau_C τ C of a 2 n 2n 2 n -qubit Clifford C C C , outputs a (possibly non-Clifford) circuit with channel G C \mathcal{G}_C G C on 2 n 2 2n^2 2 n 2 qubits such that, for every sufficiently large n n n ,
Pr C ← Unif ( Cliff ( 2 n ) ) , A [ 1 2 ∥ G C − U C ⊗ n ∥ ⋄ ≤ η ] ≥ ε , \Pr_{C\leftarrow\operatorname{Unif}(\operatorname{Cliff}(2n)),\,A}\left[\frac{1}{2}\left\|\mathcal{G}_C-U_{C^{\otimes n}}\right\|_{\diamond}\leq\eta\right]\geq\varepsilon, C ← Unif ( Cliff ( 2 n )) , A Pr [ 2 1 ∥ G C − U C ⊗ n ∥ ⋄ ≤ η ] ≥ ε , where U V ( ρ ) = V ρ V † U_V(\rho)=V\rho V^\dagger U V ( ρ ) = V ρ V † . Then we can construct a quantum algorithm that, for any A , B ∈ F 2 n × n A,B\in\mathbb{F}_2^{n\times n} A , B ∈ F 2 n × n , computes A B AB A B with high probability in time O ~ ( T ( n ) ) \widetilde{O}(T(n)) O ( T ( n )) .
Proof. Define U A ∣ u , v ⟩ = ∣ u + A v , v ⟩ U_A|u,v\rangle=|u+Av,v\rangle U A ∣ u , v ⟩ = ∣ u + A v , v ⟩ as in the proof of Theorem 4.7 . Sample a trapdoored 2 n 2n 2 n -qubit Clifford R R R from Theorem 3.2 . Set C = R U A C=R U_A C = R U A , compute τ C \tau_C τ C in O ~ ( n 2 ) \widetilde{O}(n^2) O ( n 2 ) time using the trapdoor, and run A ( τ C ) A(\tau_C) A ( τ C ) .
Write B = [ b 1 ⋯ b n ] B=[b_1\ \cdots\ b_n] B = [ b 1 ⋯ b n ] . Apply G C \mathcal{G}_C G C followed by ( R † ) ⊗ n (R^\dagger)^{\otimes n} ( R † ) ⊗ n to ⨂ j = 1 n ∣ 0 n , b j ⟩ \bigotimes_{j=1}^{n}|0^n,b_j\rangle ⨂ j = 1 n ∣ 0 n , b j ⟩ , and measure the first n n n qubits of each block to obtain the columns of a candidate Y Y Y . The ideal decoded state is ⨂ j = 1 n ∣ A b j , b j ⟩ \bigotimes_{j=1}^{n}|Ab_j,b_j\rangle ⨂ j = 1 n ∣ A b j , b j ⟩ . Whenever the approximation condition holds, the diamond-norm bound changes any measurement event’s probability by at most η \eta η , so Y = A B Y=AB Y = A B with probability at least 1 − η 1-\eta 1 − η .
For uniform R R R , the Clifford C C C is uniform, giving success probability at least ε ( 1 − η ) \varepsilon(1-\eta) ε ( 1 − η ) . The event Y = A B Y=AB Y = A B is quantum polynomial-time testable from τ R \tau_R τ R : compute A B AB A B classically and synthesize R † R^\dagger R † from its tableau using [2 Theorem 8] . Thus pseudorandomness gives success probability at least ε ( 1 − η ) − negl ( n ) \varepsilon(1-\eta)-\operatorname{negl}(n) ε ( 1 − η ) − negl ( n ) for the trapdoored procedure.
Verify each candidate with high probability using Freivalds’ algorithm and repeat independently O ( ( ε ( 1 − η ) ) − 1 log n ) O((\varepsilon(1-\eta))^{-1}\log n) O (( ε ( 1 − η ) ) − 1 log n ) times. This gives the correct product with high probability in time O ~ ( ( T ( n ) + n 2 ) / ( ε ( 1 − η ) ) ) = O ~ ( T ( n ) ) \widetilde{O}((T(n)+n^2)/(\varepsilon(1-\eta)))=\widetilde{O}(T(n)) O (( T ( n ) + n 2 ) / ( ε ( 1 − η ))) = O ( T ( n )) .