Storage

Data persistence for spectrum calculations, matrix elements, and coherence times using HDF5 files.

class HybridSuperQubits.storage.SpectrumData(energy_table, system_params, param_name=None, param_vals=None, state_table=None, matrixelem_table=None, t1_table=None, tphi_table=None, d2E_table=None, **kwargs)[source]

Bases: object

Parameters:
subtract_ground()[source]

Subtract ground state energies from spectrum.

The energy_table has dimensions (param_vals_count, evals_count). This method subtracts the ground state energy (column 0) from all states at each parameter value (each row) and then removes the ground state column which becomes identically zero.

Return type:

None

filewrite(filename, overwrite=False)[source]

Save the SpectrumData to an HDF5 file.

Parameters:
Return type:

None

static read(filename)[source]

Read SpectrumData from an HDF5 file.

Parameters:

filename (str)

Return type:

SpectrumData