VPTRunner
A helper class to make it easier to run jobs by making the inputs/options clear and making it easier to customize run options
helpers: AnneInputHelpers
__init__(self, system, states, initial_states=None, hamiltonian_options=None, solver_options=None, runtime_options=None):
system:VPTSystemthe system to run perturbation theory on
hamiltonian_options:VPTHamiltonianOptionsoptions to configure the Hamiltonian
solver_options:VPTSolverOptionsoptions to configure the way the perturbation theory is applied
runtime_options:VPTRuntimeOptionsoptions to configure the way the code runs
get_Hamiltonian(self):
@property
hamiltonian(self):
get_wavefunctions(self, **opts):
get_solver(self):
@classmethod
print_output_tables(cls, wfns=None, file=None, print_intensities=True, print_energies=True, print_energy_corrections=True, print_transition_moments=True, operators=None, logger=None, sep_char='=', sep_len=100):
Prints a bunch of formatted output data from a PT run
wfns:Any:returns:_
print_tables(self, wfns=None, file=None, print_intensities=True, print_energy_corrections=True, print_transition_moments=True, operators=None, logger=None, sep_char='=', sep_len=100):
Prints a bunch of formatted output data from a PT run
wfns:Any:returns:_
get_Nielsen_energies(self, return_split=False, return_X=False, **potential_params):
print_Nielsen_frequencies(self, logger=None, state_formatting='vector', **potential_params):
@classmethod
construct(cls, system, states, target_property=None, extended_space_target_property=None, basis_filters=None, initial_states=None, corrected_fundamental_frequencies=None, **opts):
@classmethod
run_simple(cls, system, states, target_property=None, corrected_fundamental_frequencies=None, calculate_intensities=True, plot_spectrum=False, operators=None, **opts):
The standard runner for VPT.
Makes a runner using the construct method and then calls that
runner’s print_tables method after printing out run info.
system:list|str|Moleculethe system spec, either as a
Molecule, molecule spec (atoms, coords, opts) or a file to construct aMoleculestates:int|listthe states to get corrections for either an
int(up to that many quanta) or an explicit state listtarget_property:strthe target property to get corrections for (one of ‘frequencies’, ‘intensities’, ‘wavefunctions’)
corrected_fundamental_frequencies:Iterable[float]|Nonea set of fundamental frequencies to use to get new zero-order energies
calculate_intensities:bool default:Truewhether or not to calculate energies
opts:Anyoptions that work for a
VPTSystem,VPTStateSpace,VPTRuntimeOptions,VPTSolverOptions, orVPTHamiltonianOptionsobject which will be filtered automatically