colder.backend.sparse package

colder.backend.sparse.interface module

class colder.backend.sparse.interface.interface(nqubits: int, hh: hamiltonian | hamiltonian_collection)[source]

Bases: object

compute_timeindependent_hamiltonians() List[spmatrix][source]
compute_timeindependent_hamiltonians_with_coeff() List[Tuple[str, spmatrix]][source]
finalize(matrix: spmatrix) spmatrix[source]
COLD_make_hamiltonian()[source]
COLD_get_finalize_method()[source]

colder.backend.sparse.routines module

colder.backend.sparse.routines.get_lower_eigen(hh, k: int = 8, method: str = 'dense')[source]
colder.backend.sparse.routines.get_superposition(hh, n_eig: int, method: str = 'dense')[source]
colder.backend.sparse.routines.get_groundstate_superposition(hh, n_eig: int = 8, method: str = 'dense', print_info: bool = False)[source]
colder.backend.sparse.routines.timedependent_evolution(htf: callable, T: float, P: int, psi0: ndarray | str = 'superpos', gs_args: dict = {}, force_norm: bool = True, hook_function: callable | None = None)[source]

Execute a time evolution. The Hamiltonian is a callable function of time H(t).