Run your own circuit (Qiskit / OpenQASM)
quantum_run_circuitBring your own quantum circuit. Paste the OpenQASM that Qiskit writes and Privi runs it on IBM Quantum, IonQ, Amazon Braket or its own simulator, picked by price or speed, then seals the measurement counts with a post-quantum signature anchored on chain. Standard Qiskit gates are rewritten exactly into h, rz, rx, cx; all qubits are measured at the end. Poll with quantum_hardware_job. Free on free backends; paid QPUs need a Quantum Mandate.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"qasm": "<qasm>"
},
"name": "quantum_run_circuit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qasm | Yes | OpenQASM 2.0 or 3.0 text, e.g. from Qiskit: qiskit.qasm2.dumps(circuit) or qiskit.qasm3.dumps(circuit) | |
| label | No | Optional short name for the run (kept in the sealed record) | |
| shots | No | Shots (1-10000) | |
| policy | No | With backend='auto': cheapest | fastest | hardware (real QPUs only) | cheapest |
| backend | No | 'auto' or a backend id from quantum_backends (local, ionq:simulator, ionq:qpu.forte-1, ibm:<name>, braket:<name>) | auto |
| mandate_id | No | qm_... Quantum Mandate (required for paid backends) | |
| privi_pass | No | Your Privi pass (ppass_...); required with a mandate | |
| max_cost_usd | No | Refuse if the estimated price is above this |