Skip to main content
POST
Backpropagate Observables Mcp

Authorizations

HAIQU_API_KEY
string
query
required

Body

application/json

Define payload for backpropagating observables through a circuit.

Attributes: circuit_id: Circuit to backpropagate through. observables: Observables to rewrite, keyed by caller-chosen names. Each is a list of (pauli, real, imaginary) terms. max_qwc_groups: Optional cap on qubit-wise-commuting groups. max_error_total: Optional total truncation error budget. max_error_per_slice: Optional per-slice truncation error budget.

circuit_id
string
required
observables
Observables · object
required

Observables to backpropagate, keyed by a name you choose. Each observable is a list of Pauli terms given as [pauli_string, real_coefficient, imaginary_coefficient], for example {"energy": [["ZZ", 1.0, 0.0], ["XX", 0.5, 0.0]]}. The results come back under the same keys.

max_qwc_groups
integer | null

Optional cap on the number of qubit-wise-commuting groups retained.

max_error_total
number | null

Optional total truncation error budget across the backpropagation.

max_error_per_slice
number | null

Optional truncation error budget per circuit slice.

Response

Successful Response

Represent the outcome of an observable backpropagation.

Attributes: optimized_circuit_ids: Circuit produced for each input observable, keyed by the input's name. backpropagated_observables: Rewritten observables as (pauli, real, imaginary) term lists, keyed by the input's name. context: Summary of what was produced and the next step.

optimized_circuit_ids
Optimized Circuit Ids · object
required
backpropagated_observables
Backpropagated Observables · object
required
context
string
required