QuantumSystem#
- class scqubits.core.qubit_base.QuantumSystem(id_str)[source]#
Generic quantum system class
Methods
QuantumSystem.__init__
(id_str)QuantumSystem.broadcast
(event, **kwargs)Request a broadcast from CENTRAL_DISPATCH reporting event.
Use ipywidgets to create a new class instance
Return dictionary with default parameter values for initialization of class instance
Returns dict appropriate for creating/initializing a new Serializable object.
Returns a list of all operator names for the quantum system.
Returns dimension of Hilbert space
QuantumSystem.receive
(event, sender, **kwargs)Receive a message from CENTRAL_DISPATCH and initiate action on it.
QuantumSystem.set_params
(**kwargs)Set new parameters through the provided dictionary.
Set new parameters through the provided dictionary.
Returns a list of noise channels this QuantumSystem supports.
QuantumSystem.widget
([params])Use ipywidgets to modify parameters of class instance
Attributes
id_str
truncated_dim
Descriptor class for properties that are to be monitored for changes.
- Return type:
QuantumSystemType
- broadcast(event, **kwargs)#
Request a broadcast from CENTRAL_DISPATCH reporting event.
- Parameters:
event (
str
) – event name from EVENTS**kwargs –
- Return type:
None
- abstract static default_params()[source]#
Return dictionary with default parameter values for initialization of class instance
- Return type:
Dict
[str
,Any
]
- get_initdata()[source]#
Returns dict appropriate for creating/initializing a new Serializable object.
- Return type:
Dict
[str
,Any
]
- classmethod get_operator_names()[source]#
Returns a list of all operator names for the quantum system. Note that this list omits any operators that start with “_”.
- Parameters:
subsys – Class instance of quantum system
- Return type:
List
[str
]- Returns:
list of operator names
- receive(event, sender, **kwargs)#
Receive a message from CENTRAL_DISPATCH and initiate action on it.
- Parameters:
event (
str
) – event name from EVENTSsender (
DispatchClient
) – original sender reporting the event**kwargs –
- Return type:
None