TREXIO Format Support in ElemCo.jl
ElemCo.jl includes support for the TREXIO format, a standardized HDF5-based format for quantum chemistry data exchange. This enables efficient storage and retrieval of orbitals, amplitudes, and other data structures, facilitating interoperability with other quantum chemistry software.
API Reference
Standalone TREXIO Module
ElemCo.TREXIO — Module
TREXIO - A standalone Julia implementation of the TREXIO format
This module provides a standalone implementation of the TREXIO format for quantum chemistry data exchange. It follows the TREXIO specification closely and can be used independently of any quantum chemistry package.
TREXIO format specification: https://trex-coe.github.io/trexio/trex.html API documentation: https://trex-coe.github.io/trexio/index.html Reference: https://arxiv.org/pdf/2302.14793
This implementation supports:
- HDF5 backend for efficient storage
- Column-major representation as specified by TREXIO
- Standard TREXIO data groups: nucleus, basis, mo, electron, ao, ecp, grid, amplitude, rdm, qmc
- Full TREXIO naming convention: trexio[has|read|write]<group>_<attribute>
- Metadata and versioning
- Error handling with TREXIO exit codes
The module contains a set of groups/attributes that extend the standard TREXIO format to support additional features and data types. A suppressable warning is issued if the corresponding has/read/write functions are called, and the doc-strings contain warnings as well.
TREXIO Core Types and Functions
ElemCo.TREXIO.TrexioFile — Type
TrexioFileStructure representing a TREXIO format file following the standard specification. Contains the HDF5 file handle and metadata.
Fields
file::HDF5.File: HDF5 file handlefilename::String: Path to the TREXIO filemode::String: File access mode ("r", "w", "u")
ElemCo.TREXIO.trexio_check_read_status — Function
trexio_check_read_status(status::TrexioExitCode, what::String="")Check TREXIO read status and throw error if not successful. what is an optional description of the data being read.
ElemCo.TREXIO.trexio_check_write_status — Function
trexio_check_write_status(status::TrexioExitCode, what::String="")Check TREXIO write status and throw error if not successful. what is an optional description of the data being written.
ElemCo.TREXIO.trexio_close — Method
trexio_close(trexio::TrexioFile) -> TrexioExitCodeClose a TREXIO file and release resources. Returns TREXIO exit code.
ElemCo.TREXIO.trexio_has_amplitude_double — Method
trexio_has_amplitude_double(trexio::TrexioFile) -> BoolCheck if double excitation amplitudes exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_double_dense — Method
trexio_has_amplitude_double_dense(trexio::TrexioFile) -> BoolCheck if double excitation amplitudes (dense) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_double_dndn_dense — Method
trexio_has_amplitude_double_dndn_dense(trexio::TrexioFile) -> BoolCheck if ↓↓-spin component of the double excitation amplitudes (dense) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_double_exp — Method
trexio_has_amplitude_double_exp(trexio::TrexioFile) -> BoolCheck if exponentialized double excitation amplitudes exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_double_updn_dense — Method
trexio_has_amplitude_double_updn_dense(trexio::TrexioFile) -> BoolCheck if ↑↓-spin component of the double excitation amplitudes (dense) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_double_upup_dense — Method
trexio_has_amplitude_double_upup_dense(trexio::TrexioFile) -> BoolCheck if ↑↑-spin component of the double excitation amplitudes (dense) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_quadruple — Method
trexio_has_amplitude_quadruple(trexio::TrexioFile) -> BoolCheck if quadruple excitation amplitudes exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_quadruple_exp — Method
trexio_has_amplitude_quadruple_exp(trexio::TrexioFile) -> BoolCheck if exponentialized quadruple excitation amplitudes exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_single — Method
trexio_has_amplitude_single(trexio::TrexioFile) -> BoolCheck if single excitation amplitudes exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_single_dense — Method
trexio_has_amplitude_single_dense(trexio::TrexioFile) -> BoolCheck if single excitation amplitudes (dense) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_single_dn_dense — Method
trexio_has_amplitude_single_dn_dense(trexio::TrexioFile) -> BoolCheck if ↓-spin component of the single excitation amplitudes (dense) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_single_exp — Method
trexio_has_amplitude_single_exp(trexio::TrexioFile) -> BoolCheck if exponentialized single excitation amplitudes exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_single_up_dense — Method
trexio_has_amplitude_single_up_dense(trexio::TrexioFile) -> BoolCheck if ↑-spin component of the single excitation amplitudes (dense) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_triple — Method
trexio_has_amplitude_triple(trexio::TrexioFile) -> BoolCheck if triple excitation amplitudes exists in TREXIO file.
ElemCo.TREXIO.trexio_has_amplitude_triple_exp — Method
trexio_has_amplitude_triple_exp(trexio::TrexioFile) -> BoolCheck if exponentialized triple excitation amplitudes exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_core_hamiltonian — Method
trexio_has_ao_1e_int_core_hamiltonian(trexio::TrexioFile) -> BoolCheck if core Hamiltonian integrals ⟨p|h|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_core_hamiltonian_im — Method
trexio_has_ao_1e_int_core_hamiltonian_im(trexio::TrexioFile) -> BoolCheck if core Hamiltonian integrals ⟨p|h|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_dipole_x — Method
trexio_has_ao_1e_int_dipole_x(trexio::TrexioFile) -> BoolCheck if dipole x component integrals ⟨p|μ_x|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_dipole_x_im — Method
trexio_has_ao_1e_int_dipole_x_im(trexio::TrexioFile) -> BoolCheck if dipole x component integrals ⟨p|μ_x|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_dipole_y — Method
trexio_has_ao_1e_int_dipole_y(trexio::TrexioFile) -> BoolCheck if dipole y component integrals ⟨p|μ_y|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_dipole_y_im — Method
trexio_has_ao_1e_int_dipole_y_im(trexio::TrexioFile) -> BoolCheck if dipole y component integrals ⟨p|μ_y|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_dipole_z — Method
trexio_has_ao_1e_int_dipole_z(trexio::TrexioFile) -> BoolCheck if dipole z component integrals ⟨p|μ_z|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_dipole_z_im — Method
trexio_has_ao_1e_int_dipole_z_im(trexio::TrexioFile) -> BoolCheck if dipole z component integrals ⟨p|μ_z|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_ecp — Method
trexio_has_ao_1e_int_ecp(trexio::TrexioFile) -> BoolCheck if effective core potential integrals ⟨p|V_ECP|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_ecp_im — Method
trexio_has_ao_1e_int_ecp_im(trexio::TrexioFile) -> BoolCheck if effective core potential integrals ⟨p|V_ECP|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_kinetic — Method
trexio_has_ao_1e_int_kinetic(trexio::TrexioFile) -> BoolCheck if kinetic energy integrals ⟨p|T|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_kinetic_im — Method
trexio_has_ao_1e_int_kinetic_im(trexio::TrexioFile) -> BoolCheck if kinetic energy integrals ⟨p|T|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_overlap — Method
trexio_has_ao_1e_int_overlap(trexio::TrexioFile) -> BoolCheck if overlap integrals ⟨p|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_overlap_im — Method
trexio_has_ao_1e_int_overlap_im(trexio::TrexioFile) -> BoolCheck if overlap integrals ⟨p|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_potential_n_e — Method
trexio_has_ao_1e_int_potential_n_e(trexio::TrexioFile) -> BoolCheck if electron-nucleus potential integrals ⟨p|V_ne|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_1e_int_potential_n_e_im — Method
trexio_has_ao_1e_int_potential_n_e_im(trexio::TrexioFile) -> BoolCheck if electron-nucleus potential integrals ⟨p|V_ne|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_2e_int_eri — Method
trexio_has_ao_2e_int_eri(trexio::TrexioFile) -> BoolCheck if electron repulsion integrals ⟨pq|rs⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_2e_int_eri_cholesky — Method
trexio_has_ao_2e_int_eri_cholesky(trexio::TrexioFile) -> BoolCheck if Cholesky decomposition of the ERI exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_2e_int_eri_cholesky_num — Method
trexio_has_ao_2e_int_eri_cholesky_num(trexio::TrexioFile) -> BoolCheck if number of Cholesky vectors for ERI exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_2e_int_eri_lr — Method
trexio_has_ao_2e_int_eri_lr(trexio::TrexioFile) -> BoolCheck if long-range electron repulsion integrals exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_2e_int_eri_lr_cholesky — Method
trexio_has_ao_2e_int_eri_lr_cholesky(trexio::TrexioFile) -> BoolCheck if Cholesky decomposition of the long range ERI exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_2e_int_eri_lr_cholesky_num — Method
trexio_has_ao_2e_int_eri_lr_cholesky_num(trexio::TrexioFile) -> BoolCheck if number of Cholesky vectors for long range ERI exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_cartesian — Method
trexio_has_ao_cartesian(trexio::TrexioFile) -> BoolCheck if 1: true, 0: false exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_normalization — Method
trexio_has_ao_normalization(trexio::TrexioFile) -> BoolCheck if normalization factor N'_i exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_num — Method
trexio_has_ao_num(trexio::TrexioFile) -> BoolCheck if total number of atomic orbitals exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ao_shell — Method
trexio_has_ao_shell(trexio::TrexioFile) -> BoolCheck if basis set shell for each AO exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_coefficient — Method
trexio_has_basis_coefficient(trexio::TrexioFile) -> BoolCheck if coefficients of the primitives (a_ks) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_coefficient_im — Method
trexio_has_basis_coefficient_im(trexio::TrexioFile) -> BoolCheck if imaginary part of the coefficients of the primitives (a_ks) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_e_cut — Method
trexio_has_basis_e_cut(trexio::TrexioFile) -> BoolCheck if energy cut-off for plane-wave calculations exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_exponent — Method
trexio_has_basis_exponent(trexio::TrexioFile) -> BoolCheck if exponents of the primitives (\gamma_ks) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_exponent_im — Method
trexio_has_basis_exponent_im(trexio::TrexioFile) -> BoolCheck if imaginary part of the exponents of the primitives (\gamma_ks) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_interp_coeff_cnt — Method
trexio_has_basis_interp_coeff_cnt(trexio::TrexioFile) -> BoolCheck if number of coefficients for the numerical orbital interpolator exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_interpolator_grad — Method
trexio_has_basis_interpolator_grad(trexio::TrexioFile) -> BoolCheck if coefficients for numerical orbital gradient interpolation function exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_interpolator_kind — Method
trexio_has_basis_interpolator_kind(trexio::TrexioFile) -> BoolCheck if Kind of spline, e.g. "Polynomial" exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_interpolator_lap — Method
trexio_has_basis_interpolator_lap(trexio::TrexioFile) -> BoolCheck if coefficients for numerical orbital laplacian interpolation function exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_interpolator_phi — Method
trexio_has_basis_interpolator_phi(trexio::TrexioFile) -> BoolCheck if coefficients for numerical orbital interpolation function exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_name — Method
trexio_has_basis_name(trexio::TrexioFile) -> BoolCheck if name of the basis set exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_nao_grid_grad — Method
trexio_has_basis_nao_grid_grad(trexio::TrexioFile) -> BoolCheck if radial gradient of numerical orbitals exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_nao_grid_lap — Method
trexio_has_basis_nao_grid_lap(trexio::TrexioFile) -> BoolCheck if Laplacian of numerical orbitals exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_nao_grid_num — Method
trexio_has_basis_nao_grid_num(trexio::TrexioFile) -> BoolCheck if total number of grid points for numerical orbitals exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_nao_grid_phi — Method
trexio_has_basis_nao_grid_phi(trexio::TrexioFile) -> BoolCheck if wave function values for numerical orbitals exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_nao_grid_radius — Method
trexio_has_basis_nao_grid_radius(trexio::TrexioFile) -> BoolCheck if radii of grid points for numerical orbitals exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_nao_grid_size — Method
trexio_has_basis_nao_grid_size(trexio::TrexioFile) -> BoolCheck if number of data points per numerical orbital exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_nao_grid_start — Method
trexio_has_basis_nao_grid_start(trexio::TrexioFile) -> BoolCheck if index of the first data point for a given numerical orbital exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_nucleus_index — Method
trexio_has_basis_nucleus_index(trexio::TrexioFile) -> BoolCheck if one-to-one correspondence between shells and atomic indices exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_oscillation_arg — Method
trexio_has_basis_oscillation_arg(trexio::TrexioFile) -> BoolCheck if additional argument to have oscillating orbitals (\beta_ks) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_oscillation_kind — Method
trexio_has_basis_oscillation_kind(trexio::TrexioFile) -> BoolCheck if kind of oscillating function: "Cos1" or "Cos2" exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_prim_factor — Method
trexio_has_basis_prim_factor(trexio::TrexioFile) -> BoolCheck if normalization coefficients for the primitives (f_ks) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_prim_num — Method
trexio_has_basis_prim_num(trexio::TrexioFile) -> BoolCheck if total number of primitives exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_r_power — Method
trexio_has_basis_r_power(trexio::TrexioFile) -> BoolCheck if power to which r is raised (N_s) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_shell_ang_mom — Method
trexio_has_basis_shell_ang_mom(trexio::TrexioFile) -> BoolCheck if one-to-one correspondence between shells and angular momenta exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_shell_factor — Method
trexio_has_basis_shell_factor(trexio::TrexioFile) -> BoolCheck if normalization factor for each shell (N_s) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_shell_index — Method
trexio_has_basis_shell_index(trexio::TrexioFile) -> BoolCheck if one-to-one correspondence between primitives and shell index exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_shell_num — Method
trexio_has_basis_shell_num(trexio::TrexioFile) -> BoolCheck if total number of shells exists in TREXIO file.
ElemCo.TREXIO.trexio_has_basis_type — Method
trexio_has_basis_type(trexio::TrexioFile) -> BoolCheck if type of basis set: "Gaussian", "Slater", "Numerical" or "PW" for plane waves exists in TREXIO file.
ElemCo.TREXIO.trexio_has_cell_a — Method
trexio_has_cell_a(trexio::TrexioFile) -> BoolCheck if first real space lattice vector exists in TREXIO file.
ElemCo.TREXIO.trexio_has_cell_b — Method
trexio_has_cell_b(trexio::TrexioFile) -> BoolCheck if second real space lattice vector exists in TREXIO file.
ElemCo.TREXIO.trexio_has_cell_c — Method
trexio_has_cell_c(trexio::TrexioFile) -> BoolCheck if third real space lattice vector exists in TREXIO file.
ElemCo.TREXIO.trexio_has_cell_g_a — Method
trexio_has_cell_g_a(trexio::TrexioFile) -> BoolCheck if first reciprocal space lattice vector exists in TREXIO file.
ElemCo.TREXIO.trexio_has_cell_g_b — Method
trexio_has_cell_g_b(trexio::TrexioFile) -> BoolCheck if second reciprocal space lattice vector exists in TREXIO file.
ElemCo.TREXIO.trexio_has_cell_g_c — Method
trexio_has_cell_g_c(trexio::TrexioFile) -> BoolCheck if third reciprocal space lattice vector exists in TREXIO file.
ElemCo.TREXIO.trexio_has_cell_two_pi — Method
trexio_has_cell_two_pi(trexio::TrexioFile) -> BoolCheck if 0 or 1; if two_pi=1, 2π is included in the reciprocal vectors exists in TREXIO file.
ElemCo.TREXIO.trexio_has_csf_coefficient — Method
trexio_has_csf_coefficient(trexio::TrexioFile) -> BoolCheck if coefficients of the CSF expansion exists in TREXIO file.
ElemCo.TREXIO.trexio_has_csf_det_coefficient — Method
trexio_has_csf_det_coefficient(trexio::TrexioFile) -> BoolCheck if projection on the determinant basis exists in TREXIO file.
ElemCo.TREXIO.trexio_has_csf_num — Method
trexio_has_csf_num(trexio::TrexioFile) -> BoolCheck if number of CSFs exists in TREXIO file.
ElemCo.TREXIO.trexio_has_determinant_alpha — Method
trexio_has_determinant_alpha(trexio::TrexioFile) -> BoolCheck if alpha spin orbital patterns as 64-bit integer bit fields exists in TREXIO file.
ElemCo.TREXIO.trexio_has_determinant_beta — Method
trexio_has_determinant_beta(trexio::TrexioFile) -> BoolCheck if beta spin orbital patterns as 64-bit integer bit fields exists in TREXIO file.
ElemCo.TREXIO.trexio_has_determinant_coefficient — Method
trexio_has_determinant_coefficient(trexio::TrexioFile) -> BoolCheck if coefficients of the determinants from the CI expansion exists in TREXIO file.
ElemCo.TREXIO.trexio_has_determinant_list — Method
trexio_has_determinant_list(trexio::TrexioFile) -> BoolCheck if list of determinants as integer bit fields exists in TREXIO file.
ElemCo.TREXIO.trexio_has_determinant_n_int — Method
trexio_has_determinant_n_int(trexio::TrexioFile) -> BoolCheck if number of 64-bit integers per spin pattern (ceil(mo.num/64)) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_determinant_num — Method
trexio_has_determinant_num(trexio::TrexioFile) -> BoolCheck if number of determinants exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ecp_ang_mom — Method
trexio_has_ecp_ang_mom(trexio::TrexioFile) -> BoolCheck if one-to-one correspondence between ECP items and the angular momentum l exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ecp_coefficient — Method
trexio_has_ecp_coefficient(trexio::TrexioFile) -> BoolCheck if all ECP coefficients βAql exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ecp_exponent — Method
trexio_has_ecp_exponent(trexio::TrexioFile) -> BoolCheck if all ECP exponents αAql exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ecp_max_ang_mom_plus_1 — Method
trexio_has_ecp_max_ang_mom_plus_1(trexio::TrexioFile) -> BoolCheck if l_max+1, one higher than the max angular momentum in the removed core orbitals exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ecp_nucleus_index — Method
trexio_has_ecp_nucleus_index(trexio::TrexioFile) -> BoolCheck if one-to-one correspondence between ECP items and the atom index exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ecp_num — Method
trexio_has_ecp_num(trexio::TrexioFile) -> BoolCheck if total number of ECP functions for all atoms and all values of l exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ecp_power — Method
trexio_has_ecp_power(trexio::TrexioFile) -> BoolCheck if all ECP powers nAql exists in TREXIO file.
ElemCo.TREXIO.trexio_has_ecp_z_core — Method
trexio_has_ecp_z_core(trexio::TrexioFile) -> BoolCheck if number of core electrons to remove per atom exists in TREXIO file.
ElemCo.TREXIO.trexio_has_electron_dn_num — Method
trexio_has_electron_dn_num(trexio::TrexioFile) -> BoolCheck if number of spin-down electrons exists in TREXIO file.
ElemCo.TREXIO.trexio_has_electron_num — Method
trexio_has_electron_num(trexio::TrexioFile) -> BoolCheck if number of electrons exists in TREXIO file.
ElemCo.TREXIO.trexio_has_electron_up_num — Method
trexio_has_electron_up_num(trexio::TrexioFile) -> BoolCheck if number of spin-up electrons exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_ang_coord — Method
trexio_has_grid_ang_coord(trexio::TrexioFile) -> BoolCheck if discretized angular space (if used) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_ang_num — Method
trexio_has_grid_ang_num(trexio::TrexioFile) -> BoolCheck if number of angular integration points (if used) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_ang_weight — Method
trexio_has_grid_ang_weight(trexio::TrexioFile) -> BoolCheck if angular grid weights (if used) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_coord — Method
trexio_has_grid_coord(trexio::TrexioFile) -> BoolCheck if discretized coordinate space exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_description — Method
trexio_has_grid_description(trexio::TrexioFile) -> BoolCheck if details about the used quadratures can go here exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_max_ang_num — Method
trexio_has_grid_max_ang_num(trexio::TrexioFile) -> BoolCheck if maximum number of angular grid points (for pruning) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_min_ang_num — Method
trexio_has_grid_min_ang_num(trexio::TrexioFile) -> BoolCheck if minimum number of angular grid points (for pruning) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_num — Method
trexio_has_grid_num(trexio::TrexioFile) -> BoolCheck if number of grid points exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_rad_coord — Method
trexio_has_grid_rad_coord(trexio::TrexioFile) -> BoolCheck if discretized radial space (if used) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_rad_num — Method
trexio_has_grid_rad_num(trexio::TrexioFile) -> BoolCheck if number of radial integration points (if used) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_rad_precision — Method
trexio_has_grid_rad_precision(trexio::TrexioFile) -> BoolCheck if radial precision parameter (not used in some schemes like Krack-Köster) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_rad_weight — Method
trexio_has_grid_rad_weight(trexio::TrexioFile) -> BoolCheck if radial grid weights (if used) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_grid_weight — Method
trexio_has_grid_weight(trexio::TrexioFile) -> BoolCheck if grid weights according to a given partitioning (e.g. Becke) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_jastrow_ee — Method
trexio_has_jastrow_ee(trexio::TrexioFile) -> BoolCheck if electron-electron parameters exists in TREXIO file.
ElemCo.TREXIO.trexio_has_jastrow_ee_num — Method
trexio_has_jastrow_ee_num(trexio::TrexioFile) -> BoolCheck if number of Electron-electron parameters exists in TREXIO file.
ElemCo.TREXIO.trexio_has_jastrow_ee_scaling — Method
trexio_has_jastrow_ee_scaling(trexio::TrexioFile) -> BoolCheck if κ_ee value in CHAMP Jastrow for electron-electron distances exists in TREXIO file.
ElemCo.TREXIO.trexio_has_jastrow_een — Method
trexio_has_jastrow_een(trexio::TrexioFile) -> BoolCheck if electron-electron-nucleus parameters exists in TREXIO file.
ElemCo.TREXIO.trexio_has_jastrow_een_nucleus — Method
trexio_has_jastrow_een_nucleus(trexio::TrexioFile) -> BoolCheck if nucleus relative to the eeN parameter exists in TREXIO file.
ElemCo.TREXIO.trexio_has_jastrow_een_num — Method
trexio_has_jastrow_een_num(trexio::TrexioFile) -> BoolCheck if number of Electron-electron-nucleus parameters exists in TREXIO file.
ElemCo.TREXIO.trexio_has_jastrow_en — Method
trexio_has_jastrow_en(trexio::TrexioFile) -> BoolCheck if electron-nucleus parameters exists in TREXIO file.
ElemCo.TREXIO.trexio_has_jastrow_en_nucleus — Method
trexio_has_jastrow_en_nucleus(trexio::TrexioFile) -> BoolCheck if nucleus relative to the eN parameter exists in TREXIO file.
ElemCo.TREXIO.trexio_has_jastrow_en_num — Method
trexio_has_jastrow_en_num(trexio::TrexioFile) -> BoolCheck if number of Electron-nucleus parameters exists in TREXIO file.
ElemCo.TREXIO.trexio_has_jastrow_en_scaling — Method
trexio_has_jastrow_en_scaling(trexio::TrexioFile) -> BoolCheck if κ_α value in CHAMP Jastrow for electron-nucleus distances exists in TREXIO file.
ElemCo.TREXIO.trexio_has_jastrow_type — Method
trexio_has_jastrow_type(trexio::TrexioFile) -> BoolCheck if type of Jastrow factor: CHAMP or Mu exists in TREXIO file.
ElemCo.TREXIO.trexio_has_metadata_author — Method
trexio_has_metadata_author(trexio::TrexioFile) -> BoolCheck if names of the authors of the file exists in TREXIO file.
ElemCo.TREXIO.trexio_has_metadata_author_num — Method
trexio_has_metadata_author_num(trexio::TrexioFile) -> BoolCheck if number of authors of the file exists in TREXIO file.
ElemCo.TREXIO.trexio_has_metadata_code — Method
trexio_has_metadata_code(trexio::TrexioFile) -> BoolCheck if names of the codes used exists in TREXIO file.
ElemCo.TREXIO.trexio_has_metadata_code_num — Method
trexio_has_metadata_code_num(trexio::TrexioFile) -> BoolCheck if number of codes used to produce the file exists in TREXIO file.
ElemCo.TREXIO.trexio_has_metadata_description — Method
trexio_has_metadata_description(trexio::TrexioFile) -> BoolCheck if text describing the content of file exists in TREXIO file.
ElemCo.TREXIO.trexio_has_metadata_package_version — Method
trexio_has_metadata_package_version(trexio::TrexioFile) -> BoolCheck if TREXIO version used to produce the file exists in TREXIO file.
ElemCo.TREXIO.trexio_has_metadata_unsafe — Method
trexio_has_metadata_unsafe(trexio::TrexioFile) -> BoolCheck if indicates whether the file has been previously opened with 'u' mode; 1: true, 0: false exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_core_hamiltonian — Method
trexio_has_mo_1e_int_core_hamiltonian(trexio::TrexioFile) -> BoolCheck if core Hamiltonian integrals ⟨p|h|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_core_hamiltonian_im — Method
trexio_has_mo_1e_int_core_hamiltonian_im(trexio::TrexioFile) -> BoolCheck if core Hamiltonian integrals ⟨p|h|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_dipole_x — Method
trexio_has_mo_1e_int_dipole_x(trexio::TrexioFile) -> BoolCheck if dipole x component integrals ⟨p|μ_x|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_dipole_x_im — Method
trexio_has_mo_1e_int_dipole_x_im(trexio::TrexioFile) -> BoolCheck if dipole x component integrals ⟨p|μ_x|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_dipole_y — Method
trexio_has_mo_1e_int_dipole_y(trexio::TrexioFile) -> BoolCheck if dipole y component integrals ⟨p|μ_y|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_dipole_y_im — Method
trexio_has_mo_1e_int_dipole_y_im(trexio::TrexioFile) -> BoolCheck if dipole y component integrals ⟨p|μ_y|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_dipole_z — Method
trexio_has_mo_1e_int_dipole_z(trexio::TrexioFile) -> BoolCheck if dipole z component integrals ⟨p|μ_z|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_dipole_z_im — Method
trexio_has_mo_1e_int_dipole_z_im(trexio::TrexioFile) -> BoolCheck if dipole z component integrals ⟨p|μ_z|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_ecp — Method
trexio_has_mo_1e_int_ecp(trexio::TrexioFile) -> BoolCheck if effective core potential integrals ⟨p|V_ECP|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_ecp_im — Method
trexio_has_mo_1e_int_ecp_im(trexio::TrexioFile) -> BoolCheck if effective core potential integrals ⟨p|V_ECP|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_kinetic — Method
trexio_has_mo_1e_int_kinetic(trexio::TrexioFile) -> BoolCheck if kinetic energy integrals ⟨p|T|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_kinetic_im — Method
trexio_has_mo_1e_int_kinetic_im(trexio::TrexioFile) -> BoolCheck if kinetic energy integrals ⟨p|T|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_overlap — Method
trexio_has_mo_1e_int_overlap(trexio::TrexioFile) -> BoolCheck if overlap integrals ⟨p|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_overlap_im — Method
trexio_has_mo_1e_int_overlap_im(trexio::TrexioFile) -> BoolCheck if overlap integrals ⟨p|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_potential_n_e — Method
trexio_has_mo_1e_int_potential_n_e(trexio::TrexioFile) -> BoolCheck if electron-nucleus potential integrals ⟨p|V_ne|q⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_1e_int_potential_n_e_im — Method
trexio_has_mo_1e_int_potential_n_e_im(trexio::TrexioFile) -> BoolCheck if electron-nucleus potential integrals ⟨p|V_ne|q⟩ (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_2e_int_eri — Method
trexio_has_mo_2e_int_eri(trexio::TrexioFile) -> BoolCheck if electron repulsion integrals ⟨pq|rs⟩ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_2e_int_eri_cholesky — Method
trexio_has_mo_2e_int_eri_cholesky(trexio::TrexioFile) -> BoolCheck if Cholesky decomposition of the ERI exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_2e_int_eri_cholesky_num — Method
trexio_has_mo_2e_int_eri_cholesky_num(trexio::TrexioFile) -> BoolCheck if number of Cholesky vectors for ERI exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_2e_int_eri_lr — Method
trexio_has_mo_2e_int_eri_lr(trexio::TrexioFile) -> BoolCheck if long-range electron repulsion integrals exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_2e_int_eri_lr_cholesky — Method
trexio_has_mo_2e_int_eri_lr_cholesky(trexio::TrexioFile) -> BoolCheck if Cholesky decomposition of the long range ERI exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_2e_int_eri_lr_cholesky_num — Method
trexio_has_mo_2e_int_eri_lr_cholesky_num(trexio::TrexioFile) -> BoolCheck if number of Cholesky vectors for long range ERI exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_class — Method
trexio_has_mo_class(trexio::TrexioFile) -> BoolCheck if choose among: Core, Inactive, Active, Virtual, Deleted exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_coefficient — Method
trexio_has_mo_coefficient(trexio::TrexioFile) -> BoolCheck if MO coefficients exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_coefficient_im — Method
trexio_has_mo_coefficient_im(trexio::TrexioFile) -> BoolCheck if MO coefficients (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_energy — Method
trexio_has_mo_energy(trexio::TrexioFile) -> BoolCheck if for canonical MOs, corresponding eigenvalue exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_k_point — Method
trexio_has_mo_k_point(trexio::TrexioFile) -> BoolCheck if for periodic calculations, the k point to which each MO belongs exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_num — Method
trexio_has_mo_num(trexio::TrexioFile) -> BoolCheck if number of MOs exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_occupation — Method
trexio_has_mo_occupation(trexio::TrexioFile) -> BoolCheck if occupation number exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_spin — Method
trexio_has_mo_spin(trexio::TrexioFile) -> BoolCheck if for UHF wave functions, 0 is ↑ and 1 is ↓ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_symmetry — Method
trexio_has_mo_symmetry(trexio::TrexioFile) -> BoolCheck if symmetry in the point group exists in TREXIO file.
ElemCo.TREXIO.trexio_has_mo_type — Method
trexio_has_mo_type(trexio::TrexioFile) -> BoolCheck if free text to identify the set of MOs (HF, Natural, Local, CASSCF, etc) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_nucleus_charge — Method
trexio_has_nucleus_charge(trexio::TrexioFile) -> BoolCheck if charges of the nuclei exists in TREXIO file.
ElemCo.TREXIO.trexio_has_nucleus_coord — Method
trexio_has_nucleus_coord(trexio::TrexioFile) -> BoolCheck if coordinates of the atoms exists in TREXIO file.
ElemCo.TREXIO.trexio_has_nucleus_label — Method
trexio_has_nucleus_label(trexio::TrexioFile) -> BoolCheck if atom labels exists in TREXIO file.
ElemCo.TREXIO.trexio_has_nucleus_num — Method
trexio_has_nucleus_num(trexio::TrexioFile) -> BoolCheck if number of nuclei exists in TREXIO file.
ElemCo.TREXIO.trexio_has_nucleus_point_group — Method
trexio_has_nucleus_point_group(trexio::TrexioFile) -> BoolCheck if symmetry point group exists in TREXIO file.
ElemCo.TREXIO.trexio_has_nucleus_repulsion — Method
trexio_has_nucleus_repulsion(trexio::TrexioFile) -> BoolCheck if nuclear repulsion energy exists in TREXIO file.
ElemCo.TREXIO.trexio_has_pbc_k_point — Method
trexio_has_pbc_k_point(trexio::TrexioFile) -> BoolCheck if k-point sampling exists in TREXIO file.
ElemCo.TREXIO.trexio_has_pbc_k_point_num — Method
trexio_has_pbc_k_point_num(trexio::TrexioFile) -> BoolCheck if number of k-points exists in TREXIO file.
ElemCo.TREXIO.trexio_has_pbc_k_point_weight — Method
trexio_has_pbc_k_point_weight(trexio::TrexioFile) -> BoolCheck if k-point weights exists in TREXIO file.
ElemCo.TREXIO.trexio_has_pbc_madelung — Method
trexio_has_pbc_madelung(trexio::TrexioFile) -> BoolCheck if Madelung correction of the Ewald probe charge method exists in TREXIO file.
ElemCo.TREXIO.trexio_has_pbc_periodic — Method
trexio_has_pbc_periodic(trexio::TrexioFile) -> BoolCheck if 1: true or 0: false exists in TREXIO file.
ElemCo.TREXIO.trexio_has_po_class — Method
trexio_has_po_class(trexio::TrexioFile) -> BoolCheck if choose among: Core, Inactive, Active, Virtual, Deleted exists in TREXIO file.
ElemCo.TREXIO.trexio_has_po_coefficient — Method
trexio_has_po_coefficient(trexio::TrexioFile) -> BoolCheck if PO coefficients exists in TREXIO file.
ElemCo.TREXIO.trexio_has_po_coefficient_im — Method
trexio_has_po_coefficient_im(trexio::TrexioFile) -> BoolCheck if PO coefficients (imaginary part) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_po_energy — Method
trexio_has_po_energy(trexio::TrexioFile) -> BoolCheck if for canonical POs, corresponding eigenvalue exists in TREXIO file.
ElemCo.TREXIO.trexio_has_po_k_point — Method
trexio_has_po_k_point(trexio::TrexioFile) -> BoolCheck if for periodic calculations, the k point to which each PO belongs exists in TREXIO file.
ElemCo.TREXIO.trexio_has_po_num — Method
trexio_has_po_num(trexio::TrexioFile) -> BoolCheck if number of POs exists in TREXIO file.
ElemCo.TREXIO.trexio_has_po_occupation — Method
trexio_has_po_occupation(trexio::TrexioFile) -> BoolCheck if occupation number exists in TREXIO file.
ElemCo.TREXIO.trexio_has_po_spin — Method
trexio_has_po_spin(trexio::TrexioFile) -> BoolCheck if for UHF wave functions, 0 is ↑ and 1 is ↓ exists in TREXIO file.
ElemCo.TREXIO.trexio_has_po_symmetry — Method
trexio_has_po_symmetry(trexio::TrexioFile) -> BoolCheck if symmetry in the point group exists in TREXIO file.
ElemCo.TREXIO.trexio_has_po_type — Method
trexio_has_po_type(trexio::TrexioFile) -> BoolCheck if free text to identify the set of POs (HF, Natural, Local, CASSCF, etc) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_qmc_e_loc — Method
trexio_has_qmc_e_loc(trexio::TrexioFile) -> BoolCheck if local energy evaluated at the points exists in TREXIO file.
ElemCo.TREXIO.trexio_has_qmc_num — Method
trexio_has_qmc_num(trexio::TrexioFile) -> BoolCheck if number of 3N-dimensional points exists in TREXIO file.
ElemCo.TREXIO.trexio_has_qmc_point — Method
trexio_has_qmc_point(trexio::TrexioFile) -> BoolCheck if 3N-dimensional points exists in TREXIO file.
ElemCo.TREXIO.trexio_has_qmc_psi — Method
trexio_has_qmc_psi(trexio::TrexioFile) -> BoolCheck if wave function evaluated at the points exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_1e — Method
trexio_has_rdm_1e(trexio::TrexioFile) -> BoolCheck if one body density matrix exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_1e_dn — Method
trexio_has_rdm_1e_dn(trexio::TrexioFile) -> BoolCheck if ↓-spin component of the one body density matrix exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_1e_transition — Method
trexio_has_rdm_1e_transition(trexio::TrexioFile) -> BoolCheck if one-particle transition density matrices exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_1e_up — Method
trexio_has_rdm_1e_up(trexio::TrexioFile) -> BoolCheck if ↑-spin component of the one body density matrix exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e — Method
trexio_has_rdm_2e(trexio::TrexioFile) -> BoolCheck if two-body reduced density matrix (spin trace) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_cholesky — Method
trexio_has_rdm_2e_cholesky(trexio::TrexioFile) -> BoolCheck if Cholesky decomposition of the two-body RDM (spin trace) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_cholesky_num — Method
trexio_has_rdm_2e_cholesky_num(trexio::TrexioFile) -> BoolCheck if number of Cholesky vectors exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_dndn — Method
trexio_has_rdm_2e_dndn(trexio::TrexioFile) -> BoolCheck if ↓↓ component of the two-body reduced density matrix exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_dndn_cholesky — Method
trexio_has_rdm_2e_dndn_cholesky(trexio::TrexioFile) -> BoolCheck if Cholesky decomposition of the two-body RDM (↓↓) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_dndn_cholesky_num — Method
trexio_has_rdm_2e_dndn_cholesky_num(trexio::TrexioFile) -> BoolCheck if number of Cholesky vectors exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_transition — Method
trexio_has_rdm_2e_transition(trexio::TrexioFile) -> BoolCheck if two-particle transition density matrices exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_updn — Method
trexio_has_rdm_2e_updn(trexio::TrexioFile) -> BoolCheck if ↑↓ component of the two-body reduced density matrix exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_updn_cholesky — Method
trexio_has_rdm_2e_updn_cholesky(trexio::TrexioFile) -> BoolCheck if Cholesky decomposition of the two-body RDM (↑↓) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_updn_cholesky_num — Method
trexio_has_rdm_2e_updn_cholesky_num(trexio::TrexioFile) -> BoolCheck if number of Cholesky vectors exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_upup — Method
trexio_has_rdm_2e_upup(trexio::TrexioFile) -> BoolCheck if ↑↑ component of the two-body reduced density matrix exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_upup_cholesky — Method
trexio_has_rdm_2e_upup_cholesky(trexio::TrexioFile) -> BoolCheck if Cholesky decomposition of the two-body RDM (↑↑) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_rdm_2e_upup_cholesky_num — Method
trexio_has_rdm_2e_upup_cholesky_num(trexio::TrexioFile) -> BoolCheck if number of Cholesky vectors exists in TREXIO file.
ElemCo.TREXIO.trexio_has_state_current_label — Method
trexio_has_state_current_label(trexio::TrexioFile) -> BoolCheck if label of the current state exists in TREXIO file.
ElemCo.TREXIO.trexio_has_state_energy — Method
trexio_has_state_energy(trexio::TrexioFile) -> BoolCheck if energy of the current state exists in TREXIO file.
ElemCo.TREXIO.trexio_has_state_file_name — Method
trexio_has_state_file_name(trexio::TrexioFile) -> BoolCheck if names of the TREXIO files linked to the current one (i.e. containing data for other states) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_state_id — Method
trexio_has_state_id(trexio::TrexioFile) -> BoolCheck if index of the current state (0 is ground state) exists in TREXIO file.
ElemCo.TREXIO.trexio_has_state_label — Method
trexio_has_state_label(trexio::TrexioFile) -> BoolCheck if labels of all states exists in TREXIO file.
ElemCo.TREXIO.trexio_has_state_num — Method
trexio_has_state_num(trexio::TrexioFile) -> BoolCheck if number of states (including the ground state) exists in TREXIO file.
ElemCo.TREXIO.trexio_open — Function
trexio_open(file_name::String, mode::String="u", back_end=0) -> TrexioFileOpen a TREXIO file for reading or writing. Creates the metadata group structure if opening in write mode. Returns the TrexioFile object or nothing on failure.
ElemCo.TREXIO.trexio_read_amplitude_double — Method
trexio_read_amplitude_double(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read double excitation amplitudes from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_double_dense — Method
trexio_read_amplitude_double_dense(trexio::TrexioFile) -> (Array{Float64, 3}, TrexioExitCode)Read double excitation amplitudes (dense) from TREXIO file in column-major format (v,v,o(o+1)/2).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_double_dndn_dense — Method
trexio_read_amplitude_double_dndn_dense(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read ↓↓-spin component of the double excitation amplitudes (dense) from TREXIO file in column-major format (V(V-1)/2,O(O-1)/2).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_double_exp — Method
trexio_read_amplitude_double_exp(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read exponentialized double excitation amplitudes from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_double_updn_dense — Method
trexio_read_amplitude_double_updn_dense(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read ↑↓-spin component of the double excitation amplitudes (dense) from TREXIO file in column-major format (v,V,o,O).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_double_upup_dense — Method
trexio_read_amplitude_double_upup_dense(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read ↑↑-spin component of the double excitation amplitudes (dense) from TREXIO file in column-major format (v(v-1)/2,o(o-1)/2).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_quadruple — Method
trexio_read_amplitude_quadruple(trexio::TrexioFile) -> (Array{Float64, 8}, TrexioExitCode)Read quadruple excitation amplitudes from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num,mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_quadruple_exp — Method
trexio_read_amplitude_quadruple_exp(trexio::TrexioFile) -> (Array{Float64, 8}, TrexioExitCode)Read exponentialized quadruple excitation amplitudes from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num,mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_single — Method
trexio_read_amplitude_single(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read single excitation amplitudes from TREXIO file in column-major format (mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_single_dense — Method
trexio_read_amplitude_single_dense(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read single excitation amplitudes (dense) from TREXIO file in column-major format (v,o).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_single_dn_dense — Method
trexio_read_amplitude_single_dn_dense(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read ↓-spin component of the single excitation amplitudes (dense) from TREXIO file in column-major format (V,O).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_single_exp — Method
trexio_read_amplitude_single_exp(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read exponentialized single excitation amplitudes from TREXIO file in column-major format (mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_single_up_dense — Method
trexio_read_amplitude_single_up_dense(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read ↑-spin component of the single excitation amplitudes (dense) from TREXIO file in column-major format (v,o).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_triple — Method
trexio_read_amplitude_triple(trexio::TrexioFile) -> (Array{Float64, 6}, TrexioExitCode)Read triple excitation amplitudes from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_amplitude_triple_exp — Method
trexio_read_amplitude_triple_exp(trexio::TrexioFile) -> (Array{Float64, 6}, TrexioExitCode)Read exponentialized triple excitation amplitudes from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_core_hamiltonian — Method
trexio_read_ao_1e_int_core_hamiltonian(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read core Hamiltonian integrals ⟨p|h|q⟩ from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_core_hamiltonian_im — Method
trexio_read_ao_1e_int_core_hamiltonian_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read core Hamiltonian integrals ⟨p|h|q⟩ (imaginary part) from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_dipole_x — Method
trexio_read_ao_1e_int_dipole_x(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole x component integrals ⟨p|μ_x|q⟩ from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_dipole_x_im — Method
trexio_read_ao_1e_int_dipole_x_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole x component integrals ⟨p|μ_x|q⟩ (imaginary part) from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_dipole_y — Method
trexio_read_ao_1e_int_dipole_y(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole y component integrals ⟨p|μ_y|q⟩ from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_dipole_y_im — Method
trexio_read_ao_1e_int_dipole_y_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole y component integrals ⟨p|μ_y|q⟩ (imaginary part) from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_dipole_z — Method
trexio_read_ao_1e_int_dipole_z(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole z component integrals ⟨p|μ_z|q⟩ from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_dipole_z_im — Method
trexio_read_ao_1e_int_dipole_z_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole z component integrals ⟨p|μ_z|q⟩ (imaginary part) from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_ecp — Method
trexio_read_ao_1e_int_ecp(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read effective core potential integrals ⟨p|V_ECP|q⟩ from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_ecp_im — Method
trexio_read_ao_1e_int_ecp_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read effective core potential integrals ⟨p|V_ECP|q⟩ (imaginary part) from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_kinetic — Method
trexio_read_ao_1e_int_kinetic(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read kinetic energy integrals ⟨p|T|q⟩ from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_kinetic_im — Method
trexio_read_ao_1e_int_kinetic_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read kinetic energy integrals ⟨p|T|q⟩ (imaginary part) from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_overlap — Method
trexio_read_ao_1e_int_overlap(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read overlap integrals ⟨p|q⟩ from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_overlap_im — Method
trexio_read_ao_1e_int_overlap_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read overlap integrals ⟨p|q⟩ (imaginary part) from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_potential_n_e — Method
trexio_read_ao_1e_int_potential_n_e(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read electron-nucleus potential integrals ⟨p|V_ne|q⟩ from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_1e_int_potential_n_e_im — Method
trexio_read_ao_1e_int_potential_n_e_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read electron-nucleus potential integrals ⟨p|V_ne|q⟩ (imaginary part) from TREXIO file in column-major format (ao.num,ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_2e_int_eri — Method
trexio_read_ao_2e_int_eri(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read electron repulsion integrals ⟨pq|rs⟩ from TREXIO file in column-major format (ao.num,ao.num,ao.num,ao.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_2e_int_eri_cholesky — Method
trexio_read_ao_2e_int_eri_cholesky(trexio::TrexioFile) -> (Array{Float64, 3}, TrexioExitCode)Read Cholesky decomposition of the ERI from TREXIO file in column-major format (ao.num,ao.num,ao2eint.ericholeskynum) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_2e_int_eri_cholesky_num — Method
trexio_read_ao_2e_int_eri_cholesky_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of Cholesky vectors for ERI from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_2e_int_eri_lr — Method
trexio_read_ao_2e_int_eri_lr(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read long-range electron repulsion integrals from TREXIO file in column-major format (ao.num,ao.num,ao.num,ao.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_2e_int_eri_lr_cholesky — Method
trexio_read_ao_2e_int_eri_lr_cholesky(trexio::TrexioFile) -> (Array{Float64, 3}, TrexioExitCode)Read Cholesky decomposition of the long range ERI from TREXIO file in column-major format (ao.num,ao.num,ao2eint.erilrcholesky_num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_2e_int_eri_lr_cholesky_num — Method
trexio_read_ao_2e_int_eri_lr_cholesky_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of Cholesky vectors for long range ERI from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_cartesian — Method
trexio_read_ao_cartesian(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read 1: true, 0: false from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_normalization — Method
trexio_read_ao_normalization(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read normalization factor N'_i from TREXIO file in vector format (ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_num — Method
trexio_read_ao_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read total number of atomic orbitals from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ao_shell — Method
trexio_read_ao_shell(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read basis set shell for each AO from TREXIO file in vector format (ao.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_coefficient — Method
trexio_read_basis_coefficient(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read coefficients of the primitives (aks) from TREXIO file in vector format (basis.primnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_coefficient_im — Method
trexio_read_basis_coefficient_im(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read imaginary part of the coefficients of the primitives (aks) from TREXIO file in vector format (basis.primnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_e_cut — Method
trexio_read_basis_e_cut(trexio::TrexioFile) -> (Float64, TrexioExitCode)Read energy cut-off for plane-wave calculations from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_exponent — Method
trexio_read_basis_exponent(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read exponents of the primitives (\gammaks) from TREXIO file in vector format (basis.primnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_exponent_im — Method
trexio_read_basis_exponent_im(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read imaginary part of the exponents of the primitives (\gammaks) from TREXIO file in vector format (basis.primnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_interp_coeff_cnt — Method
trexio_read_basis_interp_coeff_cnt(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of coefficients for the numerical orbital interpolator from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_interpolator_grad — Method
trexio_read_basis_interpolator_grad(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read coefficients for numerical orbital gradient interpolation function from TREXIO file in column-major format (basis.interpcoeffcnt,basis.naogridnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_interpolator_kind — Method
trexio_read_basis_interpolator_kind(trexio::TrexioFile) -> (String, TrexioExitCode)Read Kind of spline, e.g. "Polynomial" from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_interpolator_lap — Method
trexio_read_basis_interpolator_lap(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read coefficients for numerical orbital laplacian interpolation function from TREXIO file in column-major format (basis.interpcoeffcnt,basis.naogridnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_interpolator_phi — Method
trexio_read_basis_interpolator_phi(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read coefficients for numerical orbital interpolation function from TREXIO file in column-major format (basis.interpcoeffcnt,basis.naogridnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_name — Method
trexio_read_basis_name(trexio::TrexioFile) -> (String, TrexioExitCode)Read name of the basis set from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_nao_grid_grad — Method
trexio_read_basis_nao_grid_grad(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read radial gradient of numerical orbitals from TREXIO file in vector format (basis.naogridnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_nao_grid_lap — Method
trexio_read_basis_nao_grid_lap(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read Laplacian of numerical orbitals from TREXIO file in vector format (basis.naogridnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_nao_grid_num — Method
trexio_read_basis_nao_grid_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read total number of grid points for numerical orbitals from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_nao_grid_phi — Method
trexio_read_basis_nao_grid_phi(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read wave function values for numerical orbitals from TREXIO file in vector format (basis.naogridnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_nao_grid_radius — Method
trexio_read_basis_nao_grid_radius(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read radii of grid points for numerical orbitals from TREXIO file in vector format (basis.naogridnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_nao_grid_size — Method
trexio_read_basis_nao_grid_size(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read number of data points per numerical orbital from TREXIO file in vector format (basis.shell_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_nao_grid_start — Method
trexio_read_basis_nao_grid_start(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read index of the first data point for a given numerical orbital from TREXIO file in vector format (basis.shell_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_nucleus_index — Method
trexio_read_basis_nucleus_index(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read one-to-one correspondence between shells and atomic indices from TREXIO file in vector format (basis.shell_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_oscillation_arg — Method
trexio_read_basis_oscillation_arg(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read additional argument to have oscillating orbitals (\betaks) from TREXIO file in vector format (basis.primnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_oscillation_kind — Method
trexio_read_basis_oscillation_kind(trexio::TrexioFile) -> (String, TrexioExitCode)Read kind of oscillating function: "Cos1" or "Cos2" from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_prim_factor — Method
trexio_read_basis_prim_factor(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read normalization coefficients for the primitives (fks) from TREXIO file in vector format (basis.primnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_prim_num — Method
trexio_read_basis_prim_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read total number of primitives from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_r_power — Method
trexio_read_basis_r_power(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read power to which r is raised (Ns) from TREXIO file in vector format (basis.shellnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_shell_ang_mom — Method
trexio_read_basis_shell_ang_mom(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read one-to-one correspondence between shells and angular momenta from TREXIO file in vector format (basis.shell_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_shell_factor — Method
trexio_read_basis_shell_factor(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read normalization factor for each shell (Ns) from TREXIO file in vector format (basis.shellnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_shell_index — Method
trexio_read_basis_shell_index(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read one-to-one correspondence between primitives and shell index from TREXIO file in vector format (basis.prim_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_shell_num — Method
trexio_read_basis_shell_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read total number of shells from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_basis_type — Method
trexio_read_basis_type(trexio::TrexioFile) -> (String, TrexioExitCode)Read type of basis set: "Gaussian", "Slater", "Numerical" or "PW" for plane waves from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_cell_a — Method
trexio_read_cell_a(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read first real space lattice vector from TREXIO file in vector format (3).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_cell_b — Method
trexio_read_cell_b(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read second real space lattice vector from TREXIO file in vector format (3).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_cell_c — Method
trexio_read_cell_c(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read third real space lattice vector from TREXIO file in vector format (3).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_cell_g_a — Method
trexio_read_cell_g_a(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read first reciprocal space lattice vector from TREXIO file in vector format (3).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_cell_g_b — Method
trexio_read_cell_g_b(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read second reciprocal space lattice vector from TREXIO file in vector format (3).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_cell_g_c — Method
trexio_read_cell_g_c(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read third reciprocal space lattice vector from TREXIO file in vector format (3).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_cell_two_pi — Method
trexio_read_cell_two_pi(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read 0 or 1; if two_pi=1, 2π is included in the reciprocal vectors from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_csf_coefficient — Method
trexio_read_csf_coefficient(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read coefficients of the CSF expansion from TREXIO file in vector format (csf.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_csf_det_coefficient — Method
trexio_read_csf_det_coefficient(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read projection on the determinant basis from TREXIO file in column-major format (determinant.num,csf.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_csf_num — Method
trexio_read_csf_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of CSFs from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_determinant_alpha — Method
trexio_read_determinant_alpha(trexio::TrexioFile) -> (Matrix{Int64}, TrexioExitCode)Read alpha spin orbital patterns as 64-bit integer bit fields from TREXIO file in column-major format (determinant.n_int,determinant.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_determinant_beta — Method
trexio_read_determinant_beta(trexio::TrexioFile) -> (Matrix{Int64}, TrexioExitCode)Read beta spin orbital patterns as 64-bit integer bit fields from TREXIO file in column-major format (determinant.n_int,determinant.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_determinant_coefficient — Method
trexio_read_determinant_coefficient(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read coefficients of the determinants from the CI expansion from TREXIO file in vector format (determinant.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_determinant_list — Method
trexio_read_determinant_list(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read list of determinants as integer bit fields from TREXIO file in vector format (determinant.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_determinant_n_int — Method
trexio_read_determinant_n_int(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of 64-bit integers per spin pattern (ceil(mo.num/64)) from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_determinant_num — Method
trexio_read_determinant_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of determinants from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ecp_ang_mom — Method
trexio_read_ecp_ang_mom(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read one-to-one correspondence between ECP items and the angular momentum l from TREXIO file in vector format (ecp.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ecp_coefficient — Method
trexio_read_ecp_coefficient(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read all ECP coefficients βAql from TREXIO file in vector format (ecp.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ecp_exponent — Method
trexio_read_ecp_exponent(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read all ECP exponents αAql from TREXIO file in vector format (ecp.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ecp_max_ang_mom_plus_1 — Method
trexio_read_ecp_max_ang_mom_plus_1(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read l_max+1, one higher than the max angular momentum in the removed core orbitals from TREXIO file in vector format (nucleus.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ecp_nucleus_index — Method
trexio_read_ecp_nucleus_index(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read one-to-one correspondence between ECP items and the atom index from TREXIO file in vector format (ecp.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ecp_num — Method
trexio_read_ecp_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read total number of ECP functions for all atoms and all values of l from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ecp_power — Method
trexio_read_ecp_power(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read all ECP powers nAql from TREXIO file in vector format (ecp.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_ecp_z_core — Method
trexio_read_ecp_z_core(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read number of core electrons to remove per atom from TREXIO file in vector format (nucleus.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_electron_dn_num — Method
trexio_read_electron_dn_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of spin-down electrons from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_electron_num — Method
trexio_read_electron_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of electrons from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_electron_up_num — Method
trexio_read_electron_up_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of spin-up electrons from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_ang_coord — Method
trexio_read_grid_ang_coord(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read discretized angular space (if used) from TREXIO file in vector format (grid.ang_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_ang_num — Method
trexio_read_grid_ang_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of angular integration points (if used) from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_ang_weight — Method
trexio_read_grid_ang_weight(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read angular grid weights (if used) from TREXIO file in vector format (grid.ang_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_coord — Method
trexio_read_grid_coord(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read discretized coordinate space from TREXIO file in vector format (grid.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_description — Method
trexio_read_grid_description(trexio::TrexioFile) -> (String, TrexioExitCode)Read details about the used quadratures can go here from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_max_ang_num — Method
trexio_read_grid_max_ang_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read maximum number of angular grid points (for pruning) from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_min_ang_num — Method
trexio_read_grid_min_ang_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read minimum number of angular grid points (for pruning) from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_num — Method
trexio_read_grid_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of grid points from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_rad_coord — Method
trexio_read_grid_rad_coord(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read discretized radial space (if used) from TREXIO file in vector format (grid.rad_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_rad_num — Method
trexio_read_grid_rad_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of radial integration points (if used) from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_rad_precision — Method
trexio_read_grid_rad_precision(trexio::TrexioFile) -> (Float64, TrexioExitCode)Read radial precision parameter (not used in some schemes like Krack-Köster) from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_rad_weight — Method
trexio_read_grid_rad_weight(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read radial grid weights (if used) from TREXIO file in vector format (grid.rad_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_grid_weight — Method
trexio_read_grid_weight(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read grid weights according to a given partitioning (e.g. Becke) from TREXIO file in vector format (grid.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_jastrow_ee — Method
trexio_read_jastrow_ee(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read electron-electron parameters from TREXIO file in vector format (jastrow.ee_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_jastrow_ee_num — Method
trexio_read_jastrow_ee_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of Electron-electron parameters from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_jastrow_ee_scaling — Method
trexio_read_jastrow_ee_scaling(trexio::TrexioFile) -> (Float64, TrexioExitCode)Read κ_ee value in CHAMP Jastrow for electron-electron distances from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_jastrow_een — Method
trexio_read_jastrow_een(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read electron-electron-nucleus parameters from TREXIO file in vector format (jastrow.een_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_jastrow_een_nucleus — Method
trexio_read_jastrow_een_nucleus(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read nucleus relative to the eeN parameter from TREXIO file in vector format (jastrow.een_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_jastrow_een_num — Method
trexio_read_jastrow_een_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of Electron-electron-nucleus parameters from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_jastrow_en — Method
trexio_read_jastrow_en(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read electron-nucleus parameters from TREXIO file in vector format (jastrow.en_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_jastrow_en_nucleus — Method
trexio_read_jastrow_en_nucleus(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read nucleus relative to the eN parameter from TREXIO file in vector format (jastrow.en_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_jastrow_en_num — Method
trexio_read_jastrow_en_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of Electron-nucleus parameters from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_jastrow_en_scaling — Method
trexio_read_jastrow_en_scaling(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read κ_α value in CHAMP Jastrow for electron-nucleus distances from TREXIO file in vector format (nucleus.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_jastrow_type — Method
trexio_read_jastrow_type(trexio::TrexioFile) -> (String, TrexioExitCode)Read type of Jastrow factor: CHAMP or Mu from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_metadata_author — Method
trexio_read_metadata_author(trexio::TrexioFile) -> (Vector{String}, TrexioExitCode)Read names of the authors of the file from TREXIO file in vector format (metadata.author_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_metadata_author_num — Method
trexio_read_metadata_author_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of authors of the file from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_metadata_code — Method
trexio_read_metadata_code(trexio::TrexioFile) -> (Vector{String}, TrexioExitCode)Read names of the codes used from TREXIO file in vector format (metadata.code_num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_metadata_code_num — Method
trexio_read_metadata_code_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of codes used to produce the file from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_metadata_description — Method
trexio_read_metadata_description(trexio::TrexioFile) -> (String, TrexioExitCode)Read text describing the content of file from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_metadata_package_version — Method
trexio_read_metadata_package_version(trexio::TrexioFile) -> (String, TrexioExitCode)Read TREXIO version used to produce the file from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_metadata_unsafe — Method
trexio_read_metadata_unsafe(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read indicates whether the file has been previously opened with 'u' mode; 1: true, 0: false from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_core_hamiltonian — Method
trexio_read_mo_1e_int_core_hamiltonian(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read core Hamiltonian integrals ⟨p|h|q⟩ from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_core_hamiltonian_im — Method
trexio_read_mo_1e_int_core_hamiltonian_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read core Hamiltonian integrals ⟨p|h|q⟩ (imaginary part) from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_dipole_x — Method
trexio_read_mo_1e_int_dipole_x(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole x component integrals ⟨p|μ_x|q⟩ from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_dipole_x_im — Method
trexio_read_mo_1e_int_dipole_x_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole x component integrals ⟨p|μ_x|q⟩ (imaginary part) from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_dipole_y — Method
trexio_read_mo_1e_int_dipole_y(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole y component integrals ⟨p|μ_y|q⟩ from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_dipole_y_im — Method
trexio_read_mo_1e_int_dipole_y_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole y component integrals ⟨p|μ_y|q⟩ (imaginary part) from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_dipole_z — Method
trexio_read_mo_1e_int_dipole_z(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole z component integrals ⟨p|μ_z|q⟩ from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_dipole_z_im — Method
trexio_read_mo_1e_int_dipole_z_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read dipole z component integrals ⟨p|μ_z|q⟩ (imaginary part) from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_ecp — Method
trexio_read_mo_1e_int_ecp(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read effective core potential integrals ⟨p|V_ECP|q⟩ from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_ecp_im — Method
trexio_read_mo_1e_int_ecp_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read effective core potential integrals ⟨p|V_ECP|q⟩ (imaginary part) from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_kinetic — Method
trexio_read_mo_1e_int_kinetic(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read kinetic energy integrals ⟨p|T|q⟩ from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_kinetic_im — Method
trexio_read_mo_1e_int_kinetic_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read kinetic energy integrals ⟨p|T|q⟩ (imaginary part) from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_overlap — Method
trexio_read_mo_1e_int_overlap(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read overlap integrals ⟨p|q⟩ from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_overlap_im — Method
trexio_read_mo_1e_int_overlap_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read overlap integrals ⟨p|q⟩ (imaginary part) from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_potential_n_e — Method
trexio_read_mo_1e_int_potential_n_e(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read electron-nucleus potential integrals ⟨p|V_ne|q⟩ from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_1e_int_potential_n_e_im — Method
trexio_read_mo_1e_int_potential_n_e_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read electron-nucleus potential integrals ⟨p|V_ne|q⟩ (imaginary part) from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_2e_int_eri — Method
trexio_read_mo_2e_int_eri(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read electron repulsion integrals ⟨pq|rs⟩ from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_2e_int_eri_cholesky — Method
trexio_read_mo_2e_int_eri_cholesky(trexio::TrexioFile) -> (Array{Float64, 3}, TrexioExitCode)Read Cholesky decomposition of the ERI from TREXIO file in column-major format (mo.num,mo.num,mo2eint.ericholeskynum) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_2e_int_eri_cholesky_num — Method
trexio_read_mo_2e_int_eri_cholesky_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of Cholesky vectors for ERI from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_2e_int_eri_lr — Method
trexio_read_mo_2e_int_eri_lr(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read long-range electron repulsion integrals from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_2e_int_eri_lr_cholesky — Method
trexio_read_mo_2e_int_eri_lr_cholesky(trexio::TrexioFile) -> (Array{Float64, 3}, TrexioExitCode)Read Cholesky decomposition of the long range ERI from TREXIO file in column-major format (mo.num,mo.num,mo2eint.erilrcholesky_num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_2e_int_eri_lr_cholesky_num — Method
trexio_read_mo_2e_int_eri_lr_cholesky_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of Cholesky vectors for long range ERI from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_class — Method
trexio_read_mo_class(trexio::TrexioFile) -> (Vector{String}, TrexioExitCode)Read choose among: Core, Inactive, Active, Virtual, Deleted from TREXIO file in vector format (mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_coefficient — Method
trexio_read_mo_coefficient(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read MO coefficients from TREXIO file in column-major format (ao.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_coefficient_im — Method
trexio_read_mo_coefficient_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read MO coefficients (imaginary part) from TREXIO file in column-major format (ao.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_energy — Method
trexio_read_mo_energy(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read for canonical MOs, corresponding eigenvalue from TREXIO file in vector format (mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_k_point — Method
trexio_read_mo_k_point(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read for periodic calculations, the k point to which each MO belongs from TREXIO file in vector format (mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_num — Method
trexio_read_mo_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of MOs from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_occupation — Method
trexio_read_mo_occupation(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read occupation number from TREXIO file in vector format (mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_spin — Method
trexio_read_mo_spin(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read for UHF wave functions, 0 is ↑ and 1 is ↓ from TREXIO file in vector format (mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_symmetry — Method
trexio_read_mo_symmetry(trexio::TrexioFile) -> (Vector{String}, TrexioExitCode)Read symmetry in the point group from TREXIO file in vector format (mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_mo_type — Method
trexio_read_mo_type(trexio::TrexioFile) -> (String, TrexioExitCode)Read free text to identify the set of MOs (HF, Natural, Local, CASSCF, etc) from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_nucleus_charge — Method
trexio_read_nucleus_charge(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read charges of the nuclei from TREXIO file in vector format (nucleus.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_nucleus_coord — Method
trexio_read_nucleus_coord(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read coordinates of the atoms from TREXIO file in column-major format (3,nucleus.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_nucleus_label — Method
trexio_read_nucleus_label(trexio::TrexioFile) -> (Vector{String}, TrexioExitCode)Read atom labels from TREXIO file in vector format (nucleus.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_nucleus_num — Method
trexio_read_nucleus_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of nuclei from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_nucleus_point_group — Method
trexio_read_nucleus_point_group(trexio::TrexioFile) -> (String, TrexioExitCode)Read symmetry point group from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_nucleus_repulsion — Method
trexio_read_nucleus_repulsion(trexio::TrexioFile) -> (Float64, TrexioExitCode)Read nuclear repulsion energy from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_pbc_k_point — Method
trexio_read_pbc_k_point(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read k-point sampling from TREXIO file in column-major format (3,pbc.kpointnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_pbc_k_point_num — Method
trexio_read_pbc_k_point_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of k-points from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_pbc_k_point_weight — Method
trexio_read_pbc_k_point_weight(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read k-point weights from TREXIO file in vector format (pbc.kpointnum).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_pbc_madelung — Method
trexio_read_pbc_madelung(trexio::TrexioFile) -> (Float64, TrexioExitCode)Read Madelung correction of the Ewald probe charge method from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_pbc_periodic — Method
trexio_read_pbc_periodic(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read 1: true or 0: false from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_po_class — Method
trexio_read_po_class(trexio::TrexioFile) -> (Vector{String}, TrexioExitCode)Read choose among: Core, Inactive, Active, Virtual, Deleted from TREXIO file in vector format (po.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_po_coefficient — Method
trexio_read_po_coefficient(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read PO coefficients from TREXIO file in column-major format (ao.num,po.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_po_coefficient_im — Method
trexio_read_po_coefficient_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read PO coefficients (imaginary part) from TREXIO file in column-major format (ao.num,po.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_po_energy — Method
trexio_read_po_energy(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read for canonical POs, corresponding eigenvalue from TREXIO file in vector format (po.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_po_k_point — Method
trexio_read_po_k_point(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read for periodic calculations, the k point to which each PO belongs from TREXIO file in vector format (po.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_po_num — Method
trexio_read_po_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of POs from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_po_occupation — Method
trexio_read_po_occupation(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read occupation number from TREXIO file in vector format (po.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_po_spin — Method
trexio_read_po_spin(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)Read for UHF wave functions, 0 is ↑ and 1 is ↓ from TREXIO file in vector format (po.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_po_symmetry — Method
trexio_read_po_symmetry(trexio::TrexioFile) -> (Vector{String}, TrexioExitCode)Read symmetry in the point group from TREXIO file in vector format (po.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_po_type — Method
trexio_read_po_type(trexio::TrexioFile) -> (String, TrexioExitCode)Read free text to identify the set of POs (HF, Natural, Local, CASSCF, etc) from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_qmc_e_loc — Method
trexio_read_qmc_e_loc(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read local energy evaluated at the points from TREXIO file in vector format (qmc.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_qmc_num — Method
trexio_read_qmc_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of 3N-dimensional points from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_qmc_point — Method
trexio_read_qmc_point(trexio::TrexioFile) -> (Array{Float64, 3}, TrexioExitCode)Read 3N-dimensional points from TREXIO file in column-major format (3,electron.num,qmc.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_qmc_psi — Method
trexio_read_qmc_psi(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)Read wave function evaluated at the points from TREXIO file in vector format (qmc.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_1e — Method
trexio_read_rdm_1e(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read one body density matrix from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_1e_dn — Method
trexio_read_rdm_1e_dn(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read ↓-spin component of the one body density matrix from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_1e_transition — Method
trexio_read_rdm_1e_transition(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read one-particle transition density matrices from TREXIO file in column-major format (mo.num,mo.num,state.num,state.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_1e_up — Method
trexio_read_rdm_1e_up(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)Read ↑-spin component of the one body density matrix from TREXIO file in column-major format (mo.num,mo.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e — Method
trexio_read_rdm_2e(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read two-body reduced density matrix (spin trace) from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_cholesky — Method
trexio_read_rdm_2e_cholesky(trexio::TrexioFile) -> (Array{Float64, 3}, TrexioExitCode)Read Cholesky decomposition of the two-body RDM (spin trace) from TREXIO file in column-major format (mo.num,mo.num,rdm.2echoleskynum) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_cholesky_num — Method
trexio_read_rdm_2e_cholesky_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of Cholesky vectors from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_dndn — Method
trexio_read_rdm_2e_dndn(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read ↓↓ component of the two-body reduced density matrix from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_dndn_cholesky — Method
trexio_read_rdm_2e_dndn_cholesky(trexio::TrexioFile) -> (Array{Float64, 3}, TrexioExitCode)Read Cholesky decomposition of the two-body RDM (↓↓) from TREXIO file in column-major format (mo.num,mo.num,rdm.2edndncholesky_num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_dndn_cholesky_num — Method
trexio_read_rdm_2e_dndn_cholesky_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of Cholesky vectors from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_transition — Method
trexio_read_rdm_2e_transition(trexio::TrexioFile) -> (Array{Float64, 6}, TrexioExitCode)Read two-particle transition density matrices from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num,state.num,state.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_updn — Method
trexio_read_rdm_2e_updn(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read ↑↓ component of the two-body reduced density matrix from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_updn_cholesky — Method
trexio_read_rdm_2e_updn_cholesky(trexio::TrexioFile) -> (Array{Float64, 3}, TrexioExitCode)Read Cholesky decomposition of the two-body RDM (↑↓) from TREXIO file in column-major format (mo.num,mo.num,rdm.2eupdncholesky_num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_updn_cholesky_num — Method
trexio_read_rdm_2e_updn_cholesky_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of Cholesky vectors from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_upup — Method
trexio_read_rdm_2e_upup(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)Read ↑↑ component of the two-body reduced density matrix from TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_upup_cholesky — Method
trexio_read_rdm_2e_upup_cholesky(trexio::TrexioFile) -> (Array{Float64, 3}, TrexioExitCode)Read Cholesky decomposition of the two-body RDM (↑↑) from TREXIO file in column-major format (mo.num,mo.num,rdm.2eupupcholesky_num) (sparse).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_rdm_2e_upup_cholesky_num — Method
trexio_read_rdm_2e_upup_cholesky_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of Cholesky vectors from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_state_current_label — Method
trexio_read_state_current_label(trexio::TrexioFile) -> (String, TrexioExitCode)Read label of the current state from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_state_energy — Method
trexio_read_state_energy(trexio::TrexioFile) -> (Float64, TrexioExitCode)Read energy of the current state from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_state_file_name — Method
trexio_read_state_file_name(trexio::TrexioFile) -> (Vector{String}, TrexioExitCode)Read names of the TREXIO files linked to the current one (i.e. containing data for other states) from TREXIO file in vector format (state.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_state_id — Method
trexio_read_state_id(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read index of the current state (0 is ground state) from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_state_label — Method
trexio_read_state_label(trexio::TrexioFile) -> (Vector{String}, TrexioExitCode)Read labels of all states from TREXIO file in vector format (state.num).
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_read_state_num — Method
trexio_read_state_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)Read number of states (including the ground state) from TREXIO file.
Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.
ElemCo.TREXIO.trexio_write_amplitude_double — Method
trexio_write_amplitude_double(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite double excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_amplitude_double_dense — Method
trexio_write_amplitude_double_dense(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCodeWrite double excitation amplitudes (dense) to TREXIO file in column-major format (v,v,o(o+1)/2).
ElemCo.TREXIO.trexio_write_amplitude_double_dndn_dense — Method
trexio_write_amplitude_double_dndn_dense(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite ↓↓-spin component of the double excitation amplitudes (dense) to TREXIO file in column-major format (V(V-1)/2,O(O-1)/2).
ElemCo.TREXIO.trexio_write_amplitude_double_exp — Method
trexio_write_amplitude_double_exp(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite exponentialized double excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_amplitude_double_updn_dense — Method
trexio_write_amplitude_double_updn_dense(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite ↑↓-spin component of the double excitation amplitudes (dense) to TREXIO file in column-major format (v,V,o,O).
ElemCo.TREXIO.trexio_write_amplitude_double_upup_dense — Method
trexio_write_amplitude_double_upup_dense(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite ↑↑-spin component of the double excitation amplitudes (dense) to TREXIO file in column-major format (v(v-1)/2,o(o-1)/2).
ElemCo.TREXIO.trexio_write_amplitude_quadruple — Method
trexio_write_amplitude_quadruple(trexio::TrexioFile, value::Array{Float64, 8}) -> TrexioExitCodeWrite quadruple excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num,mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_amplitude_quadruple_exp — Method
trexio_write_amplitude_quadruple_exp(trexio::TrexioFile, value::Array{Float64, 8}) -> TrexioExitCodeWrite exponentialized quadruple excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num,mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_amplitude_single — Method
trexio_write_amplitude_single(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite single excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_amplitude_single_dense — Method
trexio_write_amplitude_single_dense(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite single excitation amplitudes (dense) to TREXIO file in column-major format (v,o).
ElemCo.TREXIO.trexio_write_amplitude_single_dn_dense — Method
trexio_write_amplitude_single_dn_dense(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite ↓-spin component of the single excitation amplitudes (dense) to TREXIO file in column-major format (V,O).
ElemCo.TREXIO.trexio_write_amplitude_single_exp — Method
trexio_write_amplitude_single_exp(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite exponentialized single excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_amplitude_single_up_dense — Method
trexio_write_amplitude_single_up_dense(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite ↑-spin component of the single excitation amplitudes (dense) to TREXIO file in column-major format (v,o).
ElemCo.TREXIO.trexio_write_amplitude_triple — Method
trexio_write_amplitude_triple(trexio::TrexioFile, value::Array{Float64, 6}) -> TrexioExitCodeWrite triple excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_amplitude_triple_exp — Method
trexio_write_amplitude_triple_exp(trexio::TrexioFile, value::Array{Float64, 6}) -> TrexioExitCodeWrite exponentialized triple excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_ao_1e_int_core_hamiltonian — Method
trexio_write_ao_1e_int_core_hamiltonian(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite core Hamiltonian integrals ⟨p|h|q⟩ to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_core_hamiltonian_im — Method
trexio_write_ao_1e_int_core_hamiltonian_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite core Hamiltonian integrals ⟨p|h|q⟩ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_dipole_x — Method
trexio_write_ao_1e_int_dipole_x(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole x component integrals ⟨p|μ_x|q⟩ to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_dipole_x_im — Method
trexio_write_ao_1e_int_dipole_x_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole x component integrals ⟨p|μ_x|q⟩ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_dipole_y — Method
trexio_write_ao_1e_int_dipole_y(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole y component integrals ⟨p|μ_y|q⟩ to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_dipole_y_im — Method
trexio_write_ao_1e_int_dipole_y_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole y component integrals ⟨p|μ_y|q⟩ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_dipole_z — Method
trexio_write_ao_1e_int_dipole_z(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole z component integrals ⟨p|μ_z|q⟩ to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_dipole_z_im — Method
trexio_write_ao_1e_int_dipole_z_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole z component integrals ⟨p|μ_z|q⟩ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_ecp — Method
trexio_write_ao_1e_int_ecp(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite effective core potential integrals ⟨p|V_ECP|q⟩ to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_ecp_im — Method
trexio_write_ao_1e_int_ecp_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite effective core potential integrals ⟨p|V_ECP|q⟩ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_kinetic — Method
trexio_write_ao_1e_int_kinetic(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite kinetic energy integrals ⟨p|T|q⟩ to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_kinetic_im — Method
trexio_write_ao_1e_int_kinetic_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite kinetic energy integrals ⟨p|T|q⟩ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_overlap — Method
trexio_write_ao_1e_int_overlap(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite overlap integrals ⟨p|q⟩ to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_overlap_im — Method
trexio_write_ao_1e_int_overlap_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite overlap integrals ⟨p|q⟩ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_potential_n_e — Method
trexio_write_ao_1e_int_potential_n_e(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite electron-nucleus potential integrals ⟨p|V_ne|q⟩ to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_1e_int_potential_n_e_im — Method
trexio_write_ao_1e_int_potential_n_e_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite electron-nucleus potential integrals ⟨p|V_ne|q⟩ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).
ElemCo.TREXIO.trexio_write_ao_2e_int_eri — Method
trexio_write_ao_2e_int_eri(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite electron repulsion integrals ⟨pq|rs⟩ to TREXIO file in column-major format (ao.num,ao.num,ao.num,ao.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_ao_2e_int_eri_cholesky — Method
trexio_write_ao_2e_int_eri_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCodeWrite Cholesky decomposition of the ERI to TREXIO file in column-major format (ao.num,ao.num,ao2eint.ericholeskynum) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_ao_2e_int_eri_cholesky_num — Method
trexio_write_ao_2e_int_eri_cholesky_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of Cholesky vectors for ERI to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_ao_2e_int_eri_lr — Method
trexio_write_ao_2e_int_eri_lr(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite long-range electron repulsion integrals to TREXIO file in column-major format (ao.num,ao.num,ao.num,ao.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_ao_2e_int_eri_lr_cholesky — Method
trexio_write_ao_2e_int_eri_lr_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCodeWrite Cholesky decomposition of the long range ERI to TREXIO file in column-major format (ao.num,ao.num,ao2eint.erilrcholesky_num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_ao_2e_int_eri_lr_cholesky_num — Method
trexio_write_ao_2e_int_eri_lr_cholesky_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of Cholesky vectors for long range ERI to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_ao_cartesian — Method
trexio_write_ao_cartesian(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite 1: true, 0: false to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_ao_normalization — Method
trexio_write_ao_normalization(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite normalization factor N'_i to TREXIO file as vector of Float64 values (ao.num).
ElemCo.TREXIO.trexio_write_ao_num — Method
trexio_write_ao_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite total number of atomic orbitals to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_ao_shell — Method
trexio_write_ao_shell(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite basis set shell for each AO to TREXIO file as vector of Int64 values (ao.num).
ElemCo.TREXIO.trexio_write_basis_coefficient — Method
trexio_write_basis_coefficient(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite coefficients of the primitives (aks) to TREXIO file as vector of Float64 values (basis.primnum).
ElemCo.TREXIO.trexio_write_basis_coefficient_im — Method
trexio_write_basis_coefficient_im(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite imaginary part of the coefficients of the primitives (aks) to TREXIO file as vector of Float64 values (basis.primnum).
ElemCo.TREXIO.trexio_write_basis_e_cut — Method
trexio_write_basis_e_cut(trexio::TrexioFile, value::Float64) -> TrexioExitCodeWrite energy cut-off for plane-wave calculations to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_basis_exponent — Method
trexio_write_basis_exponent(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite exponents of the primitives (\gammaks) to TREXIO file as vector of Float64 values (basis.primnum).
ElemCo.TREXIO.trexio_write_basis_exponent_im — Method
trexio_write_basis_exponent_im(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite imaginary part of the exponents of the primitives (\gammaks) to TREXIO file as vector of Float64 values (basis.primnum).
ElemCo.TREXIO.trexio_write_basis_interp_coeff_cnt — Method
trexio_write_basis_interp_coeff_cnt(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of coefficients for the numerical orbital interpolator to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_basis_interpolator_grad — Method
trexio_write_basis_interpolator_grad(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite coefficients for numerical orbital gradient interpolation function to TREXIO file in column-major format (basis.interpcoeffcnt,basis.naogridnum).
ElemCo.TREXIO.trexio_write_basis_interpolator_kind — Method
trexio_write_basis_interpolator_kind(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite Kind of spline, e.g. "Polynomial" to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_basis_interpolator_lap — Method
trexio_write_basis_interpolator_lap(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite coefficients for numerical orbital laplacian interpolation function to TREXIO file in column-major format (basis.interpcoeffcnt,basis.naogridnum).
ElemCo.TREXIO.trexio_write_basis_interpolator_phi — Method
trexio_write_basis_interpolator_phi(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite coefficients for numerical orbital interpolation function to TREXIO file in column-major format (basis.interpcoeffcnt,basis.naogridnum).
ElemCo.TREXIO.trexio_write_basis_name — Method
trexio_write_basis_name(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite name of the basis set to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_basis_nao_grid_grad — Method
trexio_write_basis_nao_grid_grad(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite radial gradient of numerical orbitals to TREXIO file as vector of Float64 values (basis.naogridnum).
ElemCo.TREXIO.trexio_write_basis_nao_grid_lap — Method
trexio_write_basis_nao_grid_lap(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite Laplacian of numerical orbitals to TREXIO file as vector of Float64 values (basis.naogridnum).
ElemCo.TREXIO.trexio_write_basis_nao_grid_num — Method
trexio_write_basis_nao_grid_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite total number of grid points for numerical orbitals to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_basis_nao_grid_phi — Method
trexio_write_basis_nao_grid_phi(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite wave function values for numerical orbitals to TREXIO file as vector of Float64 values (basis.naogridnum).
ElemCo.TREXIO.trexio_write_basis_nao_grid_radius — Method
trexio_write_basis_nao_grid_radius(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite radii of grid points for numerical orbitals to TREXIO file as vector of Float64 values (basis.naogridnum).
ElemCo.TREXIO.trexio_write_basis_nao_grid_size — Method
trexio_write_basis_nao_grid_size(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite number of data points per numerical orbital to TREXIO file as vector of Int64 values (basis.shell_num).
ElemCo.TREXIO.trexio_write_basis_nao_grid_start — Method
trexio_write_basis_nao_grid_start(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite index of the first data point for a given numerical orbital to TREXIO file as vector of Int64 values (basis.shell_num).
ElemCo.TREXIO.trexio_write_basis_nucleus_index — Method
trexio_write_basis_nucleus_index(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite one-to-one correspondence between shells and atomic indices to TREXIO file as vector of Int64 values (basis.shell_num).
ElemCo.TREXIO.trexio_write_basis_oscillation_arg — Method
trexio_write_basis_oscillation_arg(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite additional argument to have oscillating orbitals (\betaks) to TREXIO file as vector of Float64 values (basis.primnum).
ElemCo.TREXIO.trexio_write_basis_oscillation_kind — Method
trexio_write_basis_oscillation_kind(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite kind of oscillating function: "Cos1" or "Cos2" to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_basis_prim_factor — Method
trexio_write_basis_prim_factor(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite normalization coefficients for the primitives (fks) to TREXIO file as vector of Float64 values (basis.primnum).
ElemCo.TREXIO.trexio_write_basis_prim_num — Method
trexio_write_basis_prim_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite total number of primitives to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_basis_r_power — Method
trexio_write_basis_r_power(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite power to which r is raised (Ns) to TREXIO file as vector of Int64 values (basis.shellnum).
ElemCo.TREXIO.trexio_write_basis_shell_ang_mom — Method
trexio_write_basis_shell_ang_mom(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite one-to-one correspondence between shells and angular momenta to TREXIO file as vector of Int64 values (basis.shell_num).
ElemCo.TREXIO.trexio_write_basis_shell_factor — Method
trexio_write_basis_shell_factor(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite normalization factor for each shell (Ns) to TREXIO file as vector of Float64 values (basis.shellnum).
ElemCo.TREXIO.trexio_write_basis_shell_index — Method
trexio_write_basis_shell_index(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite one-to-one correspondence between primitives and shell index to TREXIO file as vector of Int64 values (basis.prim_num).
ElemCo.TREXIO.trexio_write_basis_shell_num — Method
trexio_write_basis_shell_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite total number of shells to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_basis_type — Method
trexio_write_basis_type(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite type of basis set: "Gaussian", "Slater", "Numerical" or "PW" for plane waves to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_cell_a — Method
trexio_write_cell_a(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite first real space lattice vector to TREXIO file as vector of Float64 values (3).
ElemCo.TREXIO.trexio_write_cell_b — Method
trexio_write_cell_b(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite second real space lattice vector to TREXIO file as vector of Float64 values (3).
ElemCo.TREXIO.trexio_write_cell_c — Method
trexio_write_cell_c(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite third real space lattice vector to TREXIO file as vector of Float64 values (3).
ElemCo.TREXIO.trexio_write_cell_g_a — Method
trexio_write_cell_g_a(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite first reciprocal space lattice vector to TREXIO file as vector of Float64 values (3).
ElemCo.TREXIO.trexio_write_cell_g_b — Method
trexio_write_cell_g_b(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite second reciprocal space lattice vector to TREXIO file as vector of Float64 values (3).
ElemCo.TREXIO.trexio_write_cell_g_c — Method
trexio_write_cell_g_c(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite third reciprocal space lattice vector to TREXIO file as vector of Float64 values (3).
ElemCo.TREXIO.trexio_write_cell_two_pi — Method
trexio_write_cell_two_pi(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite 0 or 1; if two_pi=1, 2π is included in the reciprocal vectors to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_csf_coefficient — Method
trexio_write_csf_coefficient(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite coefficients of the CSF expansion to TREXIO file as vector of Float64 values (csf.num).
ElemCo.TREXIO.trexio_write_csf_det_coefficient — Method
trexio_write_csf_det_coefficient(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite projection on the determinant basis to TREXIO file in column-major format (determinant.num,csf.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_csf_num — Method
trexio_write_csf_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of CSFs to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_determinant_alpha — Method
trexio_write_determinant_alpha(trexio::TrexioFile, value::Array{Int64, 2}) -> TrexioExitCodeWrite alpha spin orbital patterns as 64-bit integer bit fields to TREXIO file in column-major format (determinant.n_int,determinant.num).
ElemCo.TREXIO.trexio_write_determinant_beta — Method
trexio_write_determinant_beta(trexio::TrexioFile, value::Array{Int64, 2}) -> TrexioExitCodeWrite beta spin orbital patterns as 64-bit integer bit fields to TREXIO file in column-major format (determinant.n_int,determinant.num).
ElemCo.TREXIO.trexio_write_determinant_coefficient — Method
trexio_write_determinant_coefficient(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite coefficients of the determinants from the CI expansion to TREXIO file as vector of Float64 values (determinant.num).
ElemCo.TREXIO.trexio_write_determinant_list — Method
trexio_write_determinant_list(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite list of determinants as integer bit fields to TREXIO file as vector of Int64 values (determinant.num).
ElemCo.TREXIO.trexio_write_determinant_n_int — Method
trexio_write_determinant_n_int(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of 64-bit integers per spin pattern (ceil(mo.num/64)) to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_determinant_num — Method
trexio_write_determinant_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of determinants to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_ecp_ang_mom — Method
trexio_write_ecp_ang_mom(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite one-to-one correspondence between ECP items and the angular momentum l to TREXIO file as vector of Int64 values (ecp.num).
ElemCo.TREXIO.trexio_write_ecp_coefficient — Method
trexio_write_ecp_coefficient(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite all ECP coefficients βAql to TREXIO file as vector of Float64 values (ecp.num).
ElemCo.TREXIO.trexio_write_ecp_exponent — Method
trexio_write_ecp_exponent(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite all ECP exponents αAql to TREXIO file as vector of Float64 values (ecp.num).
ElemCo.TREXIO.trexio_write_ecp_max_ang_mom_plus_1 — Method
trexio_write_ecp_max_ang_mom_plus_1(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite l_max+1, one higher than the max angular momentum in the removed core orbitals to TREXIO file as vector of Int64 values (nucleus.num).
ElemCo.TREXIO.trexio_write_ecp_nucleus_index — Method
trexio_write_ecp_nucleus_index(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite one-to-one correspondence between ECP items and the atom index to TREXIO file as vector of Int64 values (ecp.num).
ElemCo.TREXIO.trexio_write_ecp_num — Method
trexio_write_ecp_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite total number of ECP functions for all atoms and all values of l to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_ecp_power — Method
trexio_write_ecp_power(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite all ECP powers nAql to TREXIO file as vector of Int64 values (ecp.num).
ElemCo.TREXIO.trexio_write_ecp_z_core — Method
trexio_write_ecp_z_core(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite number of core electrons to remove per atom to TREXIO file as vector of Int64 values (nucleus.num).
ElemCo.TREXIO.trexio_write_electron_dn_num — Method
trexio_write_electron_dn_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of spin-down electrons to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_electron_num — Method
trexio_write_electron_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of electrons to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_electron_up_num — Method
trexio_write_electron_up_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of spin-up electrons to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_grid_ang_coord — Method
trexio_write_grid_ang_coord(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite discretized angular space (if used) to TREXIO file as vector of Float64 values (grid.ang_num).
ElemCo.TREXIO.trexio_write_grid_ang_num — Method
trexio_write_grid_ang_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of angular integration points (if used) to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_grid_ang_weight — Method
trexio_write_grid_ang_weight(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite angular grid weights (if used) to TREXIO file as vector of Float64 values (grid.ang_num).
ElemCo.TREXIO.trexio_write_grid_coord — Method
trexio_write_grid_coord(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite discretized coordinate space to TREXIO file as vector of Float64 values (grid.num).
ElemCo.TREXIO.trexio_write_grid_description — Method
trexio_write_grid_description(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite details about the used quadratures can go here to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_grid_max_ang_num — Method
trexio_write_grid_max_ang_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite maximum number of angular grid points (for pruning) to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_grid_min_ang_num — Method
trexio_write_grid_min_ang_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite minimum number of angular grid points (for pruning) to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_grid_num — Method
trexio_write_grid_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of grid points to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_grid_rad_coord — Method
trexio_write_grid_rad_coord(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite discretized radial space (if used) to TREXIO file as vector of Float64 values (grid.rad_num).
ElemCo.TREXIO.trexio_write_grid_rad_num — Method
trexio_write_grid_rad_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of radial integration points (if used) to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_grid_rad_precision — Method
trexio_write_grid_rad_precision(trexio::TrexioFile, value::Float64) -> TrexioExitCodeWrite radial precision parameter (not used in some schemes like Krack-Köster) to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_grid_rad_weight — Method
trexio_write_grid_rad_weight(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite radial grid weights (if used) to TREXIO file as vector of Float64 values (grid.rad_num).
ElemCo.TREXIO.trexio_write_grid_weight — Method
trexio_write_grid_weight(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite grid weights according to a given partitioning (e.g. Becke) to TREXIO file as vector of Float64 values (grid.num).
ElemCo.TREXIO.trexio_write_jastrow_ee — Method
trexio_write_jastrow_ee(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite electron-electron parameters to TREXIO file as vector of Float64 values (jastrow.ee_num).
ElemCo.TREXIO.trexio_write_jastrow_ee_num — Method
trexio_write_jastrow_ee_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of Electron-electron parameters to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_jastrow_ee_scaling — Method
trexio_write_jastrow_ee_scaling(trexio::TrexioFile, value::Float64) -> TrexioExitCodeWrite κ_ee value in CHAMP Jastrow for electron-electron distances to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_jastrow_een — Method
trexio_write_jastrow_een(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite electron-electron-nucleus parameters to TREXIO file as vector of Float64 values (jastrow.een_num).
ElemCo.TREXIO.trexio_write_jastrow_een_nucleus — Method
trexio_write_jastrow_een_nucleus(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite nucleus relative to the eeN parameter to TREXIO file as vector of Int64 values (jastrow.een_num).
ElemCo.TREXIO.trexio_write_jastrow_een_num — Method
trexio_write_jastrow_een_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of Electron-electron-nucleus parameters to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_jastrow_en — Method
trexio_write_jastrow_en(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite electron-nucleus parameters to TREXIO file as vector of Float64 values (jastrow.en_num).
ElemCo.TREXIO.trexio_write_jastrow_en_nucleus — Method
trexio_write_jastrow_en_nucleus(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite nucleus relative to the eN parameter to TREXIO file as vector of Int64 values (jastrow.en_num).
ElemCo.TREXIO.trexio_write_jastrow_en_num — Method
trexio_write_jastrow_en_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of Electron-nucleus parameters to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_jastrow_en_scaling — Method
trexio_write_jastrow_en_scaling(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite κ_α value in CHAMP Jastrow for electron-nucleus distances to TREXIO file as vector of Float64 values (nucleus.num).
ElemCo.TREXIO.trexio_write_jastrow_type — Method
trexio_write_jastrow_type(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite type of Jastrow factor: CHAMP or Mu to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_metadata_author — Method
trexio_write_metadata_author(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCodeWrite names of the authors of the file to TREXIO file as vector of String values (metadata.author_num).
ElemCo.TREXIO.trexio_write_metadata_author_num — Method
trexio_write_metadata_author_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of authors of the file to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_metadata_code — Method
trexio_write_metadata_code(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCodeWrite names of the codes used to TREXIO file as vector of String values (metadata.code_num).
ElemCo.TREXIO.trexio_write_metadata_code_num — Method
trexio_write_metadata_code_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of codes used to produce the file to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_metadata_description — Method
trexio_write_metadata_description(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite text describing the content of file to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_metadata_package_version — Method
trexio_write_metadata_package_version(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite TREXIO version used to produce the file to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_metadata_unsafe — Method
trexio_write_metadata_unsafe(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite indicates whether the file has been previously opened with 'u' mode; 1: true, 0: false to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_mo_1e_int_core_hamiltonian — Method
trexio_write_mo_1e_int_core_hamiltonian(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite core Hamiltonian integrals ⟨p|h|q⟩ to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_core_hamiltonian_im — Method
trexio_write_mo_1e_int_core_hamiltonian_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite core Hamiltonian integrals ⟨p|h|q⟩ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_dipole_x — Method
trexio_write_mo_1e_int_dipole_x(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole x component integrals ⟨p|μ_x|q⟩ to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_dipole_x_im — Method
trexio_write_mo_1e_int_dipole_x_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole x component integrals ⟨p|μ_x|q⟩ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_dipole_y — Method
trexio_write_mo_1e_int_dipole_y(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole y component integrals ⟨p|μ_y|q⟩ to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_dipole_y_im — Method
trexio_write_mo_1e_int_dipole_y_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole y component integrals ⟨p|μ_y|q⟩ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_dipole_z — Method
trexio_write_mo_1e_int_dipole_z(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole z component integrals ⟨p|μ_z|q⟩ to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_dipole_z_im — Method
trexio_write_mo_1e_int_dipole_z_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite dipole z component integrals ⟨p|μ_z|q⟩ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_ecp — Method
trexio_write_mo_1e_int_ecp(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite effective core potential integrals ⟨p|V_ECP|q⟩ to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_ecp_im — Method
trexio_write_mo_1e_int_ecp_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite effective core potential integrals ⟨p|V_ECP|q⟩ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_kinetic — Method
trexio_write_mo_1e_int_kinetic(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite kinetic energy integrals ⟨p|T|q⟩ to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_kinetic_im — Method
trexio_write_mo_1e_int_kinetic_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite kinetic energy integrals ⟨p|T|q⟩ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_overlap — Method
trexio_write_mo_1e_int_overlap(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite overlap integrals ⟨p|q⟩ to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_overlap_im — Method
trexio_write_mo_1e_int_overlap_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite overlap integrals ⟨p|q⟩ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_potential_n_e — Method
trexio_write_mo_1e_int_potential_n_e(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite electron-nucleus potential integrals ⟨p|V_ne|q⟩ to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_1e_int_potential_n_e_im — Method
trexio_write_mo_1e_int_potential_n_e_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite electron-nucleus potential integrals ⟨p|V_ne|q⟩ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_2e_int_eri — Method
trexio_write_mo_2e_int_eri(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite electron repulsion integrals ⟨pq|rs⟩ to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_mo_2e_int_eri_cholesky — Method
trexio_write_mo_2e_int_eri_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCodeWrite Cholesky decomposition of the ERI to TREXIO file in column-major format (mo.num,mo.num,mo2eint.ericholeskynum) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_mo_2e_int_eri_cholesky_num — Method
trexio_write_mo_2e_int_eri_cholesky_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of Cholesky vectors for ERI to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_mo_2e_int_eri_lr — Method
trexio_write_mo_2e_int_eri_lr(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite long-range electron repulsion integrals to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_mo_2e_int_eri_lr_cholesky — Method
trexio_write_mo_2e_int_eri_lr_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCodeWrite Cholesky decomposition of the long range ERI to TREXIO file in column-major format (mo.num,mo.num,mo2eint.erilrcholesky_num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_mo_2e_int_eri_lr_cholesky_num — Method
trexio_write_mo_2e_int_eri_lr_cholesky_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of Cholesky vectors for long range ERI to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_mo_class — Method
trexio_write_mo_class(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCodeWrite choose among: Core, Inactive, Active, Virtual, Deleted to TREXIO file as vector of String values (mo.num).
ElemCo.TREXIO.trexio_write_mo_coefficient — Method
trexio_write_mo_coefficient(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite MO coefficients to TREXIO file in column-major format (ao.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_coefficient_im — Method
trexio_write_mo_coefficient_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite MO coefficients (imaginary part) to TREXIO file in column-major format (ao.num,mo.num).
ElemCo.TREXIO.trexio_write_mo_energy — Method
trexio_write_mo_energy(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite for canonical MOs, corresponding eigenvalue to TREXIO file as vector of Float64 values (mo.num).
ElemCo.TREXIO.trexio_write_mo_k_point — Method
trexio_write_mo_k_point(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite for periodic calculations, the k point to which each MO belongs to TREXIO file as vector of Int64 values (mo.num).
ElemCo.TREXIO.trexio_write_mo_num — Method
trexio_write_mo_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of MOs to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_mo_occupation — Method
trexio_write_mo_occupation(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite occupation number to TREXIO file as vector of Float64 values (mo.num).
ElemCo.TREXIO.trexio_write_mo_spin — Method
trexio_write_mo_spin(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite for UHF wave functions, 0 is ↑ and 1 is ↓ to TREXIO file as vector of Int64 values (mo.num).
ElemCo.TREXIO.trexio_write_mo_symmetry — Method
trexio_write_mo_symmetry(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCodeWrite symmetry in the point group to TREXIO file as vector of String values (mo.num).
ElemCo.TREXIO.trexio_write_mo_type — Method
trexio_write_mo_type(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite free text to identify the set of MOs (HF, Natural, Local, CASSCF, etc) to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_nucleus_charge — Method
trexio_write_nucleus_charge(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite charges of the nuclei to TREXIO file as vector of Float64 values (nucleus.num).
ElemCo.TREXIO.trexio_write_nucleus_coord — Method
trexio_write_nucleus_coord(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite coordinates of the atoms to TREXIO file in column-major format (3,nucleus.num).
ElemCo.TREXIO.trexio_write_nucleus_label — Method
trexio_write_nucleus_label(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCodeWrite atom labels to TREXIO file as vector of String values (nucleus.num).
ElemCo.TREXIO.trexio_write_nucleus_num — Method
trexio_write_nucleus_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of nuclei to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_nucleus_point_group — Method
trexio_write_nucleus_point_group(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite symmetry point group to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_nucleus_repulsion — Method
trexio_write_nucleus_repulsion(trexio::TrexioFile, value::Float64) -> TrexioExitCodeWrite nuclear repulsion energy to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_pbc_k_point — Method
trexio_write_pbc_k_point(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite k-point sampling to TREXIO file in column-major format (3,pbc.kpointnum).
ElemCo.TREXIO.trexio_write_pbc_k_point_num — Method
trexio_write_pbc_k_point_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of k-points to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_pbc_k_point_weight — Method
trexio_write_pbc_k_point_weight(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite k-point weights to TREXIO file as vector of Float64 values (pbc.kpointnum).
ElemCo.TREXIO.trexio_write_pbc_madelung — Method
trexio_write_pbc_madelung(trexio::TrexioFile, value::Float64) -> TrexioExitCodeWrite Madelung correction of the Ewald probe charge method to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_pbc_periodic — Method
trexio_write_pbc_periodic(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite 1: true or 0: false to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_po_class — Method
trexio_write_po_class(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCodeWrite choose among: Core, Inactive, Active, Virtual, Deleted to TREXIO file as vector of String values (po.num).
ElemCo.TREXIO.trexio_write_po_coefficient — Method
trexio_write_po_coefficient(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite PO coefficients to TREXIO file in column-major format (ao.num,po.num).
ElemCo.TREXIO.trexio_write_po_coefficient_im — Method
trexio_write_po_coefficient_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite PO coefficients (imaginary part) to TREXIO file in column-major format (ao.num,po.num).
ElemCo.TREXIO.trexio_write_po_energy — Method
trexio_write_po_energy(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite for canonical POs, corresponding eigenvalue to TREXIO file as vector of Float64 values (po.num).
ElemCo.TREXIO.trexio_write_po_k_point — Method
trexio_write_po_k_point(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite for periodic calculations, the k point to which each PO belongs to TREXIO file as vector of Int64 values (po.num).
ElemCo.TREXIO.trexio_write_po_num — Method
trexio_write_po_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of POs to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_po_occupation — Method
trexio_write_po_occupation(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite occupation number to TREXIO file as vector of Float64 values (po.num).
ElemCo.TREXIO.trexio_write_po_spin — Method
trexio_write_po_spin(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCodeWrite for UHF wave functions, 0 is ↑ and 1 is ↓ to TREXIO file as vector of Int64 values (po.num).
ElemCo.TREXIO.trexio_write_po_symmetry — Method
trexio_write_po_symmetry(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCodeWrite symmetry in the point group to TREXIO file as vector of String values (po.num).
ElemCo.TREXIO.trexio_write_po_type — Method
trexio_write_po_type(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite free text to identify the set of POs (HF, Natural, Local, CASSCF, etc) to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_qmc_e_loc — Method
trexio_write_qmc_e_loc(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite local energy evaluated at the points to TREXIO file as vector of Float64 values (qmc.num).
ElemCo.TREXIO.trexio_write_qmc_num — Method
trexio_write_qmc_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of 3N-dimensional points to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_qmc_point — Method
trexio_write_qmc_point(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCodeWrite 3N-dimensional points to TREXIO file in column-major format (3,electron.num,qmc.num).
ElemCo.TREXIO.trexio_write_qmc_psi — Method
trexio_write_qmc_psi(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCodeWrite wave function evaluated at the points to TREXIO file as vector of Float64 values (qmc.num).
ElemCo.TREXIO.trexio_write_rdm_1e — Method
trexio_write_rdm_1e(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite one body density matrix to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_rdm_1e_dn — Method
trexio_write_rdm_1e_dn(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite ↓-spin component of the one body density matrix to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_rdm_1e_transition — Method
trexio_write_rdm_1e_transition(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite one-particle transition density matrices to TREXIO file in column-major format (mo.num,mo.num,state.num,state.num).
ElemCo.TREXIO.trexio_write_rdm_1e_up — Method
trexio_write_rdm_1e_up(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCodeWrite ↑-spin component of the one body density matrix to TREXIO file in column-major format (mo.num,mo.num).
ElemCo.TREXIO.trexio_write_rdm_2e — Method
trexio_write_rdm_2e(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite two-body reduced density matrix (spin trace) to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_rdm_2e_cholesky — Method
trexio_write_rdm_2e_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCodeWrite Cholesky decomposition of the two-body RDM (spin trace) to TREXIO file in column-major format (mo.num,mo.num,rdm.2echoleskynum) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_rdm_2e_cholesky_num — Method
trexio_write_rdm_2e_cholesky_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of Cholesky vectors to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_rdm_2e_dndn — Method
trexio_write_rdm_2e_dndn(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite ↓↓ component of the two-body reduced density matrix to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_rdm_2e_dndn_cholesky — Method
trexio_write_rdm_2e_dndn_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCodeWrite Cholesky decomposition of the two-body RDM (↓↓) to TREXIO file in column-major format (mo.num,mo.num,rdm.2edndncholesky_num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_rdm_2e_dndn_cholesky_num — Method
trexio_write_rdm_2e_dndn_cholesky_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of Cholesky vectors to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_rdm_2e_transition — Method
trexio_write_rdm_2e_transition(trexio::TrexioFile, value::Array{Float64, 6}) -> TrexioExitCodeWrite two-particle transition density matrices to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num,state.num,state.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_rdm_2e_updn — Method
trexio_write_rdm_2e_updn(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite ↑↓ component of the two-body reduced density matrix to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_rdm_2e_updn_cholesky — Method
trexio_write_rdm_2e_updn_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCodeWrite Cholesky decomposition of the two-body RDM (↑↓) to TREXIO file in column-major format (mo.num,mo.num,rdm.2eupdncholesky_num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_rdm_2e_updn_cholesky_num — Method
trexio_write_rdm_2e_updn_cholesky_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of Cholesky vectors to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_rdm_2e_upup — Method
trexio_write_rdm_2e_upup(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCodeWrite ↑↑ component of the two-body reduced density matrix to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_rdm_2e_upup_cholesky — Method
trexio_write_rdm_2e_upup_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCodeWrite Cholesky decomposition of the two-body RDM (↑↑) to TREXIO file in column-major format (mo.num,mo.num,rdm.2eupupcholesky_num) (sparse: indices/values format).
ElemCo.TREXIO.trexio_write_rdm_2e_upup_cholesky_num — Method
trexio_write_rdm_2e_upup_cholesky_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of Cholesky vectors to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_state_current_label — Method
trexio_write_state_current_label(trexio::TrexioFile, value::String) -> TrexioExitCodeWrite label of the current state to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_state_energy — Method
trexio_write_state_energy(trexio::TrexioFile, value::Float64) -> TrexioExitCodeWrite energy of the current state to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_state_file_name — Method
trexio_write_state_file_name(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCodeWrite names of the TREXIO files linked to the current one (i.e. containing data for other states) to TREXIO file as vector of String values (state.num).
ElemCo.TREXIO.trexio_write_state_id — Method
trexio_write_state_id(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite index of the current state (0 is ground state) to TREXIO file stored as HDF5 attribute.
ElemCo.TREXIO.trexio_write_state_label — Method
trexio_write_state_label(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCodeWrite labels of all states to TREXIO file as vector of String values (state.num).
ElemCo.TREXIO.trexio_write_state_num — Method
trexio_write_state_num(trexio::TrexioFile, value::Int64) -> TrexioExitCodeWrite number of states (including the ground state) to TREXIO file stored as HDF5 attribute.
TrexioInterface Module
ElemCo.TrexioInterface — Module
TREXIO Interface Module for ElemCo.jl
This module provides ElemCo-specific functions to import and export data in TREXIO format, which is a standardized format for quantum chemistry data exchange. It uses the standalone TREXIO module for core operations and provides convenient conversion between ElemCo types and TREXIO standard formats.
TREXIO format specification:
- Based on HDF5 for efficient storage
- Standardized structure for quantum chemistry data
- Supports orbitals, amplitudes, integrals, and other QC data
See: https://trexio-coe.github.io/trexio/lib.html https://arxiv.org/abs/2302.14793
ElemCo Integration Functions
ElemCo.TrexioInterface.close_trexio — Method
close_trexio(trexio::TrexioFile)Close a TREXIO file and release resources. Compatible wrapper around the standard TREXIO API.
ElemCo.TrexioInterface.has_trexio_amplitudes — Method
has_trexio_amplitudes(trexio::TrexioFile; unrestricted::Bool=false)Check if amplitudes are stored in the TREXIO file using TREXIO has_* functions.
Returns true if any amplitude data (singles or doubles) is found. This function does not read the amplitudes, only checks for their presence.
ElemCo.TrexioInterface.has_trexio_determinants — Method
has_trexio_determinants(trexio::TrexioFile) -> BoolCheck if determinants are stored in the TREXIO file (extended format with separate alpha/beta).
Returns true if determinant data with extended alpha/beta format is found.
ElemCo.TrexioInterface.occupied_virtual_from_classes — Method
occupied_virtual_from_classes(classes::Vector{String})Extract occupied and virtual orbital indices from orbital class labels.
Returns (occ_indices, virt_indices) where:
occ_indicesare orbitals with class "Inactive" or "Active"virt_indicesare orbitals with class "Virtual"
Note: "Core" and "Deleted" orbitals are not included in either list.
ElemCo.TrexioInterface.occupied_virtual_from_occupations — Function
occupied_virtual_from_occupations(occupations::Vector{Float64}, classes::Vector{String}=String[];
occ_threshold::Float64=0.5)Extract occupied and virtual orbital indices from occupation numbers and optionally class labels.
Orbitals with occupation ≥ occ_threshold are considered occupied. If classes are provided, "Core" and "Deleted" orbitals are excluded from both lists.
Returns (occ_indices, virt_indices).
This is more reliable than occupied_virtual_from_classes for UHF orbitals where the same orbital index may be occupied for one spin but virtual for the other.
ElemCo.TrexioInterface.open_trexio — Function
open_trexio(filename::String, mode::String="r") -> TrexioFileOpen a TREXIO file. Returns an opened TrexioFile object. Compatible wrapper around the standard TREXIO API.
Arguments
filename::String: Path to the TREXIO filemode::String: Access mode ("r" for read, "w" for write, "u" for read-write)
ElemCo.TrexioInterface.orbital_indices_from_classes — Method
orbital_indices_from_classes(classes::Vector{String}; include::Vector{String}=["Inactive", "Active", "Virtual"])Extract orbital indices for each orbital class type from orbital class labels.
Arguments
classes: Vector of orbital class labels ("Core", "Inactive", "Active", "Virtual", "Deleted")include: Which classes to include in the result (default: ["Inactive", "Active", "Virtual"])
Returns
A Dict{String,Vector{Int}} mapping each class name to the orbital indices with that class.
Example
classes = ["Core", "Inactive", "Inactive", "Virtual", "Virtual", "Virtual", "Deleted"]
result = orbital_indices_from_classes(classes)
# result["Inactive"] = [2, 3]
# result["Active"] = Int[]
# result["Virtual"] = [4, 5, 6]ElemCo.TrexioInterface.read_trexio_basis — Method
read_trexio_basis(trexio::TrexioFile) -> BasisSetRead basis set information from TREXIO file.
Returns empty BasisSet() if no molecular system or basis is stored (e.g., FCIDUMP-only case).
ElemCo.TrexioInterface.read_trexio_determinants — Method
read_trexio_determinants(trexio::TrexioFile; OPattern::Type=UInt64)
-> (Vector{SimpleDeterminant{OPattern}}, Vector{Float64})Read determinants and CI coefficients from TREXIO file.
Arguments
trexio::TrexioFile: Open TREXIO file handleOPattern::Type: Orbital pattern type (default: UInt64, use UInt128 for >64 orbitals)
Returns
determinants::Vector{SimpleDeterminant{OPattern}}: Vector of determinantscoefficients::Vector{Float64}: CI coefficients
Example
using ElemCo
open_trexio("input.h5", "r") do trexio
dets, coeffs = read_trexio_determinants(trexio)
# For systems with >64 orbitals:
# dets, coeffs = read_trexio_determinants(trexio; OPattern=UInt128)
endElemCo.TrexioInterface.read_trexio_doubles — Method
read_trexio_doubles(trexio::TrexioFile) -> T2Read T2 amplitudes from TREXIO file.
ElemCo.TrexioInterface.read_trexio_orbital_classes — Function
read_trexio_orbital_classes(trexio::TrexioFile, MO="mo") -> (classa::Vector{String}, classb::Vector{String})Read molecular orbital classes from TREXIO file and return as two vectors (alpha, beta).
For restricted orbitals the list of beta orbitals is empty. If no orbital classes are found, empty vectors are returned.
MO can be "mo" for molecular orbitals or "po" for positron orbitals.
ElemCo.TrexioInterface.read_trexio_orbital_energies — Function
read_trexio_orbital_energies(trexio::TrexioFile, MO="mo") -> (epsa, epsb)Read molecular orbital energies from TREXIO file and return as two vectors (alpha, beta).
For restricted orbitals the list of beta orbitals is empty. If no orbital energies are found, empty vectors are returned.
MO can be "mo" for molecular orbitals or "po" for positron orbitals.
ElemCo.TrexioInterface.read_trexio_orbital_occupations — Function
read_trexio_orbital_occupations(trexio::TrexioFile, MO="mo") -> (occa, occb)Read molecular orbital occupations from TREXIO file and return as two vectors (alpha, beta).
For restricted orbitals the list of beta orbitals is empty. If no orbital occupations are found, empty vectors are returned.
MO can be "mo" for molecular orbitals or "po" for positron orbitals.
ElemCo.TrexioInterface.read_trexio_orbitals — Function
read_trexio_orbitals(trexio::TrexioFile, basis=nothing; verbose=true, MO="mo") -> (SpinMatrix, String)Read molecular orbitals from TREXIO file and return SpinMatrix and type::String.
MO can be "mo" for molecular orbitals or "po" for positron orbitals.
ElemCo.TrexioInterface.read_trexio_rotations — Method
read_trexio_rotations(trexio::TrexioFile; verbose=true, MO="mo") -> (SpinMatrix, String)Read molecular orbital rotations from TREXIO file and return SpinMatrix and type::String.
MO can be "mo" for molecular orbitals or "po" for positron orbitals.
ElemCo.TrexioInterface.read_trexio_singles — Method
read_trexio_singles(trexio::TrexioFile) -> T1Read T1 amplitudes from TREXIO file.
ElemCo.TrexioInterface.read_trexio_system — Method
read_trexio_system(trexio::TrexioFile) -> MSystemRead molecular geometry from TREXIO format and return ElemCo MSystem.
ElemCo.TrexioInterface.read_trexio_unrestricted_doubles — Method
read_trexio_unrestricted_doubles(trexio::TrexioFile) -> (T2a, T2b, T2ab)Read T2a, T2b and T2ab amplitudes from TREXIO file.
ElemCo.TrexioInterface.read_trexio_unrestricted_singles — Method
read_trexio_unrestricted_singles(trexio::TrexioFile) -> (T1a, T1b)Read T1a and T1b amplitudes from TREXIO file.
ElemCo.TrexioInterface.write_trexio_amplitudes — Method
write_trexio_amplitudes(trexio::TrexioFile, T1::AbstractArray{Float64,2}, T2::AbstractArray{Float64,4})Write CC amplitudes to TREXIO format using the standalone TREXIO module. This is a custom extension for storing amplitude data.
ElemCo.TrexioInterface.write_trexio_basis — Method
write_trexio_basis(trexio::TrexioFile, basis::BasisSet)Write basis set information to TREXIO format following TREXIO standard.
ElemCo.TrexioInterface.write_trexio_determinants — Method
write_trexio_determinants(trexio::TrexioFile, determinants::Vector{<:AbstractDeterminant},
coefficients::AbstractVector{Float64})Write determinants and CI coefficients to TREXIO file using extended format with separate alpha/beta bit fields.
Arguments
trexio::TrexioFile: Open TREXIO file handle (must be opened with write/update mode)determinants::Vector{<:AbstractDeterminant}: Vector of determinants (must havealphaandbetafields)coefficients::AbstractVector{Float64}: CI coefficients for each determinant
Storage Format
determinant.num: Number of determinantsdeterminant.n_int: Number of 64-bit integers per spin pattern (ceil(mo.num/64))determinant.alpha: Alpha spin patterns as Int64 bit fields [nint, ndets]determinant.beta: Beta spin patterns as Int64 bit fields [nint, ndets]determinant.coefficient: CI coefficients [n_dets]
The number of orbitals is determined from mo.num in the TREXIO file. Bit i in the pattern indicates orbital i+1 is occupied (0-indexed bits).
Example
using ElemCo
open_trexio("output.h5", "w") do trexio
# ... write orbitals first to set mo.num ...
write_trexio_determinants(trexio, variational_dets, ci_coefficients)
endElemCo.TrexioInterface.write_trexio_orbitals — Method
write_trexio_orbitals(trexio::TrexioFile, orbitals::SpinMatrix, basis::BasisSet;
type="HF", classes=(String[], String[]),
energies=(Float64[], Float64[]), occupations=(Float64[], Float64[]))Write molecular orbitals to TREXIO file.
classes, energies, and occupations are optional and can be provided as tuples for alpha and beta spins. classes entries can be "Core", "Inactive", "Active", "Virtual", "Deleted"
MO can be "mo" for molecular orbitals or "po" for positron orbitals.
ElemCo.TrexioInterface.write_trexio_rotations — Method
write_trexio_rotations(trexio::TrexioFile, rotations::SpinMatrix;
type="Rotation", classes=(String[], String[]),
energies=(Float64[], Float64[]), occupations=(Float64[], Float64[]), MO="mo")Write rotations of molecular orbitals to TREXIO file.
The rotations are written in place of orbitals, i.e., it is not possible to write rotations to a TREXIO file, which contains orbitals. classes, energies, and occupations are optional and can be provided as tuples for alpha and beta spins. classes entries can be "Core", "Inactive", "Active", "Virtual", "Deleted"
MO can be "mo" for molecular orbitals or "po" for positron orbitals.
ElemCo.TrexioInterface.write_trexio_system — Method
write_trexio_system(trexio::TrexioFile, system::MSystem)Write molecular geometry and basis set information to TREXIO format using ElemCo data structures.
ElemCo.TrexioInterface.SimpleDeterminant — Type
SimpleDeterminant{OPattern}Simple determinant type for TREXIO I/O. Holds alpha and beta occupation patterns. This is returned by read_trexio_determinants when reading from files. Can be converted to/from FCI.Determinant when FCI module is available.
Internal Functions
ElemCo.TrexioInterface._pack_pattern! — Method
_pack_pattern!(dest::AbstractVector{Int64}, pattern::OPattern, n_int::Int) where OPatternPack an orbital pattern into an array of Int64 values. Orbital i (1-indexed) is stored in bit (i-1) % 64 of integer (i-1) ÷ 64 + 1.
ElemCo.TrexioInterface._read_trexio_orbital_transformations — Function
_read_trexio_orbital_transformations(trexio::TrexioFile, order, verbose, MO="mo") -> (SpinMatrix, String)Internal function to read orbital transformation coefficients from TREXIO file
MO can be "mo" for molecular orbitals or "po" for positron orbitals.
ElemCo.TrexioInterface._unpack_pattern — Method
_unpack_pattern(src::AbstractVector{Int64}, ::Type{OPattern}) where OPattern -> OPatternUnpack an array of Int64 values into an orbital pattern.
ElemCo.TrexioInterface._write_trexio_orbital_transformation_data — Function
_write_trexio_orbital_transformation_data(trexio::TrexioFile, coefficients::SpinMatrix,
order, type, classes, energies, occupations, MO="mo")Internal function to write orbital transformation data to TREXIO file.
MO can be "mo" for molecular orbitals or "po" for positron orbitals.
ElemCo.TrexioInterface.alphabeta_orbital_indices — Function
alphabeta_orbital_indices(trexio::TrexioFile, nmo, MO="mo") -> (alpha_indices::Vector{Int}, beta_indices::Vector{Int})Return the indices of alpha and beta orbitals.
For restricted orbitals the list of beta orbitals is empty.
MO can be "mo" for molecular orbitals or "po" for positron orbitals.
ElemCo.TrexioInterface.order4l — Method
order4l(basis::BasisSet) -> Vector{Int}Return order for each l from TREXIO order to libcint order.
ElemCo.TrexioInterface.TREXIO2LIBCINT_PERMUTATION — Constant
TREXIO2LIBCINT_PERMUTATIONPermutation of the atomic orbitals from the TREXIO to the libcint order.
ElemCo.TrexioInterface.TREXIO2LIBCINT_PERMUTATION_CART — Constant
TREXIO2LIBCINT_PERMUTATION_CARTPermutation of the atomic orbitals from the TREXIO to the libcint order for cartesian basis sets.