Documentation

Quantum computing and optimization tools for AI coding assistants and HTTP clients. 19 tools, 7 simulator backends, 5 optimization solvers.

Getting Started

1

Sign in and create an API key

Sign in with your GitHub account, then create an API key from the dashboard.

1a

Go to the sign-in page and authenticate with GitHub.

1b

Navigate to API Keys and click "Create New Key".

1c

Copy the key immediately -- it will only be shown once. Keys start with ql_.

2

Add the MCP config to your client

Add Qlaude to Claude Desktop, Claude Code, Cursor, or any MCP-compatible client.

Claude Desktop / Claude Code

Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):

claude_desktop_config.json
{
  "mcpServers": {
    "qlaude": {
      "url": "https://qlaude-production.up.railway.app/mcp/http",
      "headers": {
        "Authorization": "Bearer ql_your_api_key_here"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project root:

.cursor/mcp.json
{
  "mcpServers": {
    "qlaude": {
      "url": "https://qlaude-production.up.railway.app/mcp/http",
      "headers": {
        "Authorization": "Bearer ql_your_api_key_here"
      }
    }
  }
}

Replace the API key

Replace ql_your_api_key_here with the actual key you created in Step 1.

3

Start using quantum tools

Open a new conversation and try these example prompts:

Simulate a Bell State

"Create a 2-qubit Bell state circuit and simulate it with 1024 shots"

Quantum Teleportation

"Build a quantum teleportation circuit that transfers |+> from qubit 0 to qubit 2"

Solve an Optimization Problem

"Solve this knapsack: items [(10kg, $60), (20kg, $100), (30kg, $120)] with capacity 50kg"

Benchmark Solvers

"Generate a 6-qubit peaked circuit and benchmark all heuristic solvers on it"

Simulator Backends

Qlaude supports seven simulator backends. The backend is auto-selected based on your circuit, or you can override it with the backend parameter.

BackendEngineMax QubitsBest For
numpyNumPy25Small circuits, full state inspection
aerQiskit Aer32Noise models, mid-size circuits
stimStimMillionsClifford-only circuits at any scale
qulacsQulacs33Best single-node performance for medium circuits
ddsimMQT DDSIM100+ (structured)Large structured circuits with low entanglement
pennylanePennyLane Lightning30Variational / differentiable circuits
bluequbitBlueQubit (cloud GPU)34-36Maximum qubit count (pro+ tier)

Auto-Selection Logic

1.

Clifford-only gates (H, X, Y, Z, S, Sdg, CX, CZ) stim (any qubit count)

2.

25 or fewer qubits numpy (exact statevector)

3.

26-33 qubits qulacs (fast CPU statevector)

4.

More than 33 qubits ddsim (decision diagrams)

Available Tools

All 19 tools are available via MCP and REST API. Credit cost is shown per call.

Circuit Simulation

simulate_circuit5 cr

Simulate a quantum circuit and get measurement results

parse_qasm1 cr

Parse OpenQASM and return structured gate/register info

visualize_circuit1 cr

Generate ASCII circuit diagram and probability chart

explain_circuit1 cr

Get a plain-language explanation of a circuit

Heuristic Solvers

solve_peaked_circuit10 cr

Find the most probable output bitstrings using heuristic solvers

explain_heuristic1 cr

Explain which solver would be chosen for a circuit and why

benchmark_circuit20 cr

Compare multiple solvers on the same circuit

Circuit Optimization

transpile_circuit2 cr

Optimize a circuit by removing redundant gates and fusing operations

Peaked Circuits

generate_peaked_circuit5 cr

Generate a random circuit with a peaked output distribution

construct_peaked_circuit5 cr

Build a peaked circuit using a specific construction method

analyze_peaked_distribution5 cr

Measure how peaked a circuit's output distribution is

Optimization

solve_optimization15 cr

Solve a combinatorial optimization problem (knapsack, max-cut, QUBO, ILP, graph coloring)

explain_optimization1 cr

Analyze an optimization problem and recommend a solver

list_optimization_solversfree

List all available optimization solvers and their capabilities

get_formulation_guidefree

Get guidance on how to structure a problem for a specific solver

Circuit Library

list_circuit_templatesfree

List all available pre-built circuit templates

load_circuit_template5 cr

Load a circuit template by name with custom parameters

Cloud Simulator

run_cloud_simulator25 cr

Run a circuit on cloud quantum hardware (pro+ tier)

Account

creditsfree

Get current credit balance, daily allowance, and usage breakdown

REST API Reference

Base URL: https://qlaude-production.up.railway.app/api/v1

Authenticate every request with a Bearer token: Authorization: Bearer ql_YOUR_API_KEY

Circuit Endpoints

MethodPathDescriptionCredits
POST/simulateSimulate a circuit and get measurement results5
POST/parseParse OpenQASM and return gate/register info1
POST/visualizeGenerate ASCII circuit diagram and probability chart1
POST/explainGet a plain-language explanation of a circuit1
POST/transpileOptimize a circuit by removing redundant gates2

Heuristic Solver Endpoints

MethodPathDescriptionCredits
POST/solve-peakedFind top bitstrings using heuristic solvers10
POST/explain-heuristicExplain which heuristic would be selected and why1
POST/benchmarkCompare multiple solvers on the same circuit20

Peaked Circuit Endpoints

MethodPathDescriptionCredits
POST/generateGenerate a random peaked circuit5
POST/construct-peakedBuild a peaked circuit using a specific method5
POST/analyze-peakedMeasure how peaked a circuit's output distribution is5

Optimization Endpoints

MethodPathDescriptionCredits
POST/optimizeSolve a combinatorial optimization problem15
POST/explain-optimizationAnalyze a problem and recommend a solver1
POST/formulation-guideGet guidance on structuring a problem for a solver0
GET/optimization-solversList all optimization solvers and capabilities0

Library Endpoints

MethodPathDescriptionCredits
GET/circuit-templatesList all available circuit templates0
POST/circuit-templates/loadLoad a circuit template with custom parameters5

Hardware & Account Endpoints

MethodPathDescriptionCredits
POST/cloud-simulateRun a circuit on cloud quantum hardware (pro+ tier)25
GET/creditsGet credit balance, allowance, and usage breakdown0

Example: Simulate a Circuit

curl
curl -X POST https://qlaude-production.up.railway.app/api/v1/simulate \
  -H "Authorization: Bearer ql_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "circuit_qasm": "OPENQASM 2.0;\ninclude \"qelib1.inc\";\nqreg q[2];\ncreg c[2];\nh q[0];\ncx q[0],q[1];\nmeasure q -> c;",
    "shots": 1024
  }'

Optimization Solvers

Five solvers are available. The solver is auto-selected based on your problem, or you can specify one with the solver parameter. Problem types: knapsack, max-cut, graph coloring, QUBO, ILP.

SolverTypeInput FormatMax VariablesBest For
scipy_lpExactILPUnlimitedKnapsack, ILP, linear constraints
simulated_annealingApproximateQUBOUnlimitedLarge QUBO, max-cut, graph coloring
exact_solverExactQUBO20Small QUBO, guaranteed optimum

Auto-Selection Logic

1.

Naturally linear (knapsack, ILP) scipy_lp

2.

QUBO with 20 or fewer variables exact_solver

3.

QUBO with more than 20 variables simulated_annealing

Credits & Pricing

Each tool call costs a fixed number of credits. Credits reset daily at midnight UTC.

Daily Allowances

TierDaily Credits
Free500
Pro5,000
Enterprise50,000

Cost Breakdown

CostTools
0 creditslist_circuit_templates, list_optimization_solvers, get_formulation_guide, credits
1 creditexplain_circuit, explain_heuristic, explain_optimization, visualize_circuit, parse_qasm
2 creditstranspile_circuit
5 creditssimulate_circuit, generate_peaked_circuit, construct_peaked_circuit, analyze_peaked_distribution, load_circuit_template
10 creditssolve_peaked_circuit
15 creditssolve_optimization
20 creditsbenchmark_circuit
25 creditsrun_cloud_simulator (pro+ tier)

Supported Gates

All circuits use OpenQASM 2.0. Circuits using only Clifford gates (H, X, Y, Z, S, Sdg, CX, CZ) can be simulated at any scale via Stim.

GateQASMDescription
HadamardhCreates superposition; maps |0> to equal mix of |0> and |1>
Pauli-XxBit flip; equivalent to a classical NOT
Pauli-YyCombined bit and phase flip
Pauli-ZzPhase flip; leaves |0> unchanged, flips sign of |1>
SsQuarter-turn phase gate (90 degrees)
S-daggersdgInverse of the S gate (-90 degrees)
TtEighth-turn phase gate (45 degrees)
T-daggertdgInverse of the T gate (-45 degrees)
CNOTcxControlled-NOT; flips target if control is |1>
CZczControlled-Z; phase flip if both qubits are |1>
ToffoliccxControlled-controlled-NOT; three-qubit AND-like gate
RXrx(theta)Rotation around X axis by angle theta
RYry(theta)Rotation around Y axis by angle theta
RZrz(theta)Rotation around Z axis by angle theta
IdentityidNo operation; leaves qubit unchanged

Limits

LimitValue
Max qubits (exact simulation, numpy)25
Max qubits (fast statevector, qulacs)33
Max qubits (decision diagrams, ddsim)100+ (structured)
Max qubits (Clifford-only, stim)Millions
Max qubits (peaked circuit generation)12
Max qubits (cloud hardware CPU, admin)34
Max qubits (cloud hardware GPU, admin)36
Circuit simulation timeout30 seconds
Optimization solver timeout60 seconds
Max measurement shots100,000
Max top_k (solve, benchmark)1,000
Max optimization variables (exact solvers)20
Daily credits (Free tier)500
Daily credits (Pro tier)5,000
Daily credits (Enterprise tier)50,000
Credit reset timeMidnight UTC

Error Codes

All error responses return JSON with a detail field describing the error.

StatusErrorWhen
400Bad RequestMissing required fields, invalid JSON, parameter out of range
401UnauthorizedNo Authorization header, malformed key, revoked key
402Payment RequiredCredit balance too low for the requested tool
403ForbiddenUser below pro tier calling run_cloud_simulator
422Unprocessable EntityInvalid OpenQASM syntax, unsupported gates
429Too Many RequestsRate limit exceeded
500Internal Server ErrorBackend error, timeout, unexpected failure
Error response example
{
  "detail": "Insufficient credits: need 5 for simulate_circuit, have 3. Resets at midnight UTC."
}

Need help?

Check out the GitHub repo for source code, examples, and issue tracking.

View on GitHub