PulseSystemModel¶
-
class
PulseSystemModel
(hamiltonian=None, u_channel_lo=None, control_channel_labels=None, subsystem_list=None, dt=None)[source]¶ Bases:
object
Physical model object for pulse simulator.
This class contains model information required by the
PulseSimulator
. It contains:"hamiltonian"
: aHamiltonianModel
object representing the Hamiltonian of the system."u_channel_lo"
: A description ofControlChannel
local oscillator frequencies in terms of qubit local oscillator frequencies."control_channel_labels"
: Optional list of identifying information for eachControlChannel
that the model supports."subsystem_list"
: List of subsystems in the model."dt"
: Sample width size for OpenPulse instructions.
A model can be instantiated from the helper function
duffing_system_model()
, or using thePulseSystemModel.from_backend()
constructor.Example
Constructing from a backend:
Initialize a PulseSystemModel.
- Parameters
hamiltonian (HamiltonianModel) – The Hamiltonian of the system.
u_channel_lo (list) – list of ControlChannel frequency specifications.
control_channel_labels (list) – list of labels for control channels, which can be of any type.
subsystem_list (list) – list of valid qubit indicies for the model.
dt (float) – pixel size for pulse Instructions.
- Raises
AerError – if hamiltonian is not None or a HamiltonianModel
Methods
Calculate frequencies for each channel given qubit_lo_freq.
Return the index of the control channel with identifying label.
Returns a PulseSystemModel constructed from an OpenPulse enabled backend object.
Construct a model from configuration and defaults.