Cogitan
Documentation menu

Fluxus documentation

Use Fluxus from code or a shell.

Every public route and command, a quickstart per area, and the served statement of what each result may be trusted for. All of it is generated from the Fluxus code, so it describes the version named at the foot of the page.

Scope

Read this first, as served

NO DESIGN NUMBER HERE IS VALIDATED AGAINST SILICON. The validation blocks of the design capabilities (qem, qem_cross, inv_cross, resonator_fr, sfq_predict, spice_characterize) name a SIMULATED or ANALYTIC reference: an analytic oracle, HFSS or JoSIM. rad_assess is the exception: it is calibrated against 2 published measured devices and graded out of sample against 4 more, and FAILS 1 of those; read its validation and out_of_sample blocks before using it. The measured devices shipped in fluxus/data/measured_devices/ are 6 SQuADDS transmons (chip WM1) in squadds_wm1_measured.json (their drawn geometry is public in LFL-Lab/design_schema_WM1; only Q1 is inside the TransmonCross envelope, and their L_j values are backed out from the measured f01 and alpha, not measured), and 2 IBM Eagle r3 calibration exports, ibm_brisbane_2025-04-30.csv (127 qubits) and ibm_sherbrooke_2025-04-30.csv (127 qubits), with measured f01, anharmonicity, coherence, gate errors and coupling map but no design targets, so no per-qubit sigma_f. fluxus.bench.validate_yld runs the yield collision rules against the Eagle exports; no capability on this card is graded against them. On the SFQ side the ground truth is JoSIM and the cell library is literature-reconstructed rather than foundry GDS; the served margin heads are scored against a median predictor ('improvement_over_median' under sfq_predict), not against hardware. Outside rad_assess's graded points, do not report any number from this API as a prediction of fabricated hardware.

Getting started

What Fluxus is

Fluxus is Cogitan's design suite for the superconducting quantum stack: qubit design, AQFP and RSFQ logic, and radiation-induced correlated errors, served as an HTTP API and a command line that give the same answers.

Every number carries what may be believed about it. The capability manifest states each function's ground truth, its measured error against it, the envelope it is trusted in and when it refuses. Read it before acting on a number.

Source: GET /api/capabilities

Access

The hosted API is not self-serve. Access is requested, reviewed by a person and granted with a call quota; an approved account mints cog_sk_ keys in the dashboard. Request access at cogitan.ai/access.

Source: cogitan.ai/llms.txt (access model)

Base URL and auth

Base URL: https://api.cogitan.ai/v1/fluxus. An engine route /api/<x> is /v1/fluxus/<x> on the hosted API.

Auth: Authorization: Bearer cog_sk_... on every call.

Discovery is free (GET routes); every POST consumes one call of quota, batch routes included.

GET /v1/fluxus returns the routes the hosted gateway serves and whether each consumes quota. The gateway routes an explicit list, so check it before relying on a route; the CLI runs every command in-process.

An unapproved account gets 403 access_not_granted; an exhausted quota gets 429 quota_exhausted with Retry-After.

shell
export FLUXUS_API=https://api.cogitan.ai/v1/fluxus
export COGITAN_API_KEY=cog_sk_...
curl -s "$FLUXUS_API" -H "Authorization: Bearer $COGITAN_API_KEY"

Source: fluxus/api/_config.py (gateway_secrets docstring); the gateway's quota rules

Budgets and limits

A request has a work budget of 60 s. A Monte Carlo or batch request that would exceed it is refused with the size that fits (for yield, the n_trials that fits), not run partway; a batch past it returns the rest as budget_exhausted.

Per-route caps (batch items, sweep points, coupling nodes) are in each route's request fields and in fluxus qubit schema under limits.

Source: fluxus/api/_config.py REQUEST_BUDGET_S

Errors

Every error body is one object: {"error": {"code", "message", ...}}. A structured refusal forwards every field it carries (field, value, allowed, reason), so a caller can repair the request without parsing English.

A plain-string error becomes code invalid_request. The framework's own 404 and 405 come back as not_found and method_not_allowed, naming the path.

Non-finite numbers (nan, inf) are refused on every route with 422 non_finite_number.

Source: fluxus/api/_errors.py http_error_body; fluxus/api/_finite.py

Refusals, abstentions and what they mean

A refusal is an answer: the input is outside what the engine was built or trained on, and it says so instead of extrapolating. Qubit refusals are HTTP 422 outside_envelope naming the field, its value, the allowed range and the reason; exit 3 on the CLI.

An abstention is a number from a weaker model, flagged: abstained true and in_envelope false, with the reason named. Exit 0.

A missing engine is 503 engine_unavailable with a remedy. A feature a deployment does not offer answers 503 and says so. Each route's refusal conditions are on its page and in its capability card.

Source: GET /api/qem/schema; GET /api/capabilities refuses_when

CLI exit codes

0 answered (an abstained or flagged answer included), 2 bad input, 3 refused: outside the data, or the engine is not available. A script can tell a refusal from a crash.

Source: fluxus/cli.py; fluxus qubit schema exit_codes

Units

Units are in the field names: _um micrometres, _nh nanohenry, _ph picohenry, _ff femtofarad, _ghz and _mhz for frequencies, _ua microamps, _ohm, _mm, _kev. f01 and fr are in GHz; g, chi, EC and anharmonicity in MHz; EJ in GHz. The unit column on every field table is read from the name.

Source: fluxus/core.py unit conventions

Two geometry families

fluxus_parallel_pad: Two rectangular pads + junction. What the trained QEM checkpoint consumes. No external validation of its capacitance model exists.

squadds_transmon_cross: TransmonCross + claw coupler, as used by qiskit-metal and the SQuADDS database. Externally checkable against HFSS.

The two are different physical layouts. Do not pass parallel-pad dimensions to qem_cross or vice versa; the parameter names do not overlap and a value that validates in one is meaningless in the other.

Source: GET /api/capabilities

Hosted access is granted per account. Request API access.

Quickstarts

By area

Qubit design

TransmonCross and parallel-pad cells, readout, junctions, coupling, inverse design, GDS and frequency-collision yield.

AQFP

Functional verdicts for AQFP cells (majority, buffer) on the MIT-LL SFQ5ee AQFP process, with the circuit-test decks behind them.

RSFQ logic

RSFQ cell margins, the analytic SPICE engine, composed circuits, timing, chip-level yield and bias.

Radiation

Correlated-error footprint, burst rate and logical-error floor from phonon bursts.

Platform

The capability manifest, engine registry, process registry and cell library.

Guides

Generated from Fluxus 0.3.0 at commit b9aa57d on 2026-10-20 by python -m fluxus.docs_bundle.