Documentation

CslibFrontier.Crypto.Computational.Quantum

Native quantum indistinguishability of word ensembles #

A native quantum test is one UniformOracleCircuitFamily. At security parameter n, a challenge word x is supplied through the existing classical input encoding (1ⁿ, x). Every quantum-input qubit starts in |0⟩; the generated circuit runs against the all-zero XOR oracle; its declared output prefix is measured in the computational basis; and the first measured bit is the decision. An empty output therefore rejects. distinguishingGame first samples the challenge and then runs that test.

ComputationallyIndistinguishable requires negligible advantage for every such native family. Generation is polynomial in the security parameter and challenge length. When both ensembles have a common polynomial support-length bound, ComputationallyIndistinguishable.of_within converts concrete qubit/gate/query/exact-description bounds into this asymptotic statement using the existing game theorem.

This is a no-advice, no-useful-oracle native submodel of the quantum attackers described in Boneh et al., §2.1, p. 7. The exact generated gate set, zero initialization and terminal measurement are part of the definition. No equivalence with every QPPT convention, gate-approximation theorem, efficient quantum-advice preparation or QROM security is asserted. The packaging and resource bridge are original formalization infrastructure.

Main definitions #

Main results #

References #

Run a native uniform quantum circuit on the classical challenge word. All quantum-input qubits start in the zero basis state. The zero XOR oracle gives no useful oracle access. After terminal basis measurement, the first output bit is the decision; an empty output rejects.

theorem Cslib.Crypto.NativeQuantum.test_eq (family : Quantum.UniformOracleCircuitFamily) (n : ℕ) (x : List Bool) :
test family n x = PMF.map (fun (output : List Bool) => output.headD false) (family.output n x (fun (x_1 : Fin (family.description n x.length).queryWidth → Bool) (x : Fin (family.description n x.length).responseWidth) => false) (Quantum.ket fun (x : Fin (family.description n x.length).quantumInputWidth) => false) ⋯)

The native test is the measured output law mapped to its first bit.

Sample a challenge word from X n, then run the native quantum test on the entire word.

The sampling form of the native distinguishing game.

Every word supported by ensemble X at security parameter n has length at most L n.

A common length schedule bounds every supported word at every security parameter.

At parameter n, both ensembles fit the declared input-length cap and every circuit generated for a shorter input fits the separate qubit, elementary-gate, query and exact encoded-description budgets.

A concrete resource-indexed advantage bound for native quantum tests of two ensembles.

Two word ensembles are computationally indistinguishable for native uniform quantum tests with zero-initialized quantum input and no useful oracle. Circuit generation is polynomial in the unary security parameter and the challenge length; no polynomial challenge-length bound is built into this definition.

Native quantum indistinguishability tests every uniform circuit family with the same ensemble sampling and terminal decision convention.

An ensemble is native-quantum computationally indistinguishable from itself.

Swapping the ensembles preserves native quantum computational indistinguishability.

Native quantum computational indistinguishability is transitive.

theorem Cslib.Crypto.NativeQuantum.ComputationallyIndistinguishable.of_within {X Y : ℕ → PMF (List Bool)} {L : ℕ → ℕ} {ε : ℕ → Quantum.OracleCircuit.Resources → NNReal} (h : IndistinguishableWithin X Y L ε) (hX : SupportsLength X L) (hY : SupportsLength Y L) (hL : PolynomiallyBounded L) (hneg : ∀ (qubits gates queries descriptionBits : ℕ → ℕ), PolynomiallyBounded qubits → PolynomiallyBounded gates → PolynomiallyBounded queries → PolynomiallyBounded descriptionBits → Negligible fun (n : ℕ) => ε n { qubits := qubits n, gates := gates n, queries := queries n, descriptionBits := descriptionBits n }) :

Concrete bounds negligible along every componentwise polynomial resource schedule imply native quantum computational indistinguishability, provided both ensembles have the same polynomial support-length cap.