You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Previously parameters of both model and control components were managed in a object.params dictionary. This should be modified so that the property is directly a field of the object. E.g. qubit.params["frequency"] becomes qubit.frequency.
Example:
# TODO Cleanup params passing and check for conflicting information
super().__init__(
name=name,
desc=desc,
comment=comment,
hilbert_dim=hilbert_dim,
params=params,
)
iffreq:
self.params['freq'] =freq
For this to work each object needs to implement a get_parameters() method that exposes properties to the parametermap to be used instead of comp.params.items() in the following:
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Previously parameters of both model and control components were managed in a
object.params
dictionary. This should be modified so that the property is directly a field of the object. E.g.qubit.params["frequency"]
becomesqubit.frequency
.Example:
c3/c3/system/chip.py
Lines 77 to 99 in ef95330
For this to work each object needs to implement a
get_parameters()
method that exposes properties to the parametermap to be used instead ofcomp.params.items()
in the following:c3/c3/parametermap.py
Lines 38 to 45 in ef95330
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: