Open urig opened 2 years ago
The ParamStore API currently supports both specifying keys as dictionary keys:
ParamStore
param_store['key'] = value
and as attributes:
param_store.key = value
However, this key/attribute equivalence does not extended to parsing dot notation into full blown nested dictionary hierarchy. More formally:
param_store= InProcessParamStore() param_store["qubit1.flux_capacitor.freq"] = 8.0
param_store.qubit1.flux_capacitor.freq == 8.0 # should be True
AttributeError is raised complaining about qubit1 not being an attribute.
AttributeError
qubit1
We should consider augmenting the InProcessParamStore implementation so that it fulfills the above expectation.
InProcessParamStore
@urig I think this is now resolved, right?
The
ParamStore
API currently supports both specifying keys as dictionary keys:and as attributes:
However, this key/attribute equivalence does not extended to parsing dot notation into full blown nested dictionary hierarchy. More formally:
Steps to reproduce:
Expected result:
Actual result:
AttributeError
is raised complaining aboutqubit1
not being an attribute.We should consider augmenting the
InProcessParamStore
implementation so that it fulfills the above expectation.