Run a circuit on a quantum processor
amazon_braket.run_circuit$0.30 per task + from $0.000425 per shot (about $0.73 for 1,000 shots on Rigetti)Listed
Submit an OpenQASM 3 circuit to a real QPU (Rigetti, IQM, IonQ, AQT, QuEra) on Amazon Braket and get measured shot counts back. Needs your own AWS account with billing.
Inputs
| Name | Type | Description |
|---|---|---|
device_arnrequired | string | e.g. arn:aws:braket:us-west-1::device/qpu/rigetti/Cepheus-1-108Q |
openqasmrequired | string | OpenQASM 3 program source |
shotsrequired | integer | Number of shots (IonQ with error mitigation: at least 2,500)range: 1 to … |
s3_output_bucket | string | Your S3 bucket for results |
Example output
Provider returns measured qubit results as shot counts (illustrative Bell pair: mostly "00" and "11").
Try it
Not connected yet: use Amazon Braket directly at aws.amazon.com/braket . Calling it through our MCP returns this same message.
Call it
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "amazon_braket.run_circuit",
"arguments": {
"device_arn": "arn:aws:braket:us-west-1::device/qpu/rigetti/Cepheus-1-108Q",
"openqasm": "OPENQASM 3; qubit[2] q; bit[2] c; h q[0]; cnot q[0], q[1]; c = measure q;",
"shots": 1000
}
}
}curl -sS -X POST https://www.realworldmcp.com/api/call/amazon_braket.run_circuit \
-H 'content-type: application/json' \
-d '{"device_arn": "arn:aws:braket:us-west-1::device/qpu/rigetti/Cepheus-1-108Q", "openqasm": "OPENQASM 3; qubit[2] q; bit[2] c; h q[0]; cnot q[0], q[1]; c = measure q;", "shots": 1000}'const res = await fetch("https://www.realworldmcp.com/api/call/amazon_braket.run_circuit", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"device_arn": "arn:aws:braket:us-west-1::device/qpu/rigetti/Cepheus-1-108Q", "openqasm": "OPENQASM 3; qubit[2] q; bit[2] c; h q[0]; cnot q[0], q[1]; c = measure q;", "shots": 1000})
});
console.log(await res.json());