Introduction
Haar-random pure states capture the typical behavior of high-dimensional quantum systems [1 ] , connect to statistical mechanics through quantum typicality [2 , 3 , 4 ] , and model entanglement properties of highly excited eigenstates in chaotic quantum many-body systems [5 ] , while Haar-random unitaries model generic reversible dynamics and underlie decoupling [6 ] , information scrambling [7 ] , randomized protocols, and quantum cryptography. A typical Haar state or unitary, however, has exponential description and circuit complexity. This tension has motivated two efficient surrogates: unitary designs, which reproduce finitely many Haar moments [8 , 9 , 10 , 11 , 12 ] , and pseudorandom states and unitaries reproducing Haar behavior against efficient quantum observers [10 , 13 , 14 , 15 ] . Though well suited to physical and information-processing tasks [16 , 17 , 18 , 19 ] , a fixed-order design does not, by itself, provide the security required in an adversarial setting, since an efficient observer may interact adaptively with the unknown object.
A pseudorandom unitary (PRU) supplies an efficiently implementable unitary U k U_k U k that, for a uniformly sampled secret key k k k , is computationally indistinguishable from one persistent Haar-random unitary under adaptive oracle access. This single-instance guarantee is sufficient whenever an application requires one random-looking evolution. Many settings, however, naturally call for a family of such evolutions indexed by public context—for example, one reproducible unitary for each local patch, register width, nonce, coherent address, process instance, or time step. Sampling independent PRU keys can serve a predetermined finite collection, but managing a large and dynamically growing collection of secret keys is undesirable in practice. Rather than managing a separate secret key for every context, we seek to derive an entire adaptively addressable family of pseudorandom unitaries from one short master key. This one-key, many-object paradigm has already proved fruitful for quantum states: pseudorandom function-like states (PRFS) use a single key and a public label to generate a reproducible family of pseudorandom states [20 , 21 , 22 ] . We develop the corresponding notion for quantum evolutions. For a finite label set X λ X_\lambda X λ , where λ \lambda λ denotes the security parameter, one short key k k k specifies a family of efficiently implementable unitaries { G k ( x ) : x ∈ X λ } \{G_k(x):x\in X_\lambda\} { G k ( x ) : x ∈ X λ } , indexed by public labels x x x . A query with label x x x applies the corresponding G k ( x ) G_k(x) G k ( x ) to a supplied quantum register, with repeated uses of the same label selecting the same unitary. To an efficient observer, access to this family should be computationally indistinguishable from a random unitary-valued function x ↦ H x x\mapsto H_x x ↦ H x , which assigns an independently sampled Haar random unitary H x H_x H x to each label x x x persistently across queries. We call such a keyed family { G k ( x ) } k \{G_k(x)\}_k { G k ( x ) } k a pseudorandom function-like unitary (PRFU).
Having identified the target primitive, we study its realization and security under adaptive oracle access. Throughout, a distinguisher may maintain quantum memory across queries, apply intermediate quantum operations, and choose later queries using its complete previous interaction. The resulting security notion depends essentially on how the label is accessed. With classical-label access, only the label register is classical. The data, reference, and adversarial memory remain quantum. With coherent-label access, the label is supplied in a quantum register L L L , which may be in superposition itself and even entangled with other registers. A query to the family then applies the controlled unitary
W k : = ∑ x ∈ X λ ∣ x ⟩ ⟨ x ∣ L ⊗ G k ( x ) , (1) W_k := \sum_{x\in X_\lambda} \lvert x\rangle\langle x\rvert_L \otimes G_k(x), \tag*{(1)} W k := x ∈ X λ ∑ ∣ x ⟩ ⟨ x ∣ L ⊗ G k ( x ) , (1)
where each G k ( x ) G_k(x) G k ( x ) acts on the supplied data register. A single coherent call can involve every label while preserving interference between them, making relative global phases and cross-label correlations observable. We provide separate constructions and security proofs for the classical- and coherent-label settings, using different proof techniques and cryptographic assumptions.
PRFUs also provide a natural route from pseudorandom unitaries to more general quantum dynamics. Initializing an ancillary environment, applying a label-indexed unitary, and discarding part of the output produces a labeled family of quantum channels, connecting PRFUs with established random-channel ensembles [23 ] . In a multi-time experiment, an interactive distinguisher may intervene between successive transformations while the process retains inaccessible memory. The resulting behavior is not captured by the endpoint channel or its Choi state, which hides the intermediate intervention slots, but is naturally represented by a quantum comb or quantum process [24 , 25 , 26 , 27 , 28 ] . These extensions allow us to describe pseudorandom quantum processes with both inaccessible environments and internal memory, while preserving the ability to select reproducible processes through public labels. An efficient observer interacting with these processes should be unable to distinguish them from their counterparts built from independent Haar-random unitaries.
Our contributions are fourfold. First, we construct a classical-label PRFU by using a post-quantum pseudorandom function (PRF) F k F_k F k to derive the seed of an inner PRU family { V a } a \{V_a\}_a { V a } a :
G k ( x ) : = V F k ( x ) . (2) G_k(x) := V_{F_k(x)}. \tag*{(2)} G k ( x ) := V F k ( x ) . (2)
Our reduction handles adaptively chosen labels in order of first occurrence, requiring at most q q q hybrid transitions for q q q queries, independently of the label-domain size. The key ingredient is an efficiently implementable Haar proxy, obtained unconditionally from amplified relative-error permutation-function-Clifford (PFC) designs [10 ] , which allows the intermediate hybrids to be simulated efficiently. This establishes classical-label forward security from a post-quantum PRF and an n ( λ ) n(\lambda) n ( λ ) -qubit adaptive forward PRU whenever n ( λ ) = ω ( log λ ) n(\lambda)=\omega(\log\lambda) n ( λ ) = ω ( log λ ) . The argument also extends to strong security, in which the adversary is additionally given oracle access to the inverse unitary, when the inner PRU is strong.
Second, we construct coherent-label PRFUs from the PFC construction, using a quantum-secure pseudorandom function (qPRF), assuming the existence of a tweakable in-place pseudorandom permutation. Our analysis uses indexed path recording [12 , 29 ] to account for interference between query histories involving different labels. This bounds an observer’s advantage in distinguishing the ideal indexed PFC ensemble from independent Haar-random unitaries by 2 q ( q − 1 ) / ( 2 n + 1 ) 2q(q-1)/(2^n+1) 2 q ( q − 1 ) / ( 2 n + 1 ) for query number q < 2 n q<2^n q < 2 n , yielding coherent-label forward security when the PRFUs act on n ( λ ) = ω ( log λ ) n(\lambda)=\omega(\log\lambda) n ( λ ) = ω ( log λ ) qubits.
Third, we use PRFUs to construct pseudorandom quantum combs, which describe sequences of quantum operations connected by an internal memory. Assigning distinct labels to successive operations makes the resulting process computationally indistinguishable from one built from independent Haar-random unitaries, even when an observer adaptively intervenes between operations while the internal memory remains inaccessible. Adding a public process label allows one key to specify an entire family of such combs, with security preserved under interleaved interactions with different members of the family.
Finally, we combine PRFUs with unitary gluing [12 , 30 ] to construct a one-key family of variable-width PRUs, allowing supported polynomially bounded register widths to be chosen after key generation. The construction uses public labels to derive local operations that jointly appear as independent Haar-random unitaries, enabling their composition across different register widths under a single key. This extends the fixed-register functionality of a single-instance PRU without requiring additional secret keys. The same flexibility supports nonce-resolved quantum authentication [31 ] , coherently masked QRAM, and the emulation of random multi-time dynamics, with labels distinguishing authentication contexts, memory addresses, or stages of evolution.
Figure 1 summarizes how one secret key generates a labeled family of pseudorandom unitaries, the constructions for the two access models, and their use in generating pseudorandom quantum processes and enabling cryptographic applications. Following this structure, Section II defines the access models. Sections III and IV give the constructions. Sections V–VII develop the process liftings, applications, and limitations. Complete proofs and further process consequences appear in the appendices.
Figure 1. Overview of PRFU constructions and selected applications. A single key specifies a unitary family that emulates independent Haar unitaries, with repeated labels reusing the same unitary. The two branches give constructions for classical-label access (§ 1 ) and coherent-label access (§ 2 ). Retaining private memory yields pseudorandom combs and function-like comb families (§ 2.1 ); gluing local unitaries yields one-key variable-length PRUs (Sec. VI A); coherent control by memory addresses enables masked QRAM queries (Sec. VI C).
Function-like Haar random ensemble and access models
In a Hilbert space H A \mathcal{H}_A H A , one can define the unique ensemble of random unitaries, namely the Haar random unitaries: one draws a random unitary U ∈ U ( 2 n ) U \in\mathrm{U}(2^n) U ∈ U ( 2 n ) from the n n n -qubit unitary group according to the Haar measure μ H a a r \mu_{\mathrm{Haar}} μ Haar . In this work, we will consider a labeled family of random unitaries such that each input label x x x determines a unitary that looks independently Haar random as defined below.
Definition 1 (Function-like Haar random family). Let X ⊆ { 0 , 1 } d \mathcal{X} \subseteq\{0,1\}^d X ⊆ { 0 , 1 } d be a finite label set and A A A be an n n n -qubit data register. Sample
H = ( H x ) x ∈ X , H x ← i i d μ H a a r ( U ( H A ) ) . (3) H = (H_x)_{x\in\mathcal{X}}, \qquad H_x \xleftarrow{\mathrm{ iid}} \mu_{\mathrm{Haar}}(\mathrm{U}(\mathcal{H}_A)). \tag*{(3)} H = ( H x ) x ∈ X , H x iid μ Haar ( U ( H A )) . (3) The same H x H_x H x is used on every occurrence of x x x , while H x H_x H x and H y H_y H y are independent for x ≠ y x \ne y x = y . We call H H H a function-like Haar random family.
The case ∣ X ∣ = 1 |\mathcal{X}| = 1 ∣ X ∣ = 1 corresponds to the Haar random unitaries. For larger ∣ X ∣ |\mathcal{X}| ∣ X ∣ , the family H H H determines a map x ↦ H x x \mapsto H_x x ↦ H x , whose values are drawn independently from Haar measure. The independence across labels is essential: distinct labels have no correlations and, under exact Haar sampling, coincide only with probability zero. The label set X \mathcal{X} X allows for a reproducible collection of random evolutions indexed by a public value, which will be useful in many scenarios. However, even sampling from a Haar random ensemble could be prohibitively expensive; it is therefore desirable to have an efficient implementation that remains computationally indistinguishable from the function-like Haar random family, which we term as a pseudorandom function-like unitary (PRFU).
We now parameterize these objects by the security parameter λ \lambda λ . Let X λ ⊆ { 0 , 1 } d ( λ ) \mathcal{X}_\lambda\subseteq\{0,1\}^{d(\lambda)} X λ ⊆ { 0 , 1 } d ( λ ) be a finite label set, and let A A A be an n ( λ ) n(\lambda) n ( λ ) -qubit register. A keyed unitary family consists of an efficient probabilistic key generator k ← Gen ( 1 λ ) k \leftarrow\operatorname{Gen}(1^\lambda) k ← Gen ( 1 λ ) , producing a key of polynomial length in λ \lambda λ , and an efficient procedure that, given k k k and x ∈ X λ x \in\mathcal{X}_\lambda x ∈ X λ , implements the unitary G k ( x ) G_k(x) G k ( x ) on A A A . Thus, each key k k k determines a map
G k : X λ ⟶ U ( H A ) , x ↦ G k ( x ) . (4) G_k : \mathcal{X}_\lambda\longrightarrow\mathrm{U}(\mathcal{H}_A), \qquad x \mapsto G_k(x). \tag*{(4)} G k : X λ ⟶ U ( H A ) , x ↦ G k ( x ) . (4)
Its value at a label x x x is a unitary acting on A A A , rather than a classical string.
In the security game, there exists a challenger who samples a bit b ∈ { 0 , 1 } b \in\{0,1\} b ∈ { 0 , 1 } . Depending on the value of b b b , the challenger either samples the function-like Haar random family H H H or samples from a pseudorandom G k G_k G k . The security is established when any nonuniform quantum polynomial-time (QPT) adversary can distinguish these two cases with at most negligible distinguishing advantage.
Depending on the ability of the adversary, different notions of security can be defined. In this work we will assume that the adversary has oracle access to the pseudorandom function-like unitary. The oracle O G k \mathcal{O}_{G_k} O G k consists of two input registers, the first is a label x ∈ X λ x \in\mathcal{X}_\lambda x ∈ X λ and the second is an n ( λ ) n(\lambda) n ( λ ) -qubit quantum register denoted as H A \mathcal{H}_A H A . The adversary may supply an arbitrary state ρ A R \rho_{AR} ρ A R on the data register A A A and its own reference register R R R , with the oracle acting only on data register A A A as
O G k ( x , ρ A R ) = ( G k ( x ) ⊗ I R ) ρ A R ( G k † ( x ) ⊗ I R ) . (5) \mathcal{O}_{G_k}(x,\rho_{AR}) = \left(G_k(x) \otimes I_R\right)\rho_{AR}\left(G_k^\dagger(x) \otimes I_R\right). \tag*{(5)} O G k ( x , ρ A R ) = ( G k ( x ) ⊗ I R ) ρ A R ( G k † ( x ) ⊗ I R ) . (5)
Similarly, the oracle for the true function-like Haar family is
O H ( x , ρ A R ) = ( H x ⊗ I R ) ρ A R ( H x † ⊗ I R ) . (6) \mathcal{O}_{H}(x,\rho_{AR}) = \left(H_x \otimes I_R\right)\rho_{AR}\left(H_x^\dagger\otimes I_R\right). \tag*{(6)} O H ( x , ρ A R ) = ( H x ⊗ I R ) ρ A R ( H x † ⊗ I R ) . (6)
We allow the adversary to have adaptive queries to the PRFU. More specifically, the adversary is allowed to choose the input label x x x based on previous observations, and may even entangle the input state ρ A R \rho_{AR} ρ A R between rounds. In the following, we establish the security notion in this context.
Definition 2 (Classical-label adaptive PRFU). An efficient keyed family { G k ( x ) } k \{G_k(x)\}_k { G k ( x ) } k is a classical-label PRFU if, for every non-uniform QPT adversary A \mathcal{A} A making polynomially many oracle calls,
∣ Pr k [ A O G k = 1 ] − Pr H [ A O H = 1 ] ∣ ≤ negl ( λ ) . (7) \left|\Pr_k[\mathcal{A}^{\mathcal{O}_{G_k}} = 1] - \Pr_H[\mathcal{A}^{\mathcal{O}_H} = 1]\right| \leq\operatorname{negl}(\lambda). \tag*{(7)} k Pr [ A O G k = 1 ] − H Pr [ A O H = 1 ] ≤ negl ( λ ) . (7) Here for PRFU the average is over k ← Gen ( 1 λ ) k \leftarrow\operatorname{Gen}(1^\lambda) k ← Gen ( 1 λ ) while the truly random H = ( H x ) x ∈ X λ H = (H_x)_{x\in\mathcal{X}_\lambda} H = ( H x ) x ∈ X λ is sampled as in Definition 1 with X = X λ \mathcal{X} = \mathcal{X}_\lambda X = X λ . We call the family strong if both experiments also provide inverse queries.
Classical-label access does not mean that the adversary is classical. Only the label wire is classical. The data and reference registers remain quantum, and the adversary may retain arbitrary quantum coherence across all other registers and across successive rounds.
We will further consider a security model where the adversary can also input a quantum superposition on the label register. In this access model, each label x x x coherently selects the unitary G k ( x ) G_k(x) G k ( x ) in the keyed experiment, or the corresponding unitary H x H_x H x from the sampled family H = ( H x ) x ∈ X λ \mathbf{H} = (H_x)_{x\in\mathcal{X}_\lambda} H = ( H x ) x ∈ X λ in the ideal experiment. The resulting controlled unitaries are
W H a a r = ∑ x ∈ X λ ∣ x ⟩ ⟨ x ∣ L ⊗ H x , W_{\mathrm{Haar}} = \sum_{x\in\mathcal{X}_\lambda} |x\rangle\langle x|_L \otimes H_x, W Haar = x ∈ X λ ∑ ∣ x ⟩ ⟨ x ∣ L ⊗ H x ,
W k = ∑ x ∈ X λ ∣ x ⟩ ⟨ x ∣ L ⊗ G k ( x ) . (8) W_k = \sum_{x\in\mathcal{X}_\lambda} |x\rangle\langle x|_L \otimes G_k(x). \tag*{(8)} W k = x ∈ X λ ∑ ∣ x ⟩ ⟨ x ∣ L ⊗ G k ( x ) . (8)
The coherent-access PRFU oracle can then be defined as follows:
O ∣ G k ⟩ ( ρ L A R ) = ( W k ⊗ I R ) ρ L A R ( W k † ⊗ I R ) . (9) \mathcal{O}_{\lvert G_k\rangle}(\rho_{LAR})=(W_k\otimes I_R)\rho_{LAR}(W_k^\dagger\otimes I_R). \tag*{(9)} O ∣ G k ⟩ ( ρ L A R ) = ( W k ⊗ I R ) ρ L A R ( W k † ⊗ I R ) . (9)
Similarly, the coherent-access truly function-like Haar random oracle:
O ∣ H ⟩ ( ρ L A R ) = ( W H a a r ⊗ I R ) ρ L A R ( W H a a r † ⊗ I R ) . (10) \mathcal{O}_{\lvert H\rangle}(\rho_{LAR})=(W_{\mathrm{Haar}}\otimes I_R)\rho_{LAR}(W_{\mathrm{Haar}}^\dagger\otimes I_R). \tag*{(10)} O ∣ H ⟩ ( ρ L A R ) = ( W Haar ⊗ I R ) ρ L A R ( W Haar † ⊗ I R ) . (10)
In the above definitions, L L L is the quantum register for input labels, with Hilbert space H L = span { ∣ x ⟩ : x ∈ X λ } \mathcal{H}_L=\operatorname{span}\{\lvert x\rangle:x\in\mathcal{X}_\lambda\} H L = span {∣ x ⟩ : x ∈ X λ } , allowing the adversary to query in a superposition of labels. For example, one query of O ∣ G k ⟩ \mathcal{O}_{\lvert G_k\rangle} O ∣ G k ⟩ on
1 ∣ X λ ∣ ∑ x ∈ X λ ∣ x ⟩ L ∣ 0 n ⟩ A (11) \frac{1}{\sqrt{\lvert\mathcal{X}_\lambda\rvert}}\sum_{x\in\mathcal{X}_\lambda}\lvert x\rangle_L\lvert0^n\rangle_A \tag*{(11)} ∣ X λ ∣ 1 x ∈ X λ ∑ ∣ x ⟩ L ∣ 0 n ⟩ A (11)
simultaneously places every G k ( x ) ∣ 0 n ⟩ G_k(x)\lvert0^n\rangle G k ( x ) ∣ 0 n ⟩ in superposition. Under the coherent-access model, we can formulate the notion of coherent-label secure PRFU.
Definition 3 (Coherent-label adaptive PRFU). An efficient keyed family { G k ( x ) } k \{G_k(x)\}_k { G k ( x ) } k is a coherent-label PRFU if, for every non-uniform QPT adversary A \mathcal{A} A making polynomially many oracle calls,
∣ Pr [ A O ∣ G k ⟩ = 1 ] − Pr [ A O ∣ H ⟩ = 1 ] ∣ ≤ negl ( λ ) . (12) \left|\Pr\left[\mathcal{A}^{\mathcal{O}_{\lvert G_k\rangle}}=1\right]-\Pr\left[\mathcal{A}^{\mathcal{O}_{\lvert H\rangle}}=1\right]\right|\leq\operatorname{negl}(\lambda). \tag*{(12)} Pr [ A O ∣ G k ⟩ = 1 ] − Pr [ A O ∣ H ⟩ = 1 ] ≤ negl ( λ ) . (12)
Classical-label access can be viewed as coherent-label access with complete dephasing of the label register in the computational basis before each query. This removes coherence between distinct labels while preserving the conditional quantum states of the data and reference registers. Since this simulation applies to both the keyed family and the ideal Haar family throughout an adaptive interaction, security under coherent-label access directly implies security under classical-label access.
The strong coherent-label variant additionally exposes W k † W_k^\dagger W k † in the real experiment and W H a a r † W_{\mathrm{Haar}}^\dagger W Haar † in the ideal experiment, with classical direction choices.
Proposition 1 (Access hierarchy). Coherent-label forward security implies classical-label forward security, and the analogous implication holds for strong access. Strong security implies forward security.
The first implication follows from the dephasing simulation above, while the second follows by restricting the adversary to forward queries. However, the inverse statements are not necessarily true. Security under a weaker access model does not by itself establish security under a stronger one. Our constructions and reductions therefore specify explicitly whether labels may be queried coherently and whether inverse queries are available.
Construction and security with classical labels
We first consider classical-label access. In this setting, a query can introduce at most one new label, which allows us to organize the security proof by the order in which distinct labels first appear. We give a generic construction from a post-quantum PRF and a PRU, and then instantiate the inner PRU using the PFC construction.
Generic construction from a PRF and a PRU
We begin with a generic construction in which a post-quantum PRF derives, from each public label, the seed of an underlying PRU. Let F k : { 0 , 1 } d ( λ ) → { 0 , 1 } s ( λ ) F_k:\{0,1\}^{d(\lambda)}\to\{0,1\}^{s(\lambda)} F k : { 0 , 1 } d ( λ ) → { 0 , 1 } s ( λ ) be a post-quantum secure pseudorandom function, which is secure against quantum distinguishers making classical adaptive queries to its function oracle. Let { V a } a ∈ { 0 , 1 } s ( λ ) \{V_a\}_{a\in\{0,1\}^{s(\lambda)}} { V a } a ∈ { 0 , 1 } s ( λ ) be an efficiently computable adaptive forward PRU family on A A A , with a a a sampled uniformly. We require the map a ↦ V a a \mapsto V_a a ↦ V a to be deterministic. Any randomness used to generate the circuit is included in a a a . The notation V a V_a V a is reserved for this inner PRU, whereas G k ( x ) G_k(x) G k ( x ) denotes the function-like family constructed below.
For k ← Gen F ( 1 λ ) k \leftarrow\operatorname{Gen}_{F}(1^\lambda) k ← Gen F ( 1 λ ) and x ∈ X λ ⊆ { 0 , 1 } d ( λ ) x \in\mathcal{X}_\lambda\subseteq\{0,1\}^{d(\lambda)} x ∈ X λ ⊆ { 0 , 1 } d ( λ ) , define
G k ( x ) : = V F k ( x ) . (13) G_k(x) := V_{F_k(x)}. \tag*{(13)} G k ( x ) := V F k ( x ) . (13)
The adversary receives only the oracle O G k \mathcal{O}_{G_k} O G k from Eq. (5) . Neither the PRF value F k ( x ) F_k(x) F k ( x ) nor a circuit description for the selected inner unitary is revealed. For the construction in Eq. (13) , this oracle is
O G k ( x , ρ A R ) = ( V F k ( x ) ⊗ I R ) ρ A R ( V F k ( x ) † ⊗ I R ) . (14) \mathcal{O}_{G_k}(x,\rho_{AR}) = \left(V_{F_k(x)} \otimes I_R\right)\rho_{AR}\left(V_{F_k(x)}^\dagger\otimes I_R\right). \tag*{(14)} O G k ( x , ρ A R ) = ( V F k ( x ) ⊗ I R ) ρ A R ( V F k ( x ) † ⊗ I R ) . (14)
Thus every repeated occurrence of a classical label invokes the same persistent inner unitary, while the PRF derives the inner seed associated with each label.
For a classical-label adversary A \mathcal{A} A , define the forward distinguishing advantage of the construction by
Adv G c l , → ( A ; λ ) : = ∣ Pr k [ A O G k ( 1 λ ) = 1 ] − Pr H [ A O H ( 1 λ ) = 1 ] ∣ . (15) \operatorname{Adv}^{\mathrm{cl},\rightarrow}_{G}(\mathcal{A};\lambda) := \left|\Pr_k\left[\mathcal{A}^{\mathcal{O}_{G_k}}(1^\lambda)=1\right] - \Pr_H\left[\mathcal{A}^{\mathcal{O}_{H}}(1^\lambda)=1\right]\right|. \tag*{(15)} Adv G cl , → ( A ; λ ) := k Pr [ A O G k ( 1 λ ) = 1 ] − H Pr [ A O H ( 1 λ ) = 1 ] . (15)
We use the superscript → \rightarrow → to denote forward-only oracle access. Here and below, the key k k k is sampled according to key generator Gen F ( 1 λ ) \operatorname{Gen}_{F}(1^\lambda) Gen F ( 1 λ ) and H H H sampled from the function-like Haar family as in Definition 1. For a classical-query PRF distinguisher B F \mathcal{B}_F B F , define the distinguishing advantage to be
Adv F p r f ( B F ; λ ) : = ∣ Pr k [ B F k ( 1 λ ) = 1 ] − Pr R [ B R ( 1 λ ) = 1 ] ∣ , (16) \operatorname{Adv}^{\mathrm{prf}}_{F}(\mathcal{B}_F;\lambda) := \left|\Pr_k\left[\mathcal{B}^{F_k}(1^\lambda)=1\right] - \Pr_R\left[\mathcal{B}^{R}(1^\lambda)=1\right]\right|, \tag*{(16)} Adv F prf ( B F ; λ ) := k Pr [ B F k ( 1 λ ) = 1 ] − R Pr [ B R ( 1 λ ) = 1 ] , (16)
where R R R is uniform over Func ( { 0 , 1 } d ( λ ) , { 0 , 1 } s ( λ ) ) \operatorname{Func}(\{0,1\}^{d(\lambda)},\{0,1\}^{s(\lambda)}) Func ({ 0 , 1 } d ( λ ) , { 0 , 1 } s ( λ ) ) . For the inner family, write O V a ( ρ A R ) = ( V a ⊗ I R ) ρ A R ( V a † ⊗ I R ) \mathcal{O}_{V_a}(\rho_{AR})=(V_a\otimes I_R)\rho_{AR}(V_a^\dagger\otimes I_R) O V a ( ρ A R ) = ( V a ⊗ I R ) ρ A R ( V a † ⊗ I R ) and set the forward distinguishing advantage of PRU for distinguisher B \mathcal{B} B as
Adv V p r u , → ( B ; λ ) : = ∣ Pr a [ B O V a ( 1 λ ) = 1 ] − Pr H [ B O H ( 1 λ ) = 1 ] ∣ . (17) \operatorname{Adv}^{\mathrm{pru},\rightarrow}_{V}(\mathcal{B};\lambda) := \left|\Pr_a\left[\mathcal{B}^{\mathcal{O}_{V_a}}(1^\lambda)=1\right] - \Pr_H\left[\mathcal{B}^{\mathcal{O}_{H}}(1^\lambda)=1\right]\right|. \tag*{(17)} Adv V pru , → ( B ; λ ) := a Pr [ B O V a ( 1 λ ) = 1 ] − H Pr [ B O H ( 1 λ ) = 1 ] . (17)
where a ← { 0 , 1 } s ( λ ) a \leftarrow\{0,1\}^{s(\lambda)} a ← { 0 , 1 } s ( λ ) and H ← μ H a a r ( U ( H A ) ) H \leftarrow\mu_{\mathrm{Haar}}(\mathcal{U}(\mathcal{H}_A)) H ← μ Haar ( U ( H A )) . The superscript ± \pm ± analogously denotes the advantage when forward and inverse queries are both allowed, with a classical direction choice and one total query budget.
In our reduction, we will need an efficiently implementable ensemble that is statistically close to the Haar random ensemble up to bounded query number. The following definition formulates this idea as a Haar proxy.
Definition 4 (Finite-query Haar proxy). For a unitary U U U on A A A , let O U ( ρ A R ) = ( U ⊗ I R ) ρ A R ( U † ⊗ I R ) \mathcal{O}_U(\rho_{AR})=(U\otimes I_R)\rho_{AR}(U^\dagger\otimes I_R) O U ( ρ A R ) = ( U ⊗ I R ) ρ A R ( U † ⊗ I R ) . An efficiently samplable circuit ensemble D q , η D_{q,\eta} D q , η is a forward ( q , η ) (q,\eta) ( q , η ) Haar proxy if, for every possibly unbounded oracle distinguisher A \mathcal{A} A making at most q q q forward calls to one persistent challenge oracle, the experiments with D ← D q , η D\leftarrow D_{q,\eta} D ← D q , η and H ← μ H a a r ( U ( H A ) ) H\leftarrow\mu_{\mathrm{Haar}}(\mathcal{U}(\mathcal{H}_A)) H ← μ Haar ( U ( H A )) , respectively, satisfy
∣ Pr D [ A O D = 1 ] − Pr H [ A O H = 1 ] ∣ ≤ η . (18) \left|\Pr_D\left[\mathcal{A}^{\mathcal{O}_D}=1\right]-\Pr_H\left[\mathcal{A}^{\mathcal{O}_H}=1\right]\right|\leq\eta. \tag*{(18)} D Pr [ A O D = 1 ] − H Pr [ A O H = 1 ] ≤ η . (18)
Between oracle calls, A \mathcal{A} A may apply arbitrary quantum operations to the oracle register, an arbitrary reference system, and its private memory. It may also interact with side processes sampled independently of the challenge, although its subsequent operations may correlate all these systems.
The probability for an efficient adversary distinguishing between PRFU and the function-like Haar ensemble can be bounded by the following theorem.
Theorem 1 (Classical-label lifting). For every nonuniform QPT adversary A \mathcal{A} A making at most q = q ( λ ) q=q(\lambda) q = q ( λ ) classical-label forward calls to O G k \mathcal{O}_{G_k} O G k , let D q , η D_{q,\eta} D q , η be a forward ( q , η ) (q,\eta) ( q , η ) Haar proxy. There exist a QPT classical-query PRF distinguisher B F \mathcal{B}_F B F and QPT single-instance PRU distinguishers B 1 , … , B q \mathcal{B}_1,\ldots,\mathcal{B}_q B 1 , … , B q such that
Adv G c l , → ( A ; λ ) ≤ Adv F p r f ( B F ; λ ) + ∑ j = 1 q Adv V p r u , → ( B j ; λ ) + 2 q η . (19) \operatorname{Adv}^{\mathrm{cl},\rightarrow}_{G}(\mathcal{A};\lambda)\leq\operatorname{Adv}^{\mathrm{prf}}_{F}(\mathcal{B}_F;\lambda)+\sum_{j=1}^{q}\operatorname{Adv}^{\mathrm{pru},\rightarrow}_{V}(\mathcal{B}_j;\lambda)+2q\eta. \tag*{(19)} Adv G cl , → ( A ; λ ) ≤ Adv F prf ( B F ; λ ) + j = 1 ∑ q Adv V pru , → ( B j ; λ ) + 2 q η . (19) The distinguisher B F \mathcal{B}_F B F makes at most q q q classical function queries, and each B j \mathcal{B}_j B j makes at most q q q forward calls to its single-unitary challenge. Consequently, assuming the post-quantum security of F F F and the adaptive forward security of V V V , if η ( λ ) \eta(\lambda) η ( λ ) is negligible, then Adv G c l , → ( A ; λ ) \operatorname{Adv}^{\mathrm{cl},\rightarrow}_{G}(\mathcal{A};\lambda) Adv G cl , → ( A ; λ ) is negligible for every such adversary A \mathcal{A} A .
Equivalently, when the proxy error η \eta η is negligible, any QPT adversary that distinguishes the constructed PRFU with non-negligible advantage can be used to construct a QPT distinguisher that breaks the security of either the underlying PRF or PRU.
Before discussing the existence of such Haar proxy, we first explain the hybrid underlying Theorem 1. The first step is to replace the outer PRF by a uniformly random function. Instead of genuinely sampling from a uniformly random function, the proof maintains a lazy table indexed by the distinct labels in their order of being queried. Since an efficient adversary can make at most q = poly ( λ ) q=\operatorname{poly}(\lambda) q = poly ( λ ) queries, this table can be efficiently implemented.
Then we build intermediate hybrids by replacing the PRU by the Haar proxy for labels appearing in the lazy table one-by-one. Since all Haar proxies are efficiently implementable, any adversary A \mathcal{A} A that distinguishes between O G k \mathcal{O}_{G_k} O G k and O H \mathcal{O}_{H} O H can be used to build distinguishers B j \mathcal{B}_j B j for PRU and Haar random unitary. By the security of PRU, each hybrid is negligibly close to each other. After substituting Haar proxy for all PRU, the last hybrid is to simply replace Haar proxy by the true Haar random
ensemble. The statistical distance in Definition 4 then implies the closeness of this last hybrid.
The proxy is therefore a resource of the reduction, not a component of the family G k G_k G k . Its circuit, randomness, query bound, and accuracy parameter do not appear in the construction in Eq. (13) , but appear only in the final security bound in Eq. (19) . For a fixed q q q , its information-theoretic guarantee is stronger than the computational guarantee of a PRU, but the proxy is allowed to depend on q q q and need not remain Haar-like beyond those q q q calls. This is analogous to the distinction between q q q -wise independent functions and pseudorandom functions. The query-bounded relaxation permits unconditional efficient constructions from relative-error unitary designs and hence introduces no additional cryptographic hardness assumption.
Proposition 2 (Efficient forward Haar proxies). Let n , q ≥ 1 n,q \ge1 n , q ≥ 1 satisfy C 0 q ≤ 2 n / 4 C_0q \le2^{n/4} C 0 q ≤ 2 n /4 where C 0 ≥ 1 C_0 \ge1 C 0 ≥ 1 is a universal constant. And let 0 < η < 1 0 < \eta< 1 0 < η < 1 be the proxy error. Then there is an efficiently samplable and implementable ensemble of n n n -qubit circuits that is a forward ( q , η ) (q,\eta) ( q , η ) Haar proxy. Its sampling time and circuit size are in poly ( n , q , log ( 1 / η ) ) \operatorname{poly}(n,q,\log(1/\eta)) poly ( n , q , log ( 1/ η )) .
Proposition 2 follows from the amplified relative-error PFC designs of Ref. [10 ] . More precisely, the proxy is an m m m -fold product of independent, efficiently derandomized PFC layers, with m = O ( q + log ( 1 / η ) / n ) m = O(q + \log(1/\eta)/n) m = O ( q + log ( 1/ η ) / n ) . Appendix A.5 gives the ensemble explicitly.
After establishing the unconditional Haar proxy, the security of classical-label adaptive PRFU follows from standard cryptography assumptions.
Corollary 1 (Classical-label adaptive PRFU). Suppose that F F F is a post-quantum secure PRF, V V V is an adaptive forward PRU, and n ( λ ) = ω ( log λ ) n(\lambda) = \omega(\log\lambda) n ( λ ) = ω ( log λ ) . Then the family G G G defined in Eq. (13) is a classical-label adaptive forward PRFU according to Definition 2.
For each adversary, the proxy in the proof of Corollary 1 can be selected after fixing the upper bound for the number of queries of the adversary. Proposition 2 may therefore be instantiated with this query bound and, for example, error η = 2 − λ \eta= 2^{-\lambda} η = 2 − λ . The PRFU G k G_k G k remains fixed and is independent of both choices.
Corollary 2 (Conditional strong extension). Suppose that F F F is a post-quantum secure PRF, V V V is a strong adaptive PRU, and n ( λ ) = ω ( log λ ) n(\lambda) = \omega(\log\lambda) n ( λ ) = ω ( log λ ) . Then the family G G G defined in Eq. (13) is a classical-label adaptive strong PRFU.
To extend the argument to strong security, we require a bidirectional Haar proxy that remains statistically indistinguishable from Haar under adaptive queries to both the unitary and its inverse. Such proxies also follow from the amplified-design construction of [10 ] : sufficiently small diamond error implies statistical indistinguishability under adaptive forward and inverse queries, with the same asymptotic efficiency. Appendix A.5b gives the conversion and completes the proof of Corollary 2.
Instantiation from the PFC ensemble
We now instantiate the inner PRU in Eq. (13) by the PFC construction [12 ] . The outer construction and its first-occurrence proof remain unchanged. Let N = 2 n ( λ ) N = 2^{n(\lambda)} N = 2 n ( λ ) . For a permutation π : { 0 , 1 } n ( λ ) → { 0 , 1 } n ( λ ) \pi: \{0,1\}^{n(\lambda)} \to\{0,1\}^{n(\lambda)} π : { 0 , 1 } n ( λ ) → { 0 , 1 } n ( λ ) and a Boolean function h : { 0 , 1 } n ( λ ) → { 0 , 1 } h : \{0,1\}^{n(\lambda)} \to\{0,1\} h : { 0 , 1 } n ( λ ) → { 0 , 1 } , define the following unitary operators, with both sums ranging over z ∈ { 0 , 1 } n ( λ ) z \in\{0,1\}^{n(\lambda)} z ∈ { 0 , 1 } n ( λ ) :
P π : = ∑ z ∣ π ( z ) ⟩ ⟨ z ∣ , Φ h : = ∑ z ( − 1 ) h ( z ) ∣ z ⟩ ⟨ z ∣ . (20) P_\pi:= \sum_z \lvert\pi(z)\rangle\langle z\rvert,
\qquad
\Phi_h := \sum_z (-1)^{h(z)}\lvert z\rangle\langle z\rvert. \tag*{(20)} P π := z ∑ ∣ π ( z )⟩ ⟨ z ∣ , Φ h := z ∑ ( − 1 ) h ( z ) ∣ z ⟩ ⟨ z ∣ . (20)
The ideal permutation–function–Clifford (PFC) ensemble is P π Φ h C P_\pi\Phi_h C P π Φ h C , where π \pi π and h h h are sampled uniformly from all permutations and Boolean functions, respectively, with the domains specified above and C C C is an independent unitary 2-design, for example a uniformly random Clifford [10 ] .
For the efficient version, we replace the random permutation and Boolean function by efficiently computable pseudorandom families. Let { τ α } \{\tau_\alpha\} { τ α } be a strong quantum-secure pseudorandom permutation family with key length s P ( λ ) s_P(\lambda) s P ( λ ) , and let { h α Φ } \{h_{\alpha_\Phi}\} { h α Φ } be a quantum-secure pseudorandom function family with key length s Φ ( λ ) s_\Phi(\lambda) s Φ ( λ ) . Let α C \alpha_C α C be a string of s C ( λ ) s_C(\lambda) s C ( λ ) random bits used by an efficient sampler to generate a unitary C α C C_{\alpha_C} C α C from an exact unitary 2-design. These three lengths are polynomially bounded in λ \lambda λ . We combine the two keys and the sampler’s random bits into a single seed α = ( α P , α Φ , α C ) \alpha= (\alpha_P,\alpha_\Phi,\alpha_C) α = ( α P , α Φ , α C ) of total length s ( λ ) = s P ( λ ) + s Φ ( λ ) + s C ( λ ) s(\lambda) = s_P(\lambda) + s_\Phi(\lambda) + s_C(\lambda) s ( λ ) = s P ( λ ) + s Φ ( λ ) + s C ( λ ) , and define
V α P F C : = P π α P Φ h α Φ C α C . (21) V_{\alpha}^{\mathrm{PFC}} := P_{\pi_{\alpha_P}}\Phi_{h_{\alpha_\Phi}}C_{\alpha_C}. \tag*{(21)} V α PFC := P π α P Φ h α Φ C α C . (21)
The permutation and Boolean-function primitives are secure against quantum superposition queries because the data register encounters them coherently. This is stronger than the outer PRF F k F_k F k , which is only required to be post-quantum secure.
For t ≤ N t \le N t ≤ N , the distinguishing advantage is at most 4 t ( t − 1 ) / ( N + 1 ) 4t(t-1)/(N+1) 4 t ( t − 1 ) / ( N + 1 ) between the ideal PFC ensemble and Haar measure [12 ] . Replacing its random permutation and function by the preceding quantum-secure families therefore makes Eq. (21) an adaptive forward PRU whenever n ( λ ) = ω ( log λ ) n(\lambda) = \omega(\log\lambda) n ( λ ) = ω ( log λ ) . Choose the outer PRF F k : { 0 , 1 } d ( λ ) → { 0 , 1 } s ( λ ) F_k : \{0,1\}^{d(\lambda)} \to\{0,1\}^{s(\lambda)} F k : { 0 , 1 } d ( λ ) → { 0 , 1 } s ( λ ) , and split its output as
F k ( x ) = ( F k ( P ) ( x ) , F k ( F ) ( x ) , F k ( C ) ( x ) ) , (22) F_k(x) = \left(F_k^{(\mathrm{P})}(x),F_k^{(\mathrm{F})}(x),F_k^{(\mathrm{C})}(x)\right), \tag*{(22)} F k ( x ) = ( F k ( P ) ( x ) , F k ( F ) ( x ) , F k ( C ) ( x ) ) , (22)
where the three components have lengths s P ( λ ) s_P(\lambda) s P ( λ ) , s Φ ( λ ) s_\Phi(\lambda) s Φ ( λ ) , and s C ( λ ) s_C(\lambda) s C ( λ ) , respectively. Then the resulting classical-label family is explicitly
G k P F C ( x ) : = P π F k ( P ) ( x ) Φ h F k ( F ) ( x ) C F k ( C ) ( x ) . (23) G_k^{\mathrm{PFC}}(x) := P_{\pi_{F_k^{(\mathrm{P})}(x)}}\Phi_{h_{F_k^{(\mathrm{F})}(x)}}C_{F_k^{(\mathrm{C})}(x)}. \tag*{(23)} G k PFC ( x ) := P π F k ( P ) ( x ) Φ h F k ( F ) ( x ) C F k ( C ) ( x ) . (23)
Corollary 3 (Classical-label PFC construction). Suppose the outer F F F is a post-quantum secure PRF with classical oracle access, the permutation and Boolean-function
families satisfy the quantum security assumptions above, and efficient forward Haar proxies satisfy the hypothesis of Corollary 1. Let ϵ C \epsilon_C ϵ C be the total-variation distance between the implemented 2-design sampler and its intended exact distribution, and assume q ϵ C = negl ( λ ) q\epsilon_C = \operatorname{negl}(\lambda) q ϵ C = negl ( λ ) for every polynomial q q q . If n ( λ ) = ω ( log λ ) n(\lambda) = \omega(\log\lambda) n ( λ ) = ω ( log λ ) , then the family in Eq. (23) is a classical-label adaptive forward PRFU. In particular, the three cryptographic primitives are known from quantum-secure one-way functions [32 , 33 ] .
Appendix A7 gives the resulting quantitative bound. Any negligible statistical bias caused by representing the 2-design sampler with a fixed-length random seed is absorbed into the inner-PRU advantage.
Construction and security with coherent labels
The first-occurrence proof of Theorem 1 uses the fact that a q q q -query adversary can present at most q q q distinct classical labels. This premise disappears under Eq. (9) : one query may have support on every x ∈ X λ x \in\mathcal{X}_{\lambda} x ∈ X λ , and the amplitudes belonging to different labels remain available for interference. Consequently there is no online ordering of a polynomial number of “new labels” on which to run the classical hybrid.
To construct a PRFU supporting coherent label access, we build on the PFC ensemble introduced in the preceding subsection. We use the indexed path-recording technique [29 ] , allowing us to analyze queries in which different labels occur in coherent superposition. This indexed path-recording argument establishes that the ideal indexed PFC ensemble is statistically indistinguishable from a family of independent Haar-random unitaries under adaptive coherent-label queries. We then use computational hybrids to establish security of the efficient construction, assuming a quantum-secure pseudorandom function and a tweakable in-place pseudorandom permutation secure under coherent queries to both the label and data registers.
Quantum-secure primitives and the construction
Unlike the classical-label construction, which uses an outer PRF to generate the inner keys, our coherent-label construction incorporates the label directly into the phase and permutation primitives to form the indexed PFC ensemble. The secret keys are sampled once and fixed throughout the interaction, while queries may involve superpositions of both labels and data.
We first introduce the ideal indexed PFC ensemble. Recall that X λ ⊆ { 0 , 1 } d ( λ ) \mathcal{X}_{\lambda} \subseteq\{0,1\}^{d(\lambda)} X λ ⊆ { 0 , 1 } d ( λ ) is the label domain, and let Z λ : = { 0 , 1 } n ( λ ) \mathcal{Z}_{\lambda} := \{0,1\}^{n(\lambda)} Z λ := { 0 , 1 } n ( λ ) be the computational-basis domain of the data register, with N : = ∣ Z λ ∣ = 2 n ( λ ) N := \lvert\mathcal{Z}_{\lambda}\rvert= 2^{n(\lambda)} N := ∣ Z λ ∣ = 2 n ( λ ) . Independently sample a uniformly random Boolean function f : X λ × Z λ → { 0 , 1 } f : \mathcal{X}_{\lambda} \times\mathcal{Z}_{\lambda} \to\{0,1\} f : X λ × Z λ → { 0 , 1 } , a family π = ( π x ) x ∈ X λ \pi= (\pi_x)_{x \in\mathcal{X}_{\lambda}} π = ( π x ) x ∈ X λ of independent uniformly random permutations of Z λ \mathcal{Z}_{\lambda} Z λ , and a unitary C C C from an efficiently samplable exact unitary 2-design with efficient circuit implementations. All three choices remain fixed throughout the interaction. Writing f x ( z ) : = f ( x , z ) f_x(z) := f(x,z) f x ( z ) := f ( x , z ) , define the joint label–data operators as
Φ ^ f ∣ x , z ⟩ = ( − 1 ) f ( x , z ) ∣ x , z ⟩ , \widehat{\Phi}_f \lvert x,z\rangle= (-1)^{f(x,z)}\lvert x,z\rangle, Φ f ∣ x , z ⟩ = ( − 1 ) f ( x , z ) ∣ x , z ⟩ ,
P ^ π ∣ x , z ⟩ = ∣ x , π x ( z ) ⟩ . (24) \widehat{P}_{\pi}\lvert x,z\rangle= \lvert x,\pi_x(z)\rangle. \tag*{(24)} P π ∣ x , z ⟩ = ∣ x , π x ( z )⟩ . (24)
We use hats for operators on the joint label and data registers. The data-register operators P π x P_{\pi_x} P π x and Φ f x \Phi_{f_x} Φ f x retain the notation of Eq. (20) . The ideal indexed PFC ensemble consists of the unitaries
W P F C : = P ^ π Φ ^ f ( I L ⊗ C ) = ∑ x ∈ X λ ∣ x ⟩ ⟨ x ∣ ⊗ P π x Φ f x C . (25) W_{\mathrm{PFC}} := \widehat{P}_{\pi}\widehat{\Phi}_f(I_L \otimes C)
= \sum_{x \in\mathcal{X}_{\lambda}} \lvert x\rangle\langle x\rvert\otimes P_{\pi_x}\Phi_{f_x}C. \tag*{(25)} W PFC := P π Φ f ( I L ⊗ C ) = x ∈ X λ ∑ ∣ x ⟩ ⟨ x ∣ ⊗ P π x Φ f x C . (25)
For each fixed label x x x , the data-register unitary P π x Φ f x C P_{\pi_x}\Phi_{f_x}C P π x Φ f x C has the usual random PFC distribution. The phase functions f x f_x f x and permutations π x \pi_x π x are independent across labels, whereas a single C C C is shared by all labels. Repeated queries at a label reuse the same unitary.
To obtain an efficient counterpart, we replace the random phase function and permutation family by keyed pseudorandom primitives. For the phase layer, let { g k Φ } k Φ \{g_{k_\Phi}\}_{k_\Phi} { g k Φ } k Φ be a Boolean qPRF family with g k Φ : X λ × Z λ → { 0 , 1 } g_{k_\Phi} : \mathcal{X}_{\lambda} \times\mathcal{Z}_{\lambda} \to\{0,1\} g k Φ : X λ × Z λ → { 0 , 1 } and secret key k Φ k_\Phi k Φ . Such a family is obtained by restricting a standard Boolean qPRF on d ( λ ) + n ( λ ) d(\lambda) + n(\lambda) d ( λ ) + n ( λ ) input bits to the concatenated encodings of pairs in X λ × Z λ \mathcal{X}_{\lambda} \times\mathcal{Z}_{\lambda} X λ × Z λ . Write g k Φ , x ( z ) : = g k Φ ( x , z ) g_{k_\Phi,x}(z) := g_{k_\Phi}(x,z) g k Φ , x ( z ) := g k Φ ( x , z ) . The corresponding phase unitary acts as
Φ ^ g k Φ ∣ x , z ⟩ = ( − 1 ) g k Φ , x ( z ) ∣ x , z ⟩ . (26) \widehat{\Phi}_{g_{k_\Phi}}\lvert x,z\rangle= (-1)^{g_{k_\Phi,x}(z)}\lvert x,z\rangle. \tag*{(26)} Φ g k Φ ∣ x , z ⟩ = ( − 1 ) g k Φ , x ( z ) ∣ x , z ⟩ . (26)
Define the distinguishing advantage Adv B Φ q p r f ( B Φ ; λ ) \operatorname{Adv}^{\mathrm{qprf}}_{\mathcal{B}_\Phi}(\mathcal{B}_\Phi;\lambda) Adv B Φ qprf ( B Φ ; λ ) by the probability difference similar to Eq. (16) , with challenge oracles replaced by the phase unitary Φ ^ g k Φ \widehat{\Phi}_{g_{k_\Phi}} Φ g k Φ and Φ ^ f \widehat{\Phi}_f Φ f . The distinguisher B Φ \mathcal{B}_\Phi B Φ is allowed to make adaptive quantum queries, including superpositions over both labels and data. Standard qPRF security ensures that every nonuniform QPT adversary has negligible advantage in distinguishing it from the phase unitary for a uniformly random Boolean function on the same domain.
For the permutation layer, let { Π k P } k P \{\Pi_{k_P}\}_{k_P} { Π k P } k P be a keyed family with Π k P : X λ × Z λ → Z λ \Pi_{k_P} : \mathcal{X}_{\lambda} \times\mathcal{Z}_{\lambda} \to\mathcal{Z}_{\lambda} Π k P : X λ × Z λ → Z λ , such that for every label x x x , Π k P , x : = Π k P ( x , ⋅ ) \Pi_{k_P,x} := \Pi_{k_P}(x,\cdot) Π k P , x := Π k P ( x , ⋅ ) is a permutation on Z λ \mathcal{Z}_{\lambda} Z λ . Its in-place unitary is
P ^ Π k P ∣ x , z ⟩ = ∣ x , Π k P , x ( z ) ⟩ . (27) \widehat{P}_{\Pi_{k_P}}\lvert x,z\rangle= \lvert x,\Pi_{k_P,x}(z)\rangle. \tag*{(27)} P Π k P ∣ x , z ⟩ = ∣ x , Π k P , x ( z )⟩ . (27)
Assume that this unitary can be implemented efficiently given k P k_P k P , with any auxiliary workspace returned to its initial state. For a distinguisher B P \mathcal{B}_P B P with adaptive forward-only quantum access, define its distinguishing advantage as
Adv Π i p - q T P R P ( B P ; λ ) : = ∣ Pr k P [ B P Π ^ k P ( 1 λ ) = 1 ] − Pr π [ B P π ^ ( 1 λ ) = 1 ] ∣ . (28) \operatorname{Adv}_{\Pi}^{\mathrm{ip\text{-}qTPRP}}(\mathcal{B}_{P};\lambda):=\left|\Pr_{k_{P}}\left[\mathcal{B}_{P}^{\widehat{\Pi}_{k_{P}}}(1^\lambda)=1\right]-\Pr_{\pi}\left[\mathcal{B}_{P}^{\widehat{\pi}}(1^\lambda)=1\right]\right|. \tag*{(28)} Adv Π ip - qTPRP ( B P ; λ ) := k P Pr [ B P Π k P ( 1 λ ) = 1 ] − π Pr [ B P π ( 1 λ ) = 1 ] . (28)
Here k P k_{P} k P is sampled uniformly once, and π \pi π is sampled as in the ideal ensemble above. In either experiment, queries may be in superposition over both labels and data. Then the security of the in-place permutation can be defined as follows.
Definition 5 (Forward in-place tweakable qPRP). The family { Π k P } k P \{\Pi_{k_{P}}\}_{k_{P}} { Π k P } k P is a forward in-place tweakable qPRP if Adv Π i p - q T P R P ( B P ; λ ) \operatorname{Adv}_{\Pi}^{\mathrm{ip\text{-}qTPRP}}(\mathcal{B}_{P};\lambda) Adv Π ip - qTPRP ( B P ; λ ) is negligible in λ \lambda λ for every nonuniform Q P T QPT QP T distinguisher B P \mathcal{B}_{P} B P with adaptive forward in-place access to the in-place permutation oracle in Eq. (27) .
The in-place requirement is essential to this assumption. As emphasized by Ref. [34 ] , security under forward quantum queries to the standard XOR permutation oracle does not by itself establish security under in-place queries. Access to both forward and inverse XOR permutation oracles, however, implements an in-place query using one call in each direction, by computing the permuted value, swapping registers, and uncomputing the original input [35 , 36 ] . This simulation also preserves superpositions over labels, so strong tweakable qPRP security against coherent queries to both labels and data implies Definition 5. We require only forward in-place security, while retaining joint security across coherently queried labels. Security for each fixed label separately does not establish this guarantee.
Finally, sample k Φ k_{\Phi} k Φ , k P k_{P} k P , and C C C independently, with C C C drawn from the same exact unitary 2-design as in the ideal ensemble, and let k = ( k Φ , k P , desc ( C ) ) k=(k_{\Phi},k_{P},\operatorname{desc}(C)) k = ( k Φ , k P , desc ( C )) . The efficient construction is
W k c o h = Π ^ k P Φ ^ g k Φ ( I L ⊗ C ) = ∑ x ∈ X λ ∣ x ⟩ ⟨ x ∣ ⊗ G k c o h ( x ) , (29) W_{k}^{\mathrm{coh}}=\widehat{\Pi}_{k_{P}}\widehat{\Phi}_{g_{k_{\Phi}}}(I_{L}\otimes C)
=\sum_{x\in\mathcal{X}_{\lambda}}|x\rangle\langle x|\otimes G_{k}^{\mathrm{coh}}(x), \tag*{(29)} W k coh = Π k P Φ g k Φ ( I L ⊗ C ) = x ∈ X λ ∑ ∣ x ⟩ ⟨ x ∣ ⊗ G k coh ( x ) , (29)
where G k c o h ( x ) = P Π k P , x Φ g k Φ , x C G_{k}^{\mathrm{coh}}(x)=P_{\Pi_{k_{P},x}}\Phi_{g_{k_{\Phi},x}}C G k coh ( x ) = P Π k P , x Φ g k Φ , x C is defined similarly to Eq. (20) and Eq. (21) . This W k c o h W_{k}^{\mathrm{coh}} W k coh is a label-controlled unitary, also called a block-diagonal unitary. Relative to the decomposition H L ⊗ H A = ⨁ x ∈ X λ ( span { ∣ x ⟩ } L ⊗ H A ) \mathcal{H}_{L}\otimes\mathcal{H}_{A}=\bigoplus_{x\in\mathcal{X}_{\lambda}}(\operatorname{span}\{|x\rangle\}_{L}\otimes\mathcal{H}_{A}) H L ⊗ H A = ⨁ x ∈ X λ ( span { ∣ x ⟩ } L ⊗ H A ) , the unitary G k c o h ( x ) G_{k}^{\mathrm{coh}}(x) G k coh ( x ) is the block associated with label x x x and acts only on the data register A A A . As in the ideal ensemble in Eq. (25) , the same C C C is shared by all labels, and the key remains fixed throughout the interaction. Replacing the keyed phase function and permutation family by their random counterparts yields exactly W P F C W_{\mathrm{PFC}} W PFC .
Security proof
We first establish information-theoretic closeness between the ideal indexed PFC ensemble and the function-like Haar family. Let L L L and A A A be the label and data registers, and let B j B_{j} B j contain the adversary’s private workspace, reference systems, and purifying registers at round j j j . By purification and deferred measurement, an adaptive q q q -query adversary can be represented by isometries A j : H A B j − 1 → H L A B j \mathcal{A}_{j}:\mathcal{H}_{AB_{j-1}}\to\mathcal{H}_{LAB_{j}} A j : H A B j − 1 → H L A B j . Starting from a fixed normalized state ∣ ψ 0 ⟩ L A B 0 |\psi_{0}\rangle_{LAB_{0}} ∣ ψ 0 ⟩ L A B 0 independent of the oracle, define
∣ Ψ q W ⟩ : = ( W L A A q ) ⋯ ( W L A A 1 ) ∣ ψ 0 ⟩ L A B 0 , (30) |\Psi_{q}^{W}\rangle:=(W_{LA}\mathcal{A}_{q})\cdots(W_{LA}\mathcal{A}_{1})|\psi_{0}\rangle_{LAB_{0}}, \tag*{(30)} ∣ Ψ q W ⟩ := ( W L A A q ) ⋯ ( W L A A 1 ) ∣ ψ 0 ⟩ L A B 0 , (30)
where W W W is either W P F C W_{\mathrm{PFC}} W PFC from Eq. (25) or W H a a r W_{\mathrm{Haar}} W Haar from Eq. (8) , and identities on the current workspace are implicit. The state lies on L A B q LAB_{q} L A B q ; any final channel or measurement can be appended without increasing trace distance. The two averaged output states are
ρ P F C A : = E f , π , C [ ∣ Ψ q W P F C ⟩ ⟨ Ψ q W P F C ∣ ] , ρ H a a r A : = E H [ ∣ Ψ q W H a a r ⟩ ⟨ Ψ q W H a a r ∣ ] . (31) \rho_{\mathrm{PFC}}^{A}:=\mathbb{E}_{f,\pi,C}\left[|\Psi_{q}^{W_{\mathrm{PFC}}}\rangle\langle\Psi_{q}^{W_{\mathrm{PFC}}}|\right],
\qquad
\rho_{\mathrm{Haar}}^{A}:=\mathbb{E}_{H}\left[|\Psi_{q}^{W_{\mathrm{Haar}}}\rangle\langle\Psi_{q}^{W_{\mathrm{Haar}}}|\right]. \tag*{(31)} ρ PFC A := E f , π , C [ ∣ Ψ q W PFC ⟩ ⟨ Ψ q W PFC ∣ ] , ρ Haar A := E H [ ∣ Ψ q W Haar ⟩ ⟨ Ψ q W Haar ∣ ] . (31)
where the first expectation includes the random function, permutation family, and common design element, and the second includes independent H x ← μ H a a r ( U ( N ) ) H_{x}\leftarrow\mu_{\mathrm{Haar}}(U(N)) H x ← μ Haar ( U ( N )) . Both experiments use the same initial state and adversarial isometries. Their trace distance satisfies the following bound.
Theorem 2 (PFC–Haar closeness under coherent-label access). For every possibly unbounded adaptive adversary A \mathcal{A} A making q < N q<N q < N forward oracle calls, the averaged output states in Eq. (31) satisfy
Δ ( ρ P F C A , ρ H a a r A ) ≤ 2 q ( q − 1 ) N + 1 , (32) \Delta\left(\rho_{\mathrm{PFC}}^{A},\rho_{\mathrm{Haar}}^{A}\right)\leq\frac{2q(q-1)}{N+1}, \tag*{(32)} Δ ( ρ PFC A , ρ Haar A ) ≤ N + 1 2 q ( q − 1 ) , (32) where Δ ( ρ , σ ) : = 1 2 ∥ ρ − σ ∥ 1 \Delta(\rho,\sigma):=\frac{1}{2}\|\rho-\sigma\|_{1} Δ ( ρ , σ ) := 2 1 ∥ ρ − σ ∥ 1 and N = ∣ Z λ ∣ = 2 n ( λ ) N=|\mathcal{Z}_{\lambda}|=2^{n(\lambda)} N = ∣ Z λ ∣ = 2 n ( λ ) .
Appendix B gives a self-contained path-recording proof of this bound by recording tuples ( x , z , y ) (x,z,y) ( x , z , y ) and enforcing injectivity separately for each label. A right-unitary invariance identity transfers the common C C C to the recorded input coordinates. Its exact second moment bounds the probability of a repeated recorded input within the same label by β q = q ( q − 1 ) / ( N + 1 ) \beta_{q}=q(q-1)/(N+1) β q = q ( q − 1 ) / ( N + 1 ) . On records without such collisions, the purified permutation–phase experiment agrees exactly with the recorder under an isometry of the hidden registers. Comparing both the indexed PFC experiment and the function-like Haar experiment with this same recorder gives Eq. (32) , with no dependence on the number of labels.
For a coherent-label adversary A \mathcal{A} A , let
Adv G c o h - ( A ; λ ) : = ∣ Pr k [ A G k c o h ( 1 λ ) = 1 ] − Pr H [ A O H ( 1 λ ) = 1 ] ∣ . (33) \operatorname{Adv}_{G}^{\mathrm{coh\text{-}}}(\mathcal{A};\lambda):=\left|\Pr_{k}\left[\mathcal{A}^{G_{k}^{\mathrm{coh}}}(1^\lambda)=1\right]-\Pr_{H}\left[\mathcal{A}^{O_{H}}(1^\lambda)=1\right]\right|. \tag*{(33)} Adv G coh - ( A ; λ ) := k Pr [ A G k coh ( 1 λ ) = 1 ] − H Pr [ A O H ( 1 λ ) = 1 ] . (33)
We first bound the distinguishing advantage for any efficient adversary.
Theorem 3 (Coherent-label PFC construction). For every nonuniform Q P T QPT QP T adversary A \mathcal{A} A making at most q < N q<N q < N
adaptive forward calls to the coherent-label oracle, there exist nonuniform QPT distinguishers B Φ \mathcal{B}_{\Phi} B Φ and B P \mathcal{B}_{P} B P , making at most q q q phase-oracle queries and q q q forward in-place tweakable-permutation queries, respectively, such that
Adv G c o h , → ( A ; λ ) ≤ Adv q q p r f ( B Φ ; λ ) + Adv Π i p - q T P R P ( B P ; λ ) + 2 q ( q − 1 ) N + 1 . (34) \operatorname{Adv}_{G}^{\mathrm{coh},\rightarrow}(\mathcal{A};\lambda) \le\operatorname{Adv}_{q}^{\mathrm{qprf}}(\mathcal{B}_{\Phi};\lambda) + \operatorname{Adv}_{\Pi}^{\mathrm{ip\text{-}qTPRP}}(\mathcal{B}_{P};\lambda) + \frac{2q(q-1)}{N+1}. \tag*{(34)} Adv G coh , → ( A ; λ ) ≤ Adv q qprf ( B Φ ; λ ) + Adv Π ip - qTPRP ( B P ; λ ) + N + 1 2 q ( q − 1 ) . (34)
The computational proof uses two hybrids. First, g k Φ g_{k_{\Phi}} g k Φ is replaced by a uniformly random Boolean function through the phase-oracle challenge of B Φ \mathcal{B}_{\Phi} B Φ . Second, the keyed permutation is replaced by independent uniformly random permutations through the forward in-place tweakable-permutation challenge of B P \mathcal{B}_{P} B P . An efficient 2 q 2q 2 q -wise independent phase function makes the second reduction efficient while preserving its acceptance probabilities exactly. The resulting ideal experiment is Eq. (25) , to which Theorem 2 applies. Appendix B [5 ] gives the reductions and explains why the phase-oracle advantage is bounded by standard qPRF security using one function-oracle query per phase query.
Corollary 4 (Coherent-label adaptive PRFU). Suppose that g k Φ : X λ × Z λ → { 0 , 1 } g_{k_{\Phi}}:\mathcal{X}_{\lambda}\times\mathcal{Z}_{\lambda}\to\{0,1\} g k Φ : X λ × Z λ → { 0 , 1 } is a quantum-secure pseudorandom function, Π k P : X λ × Z λ → Z λ \Pi_{k_{P}}:\mathcal{X}_{\lambda}\times\mathcal{Z}_{\lambda}\to\mathcal{Z}_{\lambda} Π k P : X λ × Z λ → Z λ is an in-place tweakable quantum secure pseudorandom permutation as defined in Definition 5, and n ( λ ) = ω ( log λ ) n(\lambda)=\omega(\log\lambda) n ( λ ) = ω ( log λ ) . Then the family in Eq. (29) is a coherent-label adaptive forward PRFU according to Definition 3.
Pseudorandom channels and combs
We now turn a function-like unitary into a random-looking irreversible evolution and then into a random-looking process with memory. Because there is no concept of canonical Haar measure for channels and combs, we will define each reference ensemble in a natural and operational way.
Channels from Stinespring dilation
We first obtain pseudorandom channels by applying a PRFU inside a Stinespring dilation and discarding the environment. Fix an input system A A A , an output system B B B , and environment systems E i n E_{\mathrm{in}} E in and E o u t E_{\mathrm{out}} E out such that the input and output have matching dimension, dim ( A E i n ) = dim ( B E o u t ) \dim(AE_{\mathrm{in}})=\dim(BE_{\mathrm{out}}) dim ( A E in ) = dim ( B E out ) . For a unitary U : H A ⊗ H E i n → H B ⊗ H E o u t U:\mathcal{H}_{A}\otimes\mathcal{H}_{E_{\mathrm{in}}}\to\mathcal{H}_{B}\otimes\mathcal{H}_{E_{\mathrm{out}}} U : H A ⊗ H E in → H B ⊗ H E out , define the channel
Φ U ( ρ A ) = tr E o u t [ U ( ρ A ⊗ ∣ 0 ⟩ ⟨ 0 ∣ E i n ) U † ] . (35) \Phi_{U}(\rho_{A})=\operatorname{tr}_{E_{\mathrm{out}}}\left[U\left(\rho_{A}\otimes\lvert0\rangle\langle0\rvert_{E_{\mathrm{in}}}\right)U^{\dagger}\right]. \tag*{(35)} Φ U ( ρ A ) = tr E out [ U ( ρ A ⊗ ∣ 0 ⟩ ⟨ 0 ∣ E in ) U † ] . (35)
Sampling U U U from Haar measure induces a distribution on channels Φ U \Phi_{U} Φ U , which we call the Haar–Stinespring channel ensemble for the specified system and environment dimensions.
We can also define the function-like quantum channel in a way similar to the function-like Haar random family. Let H = ( H x ) x ∈ X λ H=(H_{x})_{x\in\mathcal{X}_{\lambda}} H = ( H x ) x ∈ X λ be a function-like Haar family, with independent unitaries sampled once and fixed throughout the experiment. The corresponding function-like Haar–Stinespring channel ensemble is { Φ H x } x ∈ X λ \{\Phi_{H_{x}}\}_{x\in\mathcal{X}_{\lambda}} { Φ H x } x ∈ X λ . Each query with label x x x initializes a fresh environment E i n E_{\mathrm{in}} E in in ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ , applies H x H_{x} H x , and discards E o u t E_{\mathrm{out}} E out .
For the efficient counterpart, insert PRFU G k ( x ) G_{k}(x) G k ( x ) in Eq. (35) for each label x x x to form the ensemble { Φ G k ( x ) } x ∈ X λ \{\Phi_{G_{k}(x)}\}_{x\in\mathcal{X}_{\lambda}} { Φ G k ( x ) } x ∈ X λ . We can then lift the PRFU to pseudorandom function-like channels (PRFC). Here the adversary A \mathcal{A} A may adaptively query the resulting channel, keep arbitrary references and repeat labels adaptively, while not being able to control the input environment E i n E_{\mathrm{in}} E in nor access the discarded environment E o u t E_{\mathrm{out}} E out . The distinguishing advantage Adv P R F C ( A ; λ ) \operatorname{Adv}^{\mathrm{PRFC}}(\mathcal{A};\lambda) Adv PRFC ( A ; λ ) is defined as the absolute difference between A \mathcal{A} A ’s acceptance probabilities when interacting with Φ G k ( x ) \Phi_{G_{k}(x)} Φ G k ( x ) , for one sampled key k k k , and with Φ H x \Phi_{H_{x}} Φ H x .
Theorem 4 (PRFU-to-channel lifting). If { G k ( x ) } \{G_{k}(x)\} { G k ( x )} is a classical-label forward PRFU, then { Φ G k ( x ) } \{\Phi_{G_{k}(x)}\} { Φ G k ( x ) } is computationally indistinguishable from function-like Haar–Stinespring channels with the same dimensions. For every QPT adaptive labeled-channel distinguisher A \mathcal{A} A making Q Q Q calls, there is a PRFU distinguisher B \mathcal{B} B making Q Q Q calls such that
Adv P R F C ( A ; λ ) = Adv G c l , → ( B ; λ ) . (36) \operatorname{Adv}^{\mathrm{PRFC}}(\mathcal{A};\lambda)=\operatorname{Adv}_{G}^{\mathrm{cl},\rightarrow}(\mathcal{B};\lambda). \tag*{(36)} Adv PRFC ( A ; λ ) = Adv G cl , → ( B ; λ ) . (36)
The reduction initializes E i n E_{\mathrm{in}} E in in the ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ state, forwards A E i n AE_{\mathrm{in}} A E in to its unitary oracle and traces out the E o u t E_{\mathrm{out}} E out system. The simulation is then exact in both PRFC and function-like Haar–Stinespring experiments. The result is followed by a data-processing argument: hiding part of a pseudorandom unitary cannot make it easier to distinguish. Appendix C gives the full reduction.
Sequential processes and their testers
A channel describes a single input-output transformation. To describe several successive interactions, we allow the process to retain a private quantum memory between rounds. This memory can carry information from earlier inputs into later outputs, producing temporal correlations. Such a sequential process is called a quantum comb [24 , 25 , 26 , 27 , 28 ] . As illustrated in Figure 2 , an R R R -round comb realization consists of channels
Figure 2. A three-round quantum comb (purple) interacting with a tester (green). The comb receives X i X_i X i , returns Y i Y_i Y i , and retains private memory M i M_i M i between rounds. The tester interleaves its operations with the comb’s teeth, carrying its own workspace Z i Z_i Z i from one operation to the next. The comb starts with memory state σ M 0 \sigma_{M_0} σ M 0 and discards its terminal memory. The tester produces the final outcome.
C i : X i M i − 1 ⟶ Y i M i , i ∈ [ R ] , (37) \mathcal{C}_{i}:X_{i}M_{i-1}\longrightarrow Y_{i}M_{i},\qquad i\in[R], \tag*{(37)} C i : X i M i − 1 ⟶ Y i M i , i ∈ [ R ] , (37)
where X , Y , M X,Y,M X , Y , M denote quantum registers. At round i i i , the process receives X i X_{i} X i , applies C i \mathcal{C}_{i} C i jointly to this input and its private memory M i − 1 M_{i-1} M i − 1 , and returns Y i Y_{i} Y i while retaining M i M_{i} M i . The initial memory is prepared in a fixed state σ M 0 \sigma_{M_{0}} σ M 0 , and the terminal memory M R M_{R} M R is discarded. Each map C i \mathcal{C}_{i} C i is called a tooth of the comb.
A tester describes the experimenter’s side of this interaction, shown in green in Figure 2 . Its initial operation T 0 \mathcal{T}_0 T 0 prepares an initial state in register X 1 Z 0 X_1Z_0 X 1 Z 0 . For i < R i<R i < R , its operation T i \mathcal{T}_i T i maps Y i Z i − 1 Y_iZ_{i-1} Y i Z i − 1 to X i + 1 Z i X_{i+1}Z_i X i + 1 Z i , and T R \mathcal{T}_R T R measures Y R Z R − 1 Y_RZ_{R-1} Y R Z R − 1 to produce an outcome. The workspace Z i Z_i Z i allows the tester to retain quantum information and adapt later inputs to earlier outputs, including through intermediate measurements and feedback. The tester never accesses the comb’s private memory M i M_i M i .
The input, output, and memory registers, together with the initial memory state, specify the shape of a sequential realization:
Σ = ( R , { X i , Y i } i = 1 R , { M i } i = 0 R , σ M 0 ) . (38) \Sigma= \left(R,\{X_i,Y_i\}_{i=1}^{R},\{M_i\}_{i=0}^{R},\sigma_{M_0}\right). \tag*{(38)} Σ = ( R , { X i , Y i } i = 1 R , { M i } i = 0 R , σ M 0 ) . (38)
Here R R R is the number of rounds, X i X_i X i and Y i Y_i Y i are the communicated input and output registers, and M i M_i M i is the private memory retained after round i i i . Each execution begins with M 0 M_0 M 0 in the state σ M 0 \sigma_{M_0} σ M 0 , independently of the tester, and ends by discarding M R M_R M R . The shape specifies the register spaces and initialization, while the tooth maps C i C_i C i determine the dynamics.
To obtain a random reference ensemble from Haar measure, we consider realizations in which each tooth is a unitary interaction between the communicated input and the private memory. The following definition fixes a shape that supports unitary teeth and samples those interactions independently from Haar measure.
Definition 6 (Sequential-Haar random comb). Fix a public process shape
Σ = ( R , { X i , Y i } i = 1 R , { M i } i = 0 R , ∣ 0 ⟩ ⟨ 0 ∣ M 0 ) , (39) \Sigma= \left(R,\{X_i,Y_i\}_{i=1}^{R},\{M_i\}_{i=0}^{R},\lvert0\rangle\langle0\rvert_{M_0}\right), \tag*{(39)} Σ = ( R , { X i , Y i } i = 1 R , { M i } i = 0 R , ∣ 0 ⟩ ⟨ 0 ∣ M 0 ) , (39) such that for all i ∈ [ R ] i\in[R] i ∈ [ R ] , the register dimensions satisfy
dim ( H X i ⊗ H M i − 1 ) = dim ( H Y i ⊗ H M i ) = D . (40) \dim(\mathcal{H}_{X_i}\otimes\mathcal{H}_{M_{i-1}})=\dim(\mathcal{H}_{Y_i}\otimes\mathcal{H}_{M_i})=D. \tag*{(40)} dim ( H X i ⊗ H M i − 1 ) = dim ( H Y i ⊗ H M i ) = D . (40) Sample independent unitaries H = ( H 1 , … , H R ) H=(H_1,\ldots,H_R) H = ( H 1 , … , H R ) with each H i ← μ H a a r ( U ( D ) ) H_i\leftarrow\mu_{\mathrm{Haar}}(U(D)) H i ← μ Haar ( U ( D )) sampled from Haar random independently. At tooth i i i , apply H i : X i M i − 1 → Y i M i H_i:X_iM_{i-1}\to Y_iM_i H i : X i M i − 1 → Y i M i as the channel. The resulting random comb is denoted H Σ H H_{\mathit{\Sigma}}^{H} H Σ H and its distribution is called the sequential-Haar reference for the specified shape Σ \Sigma Σ .
For cryptographic security, we allow an adversary to interact repeatedly with the same comb. Each execution, called a session, follows the sequence illustrated in Figure 2 and starts with a fresh private memory in ∣ 0 ⟩ ⟨ 0 ∣ M 0 \lvert0\rangle\langle0\rvert_{M_0} ∣ 0 ⟩ ⟨ 0 ∣ M 0 . The adversary may maintain several active sessions and interleave their rounds. It may also retain a quantum workspace entangled with the inputs and outputs of different sessions.
We specify this interaction through a classical control interface. The command Open starts a new session and returns a classical identifier s s s . For a session whose next round is i i i , the command Step( s , X i ) (s,X_i) ( s , X i ) supplies the input register X i X_i X i , applies C i C_i C i to X i M s , i − 1 X_iM_{s,i-1} X i M s , i − 1 , and returns Y i Y_i Y i while retaining the updated private memory M s , i M_{s,i} M s , i . The memory is discarded when the session completes round R R R or is terminated early by Abort( s ) (s) ( s ) . The conventional R R R -round tester above is the special case that opens and completes one session.
Definition 7 (Pseudorandom comb). An efficiently generated keyed family { C k Σ } k \{C_k^{\Sigma}\}_k { C k Σ } k is a pseudorandom comb for shape Σ \Sigma Σ if, for every nonuniform QPT comb distinguisher T \mathcal{T} T , interacting through the reusable interface with polynomially many total tooth invocations and producing a final bit, the distinguishing advantage is negligible,
Adv P R C o m b Σ ( T ; λ ) = ∣ Pr k [ T [ C k Σ ] = 1 ] − Pr H [ T [ H Σ H ] = 1 ] ∣ ≤ negl ( λ ) . (41) \operatorname{Adv}_{\mathrm{PRComb}}^{\Sigma}(\mathcal{T};\lambda)
=\left|\Pr_k[\mathcal{T}[C_k^{\Sigma}]=1]
-\Pr_H[\mathcal{T}[H_{\Sigma}^{H}]=1]\right|\leq\operatorname{negl}(\lambda). \tag*{(41)} Adv PRComb Σ ( T ; λ ) = k Pr [ T [ C k Σ ] = 1 ] − H Pr [ T [ H Σ H ] = 1 ] ≤ negl ( λ ) . (41)
This is the process analogue of ordinary PRU security. Repeated access to one keyed comb must be computationally indistinguishable from repeated access to one sampled sequential-Haar comb.
From PRFU to pseudorandom comb
We now use distinct PRFU labels for the successive teeth of a comb to obtain a pseudorandom comb. Let G k : X λ → U ( H A ) G_k:\mathcal{X}_{\lambda}\to\mathcal{U}(\mathcal{H}_A) G k : X λ → U ( H A ) be a classical-label forward PRFU, and fix a process shape Σ \Sigma Σ satisfying the shape conditions Eq. (40) of the sequential-Haar ensemble. We take the common dimension in that condition to be D = dim H A D=\dim\mathcal{H}_A D = dim H A and fix efficient identifications X i M i − 1 ≅ A ≅ Y i M i X_iM_{i-1}\cong A\cong Y_iM_i X i M i − 1 ≅ A ≅ Y i M i . Choose efficiently computable distinct labels ℓ 1 , … , ℓ R ∈ X λ \ell_1,\ldots,\ell_R\in\mathcal{X}_{\lambda} ℓ 1 , … , ℓ R ∈ X λ , and construct C k Σ = ( G k ( ℓ 1 ) , … , G k ( ℓ R ) ) C_k^{\Sigma}=(G_k(\ell_1),\ldots,G_k(\ell_R)) C k Σ = ( G k ( ℓ 1 ) , … , G k ( ℓ R )) by applying G k ( ℓ i ) G_k(\ell_i) G k ( ℓ i ) at the i i i -th tooth, which leads to the following security guarantee.
Theorem 5 (PRFU-to-PRComb lifting). Let { G k ( x ) } x ∈ X λ \{G_k(x)\}_{x\in\mathcal{X}_{\lambda}} { G k ( x ) } x ∈ X λ be a classical-label forward PRFU, and let ℓ 1 , … , ℓ R \ell_1,\ldots,\ell_R ℓ 1 , … , ℓ R be the distinct, efficiently computable labels in X λ \mathcal{X}_{\lambda} X λ . Then C k Σ = ( G k ( ℓ 1 ) , … , G k ( ℓ R ) ) C_k^{\Sigma}=(G_k(\ell_1),\ldots,G_k(\ell_R)) C k Σ = ( G k ( ℓ 1 ) , … , G k ( ℓ R )) forms a pseudorandom comb. More precisely, for every QPT comb distinguisher T \mathcal{T} T making at most q q q total tooth invocations, there is a classical-label PRFU distinguisher B \mathcal{B} B making at most q q q oracle calls such that
Adv P R C o m b Σ ( T ; λ ) = Adv G c l , → ( B ; λ ) . (42) \operatorname{Adv}_{\mathrm{PRComb}}^{\Sigma}(\mathcal{T};\lambda)=\operatorname{Adv}_{G}^{\mathrm{cl},\rightarrow}(\mathcal{B};\lambda). \tag*{(42)} Adv PRComb Σ ( T ; λ ) = Adv G cl , → ( B ; λ ) . (42)
The reduction simulates the reusable interface, maintaining a separate private memory for each active session and forwarding every invocation of tooth i i i to its PRFU oracle under label ℓ i \ell_i ℓ i . The simulations are exact and use one oracle call per tooth invocation, proving the equality.
Distinct labels ensure that different teeth emulate independent Haar unitaries. Reusing the same unitary at every tooth does not generally suffice: even for Haar-random U U U , the two-round memoryless process ( U , U ) (U,U) ( U , U ) is distinguishable from ( H 1 , H 2 ) (H_1,H_2) ( H 1 , H 2 ) with independent Haar unitaries. A tester can compare the two normalized Choi states using a swap test, which accepts with probability 1 in the former case and 1 2 ( 1 + D − 2 ) \frac{1}{2}(1+D^{-2}) 2 1 ( 1 + D − 2 ) on average in the latter.
The same construction extends to a labeled family of combs under one key. Let x ∈ L λ x \in\mathcal{L}_\lambda x ∈ L λ label a process, and choose an efficiently computable injective map ℓ : L λ × [ R ] → X λ \ell: \mathcal{L}_\lambda\times[R] \to\mathcal{X}_\lambda ℓ : L λ × [ R ] → X λ . For each x ∈ L λ x \in\mathcal{L}_\lambda x ∈ L λ , define
C k , x Σ : = ( G k ( ℓ ( x , 1 ) ) , … , G k ( ℓ ( x , R ) ) ) , (43) C^\Sigma_{k,x} := \left(G_k(\ell(x,1)), \ldots, G_k(\ell(x,R))\right), \tag*{(43)} C k , x Σ := ( G k ( ℓ ( x , 1 )) , … , G k ( ℓ ( x , R )) ) , (43)
where the tuple specifies the successive tooth unitaries of a comb with shape Σ \Sigma Σ . The ideal family consists of independent sequential-Haar combs
H x Σ : = ( H x , 1 , … , H x , R ) , (44) \mathcal{H}^\Sigma_x := (H_{x,1}, \ldots, H_{x,R}), \tag*{(44)} H x Σ := ( H x , 1 , … , H x , R ) , (44)
with the unitaries H x , i H_{x,i} H x , i sampled independently from Haar measure for all pairs ( x , i ) (x,i) ( x , i ) and fixed throughout the experiment.
To access this family, the adversary calls Open ( x ) \operatorname{Open}(x) Open ( x ) to start a new execution of the comb labeled x x x , with fresh private memory and a returned session identifier s s s . Subsequent calls use this identifier: Step ( s , X i ) \operatorname{Step}(s,X_i) Step ( s , X i ) supplies the next input to that execution and returns Y i Y_i Y i , while Abort ( s ) \operatorname{Abort}(s) Abort ( s ) terminates it and discards its memory.
The adversary may choose process labels adaptively, interleave sessions while preserving their internal round order, and retain an entangled workspace across them. Process labels and session choices are classical, while inputs, outputs, and workspace remain quantum. We require the entire labeled family to be indistinguishable from independent sequential-Haar combs under this access model.
Definition 8 (Function-like pseudorandom comb). An efficient labeled family { C k , x Σ } k , x \{C^\Sigma_{k,x}\}_{k,x} { C k , x Σ } k , x is a function-like pseudorandom comb if, for every nonuniform QPT concurrent process distinguisher T T T making polynomially many total tooth invocations and producing a final bit, the distinguishing advantage is negligible,
Adv P R C o m b f l , Σ ( T ; λ ) : = ∣ Pr [ T [ { C k , x Σ } x ] = 1 ] − Pr [ T [ { H x Σ } x ] = 1 ] ∣ ≤ negl ( λ ) . (45) \operatorname{Adv}^{\mathrm{fl},\Sigma}_{\mathrm{PRComb}}(T;\lambda) := \left|\Pr\left[T[\{C^\Sigma_{k,x}\}_x]=1\right]-\Pr\left[T[\{\mathcal{H}^\Sigma_x\}_x]=1\right]\right| \le\operatorname{negl}(\lambda). \tag*{(45)} Adv PRComb fl , Σ ( T ; λ ) := Pr [ T [{ C k , x Σ } x ] = 1 ] − Pr [ T [{ H x Σ } x ] = 1 ] ≤ negl ( λ ) . (45)
The security of the efficient function-like comb family in Eq. (43) is established in the following theorem.
Theorem 6 (Concurrent function-like comb lifting). Let { G k ( x ) } x ∈ X λ \{G_k(x)\}_{x\in\mathcal{X}_\lambda} { G k ( x ) } x ∈ X λ be a classical-label forward PRFU and let ℓ : L λ × [ R ] → X λ \ell:\mathcal{L}_\lambda\times[R]\to\mathcal{X}_\lambda ℓ : L λ × [ R ] → X λ be an injective and efficient map. For every nonuniform QPT concurrent process distinguisher T T T making at most q q q total tooth invocations against Eq. (43) , there is a classical-label PRFU distinguisher B \mathcal{B} B making at most q q q calls such that
Adv P R C o m b f l , Σ ( T ; λ ) = Adv G c l ( B ; λ ) . (46) \operatorname{Adv}^{\mathrm{fl},\Sigma}_{\mathrm{PRComb}}(T;\lambda)=\operatorname{Adv}^{\mathrm{cl}}_{G}(\mathcal{B};\lambda). \tag*{(46)} Adv PRComb fl , Σ ( T ; λ ) = Adv G cl ( B ; λ ) . (46) Consequently, the construction in Eq. (43) forms a function-like pseudorandom comb.
The reduction keeps a separate private memory register for every active session and forwards each requested tooth to its PRFU oracle under the classical label ℓ ( x , i ) \ell(x,i) ℓ ( x , i ) . Injectivity turns the ideal PRFU table into independent Haar teeth indexed by ( x , i ) (x,i) ( x , i ) , so the simulation is exact and incurs neither overhead over rounds nor a loss depending on the number of possible process labels. As a special case, restricting the concurrent game to one fixed process label recovers the reusable PRComb game of Definition 7.
Applications
We now apply PRFUs to tasks that require multiple reproducible random-looking operations under a single secret key. Public labels specify the context of each operation, allowing distinct labels to select unitaries that jointly emulate independent Haar samples. We first combine this capability with unitary gluing to construct PRUs whose register widths can be chosen after key generation, and then consider nonce-resolved quantum authentication, coherently masked QRAM queries, and random multi-time dynamics. Throughout this section, enc \operatorname{enc} enc denotes an efficiently computable injective encoding of the indicated public fields into $\mathcal{X}_\lambda.
One-key PRUs for variable register widths
A standard PRU acts on a register of a fixed width. We seek a single secret key that supports pseudorandom unitaries at several register widths, allowing the width to be chosen adaptively after key generation. The desired guarantee is joint: even an adversary querying several widths should be unable to distinguish the resulting family from independent Haar-random unitaries, one fixed unitary at each supported width.
PRFUs provide this capability when combined with unitary gluing [12 , 30 ] . Gluing composes independent Haar unitaries on overlapping local registers into a global unitary that approximates Haar randomness under repeated forward queries. For each supported width, we use distinct PRFU labels to generate the local gates in the gluing construction. PRFU security ensures that these gates jointly emulate independent Haar unitaries. Gluing then yields a family of global pseudorandom unitaries at the supported widths.
Let G k ( x ) G_k(x) G k ( x ) be a classical-label forward PRFU acting on 2 w 2w 2 w qubits. We construct, under the same key k k k , a family of unitaries V k , m V_{k,m} V k , m acting on n m = 2 m w n_m = 2mw n m = 2 m w qubits for m ∈ [ M ] m \in[M] m ∈ [ M ] , where w = w ( λ ) w = w(\lambda) w = w ( λ ) and M = M ( λ ) M = M(\lambda) M = M ( λ ) are polynomially bounded positive integers. For each target width n m n_m n m , partition the register into consecutive w w w -qubit blocks A 1 , … , A 2 m A_1,\ldots,A_{2m} A 1 , … , A 2 m . Label each local gate by its target width, layer a a a , and position j j j :
ℓ m , a , j : = enc ( g l u e , n m , a , j ) , (47) \ell_{m,a,j} := \operatorname{enc}(\mathrm{glue}, n_m, a, j), \tag*{(47)} ℓ m , a , j := enc ( glue , n m , a , j ) , (47)
where a = 0 a=0 a = 0 with j ∈ [ m ] j \in[m] j ∈ [ m ] denotes the first layer and a = 1 a=1 a = 1 with j ∈ [ m − 1 ] j \in[m-1] j ∈ [ m − 1 ] the second. Define the two-layer unitary:
V k , m ( 0 ) : = ∏ j = 1 m G k ( ℓ m , 0 , j ) A 2 j − 1 A 2 j , V_{k,m}^{(0)} := \prod_{j=1}^{m} G_k(\ell_{m,0,j})^{A_{2j-1}A_{2j}}, V k , m ( 0 ) := j = 1 ∏ m G k ( ℓ m , 0 , j ) A 2 j − 1 A 2 j ,
V k , m ( 1 ) : = ∏ j = 1 m − 1 G k ( ℓ m , 1 , j ) A 2 j A 2 j + 1 . (48) V_{k,m}^{(1)} := \prod_{j=1}^{m-1} G_k(\ell_{m,1,j})^{A_{2j}A_{2j+1}}. \tag*{(48)} V k , m ( 1 ) := j = 1 ∏ m − 1 G k ( ℓ m , 1 , j ) A 2 j A 2 j + 1 . (48)
Here, the superscripts ( 0 ) (0) ( 0 ) and ( 1 ) (1) ( 1 ) on V k , m V_{k,m} V k , m denote the layer indices, whereas the superscripts on G k G_k G k (e.g., A 2 j − 1 A 2 j A_{2j-1}A_{2j} A 2 j − 1 A 2 j ) denote the gate supports, acting non-trivially on the specified blocks and as the identity elsewhere. The first layer acts on disjoint pairs of blocks, and the second connects neighboring pairs, giving the overlaps required by gluing. Composing these two layers gives the circuit
V k , m : = V k , m ( 1 ) V k , m ( 0 ) . (49) V_{k,m} := V_{k,m}^{(1)}V_{k,m}^{(0)}. \tag*{(49)} V k , m := V k , m ( 1 ) V k , m ( 0 ) . (49)
For a family U = { U m } m ∈ [ M ] \mathrm{U} = \{U_m\}_{m\in[M]} U = { U m } m ∈ [ M ] , the oracle O U \mathcal{O}_{\mathrm{U}} O U accepts a classical width index m m m and applies U m U_m U m to the supplied n m n_m n m -qubit register. The family is fixed throughout the interaction, and only forward queries are exposed. The following theorem establishes joint security across the supported widths.
Theorem 7 (One-key PRUs for variable register widths). Let G G G be a classical-label forward PRFU on 2 w 2w 2 w qubits, where w = ω ( log λ ) w = \omega(\log\lambda) w = ω ( log λ ) . Let M ( λ ) M(\lambda) M ( λ ) be a polynomially bounded integer and set V k = { V k , m } m ∈ [ M ] V_k = \{V_{k,m}\}_{m\in[M]} V k = { V k , m } m ∈ [ M ] with V k , m V_{k,m} V k , m defined in Eq. (49) . Let H = { H m } m ∈ [ M ] H = \{H_m\}_{m\in[M]} H = { H m } m ∈ [ M ] consist of independently sampled Haar unitaries on 2 m w 2mw 2 m w qubits. For every QPT oracle algorithm A \mathcal{A} A ,
∣ Pr k ← Gen ( 1 λ ) [ A O V k ( 1 λ ) = 1 ] − Pr H [ A O H ( 1 λ ) = 1 ] ∣ ≤ negl ( λ ) . (50) \left|
\Pr_{k\leftarrow\operatorname{Gen}(1^\lambda)}\left[\mathcal{A}^{\mathcal{O}_{V_k}}(1^\lambda)=1\right]
-
\Pr_{\mathrm{H}}\left[\mathcal{A}^{\mathcal{O}_{H}}(1^\lambda)=1\right]
\right|
\leq\operatorname{negl}(\lambda). \tag*{(50)} k ← Gen ( 1 λ ) Pr [ A O V k ( 1 λ ) = 1 ] − H Pr [ A O H ( 1 λ ) = 1 ] ≤ negl ( λ ) . (50) The guarantee follows by combining joint PRFU security with unitary gluing. PRFU security first allows all local gates in Eq. (48) to be replaced jointly by independent Haar unitaries. Since different widths use disjoint label sets, the resulting circuits are independent across widths. The adaptive forward-query gluing bound [12 ] then replaces each encountered circuit by one persistent Haar unitary on its full register. For q q q total queries, the accumulated statistical error from gluing is at most 18 M q 2 ( q − 1 ) / 2 w 18Mq^2(q-1)/2^w 18 M q 2 ( q − 1 ) / 2 w , which is negligible assuming w = ω ( log λ ) w=\omega(\log\lambda) w = ω ( log λ ) . Appendix E1 gives the full reduction and quantitative bounds.
A variant secure under both forward and inverse queries follows from a strong classical-label PRFU and inverse-secure gluing [37 ] . See Appendix E2.
Nonce-resolved quantum authentication We consider quantum authentication with a public nonce: a classical label accompanying each ciphertext that selects the operation used to encode and verify it. We combine a strong classical-label PRFU with the design layers of the pseudorandom quantum authentication scheme (PQAS) of Ref. [31 ] , using one secret key for all nonces. In addition to the inherited authentication guarantee, we establish rejection of ciphertexts submitted under previously unused nonces.
Let M , T , B M,T,B M , T , B be message, tag, and auxiliary registers of m , ℓ , b m,\ell,b m , ℓ , b qubits, respectively, and let G k G ( x ) G_{k_G}(x) G k G ( x ) be a strong classical-label PRFU acting on m + ℓ + b m+\ell+b m + ℓ + b qubits. Independently sample efficiently implementable unitaries V a 4 ( 4 ) V_{a_4}^{(4)} V a 4 ( 4 ) and V a 2 ( 2 ) V_{a_2}^{(2)} V a 2 ( 2 ) from an approximate unitary 4 4 4 -design and an exact unitary 2 2 2 -design, respectively, on the same register, with parameters chosen as in Ref. [31 ] . The seeds a 4 , a 2 a_4,a_2 a 4 , a 2 are independent of k G k_G k G , sampled once, and retained as part of the master key k = ( k G , a 4 , a 2 ) k=(k_G,a_4,a_2) k = ( k G , a 4 , a 2 ) . For a nonce ν \nu ν , define
U k , ν = G k G ( enc ( a u t h , ν ) ) V a 4 ( 4 ) V a 2 ( 2 ) . (51) U_{k,\nu}=G_{k_G}(\operatorname{enc}(\mathrm{auth},\nu))V_{a_4}^{(4)}V_{a_2}^{(2)}. \tag*{(51)} U k , ν = G k G ( enc ( auth , ν )) V a 4 ( 4 ) V a 2 ( 2 ) . (51) Here enc \operatorname{enc} enc is an efficient injective encoding into X λ \mathcal{X}_\lambda X λ , and the same two design unitaries are reused across nonces. The 2 2 2 -design supplies the second-moment identity controlling the mean authentication error, while the approximate 4 4 4 -design controls fluctuations across keys, as required by the authentication analysis of Ref. [31 ] .
We append an ℓ \ell ℓ -qubit tag initialized to ∣ 0 ℓ ⟩ T |0^\ell\rangle_T ∣ 0 ℓ ⟩ T and an auxiliary register in the maximally mixed state $\tau_B := ...
I B / 2 b I_B/2^b I B / 2 b to the message, then apply U k , ν U_{k,\nu} U k , ν , forming the encoded state
Enc k , ν ( ρ M ) : = U k , ν ( ρ M ⊗ ∣ 0 ⟩ ⟨ 0 ∣ T ⊗ τ B ) U k , ν † . (52) \operatorname{Enc}_{k,\nu}(\rho_M) := U_{k,\nu}(\rho_M \otimes|0\rangle\langle0|_T \otimes\tau_B)U_{k,\nu}^{\dagger}. \tag*{(52)} Enc k , ν ( ρ M ) := U k , ν ( ρ M ⊗ ∣0 ⟩ ⟨ 0 ∣ T ⊗ τ B ) U k , ν † . (52)
To verify, apply U k , ν † U_{k,\nu}^{\dagger} U k , ν † , accept if the tag is all zero, and return the message register upon acceptance. Honest ciphertexts are accepted exactly. The security reduction therefore uses strong PRFU security to simulate verification through inverse challenge calls.
Proposition 3 (Fresh-nonce rejection). Suppose G G G is a strong classical-label PRFU and U k , ν U_{k,\nu} U k , ν is defined by Eq. (51) . For every QPT adversary making adaptive encryption and verification queries, there exists a QPT strong classical-label PRFU distinguisher B B B such that the probability that the adversary’s final ciphertext is accepted under a nonce unused in all preceding queries satisfies
p f r e s h ≤ 2 − ℓ + Adv G c l , ± ( B ; λ ) . (53) p_{\mathrm{fresh}} \le2^{-\ell} + \operatorname{Adv}_{G}^{\mathrm{cl},\pm}(B;\lambda). \tag*{(53)} p fresh ≤ 2 − ℓ + Adv G cl , ± ( B ; λ ) . (53)
To see this, replace the PRFU family by independent Haar unitaries. Conditional on the design seeds, right multiplication by V a 4 ( 4 ) V a 2 ( 2 ) V_{a_4}^{(4)}V_{a_2}^{(2)} V a 4 ( 4 ) V a 2 ( 2 ) preserves their joint Haar distribution. The unitary at the final fresh nonce is therefore independent of the preceding interaction, and Haar averaging gives acceptance probability 2 − ℓ 2^{-\ell} 2 − ℓ . Appendix E 3 gives the reduction. For each fixed nonce, Eq. (51) is an instance of PQAS, so its authentication security follows directly from Ref. [31 ] under that work’s attack model and parameter conditions. Proposition 3 adds the fresh-nonce guarantee under adaptive encryption and verification queries.
Coherently masked QRAM queries
Quantum random-access memory (QRAM) allows a classical database to be queried in a coherent superposition of addresses [38 ] . For a database D : X λ → { 0 , 1 } m D:\mathcal{X}_{\lambda}\to\{0,1\}^{m} D : X λ → { 0 , 1 } m , its lookup unitary acts as
Q D ∣ x ⟩ L ∣ b ⟩ B = ∣ x ⟩ L ∣ b ⊕ D ( x ) ⟩ B , (54) Q_D|x\rangle_L|b\rangle_B = |x\rangle_L|b\oplus D(x)\rangle_B, \tag*{(54)} Q D ∣ x ⟩ L ∣ b ⟩ B = ∣ x ⟩ L ∣ b ⊕ D ( x ) ⟩ B , (54)
with the action on address superpositions determined by linearity. We use a coherent-label PRFU to mask the retrieved data under one secret key: after lookup, an address-dependent unitary acts on the bus without measuring the address. The resulting interface preserves coherent queries while hiding the database contents from an observer with forward access.
Let { G k ( x ) } x ∈ X λ \{G_k(x)\}_{x\in\mathcal{X}_{\lambda}} { G k ( x ) } x ∈ X λ be a coherent-label forward PRFU on m m m qubits. After each lookup, apply the unitary selected by the address, giving the masked interface
Q ~ k , D : = ( ∑ x ∈ X λ ∣ x ⟩ ⟨ x ∣ L ⊗ G k ( x ) ) Q D . (55) \widetilde{Q}_{k,D}:=\left(\sum_{x\in\mathcal{X}_{\lambda}}|x\rangle\langle x|_L\otimes G_k(x)\right)Q_D. \tag*{(55)} Q k , D := ( x ∈ X λ ∑ ∣ x ⟩ ⟨ x ∣ L ⊗ G k ( x ) ) Q D . (55)
Only forward access to Q ~ k , D \widetilde{Q}_{k,D} Q k , D is exposed. A key holder can undo the mask to recover ordinary QRAM lookup.
Proposition 4 (Content hiding for coherently masked QRAM). Suppose G G G is a coherent-label forward PRFU. For any two efficiently implementable databases D 0 , D 1 D_0,D_1 D 0 , D 1 of the same dimensions, chosen independently of k k k , and every QPT oracle algorithm A \mathcal{A} A ,
∣ Pr k [ A Q ~ k , D 0 ( 1 λ ) = 1 ] − Pr k [ A Q ~ k , D 1 ( 1 λ ) = 1 ] ∣ ≤ negl ( λ ) , (56) \left|\Pr_k\left[\mathcal{A}^{\widetilde{Q}_{k,D_0}}(1^\lambda)=1\right]-\Pr_k\left[\mathcal{A}^{\widetilde{Q}_{k,D_1}}(1^\lambda)=1\right]\right|\leq\operatorname{negl}(\lambda), \tag*{(56)} k Pr [ A Q k , D 0 ( 1 λ ) = 1 ] − k Pr [ A Q k , D 1 ( 1 λ ) = 1 ] ≤ negl ( λ ) , (56)
where the oracles provide forward access with arbitrary coherent address queries.
Coherent-label PRFU security allows the masks to be replaced jointly by independent Haar unitaries H x H_x H x . At each address, the resulting bus operation is H x X D ( x ) H_xX^{D(x)} H x X D ( x ) , where X D ( x ) X^{D(x)} X D ( x ) denotes addition of D ( x ) D(x) D ( x ) modulo two. Haar invariance implies that these operations remain independent Haar unitaries, so the ideal interface is independent of the database. Appendix E 4 gives the reduction.
Efficient emulation of random multi-time dynamics
Random multi-time experiments involve a sequence of transformations, with interventions between steps and possibly an inaccessible environment that retains memory. Independently sampled Haar unitaries provide a reference model for these transformations, but generic Haar unitaries require exponentially large circuits in the number of qubits. The process construction above gives an efficient computational substitute: one secret key specifies reproducible experiments whose responses to efficient adaptive interventions emulate those of the sequential-Haar ensemble.
Let G k ( x ) G_k(x) G k ( x ) be a classical-label forward PRFU on a ( λ ) a(\lambda) a ( λ ) qubits, and fix a public process shape Σ \Sigma Σ with polynomially many steps R max = R max ( λ ) R_{\max}=R_{\max}(\lambda) R m a x = R m a x ( λ ) , satisfying Eq. (40) . Each step acts on a ( λ ) a(\lambda) a ( λ ) qubits, with the input, output, and private-memory registers specified by Σ \Sigma Σ . For an experimental instance labeled x ∈ L λ x\in\mathcal{L}_{\lambda} x ∈ L λ , define
ℓ d y n ( x , i ) : = enc ( d y n a m i c s , Σ , x , i ) , \ell_{\mathrm{dyn}}(x,i):=\operatorname{enc}(\mathrm{dynamics},\Sigma,x,i), ℓ dyn ( x , i ) := enc ( dynamics , Σ , x , i ) ,
C k , x Σ : = ( G k ( ℓ d y n ( x , i ) ) ) i = 1 R max . (57) \mathcal{C}_{k,x}^{\Sigma}:=\left(G_k\left(\ell_{\mathrm{dyn}}(x,i)\right)\right)_{i=1}^{R_{\max}}. \tag*{(57)} C k , x Σ := ( G k ( ℓ dyn ( x , i ) ) ) i = 1 R m a x . (57)
Each execution starts with fresh private memory and uses the Open( x ) (x) ( x ) , Step( s , X i ) (s,X_i) ( s , X i ) , and Abort( s ) (s) ( s ) interface defined above. Reusing x x x reproduces the same sequence of unitaries. Since the labels do not depend on the stopping time, an experiment may be stopped after any step without changing its preceding dynamics.
Corollary 5 (Efficient emulation of sequential-Haar dynamics). For every QPT concurrent process distinguisher T \mathcal{T} T , the family in Eq. (57) satisfies
Adv P R C o m b f l , Σ ( T ; λ ) ≤ negl ( λ ) , (58) \operatorname{Adv}_{\mathrm{PR}_{\mathrm{Comb}}}^{\mathrm{fl},\Sigma}(\mathcal{T};\lambda)\leq\operatorname{negl}(\lambda), \tag*{(58)} Adv PR Comb fl , Σ ( T ; λ ) ≤ negl ( λ ) , (58)
including when experimental labels and stopping times are chosen adaptively. Each step requires one PRFU evaluation, and all instances share one polynomial-length secret key.
The corollary follows directly from Theorem 6: injectivity of ℓ d y n \ell_{\mathrm{dyn}} ℓ dyn turns the ideal PRFU family into independent Haar unitaries indexed by ( x , i ) (x,i) ( x , i ) , and early termination is already allowed by the process interface. Thus the guarantee covers intermediate measurements, feedback, and interleaved executions with quantum workspace.
Discussion and outlook
In this work, we introduce PRFUs as a framework for generating jointly pseudorandom quantum operations indexed by public labels under a single secret key. We establish a generic lifting from PRUs and post-quantum PRFs for classical-label access, and a separate construction for coherent-label access, whose security is proved through an indexed path-recording analysis that accounts for interference across labels. These guarantees extend to quantum channels and combs with inaccessible memory, allowing efficient adaptive interactions with entire families of processes. PRFUs thus connect unitary pseudorandomness with the construction of reproducible quantum dynamics across multiple contexts and time steps.
The relationship between PRU and PRFU remains a fundamental question. In the state setting, the construction of PRFS generators from PRS generators with logarithmic-length inputs provides a precedent for obtaining function-like pseudorandomness from a single-instance primitive [20 , 21 ] . However, the relationship between PRUs and PRFUs is not that clear. In the classical-label setting, our lifting converts a PRU into a PRFU using a post-quantum PRF to derive label-dependent keys. For coherent labels, however, we provide a specific construction rather than a general transformation from PRUs. This leaves open whether a comparable lifting is possible when queries may involve superpositions of labels. Establishing such a lifting, or identifying a separation, would clarify the additional cryptographic requirements imposed by coherent access to an indexed unitary family.
Our coherent-label construction also raises a concrete question about its underlying permutation primitive. While we formulate the required tweakable in-place qPRP security as an explicit assumption, an efficient construction achieving this guarantee from standard assumptions remains to be established. The challenge is to support a family of permutations whose joint pseudorandomness survives queries in superposition over both tweaks and inputs. Constructing such a primitive would instantiate the permutation component of our PRFU construction and clarify which techniques for quantum-secure permutations extend to this function-like setting.
Acknowledgments
We thank Emil Khabiboulline and Zhenning Liu for helpful discussions. Z.X. acknowledges funding and support from QuICS Lanzcos Graduate Fellowship. K.B. was supported by a Hartree Fellowship from the Joint Center for Quantum Information and Computer Science (QuICS) at the University of Maryland, College Park. D.E.K. is supported by the National Research Foundation, Singapore through the National Quantum Office, hosted in A*STAR, under the Advanced Quantum Algorithms and Solutions (AQAS) Funding Initiative (S25Q9DA001). W.K.M. acknowledges funding provided by the Institute for Quantum Information and Matter, an NSF Physics Frontiers Center (NSF Grant PHY-2317110). A.V.G. acknowledges support from the U.S. Department of Energy, Office of Science, Accelerated Research in Quantum Computing, Fundamental Algorithmic Research toward Quantum Utility (FAR-Qu). A.V.G. was also supported in part by NSF QLCI (award No. OMA-2120757), NSF STAQ program, NQVL:QSTD:Design:FTL, DoE ASCR Quantum Testbed Pathfinder program (award No. DE-SC0024220), ONR MURI, AFOSR MURI, and ARL (W911NF-24-2-0107). A.V.G. also acknowledges support from the U.S. Department of Energy, Office of Science, National Quantum Information Science Research Centers, Quantum Systems Accelerator (award No. DE-SCL0000121). The original ideas and proofs were developed by the authors. Generative artificial intelligence tools were subsequently used to assist with simplification of the proofs, clarification of their presentation, language editing, manuscript organization, and figure preparation.
References
Security proof for the classical-label construction
We prove the lifting bound in Theorem 1, construct the Haar proxies used in its corollaries, and derive the quantitative guarantee for the PFC instantiation. Throughout, G k ( x ) = V F k ( x ) G_k(x)=V_{F_k}(x) G k ( x ) = V F k ( x ) is the construction in Eq. (13) , and the oracle interfaces and distinguishing advantages are those of Eqs. (5) –(6) and Eqs. (15) –(17) . Fix a nonuniform QPT adversary A \mathcal{A} A making at most q = q ( λ ) q=q(\lambda) q = q ( λ ) calls, and let D q , η \mathcal{D}_{q,\eta} D q , η be a forward Haar proxy as in Definition 4. All probabilities include the sampling of the oracle, the adversary’s randomness, and its measurement outcomes. At each call, the reference register R R R may include its entire retained quantum workspace.
Replacing the outer pseudorandom function
Let Real be the interaction with O G k \mathcal{O}_{G_k} O G k for k ← Gen F ( 1 λ ) k \leftarrow\operatorname{Gen}_{F}(1^\lambda) k ← Gen F ( 1 λ ) . In the experiment RF, replace F k F_k F k by a uniformly random function f : { 0 , 1 } d ( λ ) → { 0 , 1 } s ( λ ) f:\{0,1\}^{d(\lambda)}\to\{0,1\}^{s(\lambda)} f : { 0 , 1 } d ( λ ) → { 0 , 1 } s ( λ ) , so that each call acts as
O f ( x , ρ A R ) = ( V f ( x ) ⊗ I R ) ρ A R ( V f ( x ) † ⊗ I R ) . (59) \mathcal{O}_{f}(x,\rho_{AR})=(V_{f(x)}\otimes I_R)\rho_{AR}(V_{f(x)}^\dagger\otimes I_R). \tag*{(59)} O f ( x , ρ A R ) = ( V f ( x ) ⊗ I R ) ρ A R ( V f ( x ) † ⊗ I R ) . (59)
Write p X p_X p X for the probability that A \mathcal{A} A outputs one in experiment X.
Lemma 1 (PRF replacement). There is a QPT distinguisher B F \mathcal{B}_F B F , making at most q q q classical function queries, such that
∣ p R e a l − p R F ∣ = Adv F p r f ( B F ; λ ) . (60) \lvert p_{\mathrm{Real}}-p_{\mathrm{RF}}\rvert=\operatorname{Adv}^{\mathrm{prf}}_{F}(\mathcal{B}_F;\lambda). \tag*{(60)} ∣ p Real − p RF ∣ = Adv F prf ( B F ; λ ) . (60)
Proof. The distinguisher B F \mathcal{B}_F B F runs A \mathcal{A} A and, on a query with label x x x , evaluates its function oracle at x x x to obtain a seed a a a . It implements V a V_a V a on the supplied data register and eventually returns A \mathcal{A} A ’s output bit. The two function-oracle experiments reproduce Real and RF exactly. All function queries are classical, although the choice of each label may depend on the preceding quantum interaction.
Because the labels are classical, RF admits an exact lazy-sampling implementation: assign an independent uniform seed a x a_x a x when a label x x x first occurs and reuse it on every subsequent occurrence. Seeds are sampled with replacement. In particular, the simulation does not condition on the absence of seed collisions.
Replacing local PRUs in order of first occurrence
Assign rank r ( x ) = 1 , 2 , … r(x)=1,2,\ldots r ( x ) = 1 , 2 , … to labels in the order in which they first occur. This order is determined separately within each experiment; it need not agree across different hybrids. At most q q q ranks are reached. For j ∈ { 0 , … , q } j\in\{0,\ldots,q\} j ∈ { 0 , … , q } , define P j P_j P j by assigning to each new label x x x a persistent unitary
W x ( j ) = { D x , r ( x ) ≤ j , D x ← D q , η , V a x , r ( x ) > j , a x ← { 0 , 1 } s ( λ ) . (61) W_x^{(j)}=
\begin{cases}
D_x, & r(x)\le j,\quad D_x\leftarrow\mathcal{D}_{q,\eta},\\
V_{a_x}, & r(x)>j,\quad a_x\leftarrow\{0,1\}^{s(\lambda)}.
\end{cases} \tag*{(61)} W x ( j ) = { D x , V a x , r ( x ) ≤ j , D x ← D q , η , r ( x ) > j , a x ← { 0 , 1 } s ( λ ) . (61)
The draws for different labels are independent, and a query at x x x applies W x ( j ) W_x^{(j)} W x ( j ) to the data register. Thus
p R F = p P 0 , (62) p_{\mathrm{RF}}=p_{P_0}, \tag*{(62)} p RF = p P 0 , (62)
and P q P_q P q uses an independent proxy for every queried label.
To analyze the j j j th transition, introduce Q j Q_j Q j , which assigns
W ^ x ( j ) = { D x , r ( x ) < j , D x ← D q , η , H j , r ( x ) = j , H j ← μ H a a r ( U ( H A ) ) , V a x , r ( x ) > j , a x ← { 0 , 1 } s ( λ ) . (63) \widehat{W}_x^{(j)}=
\begin{cases}
D_x, & r(x)<j,\quad D_x\leftarrow\mathcal{D}_{q,\eta},\\
H_j, & r(x)=j,\quad H_j\leftarrow\mu_{\mathrm{Haar}}(\mathcal{U}(\mathcal{H}_A)),\\
V_{a_x}, & r(x)>j,\quad a_x\leftarrow\{0,1\}^{s(\lambda)}.
\end{cases} \tag*{(63)} W x ( j ) = ⎩ ⎨ ⎧ D x , H j , V a x , r ( x ) < j , D x ← D q , η , r ( x ) = j , H j ← μ Haar ( U ( H A )) , r ( x ) > j , a x ← { 0 , 1 } s ( λ ) . (63)
All choices are again independent and persistent.
Lemma 2 (First-occurrence hybrid). There are QPT single-instance PRU distinguishers B 1 , … , B q \mathcal{B}_1,\ldots,\mathcal{B}_q B 1 , … , B q , each making at most q q q forward challenge calls, such that
∣ p P 0 − p P q ∣ ≤ ∑ j = 1 q Adv V p r u , → ( B j ; λ ) + q η . (64) \lvert p_{P_0}-p_{P_q}\rvert\le\sum_{j=1}^{q}\operatorname{Adv}^{\mathrm{pru},\rightarrow}_{V}(\mathcal{B}_j;\lambda)+q\eta. \tag*{(64)} ∣ p P 0 − p P q ∣ ≤ j = 1 ∑ q Adv V pru , → ( B j ; λ ) + q η . (64)
Proof. Fix j j j . The distinguisher B j \mathcal{B}_j B j runs A \mathcal{A} A , samples proxy circuits for ranks below j j j , and samples independent inner-PRU seeds for ranks above j j j . It directs every occurrence of the label of rank j j j to its single persistent challenge oracle. All other calls are implemented locally using the stored circuits. The PRU branch is exactly P j − 1 \mathrm{P}_{j-1} P j − 1 , and the Haar branch is exactly Q j \mathrm{Q}_j Q j , giving
∣ p P j − 1 − p Q j ∣ = Adv V p r u , → ( B j ; λ ) . (65) \left|p_{\mathrm{P}_{j-1}}-p_{\mathrm{Q}_j}\right|=\operatorname{Adv}^{\mathrm{pru},\rightarrow}_{V}(\mathcal{B}_j;\lambda). \tag*{(65)} p P j − 1 − p Q j = Adv V pru , → ( B j ; λ ) . (65)
The reduction is efficient because both the proxy circuits and the inner PRUs are efficient. It makes no challenge calls until rank j j j occurs and at most q q q calls in total.
The experiments Q j \mathrm{Q}_j Q j and P j \mathrm{P}_j P j differ only in the unitary assigned to rank j j j . To compare them, consider an oracle distinguisher that simulates the adversary, the label table, and all other independently sampled unitaries, while using its challenge at that rank. Definition 4 applies to this complete adaptive interaction and yields
∣ p Q j − p P j ∣ ≤ η . (66) \left|p_{\mathrm{Q}_j}-p_{\mathrm{P}_j}\right|\leq\eta. \tag*{(66)} p Q j − p P j ≤ η . (66)
If rank j j j is never reached, the two interactions coincide. Combining the two comparisons gives
∣ p P j − 1 − p P j ∣ ≤ Adv V p r u , → ( B j ; λ ) + η . (67) \left|p_{\mathrm{P}_{j-1}}-p_{\mathrm{P}_j}\right|\leq\operatorname{Adv}^{\mathrm{pru},\rightarrow}_{V}(\mathcal{B}_j;\lambda)+\eta. \tag*{(67)} p P j − 1 − p P j ≤ Adv V pru , → ( B j ; λ ) + η . (67)
Summing over j j j proves the lemma.
The PRU branch also reproduces seed collisions exactly. The hidden challenge seed and all locally sampled seeds are independent uniform strings; whenever two seeds coincide, the deterministic map a ↦ V a a\mapsto V_a a ↦ V a assigns the same unitary, without requiring the reduction to recognize that coincidence. Hence no separate collision term is needed.
Replacing the proxies by Haar unitaries
For ℓ ∈ { 0 , … , q } \ell\in\{0,\ldots,q\} ℓ ∈ { 0 , … , q } , let S ℓ \mathrm{S}_{\ell} S ℓ assign independent Haar unitaries to the first ℓ \ell ℓ ranks and independent proxies to the remaining ranks:
W ~ x ( ℓ ) = { H x , r ( x ) ≤ ℓ , H x ← μ H a a r ( U ( H A ) ) , D x , r ( x ) > ℓ , D x ← D q , η . (68) \widetilde{W}^{(\ell)}_x=
\begin{cases}
H_x, & r(x)\leq\ell,\quad H_x\leftarrow\mu_{\mathrm{Haar}}(\mathrm{U}(\mathcal{H}_A)),\\
D_x, & r(x)>\ell,\quad D_x\leftarrow\mathcal{D}_{q,\eta}.
\end{cases} \tag*{(68)} W x ( ℓ ) = { H x , D x , r ( x ) ≤ ℓ , H x ← μ Haar ( U ( H A )) , r ( x ) > ℓ , D x ← D q , η . (68)
These assignments are lazy and persistent, so S 0 = P q \mathrm{S}_0=\mathrm{P}_q S 0 = P q .
Lemma 3 (Proxy replacement). The endpoint experiments satisfy
∣ p P q − p S q ∣ ≤ q η . (69) \left|p_{\mathrm{P}_q}-p_{\mathrm{S}_q}\right|\leq q\eta. \tag*{(69)} p P q − p S q ≤ q η . (69)
Proof. For each ℓ \ell ℓ , simulate all of A \mathcal{A} A ’s interaction except the unitary at rank ℓ \ell ℓ , which is supplied by a proxy-or-Haar challenge. The other unitaries are sampled independently of that challenge. This simulator may be computationally unbounded because it uses exact Haar unitaries at earlier ranks, as permitted by Definition 4. It makes at most q q q challenge calls, so ∣ p S ℓ − 1 − p S ℓ ∣ ≤ η \left|p_{\mathrm{S}_{\ell-1}}-p_{\mathrm{S}_{\ell}}\right|\leq\eta ∣ p S ℓ − 1 − p S ℓ ∣ ≤ η . The triangle inequality gives the claimed bound.
In S q \mathrm{S}_q S q , every distinct label receives an independent Haar unitary, reused on all later calls. Deferred sampling at first occurrence therefore produces exactly the indexed Haar oracle of Eq. (6) :
p S q = Pr H O H ( A O H ( 1 λ ) = 1 ) . (70) p_{\mathrm{S}_q}=\Pr_{H}^{\mathcal{O}^{H}}\left(\mathcal{A}^{\mathcal{O}^{H}}(1^\lambda)=1\right). \tag*{(70)} p S q = H Pr O H ( A O H ( 1 λ ) = 1 ) . (70)
Proof of Theorem 1. Combining Lemmas 1, 2, and 3 gives
Adv G c l , → ( A ; λ ) = ∣ p R e a l − p S q ∣ ≤ ∣ p R e a l − p R F ∣ + ∣ p P 0 − p P q ∣ + ∣ p P q − p S q ∣ ≤ Adv F r f ( B F ; λ ) + ∑ j = 1 q Adv V p r u , → ( B j ; λ ) + 2 q η . (71) \begin{aligned}
\operatorname{Adv}^{\mathrm{cl},\rightarrow}_{G}(\mathcal{A};\lambda)
&=\left|p_{\mathrm{Real}}-p_{\mathrm{S}_q}\right|\\
&\leq\left|p_{\mathrm{Real}}-p_{\mathrm{RF}}\right|+\left|p_{\mathrm{P}_0}-p_{\mathrm{P}_q}\right|+\left|p_{\mathrm{P}_q}-p_{\mathrm{S}_q}\right|\\
&\leq\operatorname{Adv}^{\mathrm{rf}}_{F}(\mathcal{B}_F;\lambda)+\sum_{j=1}^{q}\operatorname{Adv}^{\mathrm{pru},\rightarrow}_{V}(\mathcal{B}_j;\lambda)+2q\eta. \tag*{(71)}
\end{aligned} Adv G cl , → ( A ; λ ) = p Real − p S q ≤ ∣ p Real − p RF ∣ + p P 0 − p P q + p P q − p S q ≤ Adv F rf ( B F ; λ ) + j = 1 ∑ q Adv V pru , → ( B j ; λ ) + 2 q η . (71)
The query bounds follow from the preceding simulations. More generally, if Q Q Q bounds the total number of calls and ℓ \ell ℓ bounds the number of distinct labels on every execution, a ( Q , η ) (Q,\eta) ( Q , η ) proxy suffices and the proof uses only ℓ \ell ℓ transitions, with total proxy error 2 ℓ η 2\ell\eta 2 ℓ η .
Strong access and inverse queries
The strong interface additionally permits
O G k − 1 ( x , ρ A R ) = ( G k ( x ) † ⊗ I R ) ρ A R ( G k ( x ) ⊗ I R ) , (72) \mathcal{O}^{-1}_{G_k}(x,\rho_{AR})=(G_k(x)^\dagger\otimes I_R)\rho_{AR}(G_k(x)\otimes I_R), \tag*{(72)} O G k − 1 ( x , ρ A R ) = ( G k ( x ) † ⊗ I R ) ρ A R ( G k ( x ) ⊗ I R ) , (72)
with the analogous interface for H H H . Both the label and the direction of each call are chosen classically and adaptively. A bidirectional ( q , η ) (q,\eta) ( q , η ) Haar proxy satisfies Definition 4 for at most q q q total calls to the sampled unitary and its inverse.
If V V V is a strong PRU and such a proxy is available, the same hybrids apply. The PRF reduction reverses the known circuit for V a V_a V a when required, each B j \mathcal{B}_j B j uses the corresponding direction of its challenge, and every proxy supplies the persistent pair ( D x , D x † ) (D_x,D_x^\dagger) ( D x , D x † ) . Thus
Adv G c l , ± ( A ; λ ) ≤ Adv F p r f ( B F ; λ ) + ∑ j = 1 q Adv V p r u , ± ( B j ; λ ) + 2 q η . (73) \operatorname{Adv}^{\mathrm{cl},\pm}_{G}(A;\lambda)\le\operatorname{Adv}^{\mathrm{prf}}_{F}(\mathcal{B}_F;\lambda)+\sum_{j=1}^{q}\operatorname{Adv}^{\mathrm{pru},\pm}_{V}(\mathcal{B}_j;\lambda)+2q\eta. \tag*{(73)} Adv G cl , ± ( A ; λ ) ≤ Adv F prf ( B F ; λ ) + j = 1 ∑ q Adv V pru , ± ( B j ; λ ) + 2 q η . (73)
Here q q q counts both directions together. Below we show that the amplified-design construction also supplies the required bidirectional proxies.
Relative-error designs and efficient Haar proxies
Let N = 2 n N=2^n N = 2 n , let ∣ Φ N ⟩ = N − 1 / 2 ∑ z = 0 N − 1 ∣ z ⟩ ∣ z ⟩ \lvert\Phi_N\rangle=N^{-1/2}\sum_{z=0}^{N-1}\lvert z\rangle\lvert z\rangle ∣ Φ N ⟩ = N − 1/2 ∑ z = 0 N − 1 ∣ z ⟩ ∣ z ⟩ , and use the normalized Choi operator J ( U ) = ( U ⊗ I ) ∣ Φ N ⟩ ⟨ Φ N ∣ ( U † ⊗ I ) J(U)=(U\otimes I)\lvert\Phi_N\rangle\langle\Phi_N\rvert(U^\dagger\otimes I) J ( U ) = ( U ⊗ I ) ∣ Φ N ⟩ ⟨ Φ N ∣ ( U † ⊗ I ) . For an ensemble μ \mu μ , define
Ω μ ( t ) : = E U ← μ [ J ( U ) ⊗ t ] . (74) \Omega_\mu^{(t)}:=\mathbb{E}_{U\leftarrow\mu}\left[J(U)^{\otimes t}\right]. \tag*{(74)} Ω μ ( t ) := E U ← μ [ J ( U ) ⊗ t ] . (74)
These moments describe repeated uses of one sampled unitary, rather than fresh sampling at each call.
Lemma 4 (Relative designs give forward proxies). An efficiently samplable circuit ensemble D \mathcal{D} D satisfying
( 1 − δ ) Ω H a a r ( q ) ⪯ Ω D ( q ) ⪯ ( 1 + δ ) Ω H a a r ( q ) (75) (1-\delta)\Omega_{\mathrm{Haar}}^{(q)}\preceq\Omega_{\mathcal{D}}^{(q)}\preceq(1+\delta)\Omega_{\mathrm{Haar}}^{(q)} \tag*{(75)} ( 1 − δ ) Ω Haar ( q ) ⪯ Ω D ( q ) ⪯ ( 1 + δ ) Ω Haar ( q ) (75) is a forward ( q , δ ) (q,\delta) ( q , δ ) Haar proxy.
Proof. Fix an adaptive oracle distinguisher, including any side processes sampled independently of the challenge. If it terminates before q q q calls, store its output and pad the interaction with calls on fresh registers whose outputs are discarded. Its acceptance probability is a positive linear functional of the joint Choi operator of the q q q oracle slots: there is a positive semidefinite operator T q T_q T q such that
p μ = Tr [ T q Ω μ ( q ) ] . (76) p_\mu=\operatorname{Tr}\left[T_q\Omega_\mu^{(q)}\right]. \tag*{(76)} p μ = Tr [ T q Ω μ ( q ) ] . (76)
Here T q T_q T q is the operator obtained by contracting the distinguisher’s input preparation, intermediate operations, and final accepting measurement; the normalization factor associated with normalized Choi operators is absorbed into T q T_q T q . This representation includes arbitrary quantum memory between calls. Applying the positive functional X ↦ Tr ( T q X ) X\mapsto\operatorname{Tr}(T_qX) X ↦ Tr ( T q X ) to Eq. (A17) gives ( 1 − δ ) p μ H a a r ≤ p D ≤ ( 1 + δ ) p μ H a a r (1-\delta)p_{\mu_{\mathrm{Haar}}}\le p_{\mathcal{D}}\le(1+\delta)p_{\mu_{\mathrm{Haar}}} ( 1 − δ ) p μ Haar ≤ p D ≤ ( 1 + δ ) p μ Haar . Since p μ H a a r ≤ 1 p_{\mu_{\mathrm{Haar}}}\le1 p μ Haar ≤ 1 , the difference is at most δ \delta δ .
An explicit amplified-design ensemble
We use the efficiently derandomized PFC designs of Metger, Poremba, Sinha, and Yuen [10 ] . For an integer t ≥ 1 t\ge1 t ≥ 1 , let F n , 2 t \mathcal{F}_{n,2t} F n , 2 t be an efficiently samplable 2 t 2t 2 t -wise independent family of Boolean functions on { 0 , 1 } n \{0,1\}^n { 0 , 1 } n , and let P n , t \mathcal{P}_{n,t} P n , t be an efficiently samplable distribution of approximately t t t -wise independent permutations, with approximation error
δ P ≤ c P t N 4 t + 1 / 2 (77) \delta_{\mathcal{P}}\le c_{\mathcal{P}}\frac{t}{N^{4t+1/2}} \tag*{(77)} δ P ≤ c P N 4 t + 1/2 t (77)
for a sufficiently small universal constant m a t h i t c P > 0 mathit{c}_{\mathcal{P}}>0 ma t hi t c P > 0 . Use the efficient circuit realizations in Ref. [10 ] , which implement the permutation unitaries as well as the phase operators. Sample the three factors independently and set
W = P π Φ h C , h ← F n , 2 t , π ← P n , t , C ← Cliff ( n ) . (78) W=P_\pi\Phi_h C,\qquad h\leftarrow\mathcal{F}_{n,2t},\quad\pi\leftarrow\mathcal{P}_{n,t},\quad C\leftarrow\operatorname{Cliff}(n). \tag*{(78)} W = P π Φ h C , h ← F n , 2 t , π ← P n , t , C ← Cliff ( n ) . (78)
The operators P π P_\pi P π and Φ h \Phi_h Φ h are defined in Eq. (20) . Denote this ensemble by ν n , t \nu_{n,t} ν n , t . Each sample has circuit size polynomial in n n n and t t t .
Proof of Proposition 2. Theorem 4.4 and Lemma 4.6 of Ref. [10 ] give a universal constant C 0 ≥ 1 C_0 \ge1 C 0 ≥ 1 such that the t t t -fold twirling channel of ν n , t \nu_{n,t} ν n , t differs from the Haar twirling channel in diamond norm by at most
α n , t : = C 0 t 2 − n / 2 . (79) \alpha_{n,t} := C_0^t 2^{-n/2}. \tag*{(79)} α n , t := C 0 t 2 − n /2 . (79)
For independent W 1 , … , W m ← ν n , q W_1,\ldots,W_m \gets\nu_{n,q} W 1 , … , W m ← ν n , q , set
D : = W m ⋯ W 1 . (80) D := W_m \cdots W_1. \tag*{(80)} D := W m ⋯ W 1 . (80)
The amplification lemma in Ref. [10 ] , Lemma 4.11, bounds its diamond error by α n , q m \alpha_{n,q}^m α n , q m . The diamond-to-relative-error conversion in Lemma 2.7 of that work then gives
ε n , q , m ≤ N 2 q α n , q m = 2 2 n q − m ( n / 2 − log 2 ( C 0 q ) ) . (81) \varepsilon_{n,q,m} \le N^{2q}\alpha_{n,q}^m = 2^{2nq-m(n/2-\log_2(C_0q))}. \tag*{(81)} ε n , q , m ≤ N 2 q α n , q m = 2 2 n q − m ( n /2 − l o g 2 ( C 0 q )) . (81)
Under the hypothesis C 0 q ≤ 2 n / 4 C_0q \le2^{n/4} C 0 q ≤ 2 n /4 , choose
m : = max { 1 , ⌈ 2 n q + log 2 ( 2 / η ) n / 2 − log 2 ( C 0 q ) ⌉ } . (82) m := \max\left\{1,\left\lceil\frac{2nq+\log_2(2/\eta)}{n/2-\log_2(C_0q)}\right\rceil\right\}. \tag*{(82)} m := max { 1 , ⌈ n /2 − log 2 ( C 0 q ) 2 n q + log 2 ( 2/ η ) ⌉ } . (82)
Then ε n , q , m ≤ η / 2 \varepsilon_{n,q,m} \le\eta/2 ε n , q , m ≤ η /2 and
m ≤ 1 + 8 q + 4 n log 2 ( 2 / η ) . (83) m \le1+8q+\frac{4}{n}\log_2(2/\eta). \tag*{(83)} m ≤ 1 + 8 q + n 4 log 2 ( 2/ η ) . (83)
For clarity, the relative-error convention of Ref. [10 ] places the sampled ensemble on the outside of the comparison. Writing D D D for the distribution of D D D , its Choi form is
( 1 − ε n , q , m ) Ω D ( q ) ⪯ Ω μ H a a r ( q ) ⪯ ( 1 + ε n , q , m ) Ω D ( q ) . (84) (1-\varepsilon_{n,q,m})\Omega_D^{(q)} \preceq\Omega_{\mu_{\mathrm{Haar}}}^{(q)} \preceq(1+\varepsilon_{n,q,m})\Omega_D^{(q)}. \tag*{(84)} ( 1 − ε n , q , m ) Ω D ( q ) ⪯ Ω μ Haar ( q ) ⪯ ( 1 + ε n , q , m ) Ω D ( q ) . (84)
Equivalently,
Ω μ H a a r ( q ) 1 + ε n , q , m ⪯ Ω D ( q ) ⪯ Ω μ H a a r ( q ) 1 − ε n , q , m . (85) \frac{\Omega_{\mu_{\mathrm{Haar}}}^{(q)}}{1+\varepsilon_{n,q,m}} \preceq\Omega_D^{(q)} \preceq\frac{\Omega_{\mu_{\mathrm{Haar}}}^{(q)}}{1-\varepsilon_{n,q,m}}. \tag*{(85)} 1 + ε n , q , m Ω μ Haar ( q ) ⪯ Ω D ( q ) ⪯ 1 − ε n , q , m Ω μ Haar ( q ) . (85)
Thus Eq. (75) holds with
δ n , q , m : = ε n , q , m 1 − ε n , q , m ≤ η . (86) \delta_{n,q,m} := \frac{\varepsilon_{n,q,m}}{1-\varepsilon_{n,q,m}} \le\eta. \tag*{(86)} δ n , q , m := 1 − ε n , q , m ε n , q , m ≤ η . (86)
Lemma 4 proves the proxy guarantee. The circuit consists of m m m independent samples from ν n , q \nu_{n,q} ν n , q , so Eq. (83) gives sampling time and circuit size polynomial in n n n , q q q , log ( 1 / η ) \log(1/\eta) log ( 1/ η ) .
Bidirectional proxies
To justify the strong extension, a sufficiently accurate diamond-error design also controls adaptive interactions that mix forward and inverse calls. We give the conversion explicitly because the forward relative-order argument above does not directly apply to inverse slots.
Let M μ ( q ) ( X ) = E U ← μ [ U ⊗ q X ( U † ) ⊗ q ] \mathcal{M}_{\mu}^{(q)}(X) = \mathbb{E}_{U\leftarrow\mu}[U^{\otimes q}X(U^\dagger)^{\otimes q}] M μ ( q ) ( X ) = E U ← μ [ U ⊗ q X ( U † ) ⊗ q ] , and suppose
∥ M D ( q ) − M μ H a a r ( q ) ∥ ⋄ ≤ ε . (87) \left\|\mathcal{M}_{\mathcal{D}}^{(q)}-\mathcal{M}_{\mu_{\mathrm{Haar}}}^{(q)}\right\|_{\diamond}\le\varepsilon. \tag*{(87)} M D ( q ) − M μ Haar ( q ) ⋄ ≤ ε . (87)
Evaluating this difference on a normalized maximally entangled state gives ∥ Ω D ( q ) − Ω μ H a a r ( q ) ∥ 1 ≤ ε \left\|\Omega_{\mathcal{D}}^{(q)}-\Omega_{\mu_{\mathrm{Haar}}}^{(q)}\right\|_1\le\varepsilon Ω D ( q ) − Ω μ Haar ( q ) 1 ≤ ε . For the swap S S S between the two registers of one Choi operator,
J ( U † ) = S J ( U ) T S † , (88) J(U^\dagger)=SJ(U)^{\mathsf{T}}S^\dagger, \tag*{(88)} J ( U † ) = S J ( U ) T S † , (88)
where T \mathsf{T} T denotes full transpose in the computational basis.
Pad a bidirectional interaction to q q q calls as above, and partition its accepting event according to the classical direction string s ∈ { + , − } q s\in\{+,-\}^q s ∈ { + , − } q . Each accepting branch, kept unnormalized, defines a positive operator T s T_s T s on the q q q Choi slots. Moreover, ∥ T s ∥ ∞ ≤ Tr T s ≤ N 2 q \lVert T_s\rVert_\infty\le\operatorname{Tr} T_s \le N^{2q} ∥ T s ∥ ∞ ≤ Tr T s ≤ N 2 q : replacing every slot by the completely depolarizing channel, whose normalized Choi operator is I / N 2 I/N^2 I / N 2 , makes N − 2 q Tr T s N^{-2q}\operatorname{Tr} T_s N − 2 q Tr T s a probability. The averaged Choi operator for direction string s s s is obtained from Ω μ ( q ) \Omega_\mu^{(q)} Ω μ ( q ) by transposing the entire Choi slots corresponding to inverse calls and swapping their input and output registers. Denote this linear map by R s R_s R s . Transposition on any collection of slots and register swaps preserve the Hilbert–Schmidt norm. Since the full Choi space has dimension N 2 q N^{2q} N 2 q ,
∥ R s ( X ) ∥ 1 ≤ N q ∥ R s ( X ) ∥ 2 = N q ∥ X ∥ 2 ≤ N q ∥ X ∥ 1 . (89) \lVert R_s(X)\rVert_1 \le N^q\lVert R_s(X)\rVert_2 = N^q\lVert X\rVert_2 \le N^q\lVert X\rVert_1. \tag*{(89)} ∥ R s ( X ) ∥ 1 ≤ N q ∥ R s ( X ) ∥ 2 = N q ∥ X ∥ 2 ≤ N q ∥ X ∥ 1 . (89)
Applying these bounds to X = Ω D ( q ) − Ω H a a r ( q ) X = \Omega_D^{(q)}-\Omega_{\mathrm{Haar}}^{(q)} X = Ω D ( q ) − Ω Haar ( q ) and summing over the at most 2 q 2^q 2 q direction strings yields
∣ p D − p H a a r ∣ ≤ 2 q N 3 q ε . (90) \left|p_D-p_{\mathrm{Haar}}\right| \le2^qN^{3q}\varepsilon. \tag*{(90)} ∣ p D − p Haar ∣ ≤ 2 q N 3 q ε . (90)
The branch decomposition allows each direction to depend on all previous observations; it imposes no restriction on the intervening quantum operations or retained workspace.
For the ensemble in Eq. (80) , take
m : = max { 1 , ⌈ 3 n q + q + log 2 ( 1 / η ) n / 2 − log 2 ( C 0 q ) ⌉ } . (91) m := \max\left\{1,\left\lceil\frac{3nq+q+\log_2(1/\eta)}{n/2-\log_2(C_0q)}\right\rceil\right\}. \tag*{(91)} m := max { 1 , ⌈ n /2 − log 2 ( C 0 q ) 3 n q + q + log 2 ( 1/ η ) ⌉ } . (91)
Its diamond error is at most α n , q m ≤ η / ( 2 q N 3 q ) \alpha_{n,q}^m \le\eta/(2^qN^{3q}) α n , q m ≤ η / ( 2 q N 3 q ) , so Eq. (90) proves the bidirectional ( q , η ) (q,\eta) ( q , η ) guarantee. The denominator remains at least n / 4 n/4 n /4 , and hence m = O ( q + log ( 1 / η ) / n ) m=O(q+\log(1/\eta)/n) m = O ( q + log ( 1/ η ) / n ) . Both the sampled circuit and its inverse are efficient. Bidirectional proxies therefore have the same polynomial dependence on n n n , q q q , log ( 1 / η ) \log(1/\eta) log ( 1/ η ) as forward proxies.
Consequences for the generic construction
Proof of Corollary 1. Fix a nonuniform QPT adversary and a polynomial q ( λ ) q(\lambda) q ( λ ) bounding its calls on every execution. Since n ( λ ) = ω ( log λ ) n(\lambda)=\omega(\log\lambda) n ( λ ) = ω ( log λ ) , the condition C 0 q ( λ ) ≤ 2 n ( λ ) / 4 C_0q(\lambda)\le2^{n(\lambda)/4} C 0 q ( λ ) ≤ 2 n ( λ ) /4 holds for all sufficiently large λ \lambda λ . Proposition 2 with η = 2 − λ \eta=2^{-\lambda} η = 2 − λ provides an efficient proxy for which 2 q η 2^q\eta 2 q η is negligible. The PRF term in Eq. (19) is negligible by assumption. The sum of PRU advantages is also negligible: otherwise, a nonuniform distinguisher could hardwire an index j = j ( λ ) j=j(\lambda) j = j ( λ ) maximizing that advantage and achieve at least 1 / q ( λ ) 1/q(\lambda) 1/ q ( λ ) of the sum, contradicting single-instance PRU security. The circuits for all these reductions have a common polynomial size bound. This proves the corollary.
Proof of Corollary 2. Choose the efficient bidirectional proxy above with η = 2 − λ \eta=2^{-\lambda} η = 2 − λ and q ( λ ) q(\lambda) q ( λ ) bounding all forward and inverse calls. Equation (73) , post-quantum PRF security, and strong PRU security give the result. The polynomial sum is handled by the same nonuniform maximizing-index argument.
In both proofs, the proxy is chosen after fixing the adversary’s polynomial query bound. Its parameters affect only the reduction: the construction G k ( x ) = V F k ( x ) G_k(x)=V_{F_k(x)} G k ( x ) = V F k ( x ) and its key-generation algorithm remain independent of q q q and η \eta η .
Security of the PFC instantiation
We now prove Corollary 3 using the inner family in Eq. (21) . First assume that the sampler produces an exact unitary 2-design. For an inner distinguisher B \mathcal{B} B making at most q q q forward calls, consider three experiments: H0 _0 0 uses the keyed PFC unitary, H1 _1 1 replaces the keyed Boolean function by a uniformly random function h h h , and H2 _2 2 also replaces the keyed permutation by a uniformly random permutation π \pi π . Every sampled object is held fixed throughout the interaction.
The transition from H0 _0 0 to H1 _1 1 is a quantum-PRF reduction. It samples the permutation key and 2-design element locally and implements each phase operation from one query to its Boolean-function challenge by phase kickback. Thus the reduction B Φ \mathcal{B}_\Phi B Φ makes at most q q q challenge queries.
For the permutation transition, the reduction must implement the random phase function efficiently. A 2 q 2q 2 q -wise independent Boolean function suffices exactly: after fixing all independent side randomness, the acceptance probability of a computation with at most q q q phase queries is a polynomial of degree at most 2 q 2q 2 q in the signs ( − 1 ) h ( z ) (-1)^{h(z)} ( − 1 ) h ( z ) . Its expectation therefore agrees under a uniform function and under a 2 q 2q 2 q -wise independent function. This remains true for adaptive computations by deferring intermediate measurements. The permutation reduction may consequently sample the latter function and implement its phase oracle locally.
With the strong quantum-PRP interface used in § 1 B, an in-place permutation can be implemented by computing π ( z ) \pi(z) π ( z ) into a clean register, swapping the two registers, and uncomputing the old input using π − 1 \pi^{-1} π − 1 . Each local permutation therefore costs one forward and one inverse function-oracle query. The resulting distinguisher B P \mathcal{B}_{P} B P makes at most 2 q 2q 2 q total challenge queries. Combining the two computational transitions with the adaptive PFC bound of Ref. [12 ] gives
Adv V P F C p r u , → ( B ; λ ) ≤ Adv s q p r p ( B P ; λ ) + Adv q p r f ( B Φ ; λ ) + 4 q ( q − 1 ) 2 n ( λ ) + 1 . (92) \operatorname{Adv}^{\mathrm{pru},\to}_{V\mathrm{PFC}}(\mathcal{B};\lambda) \le\operatorname{Adv}^{\mathrm{sqprp}}(\mathcal{B}_{P};\lambda) + \operatorname{Adv}^{\mathrm{qprf}}(\mathcal{B}_{\Phi};\lambda) + \frac{4q(q-1)}{2^{n(\lambda)}+1}. \tag*{(92)} Adv V PFC pru , → ( B ; λ ) ≤ Adv sqprp ( B P ; λ ) + Adv qprf ( B Φ ; λ ) + 2 n ( λ ) + 1 4 q ( q − 1 ) . (92)
Here the first advantage uses the ordinary single-instance strong quantum-PRP experiment, and the second uses the single-instance quantum-PRF experiment, both with coherent data queries. The PFC bound applies directly for q ≤ 2 n ( λ ) q \le2^{n(\lambda)} q ≤ 2 n ( λ ) ; beyond that range the displayed statistical term already exceeds one, so the inequality remains valid. Applying Eq. (92) to the inner distinguishers in Theorem 1 yields
Adv G P F C c l , → ( A ; λ ) ≤ Adv F p r f ( B F ; λ ) + ∑ j = 1 q Adv π s q p r p ( B P , j ; λ ) + ∑ j = 1 q Adv h q p r f ( B Φ , j ; λ ) + 4 q 2 ( q − 1 ) 2 n ( λ ) + 1 + 2 q η . (93) \begin{aligned}
\operatorname{Adv}^{\mathrm{cl},\to}_{\mathrm{GPFC}}(\mathcal{A};\lambda)
&\le\operatorname{Adv}^{\mathrm{prf}}_{F}(\mathcal{B}_{F};\lambda) + \sum_{j=1}^{q} \operatorname{Adv}^{\mathrm{sqprp}}_{\pi}(\mathcal{B}_{P,j};\lambda) \\
&\quad+ \sum_{j=1}^{q} \operatorname{Adv}^{\mathrm{qprf}}_{h}(\mathcal{B}_{\Phi,j};\lambda) + \frac{4q^{2}(q-1)}{2^{n(\lambda)}+1} + 2q\eta. \tag*{(93)}
\end{aligned} Adv GPFC cl , → ( A ; λ ) ≤ Adv F prf ( B F ; λ ) + j = 1 ∑ q Adv π sqprp ( B P , j ; λ ) + j = 1 ∑ q Adv h qprf ( B Φ , j ; λ ) + 2 n ( λ ) + 1 4 q 2 ( q − 1 ) + 2 q η . (93)
If the implemented 2-design sampler has total-variation error ε C \varepsilon_C ε C , add at most q ε C q\varepsilon_C q ε C to this bound, once for each inner hybrid. Taking η = 2 − λ \eta= 2^{-\lambda} η = 2 − λ , the proxy term and the PFC term are negligible when n ( λ ) = ω ( log λ ) n(\lambda) = \omega(\log\lambda) n ( λ ) = ω ( log λ ) . The primitive-security assumptions and sampler-accuracy assumption in Corollary 3 control the remaining terms, proving that corollary. Label indexing is provided by the outer PRF; the inner reductions require only single-instance function and permutation security.
Security proof for the coherent-label construction
We prove Theorems 2 and 3, followed by Corollary 4. Our proof uses a label-indexed version of the forward path-recording method of Ref. [12 ] . Ref. [29 ] , Sec. 6.2 studies the same ideal family under the name unitary Haar cipher and gives a recording description in terms of label–input–output triples. Our label-indexed path-recording analysis was developed independently, before Ref. [29 ] appeared on arXiv, and is presented here to give a self-contained proof of the indexed PFC comparison of Eq. (25) and the independent Haar family of Eq. (8) are compared with the same recorder. Their difference is controlled by the probability of repeating an input at the same label. The analysis preserves interference across labels and avoids any dependence on the size of the label domain. We then replace the random phase and permutation layers by the keyed primitives from § 2 A.
Fix the security parameter λ \lambda λ . As in § 2 A, the label set is X λ \mathcal{X}_{\lambda} X λ , the data-basis domain is Z λ = { 0 , 1 } n ( λ ) \mathcal{Z}_{\lambda} = \{0,1\}^{n(\lambda)} Z λ = { 0 , 1 } n ( λ ) , and N = ∣ Z λ ∣ N = \lvert\mathcal{Z}_{\lambda}\rvert N = ∣ Z λ ∣ . The zero-query case is immediate, so assume 1 ≤ q < N 1 \le q < N 1 ≤ q < N . By purification and deferred measurement, a q q q -query adversary can be represented by isometries
A j : H L A ⊗ H B j − 1 ⟶ H L A ⊗ H B j , j = 1 , … , q , A_j : \mathcal{H}_{LA} \otimes\mathcal{H}_{B_{j-1}} \longrightarrow\mathcal{H}_{LA} \otimes\mathcal{H}_{B_j}, \qquad j = 1,\ldots,q, A j : H L A ⊗ H B j − 1 ⟶ H L A ⊗ H B j , j = 1 , … , q ,
where B j B_j B j contains all private workspace, reference systems, and purifying registers at round j j j . The initial state ∣ ψ 0 ⟩ L A B 0 \lvert\psi_0\rangle_{LAB_0} ∣ ψ 0 ⟩ L A B 0 is normalized and independent of the oracle. Consistently with Eq. (30) , the state immediately after the final call is
∣ Ψ q W ⟩ : = ( W L , A A q ) ⋯ ( W L , A A 1 ) ∣ ψ 0 ⟩ L A B 0 , (94) \lvert\Psi_q^W\rangle:= (W_{L,A}A_q)\cdots(W_{L,A}A_1)\lvert\psi_0\rangle_{LAB_0}, \tag*{(94)} ∣ Ψ q W ⟩ := ( W L , A A q ) ⋯ ( W L , A A 1 ) ∣ ψ 0 ⟩ L A B 0 , (94)
with identities on the current workspace implicit. The same sampled oracle is used at every call, as in Eqs. (9) and (10) . The adversarial isometries are independent of the hidden oracle choices; adaptation is represented through the workspace. Any final channel or measurement is covered by contractivity of trace distance. Fewer than q q q queries can be handled by retaining the decision and using dummy registers for the remaining calls. Only forward oracle access is supplied.
Indexed records and the path-recording isometry
An indexed record stores the labels, inputs, and outputs of t t t queries as a multiset
R = { { a 1 , … , a t } } R = \{\{a_1,\ldots,a_t\}\} R = {{ a 1 , … , a t }}
a i = ( x i , z i , y i ) ∈ X λ × Z λ × Z λ . (95) a_i = (x_i,z_i,y_i) \in\mathcal{X}_{\lambda} \times\mathcal{Z}_{\lambda} \times\mathcal{Z}_{\lambda}. \tag*{(95)} a i = ( x i , z i , y i ) ∈ X λ × Z λ × Z λ . (95)
Let R x R_x R x be the multiset of pairs ( z , y ) (z,y) ( z , y ) with label x x x , and set r x : = ∣ R x ∣ r_x := \lvert R_x\rvert r x := ∣ R x ∣ . Write Dom ( R x ) \operatorname{Dom}(R_x) Dom ( R x ) and Im ( R x ) \operatorname{Im}(R_x) Im ( R x ) for its sets of input and output coordinates. A record is output-injective if the outputs in each R x R_x R x are distinct, and good if its inputs are also distinct. Thus a good record specifies a partial bijection at each label. Reusing a basis index at a different label is allowed.
One record slot has Hilbert space H r e c : = C X λ ⊗ C N ⊗ C N \mathcal{H}_{\mathrm{rec}} := \mathbb{C}^{\mathcal{X}_{\lambda}} \otimes\mathbb{C}^{N} \otimes\mathbb{C}^{N} H rec := C X λ ⊗ C N ⊗ C N , whose three factors store the label, input, and output. For the fixed query bound q q q , take
H E : = ⨁ t = 0 q Sym t ( H r e c ) . \mathcal{H}_E := \bigoplus_{t=0}^{q} \operatorname{Sym}^{t}(\mathcal{H}_{\mathrm{rec}}). H E := t = 0 ⨁ q Sym t ( H rec ) .
The length-zero sector is spanned by ∣ ∅ ⟩ \lvert\varnothing\rangle ∣ ∅ ⟩ . Choose any ordering ( a 1 , … , a t ) (a_1,\ldots,a_t) ( a 1 , … , a t ) of the entries of R R R , and let m a m_a m a be the multiplicity of the triple a a a . The corresponding normalized symmetric state is
∣ R ⟩ : = 1 t ! ∏ a m a ! ∑ σ ∈ S t ∣ a σ ( 1 ) , … , a σ ( t ) ⟩ . (96) \lvert R\rangle:= \frac{1}{\sqrt{t!\prod_a m_a!}} \sum_{\sigma\in S_t} \lvert a_{\sigma(1)},\ldots,a_{\sigma(t)}\rangle. \tag*{(96)} ∣ R ⟩ := t ! ∏ a m a ! 1 σ ∈ S t ∑ ∣ a σ ( 1 ) , … , a σ ( t ) ⟩ . (96)
Here S t S_t S t permutes the t t t slots. These states form an orthonormal basis indexed by multisets, independent of the chosen ordering. For t < q t<q t < q , define the recording map on output-injective records by
V ∣ x , z ⟩ L A ∣ R ⟩ E : = 1 N − r x ∑ y ∉ Im ( R x ) ∣ x , y ⟩ L A ∣ R ⊎ { ( x , z , y ) } ⟩ E , (97) V\lvert x,z\rangle_{LA}\lvert R\rangle_E := \frac{1}{\sqrt{N-r_x}}\sum_{y\notin\operatorname{Im}(R_x)} \lvert x,y\rangle_{LA}\lvert R\mathbin{\uplus}\{(x,z,y)\}\rangle_E, \tag*{(97)} V ∣ x , z ⟩ L A ∣ R ⟩ E := N − r x 1 y ∈ / Im ( R x ) ∑ ∣ x , y ⟩ L A ∣ R ⊎ {( x , z , y )} ⟩ E , (97)
where ⊎ \uplus ⊎ denotes multiset union. Only outputs already used at label x x x are excluded, leaving N − r x N-r_x N − r x choices. The query label is unchanged and the record register is hidden from the adversary.
Lemma 5 (Indexed path isometry). The map in Eq. (97) is an isometry from each output-injective length-t t t sector to the output-injective length-( t + 1 ) (t+1) ( t + 1 ) sector, for $0 \le t < q < N$.
Proof. Every basis state is mapped to a unit vector. Suppose that an output term arising from ∣ x , z , R ⟩ \lvert x,z,R\rangle ∣ x , z , R ⟩ overlaps one arising from ∣ x ′ , z ′ , R ′ ⟩ \lvert x',z',R'\rangle ∣ x ′ , z ′ , R ′ ⟩ . Equality of the query registers gives x = x ′ x=x' x = x ′ and the same newly chosen output y y y . Because y y y occurs in neither Im ( R x ) \operatorname{Im}(R_x) Im ( R x ) nor Im ( R x ′ ′ ) \operatorname{Im}(R'_{x'}) Im ( R x ′ ′ ) before the call, the appended triple is the unique triple with label x x x and output y y y in each enlarged record. Equality of the enlarged records then implies z = z ′ z=z' z = z ′ and R = R ′ R=R' R = R ′ . Hence images of distinct basis states are orthogonal.
Starting from ∣ ∅ ⟩ \lvert\varnothing\rangle ∣ ∅ ⟩ , repeated applications of V V V remain in the output-injective sectors. This recorder is an information-theoretic comparison object; it need not have an efficient implementation.
Right-unitary invariance and the collision bound
Let D = ( D x ) x ∈ X λ D=(D_x)_{x\in X_\lambda} D = ( D x ) x ∈ X λ be any family of data-register unitaries and define the corresponding controlled unitary
D ^ ≔ ∑ x ∈ X λ ∣ x ⟩ ⟨ x ∣ L ⊗ D x . \widehat{D} \coloneqq\sum_{x\in X_\lambda} \lvert x\rangle\langle x\rvert_L \otimes D_x. D : = x ∈ X λ ∑ ∣ x ⟩ ⟨ x ∣ L ⊗ D x .
The path-recording experiment produces the state
∣ Ψ q V D ^ ⟩ ≔ ( V D ^ A q ) ⋯ ( V D ^ A 1 ) ∣ ψ 0 ⟩ L A B 0 ∣ ∅ ⟩ E . (98) \lvert\Psi_q^{V\widehat{D}}\rangle\coloneqq(V\widehat{D}_{A_q})\cdots(V\widehat{D}_{A_1})\lvert\psi_0\rangle_{LAB_0}\lvert\varnothing\rangle_E. \tag*{(98)} ∣ Ψ q V D ⟩ : = ( V D A q ) ⋯ ( V D A 1 ) ∣ ψ 0 ⟩ L A B 0 ∣ ∅ ⟩ E . (98)
We abbreviate the case D ^ = I L A \widehat{D}=I_{LA} D = I L A by ∣ Ψ q V ⟩ \lvert\Psi_q^V\rangle ∣ Ψ q V ⟩ . On one record slot define
T ( D ) ≔ ∑ x ∈ X λ ∣ x ⟩ ⟨ x ∣ ⊗ D x ⊗ I N , T(D) \coloneqq\sum_{x\in X_\lambda}\lvert x\rangle\langle x\rvert\otimes D_x\otimes I_N, T ( D ) : = x ∈ X λ ∑ ∣ x ⟩ ⟨ x ∣ ⊗ D x ⊗ I N ,
Γ t ( D ) ≔ T ( D ) ⊗ t ∣ Sym t ( H r e c ) . \Gamma_t(D) \coloneqq T(D)^{\otimes t}\big|_{\operatorname{Sym}^t(\mathcal{H}_{\mathrm{rec}})}. Γ t ( D ) : = T ( D ) ⊗ t Sym t ( H rec ) .
The tensor-power action preserves the symmetric subspace and is unitary there. It also preserves output injectivity, because it changes only recorded input coordinates, not labels or outputs. Set Γ 0 ( D ) = I \Gamma_0(D)=I Γ 0 ( D ) = I .
Lemma 6 (Invariance under label-controlled input unitaries). For every family D D D of data-register unitaries,
∣ Ψ q V D ^ ⟩ = Γ q ( D ) E ∣ Ψ q V ⟩ . (99) \lvert\Psi_q^{V\widehat{D}}\rangle= \Gamma_q(D)_E\lvert\Psi_q^V\rangle. \tag*{(99)} ∣ Ψ q V D ⟩ = Γ q ( D ) E ∣ Ψ q V ⟩ . (99) Consequently, the reduced state on the adversary’s registers is independent of D D D :
tr E ∣ Ψ q V D ^ ⟩ ⟨ Ψ q V D ^ ∣ = tr E ∣ Ψ q V ⟩ ⟨ Ψ q V ∣ . \operatorname{tr}_E\lvert\Psi_q^{V\widehat{D}}\rangle\langle\Psi_q^{V\widehat{D}}\rvert
=
\operatorname{tr}_E\lvert\Psi_q^V\rangle\langle\Psi_q^V\rvert. tr E ∣ Ψ q V D ⟩ ⟨ Ψ q V D ∣ = tr E ∣ Ψ q V ⟩ ⟨ Ψ q V ∣ . Proof. On an output-injective length-t t t record, direct expansion of Eq. (97) gives
V D ^ L A ( I L A ⊗ Γ t ( D ) E ) = ( I L A ⊗ Γ t + 1 ( D ) E ) V . (100) V\widehat{D}_{LA}(I_{LA}\otimes\Gamma_t(D)_E)
=
(I_{LA}\otimes\Gamma_{t+1}(D)_E)V. \tag*{(100)} V D L A ( I L A ⊗ Γ t ( D ) E ) = ( I L A ⊗ Γ t + 1 ( D ) E ) V . (100) Both sides apply D x D_x D x to the newly recorded input and D x i D_{x_i} D x i to each preceding input with label x i x_i x i . Labels and outputs are unchanged, so the available outputs and the factors N − r x N-r_x N − r x agree. Distinct label–output pairs ensure that no additional multiplicity factors arise. Since every A j A_j A j acts trivially on E E E , induction gives Eq. (99) . Tracing out E E E proves the reduced-state identity.
Let Π o u t ( q ) \Pi_{\mathrm{out}}^{(q)} Π out ( q ) and Π g o o d ( q ) \Pi_{\mathrm{good}}^{(q)} Π good ( q ) denote the projectors onto the output-injective and good length-q q q record sectors. Embed these sectors in H r e c ⊗ q \mathcal{H}_{\mathrm{rec}}^{\otimes q} H rec ⊗ q , with slot j j j decomposed as L j Z j Y j L_jZ_jY_j L j Z j Y j for its label, input, and output. On this ambient tensor product, define the projector
Q j k ≔ ∑ x ∈ X λ ∣ x , x ⟩ ⟨ x , x ∣ L j L k ⊗ ∑ z ∈ Z ∣ z , z ⟩ ⟨ z , z ∣ Z j Z k . (101) Q_{jk}\coloneqq\sum_{x\in X_\lambda}\lvert x,x\rangle\langle x,x\rvert_{L_jL_k}\otimes\sum_{z\in Z}\lvert z,z\rangle\langle z,z\rvert_{Z_jZ_k}. \tag*{(101)} Q j k : = x ∈ X λ ∑ ∣ x , x ⟩ ⟨ x , x ∣ L j L k ⊗ z ∈ Z ∑ ∣ z , z ⟩ ⟨ z , z ∣ Z j Z k . (101)
Identities on all unlisted factors, including the recorded outputs, are implicit. An individual Q j k Q_{jk} Q j k need not preserve the symmetric subspace, but the sum over all pairs does. On the output-injective symmetric sector, every nongood record has equal label–input pairs in at least two positions. Thus, as an inequality of quadratic forms on this sector,
Π o u t ( q ) − Π g o o d ( q ) ≤ ∑ 1 ≤ j < k ≤ q Q j k . (102) \Pi_{\mathrm{out}}^{(q)}-\Pi_{\mathrm{good}}^{(q)}
\le
\sum_{1\le j<k\le q}Q_{jk}. \tag*{(102)} Π out ( q ) − Π good ( q ) ≤ 1 ≤ j < k ≤ q ∑ Q j k . (102)
Now sample C = ( C x ) x ∈ X λ C=(C_x)_{x\in\mathcal{X}_\lambda} C = ( C x ) x ∈ X λ independently of the adversary’s initial state and operations, with each marginal C x C_x C x an exact unitary 2-design. Correlations between different C x C_x C x are allowed. The second-moment identity on two data-register copies is
E C x [ ( C x † ) ⊗ 2 ( ∑ z ∣ z , z ⟩ ⟨ z , z ∣ ) C x ⊗ 2 ] = 2 N + 1 Π s y m N , 2 ⪯ 2 N + 1 I . (103) \mathbb{E}_{C_x}\left[(C_x^\dagger)^{\otimes2}\left(\sum_z |z,z\rangle\langle z,z|\right)C_x^{\otimes2}\right]=\frac{2}{N+1}\Pi_{\mathrm{sym}}^{N,2}\preceq\frac{2}{N+1}I. \tag*{(103)} E C x [ ( C x † ) ⊗ 2 ( z ∑ ∣ z , z ⟩ ⟨ z , z ∣ ) C x ⊗ 2 ] = N + 1 2 Π sym N , 2 ⪯ N + 1 2 I . (103)
where Π s y m N , 2 \Pi_{\mathrm{sym}}^{N,2} Π sym N , 2 projects onto Sym 2 ( C N ) \operatorname{Sym}^2(\mathbb{C}^N) Sym 2 ( C N ) . Define C ^ : = ∑ x ∣ x ⟩ ⟨ x ∣ L ⊗ C x \widehat{C}:=\sum_x|x\rangle\langle x|_L\otimes C_x C := ∑ x ∣ x ⟩ ⟨ x ∣ L ⊗ C x . Since Q j k Q_{jk} Q j k already projects onto equal labels, only one marginal C x C_x C x enters each summand, and Eq. (103) implies
E C [ ( C ^ j † ⊗ C ^ k † ) Q j k ( C ^ j ⊗ C ^ k ) ] ⪯ 2 N + 1 I . (104) \mathbb{E}_{C}\left[(\widehat{C}_j^\dagger\otimes\widehat{C}_k^\dagger)Q_{jk}(\widehat{C}_j\otimes\widehat{C}_k)\right]\preceq\frac{2}{N+1}I. \tag*{(104)} E C [ ( C j † ⊗ C k † ) Q j k ( C j ⊗ C k ) ] ⪯ N + 1 2 I . (104)
In Eq. (104) , C ^ j \widehat{C}_j C j acts on the recorded label and input of slot j j j . The state ∣ Ψ q V ⟩ |\Psi_q^V\rangle ∣ Ψ q V ⟩ is independent of C C C and is output-injective. Moving C ^ \widehat{C} C to the record using Lemma 6, and applying Eqs. (102) and (104) , therefore gives
1 − E C [ ⟨ Ψ q V C ^ ∣ Π g o o d ( q ) ∣ Ψ q V C ^ ⟩ ] ≤ ( q 2 ) 2 N + 1 = : β q = q ( q − 1 ) N + 1 . (105) \begin{aligned}
1-\mathbb{E}_{C}\left[\langle\Psi_q^V\widehat{C}|\Pi_{\mathrm{good}}^{(q)}|\Psi_q^V\widehat{C}\rangle\right]\leq\binom{q}{2}\frac{2}{N+1} \\
&=:\beta_q=\frac{q(q-1)}{N+1}. \tag*{(105)}
\end{aligned} 1 − E C [ ⟨ Ψ q V C ∣ Π good ( q ) ∣ Ψ q V C ⟩ ] ≤ ( 2 q ) N + 1 2 =: β q = N + 1 q ( q − 1 ) . (105)
The estimate uses only the second moment at one label at a time. It therefore applies both to the shared choice C x = C C_x=C C x = C in Eq. (25) and to independent Haar choices, with no factor depending on ∣ X λ ∣ |\mathcal{X}_\lambda| ∣ X λ ∣ .
Exact comparison on good records
We next purify the randomness in the permutation and phase layers of Eq. (25) . Let the hidden registers P P P and F F F contain a permutation π x ∈ Perm ( Z λ ) \pi_x\in\operatorname{Perm}(\mathcal{Z}_\lambda) π x ∈ Perm ( Z λ ) for every label x x x and a Boolean function f : X λ × Z λ → { 0 , 1 } f:\mathcal{X}_\lambda\times\mathcal{Z}_\lambda\to\{0,1\} f : X λ × Z λ → { 0 , 1 } , respectively. Initialize them in the uniform superposition
∣ Ω ⟩ P F : = 1 ( N ! ) ∣ X λ ∣ 2 N ∣ X λ ∣ ∑ π , f ∣ π , f ⟩ P F . (106) |\Omega\rangle_{PF}:=\frac{1}{\sqrt{(N!)^{|\mathcal{X}_\lambda|}2^{N|\mathcal{X}_\lambda|}}}\sum_{\pi,f}|\pi,f\rangle_{PF}. \tag*{(106)} ∣Ω ⟩ P F := ( N ! ) ∣ X λ ∣ 2 N ∣ X λ ∣ 1 π , f ∑ ∣ π , f ⟩ P F . (106)
and define the purified permutation–phase oracle by
pfO ( ∣ x , z ⟩ L A ⊗ ∣ π , f ⟩ P F ) : = ( − 1 ) f ( x , z ) ∣ x , π x ( z ) ⟩ L A ⊗ ∣ π , f ⟩ P F . (107) \operatorname{pfO}(|x,z\rangle_{LA}\otimes|\pi,f\rangle_{PF}):=(-1)^{f(x,z)}|x,\pi_x(z)\rangle_{LA}\otimes|\pi,f\rangle_{PF}. \tag*{(107)} pfO ( ∣ x , z ⟩ L A ⊗ ∣ π , f ⟩ P F ) := ( − 1 ) f ( x , z ) ∣ x , π x ( z ) ⟩ L A ⊗ ∣ π , f ⟩ P F . (107)
Here π \pi π ranges over all permutation families and f f f over all Boolean functions on X λ × Z λ \mathcal{X}_\lambda\times\mathcal{Z}_\lambda X λ × Z λ . Tracing out the hidden registers P F PF P F recovers exactly the experiment with a persistent random function and independent persistent random permutations.
For a length-t t t record R R R , let δ π , R = 1 \delta_{\pi,R}=1 δ π , R = 1 if π x ( z ) = y \pi_x(z)=y π x ( z ) = y for every occurrence of ( x , z , y ) (x,z,y) ( x , z , y ) in R R R , and let δ π , R = 0 \delta_{\pi,R}=0 δ π , R = 0 otherwise. The unnormalized permutation–phase state associated with R R R is
∣ p f ~ R ⟩ : = 1 ( N ! ) ∣ X λ ∣ ∑ π δ π , R ∣ π ⟩ ⊗ 1 2 N ∣ X λ ∣ ∑ f ( − 1 ) ∑ i = 1 t f ( x i , z i ) ∣ f ⟩ . (108) |\widetilde{\mathrm{pf}}_R\rangle:=\frac{1}{\sqrt{(N!)^{|\mathcal{X}_\lambda|}}}\sum_\pi\delta_{\pi,R}|\pi\rangle\otimes\frac{1}{\sqrt{2^{N|\mathcal{X}_\lambda|}}}\sum_f(-1)^{\sum_{i=1}^{t}f(x_i,z_i)}|f\rangle. \tag*{(108)} ∣ pf R ⟩ := ( N ! ) ∣ X λ ∣ 1 π ∑ δ π , R ∣ π ⟩ ⊗ 2 N ∣ X λ ∣ 1 f ∑ ( − 1 ) ∑ i = 1 t f ( x i , z i ) ∣ f ⟩ . (108)
The exponent counts every occurrence in R R R . Incompatible permutation constraints give the zero vector; repeated queries to the same input contribute with their multiplicities.
For a good record R R R , define the normalized permutation–phase relation state
∣ p f R ⟩ : = 1 ∏ x ( N − r x ) ! ∑ π δ π , R ∣ π ⟩ ⊗ 1 2 N ∣ X λ ∣ ∑ f ( − 1 ) ∑ i = 1 t f ( x i , z i ) ∣ f ⟩ . (109) |\mathrm{pf}_R\rangle:=\frac{1}{\sqrt{\prod_x(N-r_x)!}}\sum_\pi\delta_{\pi,R}|\pi\rangle\otimes\frac{1}{\sqrt{2^{N|\mathcal{X}_\lambda|}}}\sum_f(-1)^{\sum_{i=1}^{t}f(x_i,z_i)}|f\rangle. \tag*{(109)} ∣ pf R ⟩ := ∏ x ( N − r x )! 1 π ∑ δ π , R ∣ π ⟩ ⊗ 2 N ∣ X λ ∣ 1 f ∑ ( − 1 ) ∑ i = 1 t f ( x i , z i ) ∣ f ⟩ . (109)
For each label x x x , exactly ( N − r x ) ! (N-r_x)! ( N − r x )! permutations extend the partial bijection R x R_x R x . Hence there are ∏ x ( N − r x ) ! \prod_x (N-r_x)! ∏ x ( N − r x )! compatible families π \pi π , and Eq. (109) has unit norm. Moreover,
∣ p f ~ R ⟩ = α R ∣ p f R ⟩ , α R : = ∏ x ∈ X λ ( N − r x ) ! N ! . (110) \left|\widetilde{\mathrm{pf}}_R\right\rangle=\alpha_R\left|\mathrm{pf}_R\right\rangle,\qquad\alpha_R:=\prod_{x\in\mathcal{X}_\lambda}\sqrt{\frac{(N-r_x)!}{N!}}. \tag*{(110)} pf R ⟩ = α R ∣ pf R ⟩ , α R := x ∈ X λ ∏ N ! ( N − r x )! . (110)
Lemma 7 (Orthogonality of good relation states). The vectors { ∣ p f R ⟩ : R good } \{\left|\mathrm{pf}_R\right\rangle:R\ \text{good}\} { ∣ pf R ⟩ : R good } are orthonormal.
Proof. The function factor in Eq. (109) is the Fourier-basis vector indexed by the label–input domain { ( x , z ) : ( x , z , y ) ∈ R for some y } \{(x,z):(x,z,y)\in R\ \text{for some }y\} {( x , z ) : ( x , z , y ) ∈ R for some y } . Thus records with different domains have orthogonal function factors. If two good records have the same domain but define different partial maps, their permutation factors have disjoint support. The normalization was established above.
The good length-q q q records determine a projector on P F PF P F and a map from P F PF P F to the record register:
Π ~ g o o d ( q ) : = ∑ ∣ R ∣ = q R g o o d ∣ p f R ⟩ ⟨ p f R ∣ , \widetilde{\Pi}^{(q)}_{\mathrm{good}}:=\sum_{\substack{|R|=q\\R\ \mathrm{good}}}\left|\mathrm{pf}_R\right\rangle\left\langle\mathrm{pf}_R\right|, Π good ( q ) := ∣ R ∣ = q R good ∑ ∣ pf R ⟩ ⟨ pf R ∣ ,
Comp q : = ∑ ∣ R ∣ = q R g o o d ∣ R ⟩ ⟨ p f R ∣ . (111) \operatorname{Comp}_q:=\sum_{\substack{|R|=q\\R\ \mathrm{good}}}|R\rangle\left\langle\mathrm{pf}_R\right|. \tag*{(111)} Comp q := ∣ R ∣ = q R good ∑ ∣ R ⟩ ⟨ pf R ∣ . (111)
Lemma 7 shows that Π ~ g o o d ( q ) \widetilde{\Pi}^{(q)}_{\mathrm{good}} Π good ( q ) is a projector and Comp q \operatorname{Comp}_q Comp q is an isometry on its range.
Lemma 8 (Good-sector selection). For every length-q q q record R R R ,
Π ~ g o o d ( q ) ∣ p f ~ R ⟩ = { α R ∣ p f R ⟩ , R g o o d , 0 , R n o t g o o d . (112) \widetilde{\Pi}^{(q)}_{\mathrm{good}}\left|\widetilde{\mathrm{pf}}_R\right\rangle=
\begin{cases}
\alpha_R\left|\mathrm{pf}_R\right\rangle, & R\ \mathrm{good},\\
0, & R\ \mathrm{not\ good}.
\end{cases} \tag*{(112)} Π good ( q ) pf R ⟩ = { α R ∣ pf R ⟩ , 0 , R good , R not good . (112) Proof. If a record assigns different outputs to one input, or the same output to different inputs at one label, no permutation extends it and Eq. (108) vanishes. Otherwise, removing repeated copies leaves a partial bijection at every label. For each pair ( x , z ) (x,z) ( x , z ) , let m x , z m_{x,z} m x , z be its multiplicity in R R R and define S ( R ) : = { ( x , z ) : m x , z is odd } S(R):=\{(x,z):m_{x,z}\ \text{is odd}\} S ( R ) := {( x , z ) : m x , z is odd } . The function factor in Eq. (108) is the Fourier vector indexed by S ( R ) S(R) S ( R ) . If such a consistent record of length q q q is not good, it contains a repeated triple and therefore ∣ S ( R ) ∣ < q |S(R)|<q ∣ S ( R ) ∣ < q . Every good length-q q q record has a label–input domain of size q q q , so its function factor is orthogonal to that of R R R . This proves the second case of Eq. (112) ; the first is Eq. (110) .
For a controlled unitary D ^ = ∑ x ∣ x ⟩ ⟨ x ∣ ⊗ D x \widehat{D}=\sum_x|x\rangle\langle x|\otimes D_x D = ∑ x ∣ x ⟩ ⟨ x ∣ ⊗ D x , define
∣ Ψ q p f O D ^ ⟩ : = ( p f O D ^ A q ) ⋯ ( p f O D ^ A 1 ) ∣ ψ 0 ⟩ L A B 0 ∣ Ω ⟩ P F . (113) \left|\Psi_q^{\mathrm{pfO}\widehat{D}}\right\rangle:=(\mathrm{pfO}\widehat{D}A_q)\cdots(\mathrm{pfO}\widehat{D}A_1)|\psi_0\rangle_{LAB_0}|\Omega\rangle_{PF}. \tag*{(113)} Ψ q pfO D ⟩ := ( pfO D A q ) ⋯ ( pfO D A 1 ) ∣ ψ 0 ⟩ L A B 0 ∣Ω ⟩ P F . (113)
In what follows, identity operators on registers complementary to the displayed projectors and isometries are suppressed.
Lemma 9 (Compression identity). For every controlled unitary D ^ = ∑ x ∣ x ⟩ ⟨ x ∣ ⊗ D x \widehat{D}=\sum_x|x\rangle\langle x|\otimes D_x D = ∑ x ∣ x ⟩ ⟨ x ∣ ⊗ D x ,
( I L A B q ⊗ Comp q ) Π ~ g o o d ( q ) ∣ Ψ q p f O D ^ ⟩ = Π g o o d ( q ) ∣ Ψ q D ^ ⟩ . (114) \left(I_{LAB_q}\otimes\operatorname{Comp}_q\right)\widetilde{\Pi}^{(q)}_{\mathrm{good}}\left|\Psi_q^{\mathrm{pfO}\widehat{D}}\right\rangle=\Pi^{(q)}_{\mathrm{good}}\left|\Psi_q^{\widehat{D}}\right\rangle. \tag*{(114)} ( I L A B q ⊗ Comp q ) Π good ( q ) Ψ q pfO D ⟩ = Π good ( q ) Ψ q D ⟩ . (114) Proof. Expand both experiments over the computational-basis labels, inputs, and outputs at successive queries. Each ordered history determines a multiset R R R and the same product of matrix elements of D ^ \widehat{D} D and the adversarial isometries. In the purified experiment, its hidden vector is Eq. (108) . Lemma 8 removes precisely the nongood length-q q q records. A history ending in a good record has good prefixes at every round, and the recorder assigns it the normalization
∏ x ∈ X λ ( N − r x ) ! N ! = α R . \prod_{x\in\mathcal{X}_\lambda}\sqrt{\frac{(N-r_x)!}{N!}}=\alpha_R. x ∈ X λ ∏ N ! ( N − r x )! = α R . Equation (110) gives exactly the same coefficient in the purified experiment, and Comp q ∣ p f R ⟩ = ∣ R ⟩ \operatorname{Comp}_q|\mathrm{pf}_R\rangle=|R\rangle Comp q ∣ pf R ⟩ = ∣ R ⟩ . The projected expansions therefore agree term by term. Summing their amplitudes proves Eq. (114) , including interference between histories with the same record. Both the labels and the records remain coherent throughout.
Statistical comparison with the Haar experiment
The projections above act only on hidden registers. The following identity converts their discarded probability directly into a trace-norm bound.
Lemma 10 (Projection on a hidden environment). Let ρ S E \rho_{SE} ρ S E be a normalized state, let Q E Q_E Q E be a projector on the hidden register , and write Q : = I S ⊗ Q E Q := I_S \otimes Q_E Q := I S ⊗ Q E . Then
∥ tr E ( ρ ) − tr E ( Q ρ Q ) ∥ 1 = 1 − Tr ( Q ρ ) . (115) \left\lVert\operatorname{tr}_E(\rho)-\operatorname{tr}_E(Q\rho Q)\right\rVert_1=1-\operatorname{Tr}(Q\rho). \tag*{(115)} ∥ tr E ( ρ ) − tr E ( QρQ ) ∥ 1 = 1 − Tr ( Qρ ) . (115)
Proof. Cyclicity of the partial trace on E E E eliminates the two cross terms, so tr E ( ρ ) − tr E ( Q ρ Q ) = tr E ( ( I − Q ) ρ ( I − Q ) ) ⪰ 0 \operatorname{tr}_E(\rho)-\operatorname{tr}_E(Q\rho Q)=\operatorname{tr}_E((I-Q)\rho(I-Q)) \succeq0 tr E ( ρ ) − tr E ( QρQ ) = tr E (( I − Q ) ρ ( I − Q )) ⪰ 0 . The trace norm of this positive operator equals its trace, which is 1 − Tr ( Q ρ ) 1-\operatorname{Tr}(Q\rho) 1 − Tr ( Qρ ) .
To compare both target ensembles with the same recorder, allow a possibly different input unitary at each label and define
W P F C ( C ) : = ∑ x ∈ X λ ∣ x ⟩ ⟨ x ∣ ⊗ P π x Φ f x C x , (116) W_{\mathrm{PFC}}(C):=\sum_{x\in\mathcal{X}_\lambda}|x\rangle\langle x|\otimes P_{\pi_x}\Phi_{f_x}C_x, \tag*{(116)} W PFC ( C ) := x ∈ X λ ∑ ∣ x ⟩ ⟨ x ∣ ⊗ P π x Φ f x C x , (116)
Here C = ( C x ) x ∈ X λ C=(C_x)_{x\in\mathcal{X}_\lambda} C = ( C x ) x ∈ X λ has a specified joint distribution, f f f is uniformly random on X λ × Z λ \mathcal{X}_\lambda\times\mathcal{Z}_\lambda X λ × Z λ , and the π x \pi_x π x are independent uniformly random permutations; the function, permutation family, and C C C are sampled independently. Let ρ P F C ( C ) A \rho_{\mathrm{PFC}(C)}^A ρ PFC ( C ) A be the adversary’s final state averaged over these choices. The reference state on L A B q LAB_q L A B q is
ρ V A : = tr E ∣ Ψ q V ⟩ ⟨ Ψ q V ∣ . \rho_V^A:=\operatorname{tr}_E|\Psi_q^V\rangle\langle\Psi_q^V|. ρ V A := tr E ∣ Ψ q V ⟩ ⟨ Ψ q V ∣.
Lemma 11 (Comparison with the indexed recorder). If every marginal C x C_x C x is an exact unitary 2-design , with arbitrary correlations among labels , then
∥ ρ P F C ( C ) A − ρ V A ∥ 1 ≤ 2 β q = 2 q ( q − 1 ) N + 1 . (117) \left\lVert\rho_{\mathrm{PFC}(C)}^A-\rho_V^A\right\rVert_1\le2\beta_q=\frac{2q(q-1)}{N+1}. \tag*{(117)} ρ PFC ( C ) A − ρ V A 1 ≤ 2 β q = N + 1 2 q ( q − 1 ) . (117)
Proof. Define the subnormalized state on L A B q LAB_q L A B q
σ g o o d : = E C [ tr E ( Π g o o d ( q ) ∣ Ψ q V ^ C ⟩ ⟨ Ψ q V ^ C ∣ Π g o o d ( q ) ) ] . (118) \sigma_{\mathrm{good}}:=\mathbb{E}_C\left[\operatorname{tr}_E\left(\Pi_{\mathrm{good}}^{(q)}|\Psi_q^{\widehat{V}C}\rangle\langle\Psi_q^{\widehat{V}C}|\Pi_{\mathrm{good}}^{(q)}\right)\right]. \tag*{(118)} σ good := E C [ tr E ( Π good ( q ) ∣ Ψ q V C ⟩ ⟨ Ψ q V C ∣ Π good ( q ) ) ] . (118)
The compression identity, Eq. (114) , implies that the same state is obtained by projecting P F PF P F with Π ~ g o o d ( q ) \widetilde{\Pi}_{\mathrm{good}}^{(q)} Π good ( q ) in the purified permutation–phase experiment and tracing out P F PF P F . An isometry acting only on the retained hidden subspace does not change this partial trace.
By right-unitary invariance, the unprojected recorder has reduced state ρ V A \rho_V^A ρ V A for every C C C . Lemma 10, applied in each experiment and then averaged, therefore gives
ρ V A − σ g o o d ⪰ 0 , ρ P F C ( C ) A − σ g o o d ⪰ 0 , \rho_V^A-\sigma_{\mathrm{good}}\succeq0,\qquad\rho_{\mathrm{PFC}(C)}^A-\sigma_{\mathrm{good}}\succeq0, ρ V A − σ good ⪰ 0 , ρ PFC ( C ) A − σ good ⪰ 0 ,
∥ ρ V A − σ g o o d ∥ 1 = ∥ ρ P F C ( C ) A − σ g o o d ∥ 1 = 1 − Tr ( σ g o o d ) ≤ β q . (119) \left\lVert\rho_V^A-\sigma_{\mathrm{good}}\right\rVert_1=\left\lVert\rho_{\mathrm{PFC}(C)}^A-\sigma_{\mathrm{good}}\right\rVert_1=1-\operatorname{Tr}(\sigma_{\mathrm{good}})\le\beta_q. \tag*{(119)} ρ V A − σ good 1 = ρ PFC ( C ) A − σ good 1 = 1 − Tr ( σ good ) ≤ β q . (119)
The last inequality is Eq. (105) . Taking the triangle inequality through σ g o o d \sigma_{\mathrm{good}} σ good proves Eq. (117) .
Proof of Theorem 2. First take C x = C C_x=C C x = C for every label, where C C C is the common exact unitary 2-design element in Eq. (25) . Then W P F C ( C ) = W P F C W_{\mathrm{PFC}}(C)=W_{\mathrm{PFC}} W PFC ( C ) = W PFC , and Lemma 11 gives
∥ ρ P F C A − ρ V A ∥ 1 ≤ 2 β q . (120) \left\lVert\rho_{\mathrm{PFC}}^A-\rho_V^A\right\rVert_1\le2\beta_q. \tag*{(120)} ρ PFC A − ρ V A 1 ≤ 2 β q . (120)
Next take C x = H x C_x=H_x C x = H x , where the H x H_x H x are independent Haar-random unitaries in U ( N ) \mathrm{U}(N) U ( N ) . Every marginal is an exact unitary 2-design, so the same lemma applies. Conditional on any fixed f f f and π \pi π , left invariance of Haar measure gives
P π x Φ f x H x ∼ μ H a a r ( U ( N ) ) P_{\pi_x}\Phi_{f_x}H_x\sim\mu_{\mathrm{Haar}}(\mathrm{U}(N)) P π x Φ f x H x ∼ μ Haar ( U ( N ))
for every x x x , and independence across labels is preserved. Consequently, Eq. (116) has exactly the function-like Haar distribution defined in Eq. (8) , and
∥ ρ H a a r A − ρ V A ∥ 1 ≤ 2 β q . (121) \left\lVert\rho_{\mathrm{Haar}}^A-\rho_V^A\right\rVert_1\le2\beta_q. \tag*{(121)} ρ Haar A − ρ V A 1 ≤ 2 β q . (121)
The triangle inequality therefore yields
∥ ρ P F C A − ρ H a a r A ∥ 1 ≤ 4 β q . \left\lVert\rho_{\mathrm{PFC}}^A-\rho_{\mathrm{Haar}}^A\right\rVert_1\le4\beta_q. ρ PFC A − ρ Haar A 1 ≤ 4 β q .
Using Δ ( ρ , σ ) = 1 2 ∥ ρ − σ ∥ 1 \Delta(\rho,\sigma)=\frac{1}{2}\left\lVert\rho-\sigma\right\rVert_1 Δ ( ρ , σ ) = 2 1 ∥ ρ − σ ∥ 1 and β q = q ( q − 1 ) / ( N + 1 ) \beta_q=q(q-1)/(N+1) β q = q ( q − 1 ) / ( N + 1 ) proves Eq. (32) .
Computational security and the phase-oracle convention
We first make explicit the phase-oracle convention used in Theorem 3. For any Boolean function h : X λ × Z λ → { 0 , 1 } h:\mathcal{X}_{\lambda}\times\mathcal{Z}_{\lambda}\to\{0,1\} h : X λ × Z λ → { 0 , 1 } , let Φ ^ h \widehat{\Phi}_h Φ h be the phase oracle defined as in Eq. (26) . The phase-oracle advantage of B Φ \mathcal{B}_{\Phi} B Φ is
Adv g q p r f ( B Φ ; λ ) : = ∣ Pr k Φ [ B Φ Φ ^ g k Φ ( 1 λ ) = 1 ] − Pr f [ B Φ Φ ^ f ( 1 λ ) = 1 ] ∣ , (122) \operatorname{Adv}^{\mathrm{qprf}}_{g}(\mathcal{B}_{\Phi};\lambda):=\left|\Pr_{k_{\Phi}}\left[\mathcal{B}_{\Phi}^{\widehat{\Phi}_{g_{k_{\Phi}}}}(1^{\lambda})=1\right]-\Pr_f\left[\mathcal{B}_{\Phi}^{\widehat{\Phi}_{f}}(1^{\lambda})=1\right]\right|, \tag*{(122)} Adv g qprf ( B Φ ; λ ) := k Φ Pr [ B Φ Φ g k Φ ( 1 λ ) = 1 ] − f Pr [ B Φ Φ f ( 1 λ ) = 1 ] , (122)
where k Φ k_{\Phi} k Φ is sampled by the qPRF key generator and f f f is uniformly random on X λ × Z λ \mathcal{X}_{\lambda}\times\mathcal{Z}_{\lambda} X λ × Z λ . Both challenge oracles are persistent and allow adaptive queries in superposition over labels and data. This is the advantage used in Theorem 3; the phase-kickback simulation below bounds it by standard qPRF security.
Fix the q q q -query adversary A \mathcal{A} A from Theorem 3. Let p i p_i p i denote its acceptance probability in the following four persistent-oracle experiments:
C 1 \mathsf{C}_1 C 1 : Replace g k Φ g_{k_{\Phi}} g k Φ by a uniformly random function f : X λ × Z λ → { 0 , 1 } f:\mathcal{X}_{\lambda}\times\mathcal{Z}_{\lambda}\to\{0,1\} f : X λ × Z λ → { 0 , 1 } , leaving Π k P \Pi_{k_P} Π k P and C C C unchanged.
For the first transition, the phase-oracle distinguisher B Φ \mathcal{B}_{\Phi} B Φ samples k P k_P k P and C C C independently and then runs A \mathcal{A} A . Whenever A \mathcal{A} A makes a coherent-PRFU query, B Φ \mathcal{B}_{\Phi} B Φ applies I L ⊗ C I_L\otimes C I L ⊗ C , invokes its phase-oracle challenge once on L A L_A L A , and applies the locally implemented permutation P ^ Π k P \widehat{P}_{\Pi_{k_P}} P Π k P . If the challenge is Φ ^ g k Φ \widehat{\Phi}_{g_{k_{\Phi}}} Φ g k Φ , the simulation is exactly C 0 \mathsf{C}_0 C 0 ; if the challenge is Φ ^ f \widehat{\Phi}_f Φ f for uniformly random f f f , it is exactly C 1 \mathsf{C}_1 C 1 . Consequently,
∣ p 0 − p 1 ∣ = Adv g q p r f ( B Φ ; λ ) , (123) |p_0-p_1|=\operatorname{Adv}^{\mathrm{qprf}}_{g}(\mathcal{B}_{\Phi};\lambda), \tag*{(123)} ∣ p 0 − p 1 ∣ = Adv g qprf ( B Φ ; λ ) , (123)
and B Φ \mathcal{B}_{\Phi} B Φ makes one phase-oracle query per call made by A \mathcal{A} A , for a total of at most q q q queries. The sampled key and design element have efficient implementations, so B Φ \mathcal{B}_{\Phi} B Φ is nonuniform QPT whenever A \mathcal{A} A is.
To relate this reduction to standard qPRF security, encode ( x , z ) (x,z) ( x , z ) as the corresponding ( d ( λ ) + n ( λ ) ) (d(\lambda)+n(\lambda)) ( d ( λ ) + n ( λ )) -bit input. For a Boolean function h h h , the XOR function oracle is
Q h ∣ x , z , b ⟩ = ∣ x , z , b ⊕ h ( x , z ) ⟩ , b ∈ { 0 , 1 } . (124) Q_h\lvert x,z,b\rangle=\lvert x,z,b\oplus h(x,z)\rangle,\qquad b\in\{0,1\}. \tag*{(124)} Q h ∣ x , z , b ⟩ = ∣ x , z , b ⊕ h ( x , z )⟩ , b ∈ { 0 , 1 } . (124)
Preparing an auxiliary answer qubit in ∣ − ⟩ : = ( ∣ 0 ⟩ − ∣ 1 ⟩ ) / 2 \lvert-\rangle:=(\lvert0\rangle-\lvert1\rangle)/\sqrt{2} ∣ − ⟩ := (∣ 0 ⟩ − ∣ 1 ⟩) / 2 gives
Q h ( ∣ x , z ⟩ ∣ − ⟩ ) = ( − 1 ) h ( x , z ) ∣ x , z ⟩ ∣ − ⟩ . (125) Q_h(\lvert x,z\rangle\lvert-\rangle)=(-1)^{h(x,z)}\lvert x,z\rangle\lvert-\rangle. \tag*{(125)} Q h (∣ x , z ⟩ ∣ − ⟩) = ( − 1 ) h ( x , z ) ∣ x , z ⟩ ∣ − ⟩ . (125)
The answer qubit remains unchanged and unentangled. Hence a standard qPRF distinguisher simulates every phase query exactly using one XOR-oracle query. Uniform randomness on the full bit-string domain restricts to uniform randomness on X λ × Z λ \mathcal{X}_{\lambda}\times\mathcal{Z}_{\lambda} X λ × Z λ , so both challenge branches are preserved. The resulting distinguisher has the same advantage and makes at most q q q queries.
In the second transition, the permutation distinguisher must implement the random phase layer efficiently. A 2 q 2q 2 q -wise independent function suffices. Let K 2 q \mathcal{K}_{2q} K 2 q be an efficiently samplable and reversibly evaluable family of such Boolean functions on X λ × Z λ \mathcal{X}_{\lambda}\times\mathcal{Z}_{\lambda} X λ × Z λ .
Lemma 12 (Limited independence for the phase layer). Consider a quantum algorithm whose only access to f f f is through at most q q q calls to Φ ^ f \widehat{\Phi}_f Φ f . Its initial state and intervening operations, including any other oracle, are independent of f f f . Then its average acceptance probability is identical for a uniformly random f f f and for f ← K 2 q f\leftarrow\mathcal{K}_{2q} f ← K 2 q . This remains true with any additional randomness sampled independently of f f f .
Proof. Fix all independently sampled randomness, including the permutation challenge, and purify intermediate measurements. Write s x , z : = ( − 1 ) f ( x , z ) s_{x,z}:=(-1)^{f(x,z)} s x , z := ( − 1 ) f ( x , z ) . After j j j phase queries, every amplitude is a polynomial of degree at most j j j in the signs s x , z s_{x,z} s x , z : an intervening isometry preserves the degree, and a phase query multiplies each basis component by one sign. The final acceptance probability therefore has degree at most 2 q 2q 2 q . Using s x , z 2 = 1 s_{x,z}^{2}=1 s x , z 2 = 1 , multilinearize this polynomial. Every resulting monomial involves at most 2 q 2q 2 q distinct inputs, and its expectation is the same under uniform and 2 q 2q 2 q -wise independent functions. Finally average over the fixed randomness. Adaptively obtained measurement outcomes are included in the purified computation, not conditioned upon as independent randomness.
For completeness, set m ≔ max { d ( λ ) + n ( λ ) , ⌈ log 2 ( 2 q ) ⌉ , 1 } m \coloneqq\max\{d(\lambda)+n(\lambda),\lceil\log_2(2q)\rceil,1\} m : = max { d ( λ ) + n ( λ ) , ⌈ log 2 ( 2 q )⌉ , 1 } and injectively encode ( x , z ) (x,z) ( x , z ) in F 2 m \mathbb{F}_2^m F 2 m . Sample the 2 q 2q 2 q coefficients of a polynomial of degree at most 2 q − 1 2q-1 2 q − 1 uniformly and independently in this field. Evaluate it at the encoded input and apply a fixed nonzero F 2 \mathbb{F}_2 F 2 -linear functional to obtain a bit. Evaluations at any set of at most 2 q 2q 2 q distinct inputs are independent and uniform. A field representation can be fixed as part of the nonuniform circuit family; reversible field arithmetic then evaluates the function with complexity polynomial in d ( λ ) d(\lambda) d ( λ ) , n ( λ ) n(\lambda) n ( λ ) , and q q q . Computing the bit, applying a phase, and uncomputing the workspace implements its phase oracle exactly. This family is used only by the reduction; the honest construction does not depend on the adversary’s query bound.
The permutation distinguisher B P \mathcal{B}_{P} B P samples f ~ ← K 2 q \tilde{f}\leftarrow\mathcal{K}_{2q} f ~ ← K 2 q and C C C independently and runs A \mathcal{A} A . It answers each oracle call by applying I L ⊗ C I_L\otimes C I L ⊗ C , then the efficiently implemented phase Φ ^ f ~ \widehat{\Phi}_{\tilde{f}} Φ f ~ , and finally its forward in-place tweakable-permutation challenge. In the real branch, the last operation is P ^ Π κ P \widehat{P}_{\Pi_{\kappa_P}} P Π κ P ; in the ideal branch, it is P ^ π \widehat{P}_{\pi} P π for a persistent family of independent uniformly random permutations. Applying Lemma 12 separately in the two branches shows that their acceptance probabilities equal p 1 p_1 p 1 and p 2 p_2 p 2 , respectively. Hence
∣ p 1 − p 2 ∣ = Adv Π i p - q T P R P ( B P ; λ ) . (126) \lvert p_1-p_2\rvert=\operatorname{Adv}_{\Pi}^{\mathrm{ip\text{-}qTPRP}}(\mathcal{B}_P;\lambda). \tag*{(126)} ∣ p 1 − p 2 ∣ = Adv Π ip - qTPRP ( B P ; λ ) . (126)
This is the advantage in Eq. (28) for the interface of Definition 5. The reduction is nonuniform QPT and uses at most q q q forward in-place queries.
Finally, Theorem 2 gives
∣ p 2 − p 3 ∣ ≤ 2 q ( q − 1 ) N + 1 . (127) \lvert p_2-p_3\rvert\leq\frac{2q(q-1)}{N+1}. \tag*{(127)} ∣ p 2 − p 3 ∣ ≤ N + 1 2 q ( q − 1 ) . (127)
By Eq. (33) , the original adversary’s advantage is ∣ p 0 − p 3 ∣ \lvert p_0-p_3\rvert ∣ p 0 − p 3 ∣ . Applying the triangle inequality to Eqs. (123) , (126) , and (127) gives Eq. (34) , proving Theorem 3 with the claimed query bounds.
Proof of Corollary 4. Fix a nonuniform QPT adversary and a polynomial q ( λ ) q(\lambda) q ( λ ) bounding its number of calls. Since n ( λ ) = ω ( log λ ) n(\lambda)=\omega(\log\lambda) n ( λ ) = ω ( log λ ) , one has q ( λ ) < 2 n ( λ ) q(\lambda)<2^{n(\lambda)} q ( λ ) < 2 n ( λ ) for all sufficiently large λ \lambda λ , and the statistical term in Eq. (34) is negligible. The phase-oracle advantage is negligible by the reduction to standard qPRF security in Eqs. (124) –(125) , and the permutation advantage is negligible by Definition 5. Therefore Eq. (34) is negligible, as required by Definition 3. □
Why the construction is forward only
Sharing one design element C C C across all labels restricts the construction to forward security. To see this, suppose ∣ X λ ∣ ≥ 2 \lvert\mathcal{X}_{\lambda}\rvert\geq2 ∣ X λ ∣ ≥ 2 and choose distinct labels x ≠ x ′ x\ne x' x = x ′ . If the adversary had both forward and inverse access, it could implement the relative unitary
G k c o h ( x ′ ) ( G k c o h ( x ) ) † = P Π κ P , x ′ Φ g κ Φ , x ′ Φ g κ Φ , x P Π κ P , x † . (128) G_k^{\mathrm{coh}}(x')\left(G_k^{\mathrm{coh}}(x)\right)^\dagger
=
P_{\Pi_{\kappa_P,x'}}\Phi_{g_{\kappa_\Phi,x'}}\Phi_{g_{\kappa_\Phi,x}}P_{\Pi_{\kappa_P,x}}^\dagger. \tag*{(128)} G k coh ( x ′ ) ( G k coh ( x ) ) † = P Π κ P , x ′ Φ g κ Φ , x ′ Φ g κ Φ , x P Π κ P , x † . (128)
where the common factor C C C cancels. The right-hand side is a signed permutation. By contrast, for independent Haar blocks H x H_x H x and H x ′ H_{x'} H x ′ , the relative unitary H x ′ H x † H_{x'}H_x^\dagger H x ′ H x † is Haar random. Apply the relative unitary to two copies of the same computational-basis state and then measure both outputs in that basis. The outcomes agree with probability one for a signed permutation, whereas the Haar-averaged collision probability is 2 / ( N + 1 ) 2/(N+1) 2/ ( N + 1 ) . Thus neither Theorem 2 nor Theorem 3 asserts strong coherent-label security.
Proofs for the channel and comb liftings
We prove the lifting theorems of § 2.1 by simulating each channel call or comb tooth with one call to the classical-label forward oracle of Eq. (5) . The reductions preserve the full joint quantum state, including correlations with the distinguisher’s workspace and with other active sessions. Throughout, register sizes and process horizons are polynomially bounded, and the register identifications specified by the public process shape are efficient.
Haar–Stinespring channels
Proof of Theorem 4. Let A \mathcal{A} A be an adaptive labeled-channel distinguisher. The reduction B \mathcal{B} B runs A \mathcal{A} A and implements the dilation in Eq. (35) using its unitary challenge. On a query with classical label x x x and input register A A A , it prepares a fresh E i n E_{\mathrm{in}} E in in ∣ 0 ⟩ ⟨ 0 ∣ \lvert0\rangle\langle0\rvert ∣ 0 ⟩ ⟨ 0 ∣ , queries the challenge on A E i n AE_{\mathrm{in}} A E in under label x x x , and interprets the result as B E o u t BE_{\mathrm{out}} B E out . It returns B B B after discarding E o u t E_{\mathrm{out}} E out .
For an input possibly entangled with a reference Z Z Z , the real challenge implements exactly
ρ A Z ⟼ ( Φ G k ( x ) ⊗ I Z ) ( ρ A Z ) . (129) \rho_{AZ} \longmapsto\left(\Phi_{\mathcal{G}_k(x)} \otimes I_Z\right)(\rho_{AZ}). \tag*{(129)} ρ A Z ⟼ ( Φ G k ( x ) ⊗ I Z ) ( ρ A Z ) . (129)
With the ideal challenge, the same procedure implements Φ H x ⊗ I Z \Phi_{H_x} \otimes I_Z Φ H x ⊗ I Z , where the Haar unitary H x H_x H x is reused whenever the label repeats. The environment is freshly initialized on every call in both experiments, as required by the channel interface. Thus every simulated query agrees with the corresponding real or ideal channel query, even when later labels and inputs depend on earlier outputs. The reduction outputs A \mathcal{A} A ’s final bit, so its two acceptance probabilities agree separately with those of A \mathcal{A} A . This proves Eq. (36) , with exactly one forward unitary call per channel call. □
Exact simulation of concurrent sessions
Fix a shape Σ \Sigma Σ satisfying Eq. (40) and the injective label map ℓ \ell ℓ used in Eq. (43) . Let V = ( V u ) u ∈ X λ V=(V_u)_{u\in\mathcal{X}^{\lambda}} V = ( V u ) u ∈ X λ be any fixed family of unitaries on the common D D D -dimensional register. These unitaries define the labeled combs ( V ℓ ( x , 1 ) , … , V ℓ ( x , R ) ) (V_{\ell(x,1)},\ldots,V_{\ell(x,R)}) ( V ℓ ( x , 1 ) , … , V ℓ ( x , R ) ) . Their concurrent interface is the one in Definition 8: Open ( x ) \operatorname{Open}(x) Open ( x ) starts a session with fresh private memory, Step ( s , X i ) \operatorname{Step}(s,X_i) Step ( s , X i ) invokes its next tooth, and Abort ( s ) \operatorname{Abort}(s) Abort ( s ) terminates the session. Only the classical commands and labels are restricted; all data registers and retained workspace may be entangled.
Lemma 13 (Exact concurrent simulation). For every concurrent process distinguisher T \mathcal{T} T making at most q q q tooth invocations, there is an oracle algorithm B O V \mathcal{B}^{\mathcal{O}_V} B O V that simulates this interface exactly using at most q q q classical-label forward calls. If T \mathcal{T} T is QPT, then so is B \mathcal{B} B .
Proof. The simulator runs T \mathcal{T} T and keeps a classical table containing the process label x s x_s x s and next-round index i s i_s i s for each active session s s s . It also retains that session’s private memory register M s , i s − 1 M_{s,i_s-1} M s , i s − 1 . On Open ( x ) \operatorname{Open}(x) Open ( x ) , it allocates a new identifier s s s , sets x s = x x_s=x x s = x and i s = 1 i_s=1 i s = 1 , prepares M s , 0 M_{s,0} M s , 0 in ∣ 0 ⟩ ⟨ 0 ∣ \lvert0\rangle\langle0\rvert ∣ 0 ⟩ ⟨ 0 ∣ , and returns s s s . On Step ( s , X i ) \operatorname{Step}(s,X_i) Step ( s , X i ) , with i = i s i=i_s i = i s , it submits X i M s , i − 1 X_iM_{s,i-1} X i M s , i − 1 to its unitary oracle under the classical label ℓ ( x s , i ) \ell(x_s,i) ℓ ( x s , i ) . The returned register is partitioned as Y i M s , i Y_iM_{s,i} Y i M s , i according to Σ \Sigma Σ . The simulator returns Y i Y_i Y i and, if i < R i<R i < R , retains M s , i M_{s,i} M s , i and sets i s = i + 1 i_s=i+1 i s = i + 1 . After the final round, or upon Abort ( s ) \operatorname{Abort}(s) Abort ( s ) , it discards the memory and removes the session from the active table. Invalid commands receive the same fixed error response in both experiments.
For every fixed V V V , equality of the simulated and genuine joint states follows by induction over the command sequence. Memory initialization, discarding, and classical table updates coincide by construction. For a tooth invocation, let Z Z Z contain the distinguisher’s remaining workspace and all other active session memories. Both implementations apply
σ X i M s , i − 1 Z ⟼ ( V ℓ ( x s , i ) ⊗ I Z ) σ X i M s , i − 1 Z ( V ℓ ( x s , i ) † ⊗ I Z ) . (130) \sigma_{X_iM_{s,i-1}Z} \longmapsto\left(V_{\ell(x_s,i)}\otimes I_Z\right)\sigma_{X_iM_{s,i-1}Z}\left(V_{\ell(x_s,i)}^\dagger\otimes I_Z\right). \tag*{(130)} σ X i M s , i − 1 Z ⟼ ( V ℓ ( x s , i ) ⊗ I Z ) σ X i M s , i − 1 Z ( V ℓ ( x s , i ) † ⊗ I Z ) . (130)
This identity holds for an arbitrary joint input state, so the induction includes correlations between sessions and adaptive measurements by the distinguisher. It therefore also holds after averaging over any distribution of V V V . Each tooth invocation requires one oracle call. Since an efficient distinguisher issues only polynomially many commands, the session table and private memories require only polynomial resources. □
Reusable and function-like pseudorandom combs
Proof of Theorem 5. Apply Lemma 13 with a single fixed process label and tooth labels ℓ 1 , … , ℓ R \ell_1,\ldots,\ell_R ℓ 1 , … , ℓ R . The command Open \operatorname{Open} Open creates a new memory register for each execution. With the real PRFU challenge, the simulated tooth unitaries
@skeleton continuation: Function-like pseudorandom unitaries generate pseudorandom quantum processes are G k ( ℓ i ) G_k(\ell_i) G k ( ℓ i ) , so the service is precisely C k Σ C_k^\Sigma C k Σ from Theorem 5. With the ideal challenge, distinctness of the ℓ i \ell_i ℓ i makes ( H ℓ 1 , … , H ℓ R ) (H_{\ell_1}, \ldots, H_{\ell_R}) ( H ℓ 1 , … , H ℓ R ) a tuple of independent Haar unitaries. The tuple is fixed across sessions, while each session has fresh initial memory. This is exactly the reusable sequential-Haar experiment of Definition 7. The simulator outputs the tester’s final bit, proving equality of the two distinguishing advantages in Eq. (42) . It uses at most q q q oracle calls for q q q tooth invocations.
Proof of Theorem 6. Use the simulator of Lemma 13 with the full label map ℓ ( x , i ) \ell(x,i) ℓ ( x , i ) . Its real challenge implements G k ( ℓ ( x , i ) ) G_k(\ell(x,i)) G k ( ℓ ( x , i )) at tooth i i i of the comb labeled x x x , exactly as in Eq. (43) . In the ideal experiment, define
H x , i : = H ℓ ( x , i ) . (131) H_{x,i} := H_{\ell(x,i)}. \tag*{(131)} H x , i := H ℓ ( x , i ) . (131)
Injectivity of ℓ \ell ℓ ensures that these are independent Haar unitaries for distinct pairs ( x , i ) (x,i) ( x , i ) . Thus different process labels select independent sequential-Haar combs, and every session with the same process label reuses the same tooth tuple. Fresh initialization at Open ( x ) \operatorname{Open}(x) Open ( x ) gives each session its own private memory, as required by Definition 8. Consequently,
Pr k [ T [ { C k , x Σ } x ] = 1 ] = Pr k [ B O G k = 1 ] , \Pr_{k}\left[\mathcal{T}\left[\{C_{k,x}^{\Sigma}\}_{x}\right]=1\right] = \Pr_{k}\left[\mathcal{B}^{\mathcal{O}G_k}=1\right], k Pr [ T [ { C k , x Σ } x ] = 1 ] = k Pr [ B O G k = 1 ] ,
Pr H [ T [ { H x Σ } x ] = 1 ] = Pr H [ B O H = 1 ] . (132) \Pr_{\mathbf{H}}\left[\mathcal{T}\left[\{H_x^{\Sigma}\}_{x}\right]=1\right] = \Pr_{\mathbf{H}}\left[\mathcal{B}^{\mathcal{O}H}=1\right]. \tag*{(132)} H Pr [ T [ { H x Σ } x ] = 1 ] = H Pr [ B O H = 1 ] . (132)
Taking the absolute difference proves Eq. (46) . The reduction makes one call per tooth invocation, with no additional loss from the horizon or the number of process labels.
Why different teeth need distinct labels
The independence of the ideal teeth is essential. The example mentioned after Theorem 5 already distinguishes repeated use of one Haar unitary from a sequential-Haar comb without any private memory.
Proposition 5 (Repeated and independent unitary teeth). For a two-round memoryless shape with D D D -dimensional inputs and outputs, a tester distinguishes ( U , U ) (U,U) ( U , U ) , with U ← μ H a a r ( U ( D ) ) U \leftarrow\mu_{\mathrm{Haar}}(\mathrm{U}(D)) U ← μ Haar ( U ( D )) , from ( H 1 , H 2 ) (H_1,H_2) ( H 1 , H 2 ) , with independent Haar H 1 , H 2 H_1,H_2 H 1 , H 2 , with acceptance-probability gap
1 2 ( 1 − 1 D 2 ) . (133) \frac{1}{2}\left(1-\frac{1}{D^2}\right). \tag*{(133)} 2 1 ( 1 − D 2 1 ) . (133)
Proof. At each tooth, the tester supplies half of the normalized maximally entangled state ∣ Φ D ⟩ = D − 1 / 2 ∑ j = 1 D ∣ j , j ⟩ \lvert\Phi_D\rangle= D^{-1/2}\sum_{j=1}^{D}\lvert j,j\rangle ∣ Φ D ⟩ = D − 1/2 ∑ j = 1 D ∣ j , j ⟩ and retains the other half. It stores the first output while invoking the second tooth, then performs a swap test on the resulting normalized Choi states ∣ J ( V ) ⟩ = ( V ⊗ I ) ∣ Φ D ⟩ \lvert J(V)\rangle= (V\otimes I)\lvert\Phi_D\rangle ∣ J ( V )⟩ = ( V ⊗ I ) ∣ Φ D ⟩ . Repeated use of U U U produces identical Choi states, so the test accepts with probability one. For independent Haar teeth,
E H 1 , H 2 [ ∣ ⟨ J ( H 1 ) ∣ J ( H 2 ) ⟩ ∣ 2 ] = 1 D 2 E V [ ∣ tr V ∣ 2 ] = 1 D 2 , (134) \mathbb{E}_{H_1,H_2}\left[\left|\langle J(H_1)\mid J(H_2)\rangle\right|^2\right]
= \frac{1}{D^2}\mathbb{E}_{V}\left[|\operatorname{tr}V|^2\right]
= \frac{1}{D^2}, \tag*{(134)} E H 1 , H 2 [ ∣ ⟨ J ( H 1 ) ∣ J ( H 2 )⟩ ∣ 2 ] = D 2 1 E V [ ∣ tr V ∣ 2 ] = D 2 1 , (134)
where V = H 1 † H 2 V=H_1^\dagger H_2 V = H 1 † H 2 is Haar. The final equality follows from E [ V i j V ‾ k l ] = δ i k δ j l / D \mathbb{E}[V_{ij}\overline{V}_{kl}]=\delta_{ik}\delta_{jl}/D E [ V ij V k l ] = δ ik δ j l / D . The averaged acceptance probability is therefore 1 2 ( 1 + D − 2 ) \frac{1}{2}(1+D^{-2}) 2 1 ( 1 + D − 2 ) , giving the stated gap.
Consequences for pseudorandom processes
The exact simulation above also establishes security for prefixes of a process, efficient causal transformations, and a simple prediction task at a fresh process label. All three consequences use the same classical control interface and allow arbitrary quantum workspace.
Prefix-consistent variable horizons
Fix a public polynomial bound R max R_{\max} R m a x and a shape Σ max \Sigma_{\max} Σ m a x satisfying Eq. (40) through round R max R_{\max} R m a x . Choose distinct efficiently computable labels ℓ 1 , … , ℓ R max \ell_1,\ldots,\ell_{R_{\max}} ℓ 1 , … , ℓ R m a x . For R ≤ R max R\le R_{\max} R ≤ R m a x , let Σ R \Sigma_R Σ R be the truncated shape, with memory discarded after round R R R , and define
C k Σ ( R ) : = ( G k ( ℓ 1 ) , … , G k ( ℓ R ) ) with shape Σ R . (135) C_k^{\Sigma(R)} := \left(G_k(\ell_1),\ldots,G_k(\ell_R)\right)\ \text{with shape }\Sigma_R. \tag*{(135)} C k Σ ( R ) := ( G k ( ℓ 1 ) , … , G k ( ℓ R ) ) with shape Σ R . (135)
The labels do not depend on the selected horizon. In the ideal family, all horizons likewise use prefixes of one persistent sequence ( H i ) i ∈ [ R max ] (H_i)_{i\in[R_{\max}]} ( H i ) i ∈ [ R m a x ] of independent Haar teeth.
Proposition 6 (Variable-horizon security). The family { C k ( R ) } R ∈ [ R max ] \{C_k^{(R)}\}_{R\in[R_{\max}]} { C k ( R ) } R ∈ [ R m a x ] is prefix-consistent: terminating any longer member after round R R R gives C k ( R ) C_k^{(R)} C k ( R ) . If G G G is a classical-label forward PRFU, this family is computationally indistinguishable from the ideal prefix family under adaptive horizon selection and concurrent sessions. For every QPT distinguisher making at most q q q total tooth invocations, there is a PRFU distinguisher making at most q q q calls with the same advantage.
Proof. For R ≤ R ′ R \le R' R ≤ R ′ , the first R R R rounds of C k ( R ′ ) C_k^{(R')} C k ( R ′ ) and C k ( R ) C_k^{(R)} C k ( R ) use identical tooth unitaries, register identifications, and initial memory. Discarding the current memory after round R R R therefore gives the same output state for every tester, proving prefix consistency.
To simulate joint access to the family, augment the table in Lemma 13 with each session’s selected horizon R s R_s R s . At round i i i , query the unitary oracle under ℓ i \ell_i ℓ i and discard the session memory upon reaching R s R_s R s or receiving Abort( s ) (s) ( s ) . The simulation is exact command by command. Its real branch implements the keyed prefix family, and its ideal branch implements prefixes of the same Haar sequence H i = H ℓ i H_i=H_{\ell_i} H i = H ℓ i . This proves the security claim and query count. The tester may also decide during an execution to stop at any earlier round, using the existing abort command.
Independent labeled families of prefixes follow by replacing ℓ i \ell_i ℓ i with an injective map ℓ ( x , i ) \ell(x,i) ℓ ( x , i ) and including x x x in the session’s opening command. Independence then holds between process labels; different horizons at the same process label retain their common prefix.
An efficient causal transformation S S S is a quantum procedure that uses a source process through its declared interface and exposes a new process or an output system. It may initialize ancillary systems, interleave interventions, and discard or measure outputs. Let r S ( q ) r_S(q) r S ( q ) bound the number of source-process invocations needed when the transformed interface is invoked at most q q q times. For ensembles X , Y X,Y X , Y with the same interface, write
Adv p r o c ( D ; X , Y ; λ ) : = ∣ Pr [ D [ X ] = 1 ] − Pr [ D [ Y ] = 1 ] ∣ . (136) \operatorname{Adv}_{\mathrm{proc}}(D;X,Y;\lambda) := \left|\Pr[D[X]=1]-\Pr[D[Y]=1]\right|. \tag*{(136)} Adv proc ( D ; X , Y ; λ ) := ∣ Pr [ D [ X ] = 1 ] − Pr [ D [ Y ] = 1 ] ∣ . (136)
Proposition 7 (Causal data processing). For every efficient causal transformation S S S and QPT distinguisher D D D making at most q q q transformed-process invocations, there is a QPT distinguisher B B B making at most r S ( q ) r_S(q) r S ( q ) source-process invocations such that
Adv p r o c ( D ; S ( X ) , S ( Y ) ; λ ) = Adv p r o c ( B ; X , Y ; λ ) . (137) \operatorname{Adv}_{\mathrm{proc}}(D;S(X),S(Y);\lambda)=\operatorname{Adv}_{\mathrm{proc}}(B;X,Y;\lambda). \tag*{(137)} Adv proc ( D ; S ( X ) , S ( Y ) ; λ ) = Adv proc ( B ; X , Y ; λ ) . (137)
Proof. The reduction B B B implements S S S using its challenge process, runs D D D on the exposed interface, and outputs D D D ’s final bit. All operations of S S S , including its randomness and intermediate measurements, are part of this simulation. For either challenge ensemble, the resulting interaction is exactly the corresponding transformed experiment. Equality of the acceptance probabilities proves Eq. (137) ; the invocation bound follows from the definition of r S r_S r S .
Thus efficient interventions, coarse-graining, channel extraction, and measurement preserve computational indistinguishability. The ideal comparison is obtained by applying the same transformation to the sequential-Haar process; it need not itself be a sequential-Haar ensemble of another shape.
Prediction at a fresh process label
Consider a learner that makes at most q q q training tooth invocations through the function-like comb interface and retains quantum workspace Z Z Z . At the end of training, it chooses a classical process label x ∗ x^* x ∗ that has not occurred in any Open command and supplies an input X 1 X_1 X 1 for the first tooth of a new session. The challenger initializes the private memory, applies the first tooth, and measures the output Y 1 Y_1 Y 1 in a fixed rank-one orthonormal basis. The output register and measurement outcome are withheld. The learner, using only its retained workspace and with no further process queries, guesses the outcome. The input X 1 X_1 X 1 may be entangled with Z Z Z .
If d Y = dim H Y 1 d_Y=\dim\mathcal{H}_{Y_1} d Y = dim H Y 1 and G G G is a classical-label forward PRFU, then there is a PRFU distinguisher B B B for which
p g u e s s r e a l ≤ 1 d Y + Adv G c l , → ( B ; λ ) , q B ≤ q + 1. (138) p_{\mathrm{guess}}^{\mathrm{real}}\leq\frac{1}{d_Y}+\operatorname{Adv}^{\mathrm{cl},\rightarrow}_G(B;\lambda),\qquad q_B\leq q+1. \tag*{(138)} p guess real ≤ d Y 1 + Adv G cl , → ( B ; λ ) , q B ≤ q + 1. (138)
Proof. In the ideal experiment, condition on the classical training transcript and the chosen value x ⋆ x^\star x ⋆ . Since the label is fresh and ℓ \ell ℓ is injective, the first-tooth unitary H x ⋆ , 1 H_{x^\star,1} H x ⋆ , 1 is independent of the conditional joint state ρ X 1 Z \rho_{X_1Z} ρ X 1 Z . This remains true with adaptive label selection: the training interaction accesses only entries associated with other process labels. Set d M = dim H M 1 d_M = \dim\mathcal{H}_{M_1} d M = dim H M 1 , so D = d Y d M D = d_Yd_M D = d Y d M by Eq. (40) . Haar averaging on X 1 M 0 ≅ Y 1 M 1 X_1M_0 \cong Y_1M_1 X 1 M 0 ≅ Y 1 M 1 gives
E H [ ( H ⊗ I Z ) ( ρ X 1 Z ⊗ ∣ 0 ⟩ ⟨ 0 ∣ M 0 ) ( H † ⊗ I Z ) ] = I Y 1 d Y ⊗ I M 1 d M ⊗ ρ Z , (139) \mathbb{E}_H\left[(H\otimes I_Z)(\rho_{X_1Z}\otimes|0\rangle\langle0|_{M_0})(H^\dagger\otimes I_Z)\right]
= \frac{I_{Y_1}}{d_Y}\otimes\frac{I_{M_1}}{d_M}\otimes\rho_Z, \tag*{(139)} E H [ ( H ⊗ I Z ) ( ρ X 1 Z ⊗ ∣0 ⟩ ⟨ 0 ∣ M 0 ) ( H † ⊗ I Z ) ] = d Y I Y 1 ⊗ d M I M 1 ⊗ ρ Z , (139)
where the register ordering on the left is understood as X 1 M 0 Z X_1M_0Z X 1 M 0 Z . After tracing out the private memory, the measurement outcome is uniform and independent of Z Z Z . Every guessing measurement therefore succeeds with probability 1 / d Y 1/d_Y 1/ d Y in the ideal experiment.
The reduction B \mathcal{B} B simulates training as in Lemma 13, makes one additional call under ℓ ( x ⋆ , 1 ) \ell(x^\star,1) ℓ ( x ⋆ , 1 ) to implement the challenge tooth, and outputs one exactly when the learner guesses the measurement outcome. Its real acceptance probability is p g u e s s r e a l p_{\mathrm{guess}}^{\mathrm{real}} p guess real and its ideal acceptance probability is 1 / d Y 1/d_Y 1/ d Y . Their difference is bounded by its PRFU advantage, proving Eq. (138) with at most q + 1 q+1 q + 1 calls.
This prediction bound uses a first tooth with fresh initial memory and a previously unused process label. It does not assert a uniform prediction baseline for later teeth, whose private memory may carry correlations from earlier rounds.
Proofs for the applications
This appendix gives the reductions and quantitative bounds for Section VI. Each reduction preserves the adversary’s quantum workspace and simulates the stated interface throughout the interaction. Random unitaries are sampled once and reused whenever their labels recur.
Variable-width unitaries
We use the widths n m = 2 m w n_m=2mw n m = 2 m w , labels in Eq. (47) , and circuits in Eq. (49) . For a family U = { U m } m ∈ [ M ] U=\{U_m\}_{m\in[M]} U = { U m } m ∈ [ M ] , the oracle O U O_U O U accepts a classical width index m m m and applies U m U_m U m to the supplied n m n_m n m -qubit register, with identity on the adversary’s remaining registers. Widths may be chosen adaptively, and a repeated width selects the same unitary. Write
Adv v a r → ( A ; λ ) : = ∣ Pr [ A O V k ( 1 λ ) = 1 ] − Pr [ A O H ( 1 λ ) = 1 ] ∣ , (140) \operatorname{Adv}_{\mathrm{var}}^{\to}(\mathcal{A};\lambda)
:=\left|\Pr\left[\mathcal{A}^{O_{V_k}}(1^\lambda)=1\right]
-\Pr\left[\mathcal{A}^{O_H}(1^\lambda)=1\right]\right|, \tag*{(140)} Adv var → ( A ; λ ) := Pr [ A O V k ( 1 λ ) = 1 ] − Pr [ A O H ( 1 λ ) = 1 ] , (140)
where the H m H_m H m are independent Haar unitaries on n m n_m n m qubits.
The statistical ingredient is the adaptive gluing bound of Ma and Huang [12 ] , Theorem 10 and Eqs. (C.20)–(C.21). When every local gate in Eq. (49) is an independent Haar unitary, the averaged output state of a t t t -query forward algorithm differs from its output with a single Haar unitary on the full register by at most
δ m ( t ) : = 18 m t ( t − 1 ) 2 w (141) \delta_m(t):=\frac{18mt(t-1)}{2^w} \tag*{(141)} δ m ( t ) := 2 w 18 m t ( t − 1 ) (141)
in trace distance. The bound applies to a persistent unitary and arbitrary adaptive interventions, including operations on a reference system. It therefore also bounds the difference of acceptance probabilities. For m = 1 m=1 m = 1 , the two ensembles coincide exactly; Eq. (141) remains a valid upper bound.
Proof of Theorem 7. Fix a QPT adversary A \mathcal{A} A making at most q q q global oracle calls. A classical-label PRFU distinguisher B \mathcal{B} B simulates A \mathcal{A} A with width n m n_m n m by evaluating the two layers in Eq. (48) through its challenge oracle, in the order prescribed by Eq. (49) . Each such query uses 2 m − 1 2m-1 2 m − 1 PRFU calls. Hence B \mathcal{B} B makes at most q ( 2 M − 1 ) q(2M-1) q ( 2 M − 1 ) calls and is efficient for polynomially bounded q , M , w q,M,w q , M , w .
Let p 0 p_0 p 0 be the real acceptance probability and let p 1 p_1 p 1 be the acceptance probability when every local gate is replaced by its ideal PRFU counterpart. The simulation is exact in both branches, so
∣ p 0 − p 1 ∣ = Adv G c l → q ( B ; λ ) . (142) |p_0-p_1|=\operatorname{Adv}_{G}^{\mathrm{cl}\to\mathrm{q}}(\mathcal{B};\lambda). \tag*{(142)} ∣ p 0 − p 1 ∣ = Adv G cl → q ( B ; λ ) . (142)
In the ideal branch, the local gates are mutually independent Haar unitaries because their labels are distinct. Including n m n_m n m in each label also makes the resulting circuits independent across widths.
Next, consider q + 1 q+1 q + 1 statistical hybrids, indexed by j = 0 , … , q j=0,\ldots,q j = 0 , … , q . In hybrid j j j , the first j j j distinct widths encountered by A A A select independent global Haar unitaries; all later new widths select independently sampled circuits of Haar local gates. Once a width is encountered, its unitary is retained for all subsequent queries. Adjacent hybrids coincide up to the first query at the j j j th new width. Condition on that common prefix and the selected width m m m . No gate for this width has yet been used, so its unitary is independent of the conditional workspace and all previously sampled width instances. The remainder of the experiment is an adaptive algorithm making at most q q q calls to this unitary, with the other width instances forming independent side processes. Equation (141) bounds the change in acceptance probability by δ m ( q ) \delta_m(q) δ m ( q ) . If fewer than j j j widths are queried, the two hybrids coincide throughout.
At most q q q distinct widths occur. Writing p 2 p_2 p 2 for the acceptance probability with independent global Haar unitaries gives
∣ p 1 − p 2 ∣ ≤ q max m ≤ M δ m ( q ) . (143) \lvert p_1-p_2\rvert\leq q\max_{m\leq M}\delta_m(q). \tag*{(143)} ∣ p 1 − p 2 ∣ ≤ q m ≤ M max δ m ( q ) . (143)
Combining the two comparisons yields the quantitative bound
Adv v a r → ( A ; λ ) ≤ Adv G c l , → ( B ; λ ) + q max m ≤ M δ m ( q ) ≤ Adv G c l , → ( B ; λ ) + 18 M q 2 ( q − 1 ) 2 w . (144) \begin{aligned}
\operatorname{Adv}_{\mathrm{var}}^{\to}(\mathcal{A};\lambda)\leq\operatorname{Adv}_{G}^{\mathrm{cl},\to}(\mathcal{B};\lambda)+q\max_{m\leq M}\delta_m(q) \\
&\leq\operatorname{Adv}_{G}^{\mathrm{cl},\to}(\mathcal{B};\lambda)+\frac{18Mq^2(q-1)}{2^w}. \tag*{(144)}
\end{aligned} Adv var → ( A ; λ ) ≤ Adv G cl , → ( B ; λ ) + q m ≤ M max δ m ( q ) ≤ Adv G cl , → ( B ; λ ) + 2 w 18 M q 2 ( q − 1 ) . (144)
The first term is negligible by PRFU security. The second is negligible for polynomially bounded M M M , q q q and w = ω ( log λ ) w=\omega(\log\lambda) w = ω ( log λ ) , proving the theorem.
The construction uses 2 m − 1 2m-1 2 m − 1 local evaluations at width n m n_m n m , arranged in two layers of disjoint gates. The key is sampled independently of the requested width; the public parameters w w w and M M M specify the supported range. These statements concern the full n m n_m n m -qubit register, including any public padding used to accommodate a smaller payload.
Inverse-secure recursive gluing
A strong variant uses a different circuit, based on the three-factor gluing theorem of Ananth, Bostanci, Gulati, and Lin [37 Theorem 7.1] . Suppose G k ( x ) G_k(x) G k ( x ) is a strong classical-label PRFU on n 0 n_0 n 0 qubits. Choose an overlap of b b b qubits with n 0 ≥ 2 b n_0\geq2b n 0 ≥ 2 b , and define the supported widths recursively by
n s + 1 : = 2 n s − b , n s = 2 s ( n 0 − b ) + b . (145) n_{s+1}:=2n_s-b,\qquad n_s=2^s(n_0-b)+b. \tag*{(145)} n s + 1 := 2 n s − b , n s = 2 s ( n 0 − b ) + b . (145)
For one gluing step, write the larger register as A B C ABC A B C , with ∣ A ∣ = ∣ C ∣ = n s − b \lvert A\rvert=\lvert C\rvert=n_s-b ∣ A ∣ = ∣ C ∣ = n s − b and ∣ B ∣ = b \lvert B\rvert=b ∣ B ∣ = b . Three independent Haar unitaries on n s n_s n s qubits, composed as U A B ( 3 ) U B C ( 2 ) U A B ( 1 ) U_{AB}^{(3)}U_{BC}^{(2)}U_{AB}^{(1)} U A B ( 3 ) U B C ( 2 ) U A B ( 1 ) , emulate a Haar unitary on A B C ABC A B C under forward and inverse queries. For at most t t t mixed-direction calls, their statistical distinguishing advantage is bounded by
ε s ( t ) : = C g l ( t 2 2 − b / 2 + t 3 2 − b + t 3 2 − n s / 8 ) . (146) \varepsilon_s(t):=C_{\mathrm{gl}}\left(t^2 2^{-b/2}+t^3 2^{-b}+t^3 2^{-n_s/8}\right). \tag*{(146)} ε s ( t ) := C gl ( t 2 2 − b /2 + t 3 2 − b + t 3 2 − n s /8 ) . (146)
for a universal constant C g l C_{\mathrm{gl}} C gl . The alternating query convention used in the cited theorem suffices here: a strategy making t t t calls with classically chosen directions can be simulated in at most t t t forward–inverse pairs by routing unused calls to fresh dummy registers and discarding their outputs.
Fix a maximum recursion depth R R R . For a target depth r ∈ { 0 , … , R } r\in\{0,\ldots,R\} r ∈ { 0 , … , R } and each leaf v ∈ { 1 , 2 , 3 } r v\in\{1,2,3\}^r v ∈ { 1 , 2 , 3 } r , define
T 0 , v ( r ) : = G k ( enc ( strong-glue , r , v ) ) . (147) T_{0,v}^{(r)}:=G_k(\operatorname{enc}(\operatorname{strong\text{-}glue},r,v)). \tag*{(147)} T 0 , v ( r ) := G k ( enc ( strong - glue , r , v )) . (147)
For s = 0 , … , r − 1 s=0,\ldots,r-1 s = 0 , … , r − 1 and v ∈ { 1 , 2 , 3 } r − s − 1 v\in\{1,2,3\}^{r-s-1} v ∈ { 1 , 2 , 3 } r − s − 1 , set
T s + 1 , v ( r ) : = ( T s , v 3 ( r ) ) A B ( T s , v 2 ( r ) ) B C ( T s , v 1 ( r ) ) A B . (148) T_{s+1,v}^{(r)}:=\left(T_{s,v3}^{(r)}\right)_{AB}\left(T_{s,v2}^{(r)}\right)_{BC}\left(T_{s,v1}^{(r)}\right)_{AB}. \tag*{(148)} T s + 1 , v ( r ) := ( T s , v 3 ( r ) ) A B ( T s , v 2 ( r ) ) B C ( T s , v 1 ( r ) ) A B . (148)
with the register dimensions specified above. The root T r , ∅ ( r ) T_{r,\varnothing}^{(r)} T r , ∅ ( r ) acts on n r n_r n r qubits and uses 3 r 3^r 3 r local PRFU evaluations. Its inverse is obtained by reversing the circuit and inverting every local gate. Labels distinguish all leaves and target depths, while repeated evaluations reuse them.
To analyze this family, first replace all leaves jointly by independent Haar unitaries using strong PRFU security. Let Δ r ( t ) \Delta_r(t) Δ r ( t ) bound the statistical distinguishing advantage between the resulting depth-r r r root and a persistent Haar unitary on n r n_r n r qubits, allowing at most t t t forward or inverse calls. At depth zero the distributions agree. At the next level, replace the three children one at a time by independent Haar unitaries and then apply Eq. (146) . Each global call invokes each child once, so
Δ 0 ( t ) = 0 , Δ s + 1 ( t ) ≤ 3 Δ s ( t ) + ε s ( t ) . (149) \Delta_0(t)=0,\qquad\Delta_{s+1}(t)\le3\Delta_s(t)+\varepsilon_s(t). \tag*{(149)} Δ 0 ( t ) = 0 , Δ s + 1 ( t ) ≤ 3 Δ s ( t ) + ε s ( t ) . (149)
Consequently, Δ r ( t ) ≤ ∑ s = 0 r − 1 3 r − 1 − s ε s ( t ) \Delta_r(t)\le\sum_{s=0}^{r-1}3^{r-1-s}\varepsilon_s(t) Δ r ( t ) ≤ ∑ s = 0 r − 1 3 r − 1 − s ε s ( t ) .
Let Adv v a r ± ( A ; λ ) \operatorname{Adv}^{\pm}_{\mathrm{var}}(\mathcal{A};\lambda) Adv var ± ( A ; λ ) denote the difference of acceptance probabilities between classical access to the pairs ( T r , ∅ ( x ) , ( T r , ∅ ( x ) ) † ) (T_{r,\varnothing}^{(x)},(T_{r,\varnothing}^{(x)})^\dagger) ( T r , ∅ ( x ) , ( T r , ∅ ( x ) ) † ) and to independent Haar pairs ( H r , H r † ) (H_r,H_r^\dagger) ( H r , H r † ) at the same widths. For a q q q -query adversary, the PRFU reduction makes at most q 3 R q3^R q 3 R calls. The first-occurrence hybrid used above then gives
Adv v a r ± ( A ; λ ) ≤ Adv G c l , ± ( B ; λ ) + q max r ≤ R Δ r ( q ) . (150) \operatorname{Adv}^{\pm}_{\mathrm{var}}(\mathcal{A};\lambda)\le\operatorname{Adv}^{\mathrm{cl},\pm}_{G}(\mathcal{B};\lambda)+q\max_{r\le R}\Delta_r(q). \tag*{(150)} Adv var ± ( A ; λ ) ≤ Adv G cl , ± ( B ; λ ) + q r ≤ R max Δ r ( q ) . (150)
Here the advantage uses the absolute difference of acceptance probabilities, and the direction of each query is classical. Since n s ≥ n 0 n_s\ge n_0 n s ≥ n 0 ,
q max r ≤ R Δ r ( q ) = O ( 3 R ( q 3 − b / 2 + q 4 2 − b + q 4 2 − n 0 / 8 ) ) . (151) q\max_{r\le R}\Delta_r(q)=O\left(3^R\left(q3^{-b/2}+q^4 2^{-b}+q^4 2^{-n_0/8}\right)\right). \tag*{(151)} q r ≤ R max Δ r ( q ) = O ( 3 R ( q 3 − b /2 + q 4 2 − b + q 4 2 − n 0 /8 ) ) . (151)
For polynomially bounded n 0 n_0 n 0 , q q q , 3 R 3^R 3 R and b = ω ( log λ ) b=\omega(\log\lambda) b = ω ( log λ ) , this error is negligible and all supported widths and evaluation costs are polynomially bounded. Thus the recursive construction yields a jointly secure family under forward and inverse access, as asserted after Theorem 7.
Fresh-nonce rejection
We use the encoding in Eq. (52) with the unitary in Eq. (51) . The ciphertext register is C = M T B C=MTB C = M T B , with dimensions 2 m 2^m 2 m , 2 ℓ 2^\ell 2 ℓ , and 2 b 2^b 2 b for its three factors. Write R ≔ V a 4 ( 4 ) V a 2 ( 2 ) R\coloneqq V_{a_4}^{(4)}V_{a_2}^{(2)} R : = V a 4 ( 4 ) V a 2 ( 2 ) , so that U k , ν = G k G G ( enc ( auth , ν ) ) R U_{k,\nu}=G_{k_G}G(\operatorname{enc}(\operatorname{auth},\nu))R U k , ν = G k G G ( enc ( auth , ν )) R . The design seeds are sampled independently of k G k_G k G and fixed throughout the experiment. After applying U k , ν † U_{k,\nu}^{\dagger} U k , ν † , verification accepts on the projector
P 0 ≔ I M ⊗ ∣ 0 ℓ ⟩ ⟨ 0 ℓ ∣ T ⊗ I B . (152) P_0\coloneqq I_M\otimes\lvert0^\ell\rangle\langle0^\ell\rvert_T\otimes I_B. \tag*{(152)} P 0 : = I M ⊗ ∣ 0 ℓ ⟩ ⟨ 0 ℓ ∣ T ⊗ I B . (152)
Upon acceptance it returns M M M and discards T T T and B B B ; upon rejection it returns a failure flag.
Proof of Proposition 3. Let A \mathcal{A} A make at most q q q encryption and verification queries before submitting a final nonce ν ⋆ \nu^\star ν ⋆ and ciphertext, which may be entangled with its workspace Z Z Z . By hypothesis, ν ⋆ \nu^\star ν ⋆ has appeared in none of the preceding queries.
In the ideal strong-PRFU experiment, condition on the design seeds, the classical transcript, and the selected fresh nonce. Lazy sampling leaves H e n c ( auth , ν ⋆ ) H_{\mathrm{enc}(\operatorname{auth},\nu^\star)} H enc ( auth , ν ⋆ ) independent of the conditional joint ciphertext–workspace state σ C Z \sigma_{CZ} σ C Z . Abbreviate this Haar unitary as H H H . The full decoding unitary is R † H † R^\dagger H^\dagger R † H † . Since dim C = 2 m + ℓ + b \dim C=2^{m+\ell+b} dim C = 2 m + ℓ + b , Haar twirling gives
E H [ ( R † H † ⊗ I Z ) σ C Z ( H R ⊗ I Z ) ] = ( R † ⊗ I Z ) ( I C 2 m + ℓ + b ⊗ σ Z ) ( R ⊗ I Z ) = I C 2 m + ℓ + b ⊗ σ Z . (153) \mathbb{E}_H\left[(R^\dagger H^\dagger\otimes I_Z)\sigma_{CZ}(HR\otimes I_Z)\right]
=(R^\dagger\otimes I_Z)\left(\frac{I_C}{2^{m+\ell+b}}\otimes\sigma_Z\right)(R\otimes I_Z)
=\frac{I_C}{2^{m+\ell+b}}\otimes\sigma_Z. \tag*{(153)} E H [ ( R † H † ⊗ I Z ) σ C Z ( H R ⊗ I Z ) ] = ( R † ⊗ I Z ) ( 2 m + ℓ + b I C ⊗ σ Z ) ( R ⊗ I Z ) = 2 m + ℓ + b I C ⊗ σ Z . (153)
The ideal probability of acceptance is therefore
Tr [ P 0 I C 2 m + ℓ + b ] = 2 m + b 2 m + ℓ + b = 2 − ℓ . (154) \operatorname{Tr}\left[P_0\frac{I_C}{2^{m+\ell+b}}\right]=\frac{2^{m+b}}{2^{m+\ell+b}}=2^{-\ell}. \tag*{(154)} Tr [ P 0 2 m + ℓ + b I C ] = 2 m + ℓ + b 2 m + b = 2 − ℓ . (154)
This equality holds for every conditioned choice and hence after averaging over the design seeds and transcript. In particular, reusing the design layers across nonces does not change the fresh-nonce bound.
Construct a strong classical-label distinguisher B \mathcal{B} B that samples the design seeds independently of its challenge. To simulate encryption, it appends the tag and auxiliary state, applies V a 2 ( 2 ) V_{a_2}^{(2)} V a 2 ( 2 ) followed by V a 4 ( 4 ) V_{a_4}^{(4)} V a 4 ( 4 ) , and makes a forward challenge call under the requested nonce label. To simulate verification, it makes an inverse challenge call, applies ( V a 4 ( 4 ) ) † (V_{a_4}^{(4)})^\dagger ( V a 4 ( 4 ) ) † followed by ( V a 2 ( 2 ) ) † (V_{a_2}^{(2)})^\dagger ( V a 2 ( 2 ) ) † , measures the tag, and returns the prescribed output. Thus it implements G R GR GR in the forward direction and R † G † R^\dagger G^\dagger R † G † in the inverse direction. Finally, it verifies the submitted ciphertext at ν ⋆ \nu^\star ν ⋆ and outputs one precisely upon acceptance. All design operations are efficient and local. The simulation uses at most q + 1 q+1 q + 1 challenge calls, with real acceptance probability p f r e s h p_{\mathrm{fresh}} p fresh and ideal acceptance probability 2 − ℓ 2^{-\ell} 2 − ℓ , so
∣ p f r e s h − 2 − ℓ ∣ = Adv G c l , ± ( B ; λ ) . (155) \left|p_{\mathrm{fresh}}-2^{-\ell}\right|=\operatorname{Adv}_{G}^{\mathrm{cl},\pm}(B;\lambda). \tag*{(155)} p fresh − 2 − ℓ = Adv G cl , ± ( B ; λ ) . (155)
In particular, Eq. (53) follows.
The same argument bounds t t t adaptively chosen attempts at mutually distinct nonces, each unused before its attempt. In the Haar experiment every attempt has conditional acceptance probability 2 − ℓ 2^{-\ell} 2 − ℓ ; a union bound and a single PRFU reduction give
Pr [ at least one attempt accepts ] ≤ t 2 − ℓ + Adv G c l , ± ( B t ; λ ) . (156) \Pr[\text{at least one attempt accepts}]\leq t2^{-\ell}+\operatorname{Adv}_{G}^{\mathrm{cl},\pm}(B_t;\lambda). \tag*{(156)} Pr [ at least one attempt accepts ] ≤ t 2 − ℓ + Adv G cl , ± ( B t ; λ ) . (156)
Thus polynomially many fresh-nonce attempts have negligible success probability when ℓ = ω ( log λ ) \ell=\omega(\log\lambda) ℓ = ω ( log λ ) , including replay of a ciphertext under a new nonce.
For the inherited authentication guarantee, choose the design accuracy and register sizes as in Ref. [31 ] : take ℓ , b = ω ( log λ ) \ell,b=\omega(\log\lambda) ℓ , b = ω ( log λ ) and a relative-error ε 4 \varepsilon_4 ε 4 -approximate 4-design with, for example, ε 4 = 2 − 2 b − ( log 2 λ ) 2 \varepsilon_4=2^{-2b-(\log_2\lambda)^2} ε 4 = 2 − 2 b − ( l o g 2 λ ) 2 . These moment conditions are used for authentication; the fresh-nonce proof above only uses the independence and unitarity of the design layers. The authentication guarantee cited in the main text follows by fixing a nonce ν \nu ν . The family { G k G ( enc ( auth , ν ) ) } k G \{G_{k_G}(\operatorname{enc}(\operatorname{auth},\nu))\}_{k_G} { G k G ( enc ( auth , ν )) } k G is an adaptive PRU: any single-unitary distinguisher can be simulated by querying the strong PRFU at this one label. The two design seeds are independent of this PRU key and of each other. Consequently, Eq. (51) , together with the tag and mixed auxiliary state, satisfies the construction requirements of PQAS in Ref. [31 ] . Its authentication theorem therefore applies directly at a fixed nonce, including key reuse within its stated attack model. The fresh-nonce bound above separately covers adaptive encryption and verification queries across nonces. Rejection of unchanged ciphertexts replayed at their original nonce requires stateful nonce handling.
Content hiding for coherently masked QRAM
The interface in Proposition 4 exposes only forward applications of the masked lookup in Eq. (55) . On an address register L L L , an m m m -qubit bus B B B , and an arbitrary reference R R R , it acts as
O ~ Q k , D ( ρ L B R ) ≔ ( Q ~ k , D ⊗ I R ) ρ L B R ( Q ~ k , D † ⊗ I R ) . (157) \widetilde{\mathcal{O}}_{Q_{k,D}}(\rho_{LBR})\coloneqq(\widetilde{Q}_{k,D}\otimes I_R)\rho_{LBR}(\widetilde{Q}_{k,D}^{\dagger}\otimes I_R). \tag*{(157)} O Q k , D ( ρ L B R ) : = ( Q k , D ⊗ I R ) ρ L B R ( Q k , D † ⊗ I R ) . (157)
The database and key remain fixed throughout the interaction. The two challenge databases have the same address set and word length, are independent of the key, and admit efficient lookup circuits as in Eq. (54) .
Proof of Proposition 4. For j ∈ { 0 , 1 } j\in\{0,1\} j ∈ { 0 , 1 } , construct a coherent-label PRFU distinguisher B j \mathcal{B}_j B j by running A \mathcal{A} A and answering each query with the known lookup Q D j Q_{D_j} Q D j followed by one challenge call on the address and bus registers. The address itself serves as the PRFU label, exactly as in Eq. (55) . Thus the simulation preserves superpositions of addresses and uses one challenge call per masked lookup.
In the real branch the simulated unitary is Q ~ k , D j \widetilde{Q}_{k,D_j} Q k , D j . In the ideal branch it is
∑ x ∈ X λ ∣ x ⟩ ⟨ x ∣ L ⊗ H x X B D j ( x ) , (158) \sum_{x\in\mathcal{X}_\lambda}|x\rangle\langle x|_L\otimes H_xX_B^{D_j(x)}, \tag*{(158)} x ∈ X λ ∑ ∣ x ⟩ ⟨ x ∣ L ⊗ H x X B D j ( x ) , (158)
where X z ∣ b ⟩ = ∣ b ⊕ z ⟩ X^z|b\rangle=|b\oplus z\rangle X z ∣ b ⟩ = ∣ b ⊕ z ⟩ . Right invariance of Haar measure implies H x X D j ( x ) = d H x H_xX^{D_j(x)}\overset{\mathrm{d}}{=}H_x H x X D j ( x ) = d H x for every address. Applying these fixed right multiplications to the independently sampled H x H_x H x preserves their joint distribution. This is an equality of distributions over persistent controlled unitaries, so it holds for the entire adaptive interaction, including interference between different addresses.
Let p j p_j p j denote A \mathcal{A} A ’s real acceptance probability for database D j D_j D j , and let p H p_H p H denote its acceptance probability under the common ideal distribution in Eq. (158) . Exact simulation gives ∣ p j − p H ∣ = Adv G c o h , → ( B j ; λ ) |p_j-p_H|=\operatorname{Adv}_{G}^{\mathrm{coh},\rightarrow}(\mathcal{B}_j;\lambda) ∣ p j − p H ∣ = Adv G coh , → ( B j ; λ ) . Therefore
∣ p 0 − p 1 ∣ ≤ ∣ p 0 − p H ∣ + ∣ p 1 − p H ∣ = Adv G c o h , → ( B 0 ; λ ) + Adv G c o h , → ( B 1 ; λ ) . (159) \begin{aligned}
|p_0-p_1|&\leq|p_0-p_H|+|p_1-p_H|\\
&=\operatorname{Adv}_{G}^{\mathrm{coh},\rightarrow}(\mathcal{B}_0;\lambda)+\operatorname{Adv}_{G}^{\mathrm{coh},\rightarrow}(\mathcal{B}_1;\lambda). \tag*{(159)}
\end{aligned} ∣ p 0 − p 1 ∣ ≤ ∣ p 0 − p H ∣ + ∣ p 1 − p H ∣ = Adv G coh , → ( B 0 ; λ ) + Adv G coh , → ( B 1 ; λ ) . (159)
Both terms are negligible by coherent-label PRFU security, proving Eq. (56) .
A key holder can undo the mask coherently using its inverse circuit. This decoding operation is private: the adversary receives the combined masked interface, with no separate access to the mask or its inverse. The proposition concerns one fixed database and does not assert security for updates made while reusing the same masks.
Emulation of random multi-time dynamics
Proof of Corollary 5. Fix a QPT concurrent distinguisher T \mathcal{T} T making at most Q Q Q step calls in total. Apply the simulator of Theorem 6 to the process family in Eq. (57) , using ℓ d y n ( x , i ) \ell_{\mathrm{dyn}}(x,i) ℓ dyn ( x , i ) for step i i i of instance x x x . The public shape Σ \Sigma Σ specifies the input, output, and memory registers; the simulator initializes separate private memory for every new session and updates it with one PRFU call at each step.
In the real branch this implements C k , x Σ C_{k,x}^{\Sigma} C k , x Σ exactly. In the ideal branch, injectivity of ℓ d y n \ell_{\mathrm{dyn}} ℓ dyn gives an independent Haar unitary for every pair ( x , i ) (x,i) ( x , i ) , reused across sessions of the same instance. The simulated family is therefore exactly the sequential-Haar reference family. The acceptance-probability difference equals Adv G c l , → ( B ; λ ) \operatorname{Adv}_{G}^{\mathrm{cl},\rightarrow}(B;\lambda) Adv G cl , → ( B ; λ ) for a reduction using at most Q Q Q calls and is negligible. Adaptive stopping requires no additional reduction: an Abort command discards the session memory, and the labels of preceding steps do not depend on when this command is issued. □ \square □