Runs
Price a run without submitting it
Validates and prices exactly the run POST /v1/runs would create — same engine, same per-shot rate (including any negotiated org pricing), same shot-range and circuit checks — and charges nothing. POST /v1/quote is the same handler under the path the SDKs called first; both stay.
post/v1/runs/quote
Request
- Base URL: https://api.roroquantum.com
- URL: https://api.roroquantum.com/v1/runs/quote
- Auth: HTTP bearer
Request body
Example request
{
"machineTargetId": "roro.sim.sv",
"targetId": "roro.sim.sv",
"shots": 5000,
"qasm": "OPENQASM 2.0; include \"qelib1.inc\"; qreg q[2]; creg c[2]; h q[0]; cx q[0],q[1]; measure q -> c;",
"tags": {
"user": "u_42"
},
"resilience": {
"level": 1,
"zne": {
"observable": "ZZ"
}
}
}Response
The price and validity of the run, and whether your balance covers it
Example response
{
"machineTargetId": "roro.sim.sv",
"machineName": "RoRo Statevector Simulator",
"shots": 1000,
"free": true,
"valid": true,
"balanceCredits": 100,
"sufficient": true,
"effectiveShots": 1000,
"circuits": 1,
"resilience": {
"circuits": 5,
"effectiveShots": 11264
},
"preflight": {
"state": "ok",
"qubits": 2,
"depth": 3,
"gateCount": 2,
"twoQubitGates": 1,
"warnings": []
},
"priceModel": "per-shot"
}Changes
No recorded changes to this operation across all 1 revision of this API.