Skip to main content
IBM Quantum Platform
Questa pagina proviene da una versione precedente di Qiskit Runtime client Vai all'ultima versione

SamplerOptions

class SamplerOptions(_VERSION=2, max_execution_time=Unset, environment=<factory>, simulator=<factory>, default_shots=Unset, dynamical_decoupling=<factory>, execution=<factory>, twirling=<factory>, experimental=Unset)

GitHub

Bases: OptionsV2

Options for V2 Sampler.


Attributes

Parameters

default_shots

Tipo: UnsetType | int

Valore predefinito: Unset

The default number of shots to use if none are specified in the PUBs or in the run method.

Default: 4096.

dynamical_decoupling

Tipo: DynamicalDecouplingOptions | Dict

Valore predefinito: FieldInfo(annotation=NoneType, required=False, default_factory=DynamicalDecouplingOptions)

Suboptions for dynamical decoupling. See DynamicalDecouplingOptions for all available options.

environment

Tipo: EnvironmentOptions | Dict

Valore predefinito: FieldInfo(annotation=NoneType, required=False, default_factory=EnvironmentOptions)

execution

Tipo: SamplerExecutionOptionsV2 | Dict

Valore predefinito: FieldInfo(annotation=NoneType, required=False, default_factory=SamplerExecutionOptionsV2)

Execution time options. See SamplerExecutionOptionsV2 for all available options.

experimental

Tipo: UnsetType | dict

Valore predefinito: Unset

Experimental options.

max_execution_time

Tipo: UnsetType | int

Valore predefinito: Unset

simulator

Tipo: SimulatorOptions | Dict

Valore predefinito: FieldInfo(annotation=NoneType, required=False, default_factory=SimulatorOptions)

twirling

Tipo: TwirlingOptions | Dict

Valore predefinito: FieldInfo(annotation=NoneType, required=False, default_factory=TwirlingOptions)

Pauli twirling options. See TwirlingOptions for all available options.


Methods

update

update(**kwargs)

GitHub

Update the options.

Parameters

kwargs (Any)

Return type

None

Questa pagina è stata utile?
Segnala un bug, un errore di battitura o richiedi contenuti su GitHub.