qciconnect-mcp

v0.1.0
qciconnect-mcp Checked 4 days ago Published 10 days ago

MCP server exposing the DLR QCI Connect quantum computing platform to LLM agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_qpus

Lists the real quantum hardware available on the platform. Statevector simulators and digital twins are left out - call `list_simulators` for those. An entry carries a `hint` when the platform has a usage note for that QPU.

list_simulators

Lists the statevector simulators and digital twins available on the platform. These are submitted to exactly like hardware, via `submit_qpu_job`. For a circuit small enough to run on this machine, `simulate_circuit` needs no platform connection at all. An entry carries a `hint` when the platform has a usage note for that device.

list_apus

Lists all APUs (analog processing units) available on the platform.

list_compiler_methods

Lists available compiler passes, as `<pass_alias>_<compiler_alias>` names. Pass one of these names as `method_name` to `submit_compiler_job`.

submit_qpu_job

Submits an OpenQASM circuit to a QPU, simulator or digital twin and waits for the result. Some backends (e.g. QSea digital twins and QPUs) REQUIRE explicit `measure` statements into classical bits; check the `hint` field from `list_qpus`/`list_simulators`. This runs a real job on the platform and may consume QPU time or HPC allocation. Args: qpu_alias: Alias of the QPU, as returned by `list_qpus` or `list_simulators`. circuit: OpenQASM 2 or 3 circuit source. primitive: Execution mode: "sampling" or "quantum_state". shots: Number of shots (used for "sampling"). name: Huma…

ParameterTypeDescription
circuit *string
primitive *string
qpu_alias *string
commentstring
hpc_cost_bearer
namestring
project_cost_bearer
shotsinteger

submit_apu_job

Submits code to an APU (analog processing unit) and waits for the result. This runs a real job on the platform and may consume HPC allocation. Whether the job compiles, runs, or does both is inferred from which arguments are given: `source_code` alone only compiles; add `operation_duration_seconds`/`sampling_rate_hertz` (with either `source_code` or `compiled_code`) to also run it. Args: apu_alias: Alias of the APU, as returned by `list_apus`. source_code: Source code to compile (differential equations, not OpenQASM). compiled_code: Previously compiled code to run directly. o…

ParameterTypeDescription
apu_alias *string
commentstring
compiled_code
hpc_cost_bearer
namestring
operation_duration_seconds
project_cost_bearer
sampling_rate_hertz
source_code

submit_compiler_job

Submits circuits to a compiler pass and waits for the compiled result. Args: method_name: Full method name as returned by `list_compiler_methods` (`<pass_alias>_<compiler_alias>`). input_circuits: Dictionary mapping circuit names to OpenQASM source. options: Compiler-pass-specific options.

ParameterTypeDescription
input_circuits *object
method_name *string
options

list_recent_jobs

Lists job IDs of recently completed jobs (successful jobs only).

get_result

Fetches a previously completed job's result by job ID. Only successfully completed jobs are available this way - for a job just submitted via `submit_qpu_job`/`submit_apu_job`/`submit_compiler_job`, use that call's own return value. Args: job_id: Job ID, as returned by `list_recent_jobs` or a `submit_*_job` call.

ParameterTypeDescription
job_id *string

simulate_circuit

Simulates a measurement-free OpenQASM circuit locally and returns the histogram. Do NOT include `measure`/`reset` statements: all qubits are sampled from the final state. Runs locally through ALF's statevector simulator: no platform connection, no credentials and no QPU time. Use `submit_qpu_job` to run on real hardware instead. Samples all qubits from the final state. Explicit measurements are unsupported by the local statevector backend and return an error with the exception type and message. For final-state sampling, supply a circuit without measurement statements. Args: circuit: Op…

ParameterTypeDescription
circuit *string
namestring
shotsinteger

estimate_observables

Estimates expectation values of Pauli observables on a locally simulated circuit. Like `simulate_circuit`, this runs entirely on this machine and needs no credentials. Args: circuit: OpenQASM 3 circuit source. observables: Pauli observables in ALF's string form, e.g. `["Z0 Z1", "X0 + 2 Y1"]`. shots: Number of shots used per estimation. name: Name for the circuit, echoed back in the result.

ParameterTypeDescription
circuit *string
observables *array
namestring
shotsinteger