uniqc.gateway.api.benchmarks module¶
Local benchmark API: QV, throughput, and noisy-VM QRAM cases.
All endpoints run real local computation on the package’s own simulator stack (no cloud task is created, no quota consumed). Inputs are bounded so a single request cannot pin the gateway for minutes.
- class uniqc.gateway.api.benchmarks.NoiseQRAMRequest(*, case='lookup', address=5, shots=1000, seed=0, model_seed=42)[source]¶
Bases:
BaseModel3-layer QRAM / QPU-addressing case on a synthetic noisy VM.
- address¶
- case¶
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_seed¶
- seed¶
- shots¶
- class uniqc.gateway.api.benchmarks.QVRequest(*, width=4, trials=20, shots=1000, seed=0)[source]¶
Bases:
BaseModelBounded Quantum Volume run parameters.
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- seed¶
- shots¶
- trials¶
- width¶
- class uniqc.gateway.api.benchmarks.ThroughputRequest(*, circuits=200, qubits=8, depth=6, shots=1000, seed=0, backend='dummy:local:simulator')[source]¶
Bases:
BaseModelBounded local compile/execute throughput run parameters.
- backend¶
- circuits¶
- depth¶
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- qubits¶
- seed¶
- shots¶
- uniqc.gateway.api.benchmarks.noise_qram(request)[source]¶
Run a 3-layer QRAM case on a synthetic WK_C180-scale noisy VM.
The exchange model is generated locally (
data_class: synthetic) with the requested seed; hardware-archive models are imported offline via the CLI (uniqc noise import), not through this endpoint.