QMEstimatorJob

class QMEstimatorJob(backend: QMBackend, pubs: List[EstimatorPub], input_type: InputType | None, switch_obs_circuit: QuantumCircuit, **kwargs)[source][source]

Bases: QMPrimitiveJob

Job handle for QMEstimatorV2 execution.

Builds a QUA estimator program from pubs and returns expectation values via result(). See programs for the compiled QUA source and result_handles for raw QM stream access after submit.

Create an estimator job.

Parameters:
  • backend – Backend that compiled the circuits.

  • pubs – Coerced estimator pubs to execute.

  • input_type – How circuit parameters are streamed to the OPX.

  • switch_obs_circuit – Pre-transpiled circuit used to rotate observables.

  • **kwargs – Estimator options forwarded to execution planning.

result() → ResultT[source][source]

Build and return primitive estimator results from QM streaming data.

Returns:

PrimitiveResult with per-pub expectation values and standard errors.

property runtime_pubs: List[EstimatorPlan]

Execution plans for this estimator job.

One EstimatorPlan per input PUB. Each plan holds the measurement grouping metadata, the parameter tables and the packed observable rows that drive the per-qubit basis switches. Inspect it to see how observables were grouped or what is streamed per binding.

submit()[source][source]

Submit the job to the backend.

Programs are submitted via submit_qua_programs() (qm.execute for simulation; OPX1000 add_to_queue / OPX+ queue.add for real hardware). Chunks are handled in order: each is waited on until running and its plan data is streamed before the next chunk, queued behind it, can start. IQCC sync-hook submission is handled by IQCCEstimatorJob. When every PUB has only identity terms there is no program, and nothing is sent to the QM.