Documentation

CslibFrontier.Computability.Circuit.Quantum.Oracle.Resources

Separate resources of coded quantum oracle circuits #

The active register width, elementary-gate count, oracle-query count and encoded description length have independent budgets. The caller supplies the exact description length because the same instruction list may occur inside encodings with different register metadata. Validity separately ensures that the interpreter executes every instruction, and uniform generation separately bounds these resources as functions of the input sizes. An oracle query is one operation here; implementing its function is not charged as an elementary circuit.

These coordinates describe the generated circuit artifact and its online execution. They do not charge the static generator program or the time and workspace used to run it. Those costs have a separate certificate; adding any of them to adversary runtime requires an explicit theorem for an executed generator, interpreter or copy operation.

Main definitions #

Independent budgets for a finite circuit artifact and its online execution.

  • qubits : ℕ

    Maximum number of active qubits, including inputs and ancillas.

  • gates : ℕ

    Maximum number of elementary gates.

  • queries : ℕ

    Maximum number of oracle queries.

  • descriptionBits : ℕ

    Maximum number of bits in the selected finite-description encoding.

def Cslib.Quantum.OracleCircuit.Within (codes : OracleCircuit) (width descriptionBits : ℕ) (budget : Resources) :

The finite description fits each budget. The exact encoded length is supplied explicitly because codes alone does not contain all register metadata. This predicate does not assert well-formedness and does not execute or charge a uniform generator.

Instances For
    @[instance_reducible]
    instance Cslib.Quantum.OracleCircuit.instDecidableWithin (codes : OracleCircuit) (width descriptionBits : ℕ) (budget : Resources) :
    Decidable (codes.Within width descriptionBits budget)