

Quantum Circuit Builder with Proof
Function
Available ActionsEach successful request consumes credits as outlined below.
search_knowledge2crsearch_lean2crget_document1crsearch_corpus_examples1crget_corpus_example1crinstantiate_template2crimport_provider_circuit3crinspect_circuit3crcertify_circuit10crcertify_from_lean15crverify_certificate10crextract_circuit10crexport_provider_programs10crexecute_locally15crget_task
Details
Build quantum circuits that ship with a machine-checked proof. Quantum Circuit Builder with Proof turns an algorithm template, a Qiskit, Cirq, or Braket snippet, or Lean source into a normalized circuit, draws it as a downloadable PNG or JPEG diagram, and verifies the claims you state with the Lean 4 proof kernel. The result is a qpcert: a proof certificate anyone can replay independently, without trusting the agent that produced it. Export checked OpenQASM 3, Qiskit, Cirq, and Braket programs, run local simulations, and keep audit receipts for every step. Use it when a circuit must be audited, shared, or relied on. Plain Qiskit is simpler for throwaway experiments.
Use Cases
Formally verified quantum circuit design, Proof-carrying quantum circuit certificates (qpcert), Independent verification of a quantum proof certificate from another party, Audit-ready quantum computing artifacts for research and compliance, Import Qiskit Cirq and Braket circuits without executing code, Export verified OpenQASM 3 Qiskit Cirq and Braket programs, Quantum circuit diagrams as downloadable PNG or JPEG, GHZ Bernstein-Vazirani teleportation Grover and QFT circuit templates, Lean 4 quantum circuit proofs and theorem search, Local quantum circuit simulation with explicit measurement accounting, Reproducible quantum circuit exchange between AI agents and systems, Quantum computing research with a searchable knowledge base and Lean corpus
Dynamic MCP Setup
Connect once through AgentPMT Dynamic MCP, then use approved tools from the same agent connection.
30 Second Setup
STDIO connector for Claude Code, Codex, Cursor, Zed, and other LLMs that require STDIO or custom connections.
npm install -g @agentpmt/mcp-routeragentpmt-setupHosted Streamable HTTPS
MCP endpoint for browser-based apps like ChatGPT, Claude, Grok, or any time you want a streamable connection with no local install.
https://api.agentpmt.com/mcpConfig Example
Use the hosted endpoint directly in clients that support remote MCP. Store your Bearer token in the client config or secret field.
{
"mcpServers": {
"agentpmt": {
"type": "streamable-http",
"url": "https://api.agentpmt.com/mcp",
"headers": {
"Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
"x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
}
}
}
}Need client videos, organization controls, audit details, and the full feature overview?
More About Dynamic MCPAbout this Product
Quantum circuits with a proof you can check yourself
Any AI agent can write Qiskit. This tool is for the moments when generated code is not enough: the circuit will be reviewed by someone else, reused by another system, translated to a different quantum framework, or kept as an auditable record of exactly what was verified.
Quantum Circuit Builder with Proof normalizes your circuit, checks the claims you state with the Lean 4 proof kernel, and returns a qpcert, a proof certificate bound to that exact circuit and those exact claims. Anyone who receives the certificate can replay the proof on their own instead of taking the agent's word for it.
How it works
- Start a circuit. Expand a built-in template (GHZ, Bernstein-Vazirani, teleportation, Grover, or QFT), paste hand-written Qiskit, Cirq, or Braket Python, or supply a Lean
CircuitSpec. Provider code is parsed, never executed. - Inspect it. The circuit is validated against its semantic profile and given a content address (a SHA-256 digest of the normalized circuit). Optionally render the logical wire circuit as a PNG or JPEG that appears in chat and is saved to your File Manager.
- Certify the claims. State what you want proved, most often that the circuit is well formed under its profile. The Lean kernel constructs and verifies the proof and returns the qpcert.
- Share and verify. Hand the circuit, claim ledger, and qpcert to a colleague, reviewer, or another agent. They replay the certificate against their own copy of the inputs. Any mismatch is rejected.
- Export or simulate. Generate OpenQASM 3, Qiskit, Cirq, or Braket programs that are read back and checked against the certified circuit, or run a local simulation with a clearly labeled observation.
What you get
- Fail-closed intake: unsupported or ambiguous source is rejected instead of guessed or executed.
- A proof certificate: a kernel-backed qpcert for the exact normalized circuit and the stated claims.
- Independent replay: a recipient verifies received evidence against separately supplied circuit and claim inputs.
- Translation integrity: exported programs are parsed back and checked, so drift between frameworks is surfaced.
- Explicit measurement accounting: if a terminal measurement is added to make an export or simulation runnable, the receipt says so.
- Circuit diagrams: a digest-bound PNG or JPEG of the logical wire circuit, shown inline and downloadable.
- Audit receipts: inputs, verification results, execution mode, observation choices, and artifact references for every step.
- Research tools: a searchable knowledge base, Lean declaration search, and a corpus of worked proof examples.
Supported inputs and outputs
| Input | Output |
|---|---|
| Templates: GHZ (2 to 4096 qubits), Bernstein-Vazirani, teleportation, Grover (2 to 4096 qubits), QFT (2 to 6 qubits) | qpcert proof certificate (stored in File Manager) |
| Hand-written Qiskit, Cirq, or Braket Python (bounded grammar, never executed) | OpenQASM 3, Qiskit, Cirq, and Braket programs with readback receipts |
Lean CircuitSpec source (up to 2 qubits small, up to 4 qubits standard) | PNG or JPEG circuit diagram bound to the circuit digest |
Normalized circuit IR (heyting.quantum_circuit_ir.v1) | Local simulator observations and execution receipts |
| An existing qpcert from another party | Independent verification result, or the recovered normalized circuit |
Gates: id h x y z s sdg t tdg cx cz swap, plus exact cyclotomic phase gates under the exact_cyclotomic_2k_v1 profile. Measurement, reset, and barrier operations are supported.
Who it is for
- Quantum researchers who need a reproducible, verifiable artifact alongside a paper or dataset.
- Engineering teams exchanging circuits between people, agents, or pipelines and translating them across frameworks.
- Auditors and reviewers who must confirm a received circuit and certificate without trusting the sender.
- Educators and students learning how formal verification applies to quantum circuits.
When plain Qiskit is the better choice
For a quick experiment, a tutorial, or a disposable Bell pair, have your agent write Qiskit directly. Use this tool when the circuit is consequential: it will be published, evaluated automatically, exchanged between parties, translated across providers, or relied on as a verified artifact.
What the proof does and does not mean
- It proves only the claims explicitly encoded and accepted by the verifier, not every desirable property of the circuit.
- Structural validation, circuit diagrams, provider-source parsing, and round-trip checks are not proof.
- Simulation returns sampled observations. It is not a proof tier and says nothing about physical hardware fidelity.
- Provider exports are offline programs. They are not evidence that a provider or quantum device executed them.
- Submitted Lean runs as
trusted_direct_v1in the shared service container. Callers are authenticated, but this is not untrusted-code isolation. Submit only Lean you trust.
Cost and timing
Research and inspection actions cost 1 to 3 credits. Certification, verification, extraction, export, and simulation cost 10 to 15 credits each and run as background tasks. A typical proof completes in 3 to 5 minutes; polling the task is free.
Glossary
- qpcert: a quantum proof certificate. A file that binds a normalized circuit, a claim ledger, and a Lean proof, and that can be replayed by anyone.
- Claim ledger: the explicit list of properties to prove, each tied to the circuit's digest.
- Well formed: the default claim. The circuit has qubits and operations and is admitted by its semantic profile. It does not claim a target state or algorithm result.
- Semantic profile: the gate set and interpretation the circuit is checked under, such as exact Clifford+T or stabilizer.
- Lean kernel: the pinned Lean 4 proof checker that constructs and replays every certificate.
Frequently Asked Questions
How do I connect this tool to an external agent?
You can install the local MCP server by opening a terminal and running:
Install commands
npm install -g @agentpmt/mcp-router
agentpmt-setupThis will connect you to local agents like Claude Code, Windsurf, Grok Build, Cursor, etc.
Alternatively you can connect to the hosted version with this config block, no installation required:
Hosted MCP config
{
"mcpServers": {
"agentpmt": {
"type": "streamable-http",
"url": "https://api.agentpmt.com/mcp",
"headers": {
"Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
"x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
}
}
}
}View MCP Connection Instructions for more details.
How does an external agent use this tool?
After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:
Agent prompt
Use the AgentPMT-Tool-Search-and-Execution tool. First call action 'get_instructions' so you know how to use the tool search interface. Then call action 'get_schema' with tool_id 6a7e5036b8c970a6773201b5 ("Quantum Circuit Builder with Proof"). After reading the schema and any returned instructions, tell me what this tool can do, we are going to be using it
The agent should fetch the tool schema first, collect the required parameters for your request, and then call the tool through AgentPMT.
Can I see a diagram of my circuit?
<p>Yes. Ask for a PNG or JPEG when inspecting the circuit. The diagram shows the logical wire circuit, is bound to the circuit's digest, appears inline in chat, and is saved to your File Manager for download. The diagram is explanatory only; the qpcert is the proof.</p>
Can I submit untrusted Lean code?
<p>No. Submitted Lean runs inside the shared service container. Callers are authenticated, but the code is not isolated as untrusted, and the receipt reports this as execution mode trusted_direct_v1 with untrusted-code isolation false. Submit only Lean you or your organization trust.</p>
Does a qpcert prove that every aspect of the circuit is correct?
<p>No. A qpcert covers only the claims written in the claim ledger and accepted by the verifier. Parsing, structural validation, diagrams, round-trip checks, and simulation do not become proof just because they happen in the same workflow.</p>
Does provider export prove that the circuit ran on quantum hardware?
<p>No. Export produces offline programs and readback receipts, and local execution produces simulator observations. Neither shows that a provider ran the circuit or says anything about physical hardware fidelity.</p>
How does someone else verify a certificate I send them?
<p>They upload the qpcert to their File Manager and run verification with their own copy of the circuit and claims. The Lean kernel replays the proof and rejects any mismatch between the certificate and the supplied inputs, so they never have to trust you or the agent that produced it.</p>
How long does certification take, and what does it cost?
<p>Certification runs in the background and typically completes in 3 to 5 minutes; larger or exact semantic proofs can take longer. Certifying a circuit costs 10 credits, certifying from Lean 15, and verifying or extracting a received certificate 10. Checking on a task is free.</p>
What does "well formed" mean, and is that the default proof?
<p>Yes, it is the default. A well-formed certificate proves the circuit has at least one qubit and one operation and is admitted by its semantic profile. It does not prove an algorithm result, a target state, or equivalence to a specific unitary. Stronger claims such as exact unitary, exact instrument, or signed transport are available when you ask for them and a matching proof strategy exists.</p>
What is a qpcert?
<p>A qpcert is a quantum proof certificate. It is a file that binds three things together: the normalized circuit, the list of claims you asked to prove, and the Lean proof that those claims hold. Anyone who has the file can replay the proof themselves. It is the product's proof artifact; diagrams, receipts, and simulation results are not.</p>
Which algorithm templates are included?
<p>GHZ states (2 to 4096 qubits), Bernstein-Vazirani with any binary secret, quantum teleportation, one-iteration Grover search (2 to 4096 qubits), and the quantum Fourier transform (2 to 6 qubits). A template gives you a normalized circuit and certification inputs; certification is a separate step.</p>
Which quantum frameworks and formats are supported?
<p>Input: hand-written Qiskit, Cirq, or Braket Python, Lean CircuitSpec source, normalized circuit IR, or a built-in template. Output: OpenQASM 3, Qiskit, Cirq, and Braket programs, each parsed back and checked against the certified circuit before it is returned.</p>
Why do exported programs contain measurements I did not write?
<p>When a circuit declares no classical bits, the default observation is a terminal Z measurement on every qubit. Runnable exports and simulations add that measurement so the program can actually produce results. The receipt reports the observation, the original operation count, and whether measurement was injected, so nothing is hidden.</p>
Why use this instead of asking an agent to write Qiskit directly?
<p>For quick experiments, direct Qiskit is simpler and usually the better choice. Use this product when the result has to cross a trust boundary or be audited: it binds a normalized circuit and explicit claims to a proof certificate that a recipient can replay independently, and it checks exported programs for translation drift.</p>
