Router Docs
EigenOrbit Router API

JobResultOut

The result of a completed job. `bit_order` is always `qubit0_msb`: in every bitstring and basis-state index, qubit 0 is the leftmost, most significant bit, as in eigenkit. `result` depends on the method: `run` gives an array of shape `[n_observables]`, one expectation value per observable in request order; `zero_state_probability` an array of shape `[]`; `probabilities` an array of shape `[2**n_qubits]`; `sample` counts; `photonic_sample` gives Fock-state counts, to which `bit_order` does not apply. `execution` is what the router ran at the vendor, and is null for results stored before the router recorded it.
bit_order
​string · const · required
Const value: qubit0_msb
job_id
​string · uuid · required
method
​Method · enum · required

What the job computes. run: one expectation value per observable. sample: measurement counts. probabilities: the probability of every basis state. zero_state_probability: the probability of the all-zeros state. photonic_sample: the photon counts of a linear-optical circuit, sampled on a photonic device.

Enum values:
run
sample
probabilities
zero_state_probability
photonic_sample
​required
​ExecutionOut | null

What the router ran on the vendor for one job: one transpiled or compiled program.

initial_layout[i] is the physical qubit logical qubit i starts on. final_layout[i] is the physical qubit holding logical qubit i at the end, where its measurement and observables are read. active_qubits are the sorted physical qubits any non-barrier operation touched. ibm_options are the dynamical decoupling and twirling options IBM stored with the job, null when it stored none. For Braket, vendor_job_id is the task id (the task ARN without its prefix). transpiled_qasm3 is the OpenQASM 3 program an IQM or AQT device compiled, and compiled_quil the Quil program a Rigetti device compiled, both as Braket returned them. final_layout is read from that compiled program's measure statements: final_layout[i] is the physical qubit classical bit i was measured on, null when they do not measure each of the job's bits exactly once into one register. active_qubits are the physical qubits of transpiled_qasm3, or those the gate and measure instructions of compiled_quil act on. Braket's Quil may leave gate angles as compiler parameters (braket_compiler_ssa_N) whose values Braket does not return, so compiled_quil is not a complete record of what ran. initial_layout and the transpiler, library and option fields are for IBM only. Every field except vendor_job_id may be null when the router could not read it.

FockCountsResult

Photon counts keyed by Fock state, one object per input row in request order. A key is the photon count of every mode, mode 0 first, joined by commas. A row may be empty: no shot passed the photon filter.
​object[] · minItems: 1 · required
kind
​string · const · required
Const value: fock_counts
n_modes
​integer · min: 1 · required

CountsResult

Measurement counts keyed by bitstring (qubit 0 is the leftmost character).
​object · required
kind
​string · const · required
Const value: counts
n_qubits
​integer · min: 1 · required

ArrayResult

A numpy float64 array: `data` nests `len(shape)` levels deep (a bare float for []).
​NestedFloats · required
dtype
​string · const · required
Const value: float64
kind
​string · const · required
Const value: array
shape
​integer[] · required

NestedFloats

anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = number
type = array
Properties for Variant 1:
number

Method

string · enum
Enum values:
run
sample
probabilities
zero_state_probability
photonic_sample

What the job computes. run: one expectation value per observable. sample: measurement counts. probabilities: the probability of every basis state. zero_state_probability: the probability of the all-zeros state. photonic_sample: the photon counts of a linear-optical circuit, sampled on a photonic device.

ExecutionOut

What the router ran on the vendor for one job: one transpiled or compiled program. initial_layout[i] is the physical qubit logical qubit i starts on. final_layout[i] is the physical qubit holding logical qubit i at the end, where its measurement and observables are read. active_qubits are the sorted physical qubits any non-barrier operation touched. ibm_options are the dynamical decoupling and twirling options IBM stored with the job, null when it stored none. For Braket, vendor_job_id is the task id (the task ARN without its prefix). transpiled_qasm3 is the OpenQASM 3 program an IQM or AQT device compiled, and compiled_quil the Quil program a Rigetti device compiled, both as Braket returned them. final_layout is read from that compiled program's measure statements: final_layout[i] is the physical qubit classical bit i was measured on, null when they do not measure each of the job's bits exactly once into one register. active_qubits are the physical qubits of transpiled_qasm3, or those the gate and measure instructions of compiled_quil act on. Braket's Quil may leave gate angles as compiler parameters (_braket_compiler_ssa_N_) whose values Braket does not return, so compiled_quil is not a complete record of what ran. initial_layout and the transpiler, library and option fields are for IBM only. Every field except vendor_job_id may be null when the router could not read it.
vendor_job_id
​string · minLength: 1 · required
active_qubits
​integer[] | null
compiled_quil
​string | null
final_layout
​integer[] | null
​IbmOptionsOut | null

The dynamical decoupling and twirling options IBM stored with the job.

Only the keys IBM stored are present. Options IBM applies by default on the server are not stored, and so not shown.

initial_layout
​integer[] | null
optimization_level
​integer | null · min: 0 · max: 3
qiskit_ibm_runtime_version
​string | null
qiskit_version
​string | null
seed_transpiler
​integer | null · min: 0
transpiled_qasm3
​string | null

IbmOptionsOut

The dynamical decoupling and twirling options IBM stored with the job. Only the keys IBM stored are present. Options IBM applies by default on the server are not stored, and so not shown.
​IbmDynamicalDecouplingOut | null

Dynamical decoupling options IBM stored with the job.

​IbmTwirlingOut | null

Pauli twirling options IBM stored with the job.

IbmTwirlingOut

Pauli twirling options IBM stored with the job.
enable_gates
​boolean | null
enable_measure
​boolean | null
num_randomizations
​integer | null · min: 1 · max: 9007199254740991
shots_per_randomization
​integer | null · min: 1 · max: 9007199254740991

IbmDynamicalDecouplingOut

Dynamical decoupling options IBM stored with the job.
enable
​boolean | null
sequence_type
​string | null · enum
Enum values:
XX
XpXm
XY4

EstimateOut

The price of a job and whether a submit would be accepted now. Amounts are integers in micro-USD: 1000000 is $1. `vendor_cost_usd_micro` plus `fee_usd_micro` equals `estimate_usd_micro`.
available_usd_micro
​integer · required

Your balance minus your active holds, at the time of the call. 0 for a job that is free on the router, whose estimate does not read the balance.

device
​string · required
estimate_usd_micro
​integer · required

The amount a submit would hold from your balance. 0 for a job that is free on the router: an IBM Quantum job, or a job on a device in limited preview.

fee_usd_micro
​integer · min: 0 · required

The EigenOrbit fee inside the estimate.

method
​Method · enum · required

What the job computes. run: one expectation value per observable. sample: measurement counts. probabilities: the probability of every basis state. zero_state_probability: the probability of the all-zeros state. photonic_sample: the photon counts of a linear-optical circuit, sampled on a photonic device.

Enum values:
run
sample
probabilities
zero_state_probability
photonic_sample
price_version
​string · required

The price version used, <device>@<version>, for example braket/sv1@1. A job keeps the version it was admitted with.

shots
​integer · required
vendor_cost_usd_micro
​integer · min: 0 · required

The vendor's cost inside the estimate, rounded up.

would_reject_reason
​ErrorCode | null · enum · required

Null when a submit would be accepted now. Otherwise the error code the submit would be refused with, the first that applies of device_unavailable, method_not_supported, shots_invalid, terms_not_accepted, ibm_connection_invalid, ibm_account_not_connected, device_access_restricted, concurrency_limit_exceeded, key_budget_exceeded, negative_balance and insufficient_balance.

Enum values:
unauthenticated
idempotency_key_required
idempotency_conflict
protocol_unsupported
validation_error
unknown_device
device_unavailable
method_not_supported

ErrorCode

string · enum
Enum values:
unauthenticated
idempotency_key_required
idempotency_conflict
protocol_unsupported
validation_error
unknown_device
device_unavailable
method_not_supported

A stable error code. Branch on the code, never on the message.

JobOut

A job, as `POST /v1/jobs` and `GET /v1/jobs/{job_id}` return it. Amounts are integers in micro-USD: 1000000 is $1. A job on an IBM Quantum device, or on a device in limited preview, is free on the router: `billing` and the cost fields stay null and `estimate_usd_micro` is 0.
actual_cost_usd_micro
​integer | null · min: 0 · required

What the job cost you: null while billing is held or null, the charged amount once settled, and 0 once released.

billing
​BillingStatus | null · enum · required

The job's hold on your balance. Null when no hold was ever placed, as for a job that is free on the router or a job rejected for the balance.

Enum values:
held
settled
released
completed_at
​string | null · date-time · required

When the job reached a terminal status. Null until then.

created_at
​string · date-time · required
device
​string · required
​JobError | null · required

Why the job failed or was rejected. Null for any other status.

estimate_usd_micro
​integer · min: 0 · required

The job's estimated cost at submission, in micro-USD. A job that is charged has a hold of this amount placed on your balance.

fee_usd_micro
​integer | null · min: 0 · required

The EigenOrbit fee inside actual_cost_usd_micro. Null until billing is settled or released.

id
​string · uuid · required

The job ID.

method
​Method · enum · required

What the job computes. run: one expectation value per observable. sample: measurement counts. probabilities: the probability of every basis state. zero_state_probability: the probability of the all-zeros state. photonic_sample: the photon counts of a linear-optical circuit, sampled on a photonic device.

Enum values:
run
sample
probabilities
zero_state_probability
photonic_sample
price_version
​string · required

The price version the job was admitted with, for example braket/sv1@1.

shots
​integer · min: 0 · required
status
​JobStatus · enum · required

The status of a job. queued: accepted, not yet running at the vendor. running: the vendor is running it. completed: the result is available. failed: the vendor or the router could not produce a result, and error says why. cancelled: the job was cancelled, normally at your request. rejected: refused before it reached the vendor, and error says why. completed, failed, cancelled and rejected are terminal.

Enum values:
queued
running
completed
failed
cancelled
rejected
updated_at
​string · date-time · required
vendor_cost_usd_micro
​integer | null · min: 0 · required

The vendor's cost inside actual_cost_usd_micro. Null until billing is settled or released.

credential_source
​string | null · enum

own: the job ran on the IBM Quantum account you connected. organization: Reserved. Null for an Amazon Braket job.

Enum values:
own
organization
ibm_usage_seconds
​number | null

The IBM quantum time the job used, in seconds with millisecond precision, as IBM reports it. Null until IBM reports it, and for a job on any other vendor's device.

result_expires_at
​string | null · date-time

When the job's result and request are, or were, deleted. Set once the job is terminal and null while it runs. The job itself, with its status and costs, stays readable after the deletion.

JobStatus

string · enum
Enum values:
queued
running
completed
failed
cancelled
rejected

The status of a job. queued: accepted, not yet running at the vendor. running: the vendor is running it. completed: the result is available. failed: the vendor or the router could not produce a result, and error says why. cancelled: the job was cancelled, normally at your request. rejected: refused before it reached the vendor, and error says why. completed, failed, cancelled and rejected are terminal.

JobError

Why a job failed or was rejected. `code` is the error code and `category` says who or what stopped the job: `rejected` (an admission rule, such as the balance), `circuit` (your circuit or job parameters), `vendor` (the vendor) or `internal` (the router). Branch on `code` for logic and on `category` for display.
category
​ErrorCategory · enum · required

Who or what stopped a job: rejected (an admission rule, such as the balance), circuit (your circuit or job parameters), vendor (the vendor) or internal (the router).

Enum values:
rejected
circuit
vendor
internal
code
​ErrorCode · enum · required

A stable error code. Branch on the code, never on the message.

Enum values:
unauthenticated
idempotency_key_required
idempotency_conflict
protocol_unsupported
validation_error
unknown_device
device_unavailable
method_not_supported
message
​string · required

ErrorCategory

string · enum
Enum values:
rejected
circuit
vendor
internal

Who or what stopped a job: rejected (an admission rule, such as the balance), circuit (your circuit or job parameters), vendor (the vendor) or internal (the router).

BillingStatus

string · enum
Enum values:
held
settled
released

The job's hold on your balance. held: the estimate is reserved. settled: the actual cost was charged and the rest of the hold returned. released: the whole hold was returned and nothing was charged.

JobRequest

The body of `POST /v1/jobs/estimate` and `POST /v1/jobs`: the device, the method, the shots, and the circuit with its observables and parameter values. eigenkit builds this body. Unknown fields answer 422 `validation_error`.
​object · required

The circuit, as eigenkit produces it: its router provider builds this value. The format is not specified here.

device
​string · maxLength: 64 · pattern: ^[a-z0-9]+/[a-z0-9_-… · required

A device ID from GET /v1/devices, for example braket/sv1 or ibm/ibm_fez.

​required

The circuit's input values, one number per input, or [] when the circuit has none. Send a flat array, as for weights. With photonic_sample it may be a 2-D array, one row per run: the job runs every row and returns one result per row. More rows than the device takes answer 422 batch_not_supported with the limit in details.max_rows.

method
​Method · enum · required

What the job computes. run: one expectation value per observable. sample: measurement counts. probabilities: the probability of every basis state. zero_state_probability: the probability of the all-zeros state. photonic_sample: the photon counts of a linear-optical circuit, sampled on a photonic device.

Enum values:
run
sample
probabilities
zero_state_probability
photonic_sample
​object[] · required

The observables, as eigenkit produces them: its router provider builds this value. The format is not specified here. At least one for every method except photonic_sample, which takes [].

shots
​integer · min: 0 · max: 9007199254740991 · required

Shots for the vendor task. 0 asks a simulator for exact results with run, probabilities and zero_state_probability. GET /v1/devices lists the shots each method accepts on each device. For photonic_sample it is the samples asked for and the shot limit of each run, and a lossy device returns fewer samples than shots.

​required

The circuit's weight values, one number per weight. Send a flat array: a device runs one parameter set per job, and a 2-D array answers 422 batch_not_supported.

​IbmOptionsIn | null

Qiskit Runtime options, for an IBM Quantum device only. Any other device answers 422 validation_error. Absent or null sends no option.

IbmOptionsIn

Qiskit Runtime options for a job on an IBM Quantum device. Every key is optional and no other key is accepted; absent or null keys are not sent.
​IbmDynamicalDecouplingIn | null

Dynamical decoupling options sent to Qiskit Runtime.

​IbmTwirlingIn | null

Pauli twirling options sent to Qiskit Runtime.

With an enable flag true or a count given, both counts are required and their product must equal the job's shots.

IbmTwirlingIn

Pauli twirling options sent to Qiskit Runtime. With an enable flag true or a count given, both counts are required and their product must equal the job's shots.
enable_gates
​boolean | null
enable_measure
​boolean | null
num_randomizations
​integer | null · min: 1 · max: 9007199254740991
shots_per_randomization
​integer | null · min: 1 · max: 9007199254740991

IbmDynamicalDecouplingIn

Dynamical decoupling options sent to Qiskit Runtime.
enable
​boolean | null
sequence_type
​string | null · enum
Enum values:
XX
XpXm
XY4

DeviceCalibrationOut

One stored calibration snapshot of an IBM Quantum device or an Amazon Braket QPU. `vendor_updated_at` is when the vendor published the calibration, and `captured_at` when the router stored it.
​object · required

The vendor's calibration object exactly as published. For IBM Quantum these are the backend properties (backend_name, backend_version, last_update_date, qubits, gates, general), with every time as an RFC 3339 string. For an Amazon Braket QPU it is the device capabilities object as Braket publishes it (braketSchemaHeader, service, action, deviceParameters, paradigm, provider, standardized, and pulse on some devices), the same object the Braket SDK exposes as device properties.

captured_at
​string · date-time · required
device_id
​string · required
vendor
​string · required
vendor_updated_at
​string · date-time · required

ErrorEnvelope

The body of every error response.
​ErrorBody · required

An error. Branch on code, never on message.

ErrorBody

An error. Branch on `code`, never on `message`.
code
​ErrorCode · enum · required

A stable error code. Each operation lists the codes it can answer with its error responses.

Enum values:
unauthenticated
idempotency_key_required
idempotency_conflict
protocol_unsupported
validation_error
unknown_device
device_unavailable
method_not_supported
message
​string · required

A human-readable explanation. It may change at any time.

​object

Data about the error, depending on code. Always an object, possibly empty.

DeviceListOut

The devices you can run jobs on, sorted by `id`.
​DeviceOut[] · required

DeviceOut

A device you can run jobs on. `qubits` is the most qubits a circuit may use on it. For a photonic device it is the number of optical modes. `status` is the vendor's status from the router's last check, at `status_updated_at` (null until the first check). A job is accepted only on an `online` device with a recent check. `available_now` says whether now is inside one of `availability_windows`, and is null when no windows are known. It does not gate a job: outside its windows a device still accepts jobs, and they wait in the vendor's queue. `methods` lists what the device runs, with the shots each method accepts.
​DeviceWindowOut[] · required
available_now
​boolean | null · required
​ExamplePriceOut · required

What one job would cost on the current price. total_usd_micro is the cost with the EigenOrbit fee, rounded up once to a whole micro-USD, and vendor_cost_usd_micro plus fee_usd_micro equals it.

shots is 1000, clamped into the device's shot range. billed_duration_ms is the device time priced for a duration_per_minute device, its minimum billable duration, and null for a task_plus_shot device. A simulator job's estimate holds the price's hold window instead, so it can be larger than this example.

id
​string · required
kind
​string · enum · required
Enum values:
qpu
simulator
​DeviceMethodOut[] · required
name
​string · required
​DevicePriceOut · required

The device's current price. A job keeps the price version it was admitted with. Amounts are integers in micro-USD: 1000000 is $1.

duration_per_minute (the simulators) bills device time at per_minute_usd_micro, at least min_billable_ms. task_plus_shot (the QPUs) bills task_fee_usd_micro per job plus per_shot_usd_micro per shot. The fields of the other model are null. markup_bps is the EigenOrbit fee on top of the vendor's price, in basis points (2000 is 20%).

hold_seconds is a simulator's hold window: an estimate holds the larger of min_billable_ms and hold_seconds of device time, and the unused part is returned when the job is settled. It is null for task_plus_shot, whose estimate depends on the shots instead.

qubits
​integer · min: 1 · required
status
​string · enum · required
Enum values:
online
offline
retired
status_updated_at
​string | null · date-time · required
vendor
​string · required

DevicePriceOut

The device's current price. A job keeps the price version it was admitted with. Amounts are integers in micro-USD: 1000000 is $1. `duration_per_minute` (the simulators) bills device time at `per_minute_usd_micro`, at least `min_billable_ms`. `task_plus_shot` (the QPUs) bills `task_fee_usd_micro` per job plus `per_shot_usd_micro` per shot. The fields of the other model are null. `markup_bps` is the EigenOrbit fee on top of the vendor's price, in basis points (2000 is 20%). `hold_seconds` is a simulator's hold window: an estimate holds the larger of `min_billable_ms` and `hold_seconds` of device time, and the unused part is returned when the job is settled. It is null for `task_plus_shot`, whose estimate depends on the shots instead.
markup_bps
​integer · min: 0 · required
min_billable_ms
​integer | null · min: 0 · required
per_minute_usd_micro
​integer | null · min: 0 · required
per_shot_usd_micro
​integer | null · min: 0 · required
price_version
​string · required
pricing_model
​string · enum · required
Enum values:
duration_per_minute
task_plus_shot
task_fee_usd_micro
​integer | null · min: 0 · required
hold_seconds
​integer | null · min: 0

DeviceMethodOut

A method the device runs, and the shots it accepts for it (inclusive).
max_shots
​integer · min: 0 · required
method
​Method · enum · required

What the job computes. run: one expectation value per observable. sample: measurement counts. probabilities: the probability of every basis state. zero_state_probability: the probability of the all-zeros state. photonic_sample: the photon counts of a linear-optical circuit, sampled on a photonic device.

Enum values:
run
sample
probabilities
zero_state_probability
photonic_sample
min_shots
​integer · min: 0 · required

ExamplePriceOut

What one job would cost on the current price. `total_usd_micro` is the cost with the EigenOrbit fee, rounded up once to a whole micro-USD, and `vendor_cost_usd_micro` plus `fee_usd_micro` equals it. `shots` is 1000, clamped into the device's shot range. `billed_duration_ms` is the device time priced for a `duration_per_minute` device, its minimum billable duration, and null for a `task_plus_shot` device. A simulator job's estimate holds the price's hold window instead, so it can be larger than this example.
billed_duration_ms
​integer | null · min: 0 · required
fee_usd_micro
​integer · min: 0 · required
shots
​integer · min: 0 · required
total_usd_micro
​integer · min: 0 · required
vendor_cost_usd_micro
​integer · min: 0 · required

DeviceWindowOut

One availability window: `day`, and inclusive start and end times, "HH:MM:SS" UTC. A window whose end is earlier than its start wraps past midnight into the next day.
day
​string · enum · required
Enum values:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Weekdays
end_utc
​string · pattern: ^([01][0-9]|2[0-3]):… · required
start_utc
​string · pattern: ^([01][0-9]|2[0-3]):… · required