PerturbationTheoryCorrections
Represents a set of corrections from perturbation theory. Can be used to correct other operators in the basis of the original calculation.
Properties and Methods
__init__(self, states, coupled_states, total_basis, energy_corrs, wfn_corrections, all_energy_corrections=None, degenerate_states=None, degenerate_transformation=None, degenerate_energies=None, logger=None):
states:BasisStateSpaceNo description…
coupled_states:BasisMultiStateSpaceNo description…
total_basis:BasisMultiStateSpaceNo description…
energy_corrs:np.ndarrayNo description…
wfn_corrections:Iterable[SparseArray]No description…
degenerate_states:None | np.ndarrayNo description…
degenerate_transformation:None | np.ndarrayNo description…
degenerate_energies:None | np.ndarrayNo description…
from_dicts(states, corrections, hamiltonians, **opts):
states:dicta dict with the states described by the corrections, the set of states coupled, and the size of the overall basis
corrections:dictthe corrections generated, including the corrections for the energies, wavefunctions, and a transformation from degenerate PT
@property
degenerate(self):
@property
energies(self):
@property
order(self):
take_subspace(self, space):
Takes only those elements that are in space
space:AnyNo description…
:returns:_No description…
operator_representation(self, operator_expansion, order=None, subspace=None, contract=True, logger_symbol='A', logger_conversion=None):
Generates the representation of the operator in the basis of stored states
operator_expansion:Iterable[float] | Iterable[np.ndarray]the expansion of the operator
order:Iterable[float] | Iterable[np.ndarray]the order of correction to go up to
subspace:None | BasisStateSpacethe subspace of terms in which the operator expansion is defined
:returns:Iterable[np.ndarray]the set of representation matrices for this operator
get_overlap_matrices(self):
Returns the overlap matrices for the set of corrections at each order of correction
:returns:_No description…
savez(self, file):
loadz(file):
to_state(self, serializer=None):
from_state(data, serializer=None):
Examples
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings