SpectrumLookupAdapter#

class scqubits.core.spec_lookup.SpectrumLookupAdapter(hilbertspace)[source]#

Bridges earlier functionality provided by the SpectrumLookup class to universal use of the SpectrumLookupMixin class (originally developed for ParameterSweep and then extended to HilbertSpace).

Methods

SpectrumLookupAdapter.__init__(hilbertspace)

SpectrumLookupAdapter.bare_eigenenergies(subsys)

Return list of bare eigenenergies for given subsystem.

SpectrumLookupAdapter.bare_eigenstates(subsys)

Return ndarray of bare eigenstates for given subsystem.

SpectrumLookupAdapter.bare_index(dressed_index)

For given dressed index, look up the corresponding bare index.

SpectrumLookupAdapter.bare_productstate(...)

Return the bare product state specified by bare_index.

SpectrumLookupAdapter.dressed_eigenenergies()

Return the array of dressed eigenenergies

SpectrumLookupAdapter.dressed_eigenstates()

Return the list of dressed eigenvectors

SpectrumLookupAdapter.dressed_index(bare_labels)

For given bare product state return the corresponding dressed-state index.

SpectrumLookupAdapter.energy_bare_index(...)

Look up dressed energy most closely corresponding to the given bare-state labels

SpectrumLookupAdapter.energy_dressed_index(...)

Look up the dressed eigenenergy belonging to the given dressed index.

SpectrumLookupAdapter.run()

rtype

None

bare_eigenenergies(subsys)[source]#

Return list of bare eigenenergies for given subsystem.

Parameters

subsys (QuantumSystem) – Hilbert space subsystem for which bare eigendata is to be looked up

Return type

ndarray

Returns

bare eigenenergies for the specified subsystem

bare_eigenstates(subsys)[source]#

Return ndarray of bare eigenstates for given subsystem. Eigenstates are expressed in the basis internal to the subsystem.

Return type

ndarray

Parameters

subsys (QuantumSystem) –

bare_index(dressed_index)[source]#

For given dressed index, look up the corresponding bare index.

Return type

Optional[Tuple[int, ...]]

Returns

Bare state specification in tuple form. Example: (1,0,3) means subsystem 1 is in bare state 1, subsystem 2 in bare state 0, and subsystem 3 in bare state 3.

Parameters

dressed_index (int) –

bare_productstate(bare_index)[source]#

Return the bare product state specified by bare_index.

Parameters

bare_index (Tuple[int, ...]) –

Return type

Qobj

Returns

ket in full Hilbert space

dressed_eigenenergies()[source]#

Return the array of dressed eigenenergies

Return type

ndarray

Returns

dressed eigenenergies for the external parameter fixed to the value indicated by the provided index

dressed_eigenstates()[source]#

Return the list of dressed eigenvectors

Return type

List[QutipEigenstates]

Returns

dressed eigenvectors for the external parameter fixed to the value indicated by the provided index

dressed_index(bare_labels)[source]#

For given bare product state return the corresponding dressed-state index.

Parameters

bare_labels (Tuple[int, ...]) – bare_labels = (index, index2, …)

Return type

Optional[int]

Returns

dressed state index closest to the specified bare state

energy_bare_index(bare_tuple)[source]#

Look up dressed energy most closely corresponding to the given bare-state labels

Parameters

bare_tuple (Tuple[int, ...]) – bare state indices

Return type

Optional[float]

Returns

dressed energy, if lookup successful

energy_dressed_index(dressed_index)[source]#

Look up the dressed eigenenergy belonging to the given dressed index.

Parameters

dressed_index (int) – index of dressed state of interest

Return type

float

Returns

dressed energy