- class Options(optimization_level=None, resilience_level=None, max_execution_time=None, transpilation=<factory>, resilience=<factory>, execution=<factory>, environment=<factory>, simulator=<factory>)¶
Options for the primitives.
How much optimization to perform on the circuits. Higher levels generate more optimized circuits, at the expense of longer transpilation times. This is based on the
optimization_levelparameter in qiskit-terra but may include backend-specific optimization. Default: 3.
0: no optimization
1: light optimization
2: heavy optimization
3: even heavier optimization
How much resilience to build against errors. Higher levels generate more accurate results, at the expense of longer processing times. Default: 1.
0: No mitigation.
1: Minimal mitigation costs. Mitigate error associated with readout errors.
2: Medium mitigation costs. Typically reduces bias in estimators but is not guaranteed to be zero bias. Only applies to estimator.
3: Heavy mitigation with layer sampling. Theoretically expected to deliver zero bias estimators. Only applies to estimator.
Refer to the Qiskit Runtime documentation. for more information about the error mitigation methods used at each level.
Maximum execution time in seconds, which is based on quantum time (not wall clock time). Quantum time is the time that the QPU complex (including control software, control electronics, QPU, and so on) is engaged in processing the job. If a job exceeds this time limit, it is forcibly cancelled. Simulator jobs continue to use wall clock time because they do not have quantum time.
Refer to the Max execution time documentation. for more information.
Validate that program inputs (options) are valid :raises ValueError: if optimization_level is outside the allowed range.