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)Return list of bare eigenenergies for given subsystem.
Return ndarray of bare eigenstates for given subsystem.
SpectrumLookupAdapter.bare_index(dressed_index)For given dressed index, look up the corresponding bare index.
Return the bare product state specified by bare_index.
Return the array of dressed eigenenergies
Return the list of dressed eigenvectors
SpectrumLookupAdapter.dressed_index(bare_labels)For given bare product state return the corresponding dressed-state index.
Look up dressed energy most closely corresponding to the given bare-state labels
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