Helper functions (bare vs. dressed basis)#

Some of the helper methods available as part of the ParameterSweep class (see the API documentation for more details):

dressed_index obtain the dressed index corresponding to a bare index (use pre-slicing)

[31]:
sweep["flux":0, "ng":0].dressed_index((1,0,1))
[31]:
9

bare_index obtain the bare index (bare product state label) corresponding to a dressed index (use pre-slicing)

[32]:
sweep["flux":0, "ng":0].bare_index(8)
[32]:
(0, 2, 1)

energy_by_bare_index obtain the eigenenergy for given bare index (use pre-slicing)

[33]:
sweep["ng":0].energy_by_bare_index((1,1,0))
[33]:
NamedSlotsNdarray([11.750756260771439, 11.746489161977891, ...,
                   10.286595560237334, 10.171087725541547], dtype=object)