Run a wasmQ envelope
run_wasmqRun a wasmQ envelope (wai.quantum.wasmq/1 or /2, extensions/quantum-wasmq.md): an OpenQASM 3 program and the WebAssembly modules its externs call between gates, in one content-addressed envelope. The quantum part is simulated here (the stabilizer tableau, or the second version's whole-number state vector for t, Toffoli and dyadic angles), each callout a metered call of its module; the run is the same bytes on every host and engine. The job gives the counts, the calls and the fuel each used, the modules' digests, the digest of every call, and the fault that stopped the run if one did (a fault is sealed, not an error). A second-version run's energy is what the service read of the worker that ran it: the process's CPU energy on macOS, the processor packages' over its window on Linux, or the unmetered form with the reason where the host reads none, never zero; the first version states only that it is unmetered. The run is a job: past the answer's wait its id comes back to poll with get_quantum_job, and an envelope past what the service takes is refused, naming the local command. Sealed with the service's key; verify_quantum_receipt holds the job to the profile's form (section 6.5). Give the envelope as base64, or name an example; an envelope the profile refuses is refused with its code (W001 to W017).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_wasmq"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| example | No | One of the profile's own envelopes instead: the surface-code round decoded in the middle of the circuit, the atom planner, a fault sealed, and the second version's exact method, feedback, angle arguments and rotations. | |
| envelope_base64 | No | The envelope (a WAI1 file of capability wai.quantum.wasmq, as `wai-quantum pack-wasmq` writes it), as standard base64. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||