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 as lists 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
tuple[][]
required

Observables to backpropagate. Each observable is a list of Pauli terms given as [pauli_string, real_coefficient, imaginary_coefficient], for example [["ZZ", 1.0, 0.0], ["XX", 0.5, 0.0]].

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: Circuits produced by the backpropagation, one per input observable. backpropagated_observables: Rewritten observables as (pauli, real, imaginary) term lists. context: Summary of what was produced and the next step.

optimized_circuit_ids
string[]
required
backpropagated_observables
tuple[][]
required
context
string
required