About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
SamplerOptions
class SamplerOptions(*args, **kwargs)
Options for V2 Sampler.
Parameters
- default_shots – The default number of shots to use if none are specified in the PUBs or in the run method. Default: 4096.
- dynamical_decoupling – Suboptions for dynamical decoupling. See
DynamicalDecouplingOptions
for all available options. - execution – Execution time options. See
SamplerExecutionOptionsV2
for all available options. - twirling – Pauli twirling options. See
TwirlingOptions
for all available options. - experimental – Experimental options.
Attributes
default_shots
Type: UnsetType | int
Default value: Unset
dynamical_decoupling
Type: DynamicalDecouplingOptions | Dict
Default value: FieldInfo(annotation=Union[DynamicalDecouplingOptions, Dict], required=False, default_factory=DynamicalDecouplingOptions)
environment
Type: EnvironmentOptions | Dict
Default value: FieldInfo(annotation=Union[EnvironmentOptions, Dict], required=False, default_factory=EnvironmentOptions)
execution
Type: SamplerExecutionOptionsV2 | Dict
Default value: FieldInfo(annotation=Union[SamplerExecutionOptionsV2, Dict], required=False, default_factory=SamplerExecutionOptionsV2)
experimental
Type: UnsetType | dict
Default value: Unset
max_execution_time
Type: UnsetType | int
Default value: Unset
simulator
Type: SimulatorOptions | Dict
Default value: FieldInfo(annotation=Union[SimulatorOptions, Dict], required=False, default_factory=SimulatorOptions)
twirling
Type: TwirlingOptions | Dict
Default value: FieldInfo(annotation=Union[TwirlingOptions, Dict], required=False, default_factory=TwirlingOptions)
Methods
update
Was this page helpful?
Report a bug or request content on GitHub.