vibeqc.SolverResult¶
- class vibeqc.SolverResult(energy, method, converged=True, n_iter=0, energy_trace=<factory>, ci_coeffs=None, ci_labels=None, rdm1=None, rdm2=None, truncation_error=None, bond_dim=None, constraint_residual=None, pt2_correction=None, tc_diagnostics=None, root_energies=None, root_s2=None, selected_pt2=None, multistate=None)[source]¶
Bases:
objectCommon result container for all non-mean-field solvers.
Fields marked
method-specificare populated by individual backends and may beNone.- Parameters:
energy (float)
method (str)
converged (bool)
n_iter (int)
ci_coeffs (ndarray | None)
rdm1 (ndarray | None)
rdm2 (ndarray | None)
truncation_error (float | None)
bond_dim (int | None)
constraint_residual (float | None)
pt2_correction (float | None)
tc_diagnostics (dict | None)
multistate (dict | None)
- __init__(energy, method, converged=True, n_iter=0, energy_trace=<factory>, ci_coeffs=None, ci_labels=None, rdm1=None, rdm2=None, truncation_error=None, bond_dim=None, constraint_residual=None, pt2_correction=None, tc_diagnostics=None, root_energies=None, root_s2=None, selected_pt2=None, multistate=None)¶
- Parameters:
energy (float)
method (str)
converged (bool)
n_iter (int)
ci_coeffs (ndarray | None)
rdm1 (ndarray | None)
rdm2 (ndarray | None)
truncation_error (float | None)
bond_dim (int | None)
constraint_residual (float | None)
pt2_correction (float | None)
tc_diagnostics (dict | None)
multistate (dict | None)
- Return type:
None
Methods
__init__(energy, method[, converged, ...])Attributes
Bond dimension, DMRG.
Wavefunction coefficients (determinant × configuration), CI only.
Determinant / configuration labels, CI only.
N-representability residual norm, v2RDM.
Whether the solver considers itself converged.
Alias for
energy.mode,heff(symmetrized effective Hamiltonian),heff_asym,mixing,ss_energies,ref_energies,e2_corr,xms_rotation.Number of macro-iterations / sweeps taken.
Perturbative correction, Selected-CI.
1-RDM (norb, norb), if computed by the solver.
2-RDM (norb, norb, norb, norb), if computed by the solver.
Per-root total energies (Hartree), multi-root CASCI / SA-CASSCF / multi-state CASPT2 only.
Per-root ⟨S²⟩ alongside
root_energies(same ordering), so the .out root table shows which spin sector each averaged root lives in.Per-root Epstein-Nesbet PT2 on a selected-CI wavefunction (
vibeqc.solvers.selected_ci_pt2()dicts:e_pt2,e_total,stderr,n_perturbers), requested viaCASSCFOptions.pt2.Transcorrelated diagnostics dict.
Truncation error / discarded weight, DMRG.
Total energy (Hartree).
Method name, e.g.
"selected_ci","dmrg","v2rdm".Energy trace per macro-iteration (if tracked).
- root_energies: list[float] | None = None¶
Per-root total energies (Hartree), multi-root CASCI / SA-CASSCF / multi-state CASPT2 only.
energyremains the headline value (ground root, or the weighted state average for SA-CASSCF).
- root_s2: list[float] | None = None¶
Per-root ⟨S²⟩ alongside
root_energies(same ordering), so the .out root table shows which spin sector each averaged root lives in. None when not computed (diagnostic; degrades to omission).
- selected_pt2: list[dict] | None = None¶
Per-root Epstein-Nesbet PT2 on a selected-CI wavefunction (
vibeqc.solvers.selected_ci_pt2()dicts:e_pt2,e_total,stderr,n_perturbers), requested viaCASSCFOptions.pt2.energystays variational; this is the SHCI perturbative estimate on top.