QMEstimatorJob¶
- class QMEstimatorJob(backend: QMBackend, pubs: List[EstimatorPub], input_type: InputType | None, switch_obs_circuit: QuantumCircuit, **kwargs)[source][source]¶
Bases:
QMPrimitiveJobJob handle for
QMEstimatorV2execution.Builds a QUA estimator program from pubs and returns expectation values via
result(). Seeprogramsfor the compiled QUA source andresult_handlesfor 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:
PrimitiveResultwith per-pub expectation values and standard errors.
- property runtime_pubs: List[EstimatorPlan]¶
Execution plans for this estimator job.
One
EstimatorPlanper 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.executefor simulation; OPX1000add_to_queue/ OPX+queue.addfor 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 byIQCCEstimatorJob. When every PUB has only identity terms there is no program, and nothing is sent to the QM.