EmulatorConfig
- class pulser.backend.EmulatorConfig(backend_options=<factory>, sampling_rate=1.0, evaluation_times='Full', initial_state='all-ground', with_modulation=False, prefer_device_noise_model=False, noise_model=<factory>)
Bases:
BackendConfigThe configuration for emulator backends.
Warning
This class will be deprecated in favor of EmulationConfig once all backends migrate to it.
- Parameters:
backend_options (
dict[str,Any], default:<factory>) – A dictionary of backend-specific options.sampling_rate (
float, default:1.0) – The fraction of samples to extract from the pulse sequence for emulation.evaluation_times (
float|Sequence[float] |Literal['Full','Minimal','Final'], default:'Full') –The times at which results are returned. Choose between:
”Full”: The times are set to be the ones used to define the Hamiltonian to the solver.
”Minimal”: The times are set to only include initial and final times.
”Final”: Returns only the result at the end of the sequence.
A list of times in µs if you wish to only include those specific times.
A float to act as a sampling rate for the resulting state.
initial_state (
Literal['all-ground'] |Sequence[complex] |ndarray, default:'all-ground') –The initial state from which emulation starts. Choose between:
”all-ground” for all atoms in the ground state
An array of floats with a shape compatible with the system
with_modulation (
bool, default:False) – Whether to emulate the sequence with the programmed input or the expected output.prefer_device_noise_model (
bool, default:False) – If the sequence’s device has a default noise model, this option signals the backend to prefer it over the noise model given with this configuration.noise_model (
NoiseModel, default:<factory>) – An optional noise model to emulate the sequence with. Ignored if the sequence’s device has default noise model and prefer_device_noise_model=True.
Attributes
evaluation_timesinitial_stateprefer_device_noise_modelsampling_ratewith_modulationbackend_optionsnoise_model