PulseSystemModel¶
- class PulseSystemModel(hamiltonian=None, qubit_freq_est=None, meas_freq_est=None, u_channel_lo=None, control_channel_labels=None, subsystem_list=None, dt=None)[source]¶
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."qubit_freq_est"
and"meas_freq_est"
: optional default values for qubit and measurement frequencies."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.
qubit_freq_est (list) – list of qubit lo frequencies defaults to be used in simulation if none are specified in the PulseQobj.
meas_freq_est (list) – list of qubit meas frequencies defaults to be used in simulation if none are specified in the PulseQobj.
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.
PulseSystemModel.from_backend
(backend[, …])Returns a PulseSystemModel constructed from an OpenPulse enabled backend object.