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.

source

TREXIO Core Types and Functions

ElemCo.TREXIO.TrexioFile — Type
TrexioFile

Structure representing a TREXIO format file following the standard specification. Contains the HDF5 file handle and metadata.

Fields

  • file::HDF5.File: HDF5 file handle
  • filename::String: Path to the TREXIO file
  • mode::String: File access mode ("r", "w", "u")
source
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.

source
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.

source
ElemCo.TREXIO.trexio_close — Method
trexio_close(trexio::TrexioFile) -> TrexioExitCode

Close a TREXIO file and release resources. Returns TREXIO exit code.

source
ElemCo.TREXIO.trexio_has_amplitude_double_dense — Method
trexio_has_amplitude_double_dense(trexio::TrexioFile) -> Bool

Check if double excitation amplitudes (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_double_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_double_dense_im — Method
trexio_has_amplitude_double_dense_im(trexio::TrexioFile) -> Bool

Check if double excitation amplitudes, imaginary part (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_double_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_double_dndn_dense — Method
trexio_has_amplitude_double_dndn_dense(trexio::TrexioFile) -> Bool

Check if ↓↓-spin component of the double excitation amplitudes (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_double_dndn_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_double_dndn_dense_im — Method
trexio_has_amplitude_double_dndn_dense_im(trexio::TrexioFile) -> Bool

Check if ↓↓-spin component of the double excitation amplitudes, imaginary part (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_double_dndn_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_double_updn_dense — Method
trexio_has_amplitude_double_updn_dense(trexio::TrexioFile) -> Bool

Check if ↑↓-spin component of the double excitation amplitudes (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_double_updn_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_double_updn_dense_im — Method
trexio_has_amplitude_double_updn_dense_im(trexio::TrexioFile) -> Bool

Check if ↑↓-spin component of the double excitation amplitudes, imaginary part (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_double_updn_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_double_upup_dense — Method
trexio_has_amplitude_double_upup_dense(trexio::TrexioFile) -> Bool

Check if ↑↑-spin component of the double excitation amplitudes (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_double_upup_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_double_upup_dense_im — Method
trexio_has_amplitude_double_upup_dense_im(trexio::TrexioFile) -> Bool

Check if ↑↑-spin component of the double excitation amplitudes, imaginary part (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_double_upup_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_single_dense — Method
trexio_has_amplitude_single_dense(trexio::TrexioFile) -> Bool

Check if single excitation amplitudes (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_single_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_single_dense_im — Method
trexio_has_amplitude_single_dense_im(trexio::TrexioFile) -> Bool

Check if single excitation amplitudes, imaginary part (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_single_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_single_dn_dense — Method
trexio_has_amplitude_single_dn_dense(trexio::TrexioFile) -> Bool

Check if ↓-spin component of the single excitation amplitudes (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_single_dn_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_single_dn_dense_im — Method
trexio_has_amplitude_single_dn_dense_im(trexio::TrexioFile) -> Bool

Check if ↓-spin component of the single excitation amplitudes, imaginary part (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_single_dn_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_single_up_dense — Method
trexio_has_amplitude_single_up_dense(trexio::TrexioFile) -> Bool

Check if ↑-spin component of the single excitation amplitudes (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_single_up_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_amplitude_single_up_dense_im — Method
trexio_has_amplitude_single_up_dense_im(trexio::TrexioFile) -> Bool

Check if ↑-spin component of the single excitation amplitudes, imaginary part (dense) exists in TREXIO file.

Warning

The function trexio_has_amplitude_single_up_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_ao_1e_int_fock — Method
trexio_has_ao_1e_int_fock(trexio::TrexioFile) -> Bool

Check if Fock matrix (restricted/closed-shell) exists in TREXIO file.

Warning

The function trexio_has_ao_1e_int_fock violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_ao_1e_int_fock_dn — Method
trexio_has_ao_1e_int_fock_dn(trexio::TrexioFile) -> Bool

Check if ↓-spin Fock matrix (unrestricted) exists in TREXIO file.

Warning

The function trexio_has_ao_1e_int_fock_dn violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_ao_1e_int_fock_dn_im — Method
trexio_has_ao_1e_int_fock_dn_im(trexio::TrexioFile) -> Bool

Check if ↓-spin Fock matrix (imaginary part) exists in TREXIO file.

Warning

The function trexio_has_ao_1e_int_fock_dn_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_ao_1e_int_fock_im — Method
trexio_has_ao_1e_int_fock_im(trexio::TrexioFile) -> Bool

Check if Fock matrix (imaginary part) exists in TREXIO file.

Warning

The function trexio_has_ao_1e_int_fock_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_ao_1e_int_fock_up — Method
trexio_has_ao_1e_int_fock_up(trexio::TrexioFile) -> Bool

Check if ↑-spin Fock matrix (unrestricted) exists in TREXIO file.

Warning

The function trexio_has_ao_1e_int_fock_up violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_ao_1e_int_fock_up_im — Method
trexio_has_ao_1e_int_fock_up_im(trexio::TrexioFile) -> Bool

Check if ↑-spin Fock matrix (imaginary part) exists in TREXIO file.

Warning

The function trexio_has_ao_1e_int_fock_up_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_basis_name — Method
trexio_has_basis_name(trexio::TrexioFile) -> Bool

Check if name of the basis set exists in TREXIO file.

Warning

The function trexio_has_basis_name violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_basis_type — Method
trexio_has_basis_type(trexio::TrexioFile) -> Bool

Check if Type of basis set: "Gaussian", "Slater", "Numerical" or "PW" for plane waves exists in TREXIO file.

source
ElemCo.TREXIO.trexio_has_determinant_alpha — Method
trexio_has_determinant_alpha(trexio::TrexioFile) -> Bool

Check if alpha spin orbital patterns as 64-bit integer bit fields exists in TREXIO file.

Warning

The function trexio_has_determinant_alpha violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_determinant_beta — Method
trexio_has_determinant_beta(trexio::TrexioFile) -> Bool

Check if beta spin orbital patterns as 64-bit integer bit fields exists in TREXIO file.

Warning

The function trexio_has_determinant_beta violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_determinant_n_int — Method
trexio_has_determinant_n_int(trexio::TrexioFile) -> Bool

Check if number of 64-bit integers per spin pattern (ceil(mo.num/64)) exists in TREXIO file.

Warning

The function trexio_has_determinant_n_int violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_ecp_ang_mom — Method
trexio_has_ecp_ang_mom(trexio::TrexioFile) -> Bool

Check if One-to-one correspondence between ECP items and the angular momentum $\ell$ exists in TREXIO file.

source
ElemCo.TREXIO.trexio_has_ecp_num — Method
trexio_has_ecp_num(trexio::TrexioFile) -> Bool

Check if Total number of ECP functions for all atoms and all values of $\ell$ exists in TREXIO file.

source
ElemCo.TREXIO.trexio_has_mo_type — Method
trexio_has_mo_type(trexio::TrexioFile) -> Bool

Check if Free text to identify the set of MOs (HF, Natural, Local, CASSCF, /etc/) exists in TREXIO file.

source
ElemCo.TREXIO.trexio_has_po_class — Method
trexio_has_po_class(trexio::TrexioFile) -> Bool

Check if choose among: Core, Inactive, Active, Virtual, Deleted exists in TREXIO file.

Warning

The function trexio_has_po_class violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_po_coefficient — Method
trexio_has_po_coefficient(trexio::TrexioFile) -> Bool

Check if PO coefficients exists in TREXIO file.

Warning

The function trexio_has_po_coefficient violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_po_coefficient_im — Method
trexio_has_po_coefficient_im(trexio::TrexioFile) -> Bool

Check if PO coefficients (imaginary part) exists in TREXIO file.

Warning

The function trexio_has_po_coefficient_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_po_energy — Method
trexio_has_po_energy(trexio::TrexioFile) -> Bool

Check if for canonical POs, corresponding eigenvalue exists in TREXIO file.

Warning

The function trexio_has_po_energy violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_po_k_point — Method
trexio_has_po_k_point(trexio::TrexioFile) -> Bool

Check if for periodic calculations, the k point to which each PO belongs exists in TREXIO file.

Warning

The function trexio_has_po_k_point violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_po_num — Method
trexio_has_po_num(trexio::TrexioFile) -> Bool

Check if number of POs exists in TREXIO file.

Warning

The function trexio_has_po_num violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_po_occupation — Method
trexio_has_po_occupation(trexio::TrexioFile) -> Bool

Check if occupation number exists in TREXIO file.

Warning

The function trexio_has_po_occupation violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_po_spin — Method
trexio_has_po_spin(trexio::TrexioFile) -> Bool

Check if for UHF wave functions, 0 is ↑ and 1 is ↓ exists in TREXIO file.

Warning

The function trexio_has_po_spin violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_po_symmetry — Method
trexio_has_po_symmetry(trexio::TrexioFile) -> Bool

Check if symmetry in the point group exists in TREXIO file.

Warning

The function trexio_has_po_symmetry violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_po_type — Method
trexio_has_po_type(trexio::TrexioFile) -> Bool

Check if free text to identify the set of POs (HF, Natural, Local, CASSCF, etc) exists in TREXIO file.

Warning

The function trexio_has_po_type violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_has_state_file_name — Method
trexio_has_state_file_name(trexio::TrexioFile) -> Bool

Check if Names of the TREXIO files linked to the current one (i.e. containing data for other states) exists in TREXIO file.

source
ElemCo.TREXIO.trexio_open — Function
trexio_open(file_name::String, mode::String="u", back_end=0) -> TrexioFile

Open 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.

source
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.

source
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.

Warning

The function trexio_read_amplitude_double_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_amplitude_double_dense_im — Method
trexio_read_amplitude_double_dense_im(trexio::TrexioFile) -> (Array{Float64, 3}, TrexioExitCode)

Read double excitation amplitudes, imaginary part (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.

Warning

The function trexio_read_amplitude_double_dense_im violates the TREXIO standard.

source
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.

Warning

The function trexio_read_amplitude_double_dndn_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_amplitude_double_dndn_dense_im — Method
trexio_read_amplitude_double_dndn_dense_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read ↓↓-spin component of the double excitation amplitudes, imaginary part (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.

Warning

The function trexio_read_amplitude_double_dndn_dense_im violates the TREXIO standard.

source
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.

source
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.

Warning

The function trexio_read_amplitude_double_updn_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_amplitude_double_updn_dense_im — Method
trexio_read_amplitude_double_updn_dense_im(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)

Read ↑↓-spin component of the double excitation amplitudes, imaginary part (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.

Warning

The function trexio_read_amplitude_double_updn_dense_im violates the TREXIO standard.

source
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.

Warning

The function trexio_read_amplitude_double_upup_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_amplitude_double_upup_dense_im — Method
trexio_read_amplitude_double_upup_dense_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read ↑↑-spin component of the double excitation amplitudes, imaginary part (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.

Warning

The function trexio_read_amplitude_double_upup_dense_im violates the TREXIO standard.

source
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.

source
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.

source
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.

source
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.

Warning

The function trexio_read_amplitude_single_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_amplitude_single_dense_im — Method
trexio_read_amplitude_single_dense_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read single excitation amplitudes, imaginary part (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.

Warning

The function trexio_read_amplitude_single_dense_im violates the TREXIO standard.

source
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.

Warning

The function trexio_read_amplitude_single_dn_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_amplitude_single_dn_dense_im — Method
trexio_read_amplitude_single_dn_dense_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read ↓-spin component of the single excitation amplitudes, imaginary part (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.

Warning

The function trexio_read_amplitude_single_dn_dense_im violates the TREXIO standard.

source
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.

source
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.

Warning

The function trexio_read_amplitude_single_up_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_amplitude_single_up_dense_im — Method
trexio_read_amplitude_single_up_dense_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read ↑-spin component of the single excitation amplitudes, imaginary part (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.

Warning

The function trexio_read_amplitude_single_up_dense_im violates the TREXIO standard.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_core_hamiltonian — Method
trexio_read_ao_1e_int_core_hamiltonian(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle p \vert \hat{h} \vert q \rangle$ 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.

source
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 $\langle p \vert \hat{h} \vert q \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_dipole_x — Method
trexio_read_ao_1e_int_dipole_x(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle p \vert \hat{\mu}_x \vert q \rangle$ 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.

source
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 $\langle p \vert \hat{\mu}_x \vert q \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_dipole_y — Method
trexio_read_ao_1e_int_dipole_y(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle p \vert \hat{\mu}_y \vert q \rangle$ 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.

source
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 $\langle p \vert \hat{\mu}_y \vert q \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_dipole_z — Method
trexio_read_ao_1e_int_dipole_z(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle p \vert \hat{\mu}_z \vert q \rangle$ 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.

source
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 $\langle p \vert \hat{\mu}_z \vert q \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_ecp — Method
trexio_read_ao_1e_int_ecp(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle p \vert \hat{V}_{\text{ecp}} \vert q \rangle$ 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.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_ecp_im — Method
trexio_read_ao_1e_int_ecp_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle p \vert \hat{V}_{\text{ECP}} \vert q \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_fock — Method
trexio_read_ao_1e_int_fock(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read Fock matrix (restricted/closed-shell) 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.

Warning

The function trexio_read_ao_1e_int_fock violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_fock_dn — Method
trexio_read_ao_1e_int_fock_dn(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read ↓-spin Fock matrix (unrestricted) 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.

Warning

The function trexio_read_ao_1e_int_fock_dn violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_fock_dn_im — Method
trexio_read_ao_1e_int_fock_dn_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read ↓-spin Fock matrix (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.

Warning

The function trexio_read_ao_1e_int_fock_dn_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_fock_im — Method
trexio_read_ao_1e_int_fock_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read Fock matrix (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.

Warning

The function trexio_read_ao_1e_int_fock_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_fock_up — Method
trexio_read_ao_1e_int_fock_up(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read ↑-spin Fock matrix (unrestricted) 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.

Warning

The function trexio_read_ao_1e_int_fock_up violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_fock_up_im — Method
trexio_read_ao_1e_int_fock_up_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read ↑-spin Fock matrix (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.

Warning

The function trexio_read_ao_1e_int_fock_up_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_kinetic — Method
trexio_read_ao_1e_int_kinetic(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle p \vert \hat{T}_e \vert q \rangle$ 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.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_kinetic_im — Method
trexio_read_ao_1e_int_kinetic_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle p \vert \hat{T}_e \vert q \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_overlap — Method
trexio_read_ao_1e_int_overlap(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle p \vert q \rangle$ 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.

source
ElemCo.TREXIO.trexio_read_ao_1e_int_overlap_im — Method
trexio_read_ao_1e_int_overlap_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle p \vert q \rangle$ (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.

source
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 $\langle p \vert \hat{V}_{\text{ne}} \vert q \rangle$ 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.

source
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 $\langle p \vert \hat{V}_{\text{ne}} \vert q \rangle$ (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.

source
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 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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_read_ao_normalization — Method
trexio_read_ao_normalization(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)

Read Normalization factor $\mathcal{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.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_read_basis_coefficient — Method
trexio_read_basis_coefficient(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)

Read Coefficients of the primitives ($a_{ks}$) 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.

source
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 ($a_{ks}$) 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.

source
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.

source
ElemCo.TREXIO.trexio_read_basis_exponent — Method
trexio_read_basis_exponent(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)

Read Exponents of the primitives ($\gamma_{ks}$) 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.

source
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 ($\gamma_{ks}$) 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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

Warning

The function trexio_read_basis_name violates the TREXIO standard.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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 ($\beta_{ks}$) 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.

source
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.

source
ElemCo.TREXIO.trexio_read_basis_prim_factor — Method
trexio_read_basis_prim_factor(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)

Read Normalization coefficients for the primitives ($f_{ks}$) 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.

source
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.

source
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 ($n_s$) 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.

source
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.

source
ElemCo.TREXIO.trexio_read_basis_shell_factor — Method
trexio_read_basis_shell_factor(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)

Read Normalization factor of each shell ($\mathcal{N}_s$) 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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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\pi$ 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.

source
ElemCo.TREXIO.trexio_read_csf_coefficient — Method
trexio_read_csf_coefficient(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)

Read Coefficients $C_I$ 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.

source
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.

source
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.

source
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.

Warning

The function trexio_read_determinant_alpha violates the TREXIO standard.

source
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.

Warning

The function trexio_read_determinant_beta violates the TREXIO standard.

source
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.

source
ElemCo.TREXIO.trexio_read_determinant_coefficient_im — Method
trexio_read_determinant_coefficient_im(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)

Read CI coefficients (imaginary part) from TREXIO file in vector format (determinant.num).

Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.

Warning

The function trexio_read_determinant_coefficient_im violates the TREXIO standard.

source
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.

source
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.

Warning

The function trexio_read_determinant_n_int violates the TREXIO standard.

source
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.

source
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 $\ell$ from TREXIO file in vector format (ecp.num).

Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.

source
ElemCo.TREXIO.trexio_read_ecp_coefficient — Method
trexio_read_ecp_coefficient(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)

Read $\beta_{A q \ell}$ all ECP coefficients from TREXIO file in vector format (ecp.num).

Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.

source
ElemCo.TREXIO.trexio_read_ecp_exponent — Method
trexio_read_ecp_exponent(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)

Read $\alpha_{A q \ell}$ all ECP exponents from TREXIO file in vector format (ecp.num).

Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.

source
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 $\ell_{\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.

source
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.

source
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 $\ell$ from TREXIO file.

Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.

source
ElemCo.TREXIO.trexio_read_ecp_power — Method
trexio_read_ecp_power(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)

Read $n_{A q \ell}$ all ECP powers from TREXIO file in vector format (ecp.num).

Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.

source
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.

source
ElemCo.TREXIO.trexio_read_electron_dn_num — Method
trexio_read_electron_dn_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)

Read Number of \downarrow-spin electrons from TREXIO file.

Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.

source
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.

source
ElemCo.TREXIO.trexio_read_electron_up_num — Method
trexio_read_electron_up_num(trexio::TrexioFile) -> (Int64, TrexioExitCode)

Read Number of \uparrow-spin electrons from TREXIO file.

Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_read_jastrow_ee_scaling — Method
trexio_read_jastrow_ee_scaling(trexio::TrexioFile) -> (Float64, TrexioExitCode)

Read $\kappa$ 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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_read_jastrow_en_scaling — Method
trexio_read_jastrow_en_scaling(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)

Read $\kappa$ 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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_read_metadata_unsafe — Method
trexio_read_metadata_unsafe(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.

source
ElemCo.TREXIO.trexio_read_mo_1e_int_core_hamiltonian — Method
trexio_read_mo_1e_int_core_hamiltonian(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle i \vert \hat{h} \vert j \rangle$ 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.

source
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 $\langle i \vert \hat{h} \vert j \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_mo_1e_int_dipole_x — Method
trexio_read_mo_1e_int_dipole_x(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle i \vert \hat{\mu}_x \vert j \rangle$ 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.

source
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 $\langle i \vert \hat{\mu}_x \vert j \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_mo_1e_int_dipole_y — Method
trexio_read_mo_1e_int_dipole_y(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle i \vert \hat{\mu}_y \vert j \rangle$ 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.

source
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 $\langle i \vert \hat{\mu}_y \vert j \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_mo_1e_int_dipole_z — Method
trexio_read_mo_1e_int_dipole_z(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle i \vert \hat{\mu}_z \vert j \rangle$ 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.

source
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 $\langle i \vert \hat{\mu}_z \vert j \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_mo_1e_int_ecp — Method
trexio_read_mo_1e_int_ecp(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle i \vert \hat{V}_{\text{ECP}} \vert j \rangle$ 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.

source
ElemCo.TREXIO.trexio_read_mo_1e_int_ecp_im — Method
trexio_read_mo_1e_int_ecp_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle i \vert \hat{V}_{\text{ECP}} \vert j \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_mo_1e_int_kinetic — Method
trexio_read_mo_1e_int_kinetic(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle i \vert \hat{T}_e \vert j \rangle$ 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.

source
ElemCo.TREXIO.trexio_read_mo_1e_int_kinetic_im — Method
trexio_read_mo_1e_int_kinetic_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle i \vert \hat{T}_e \vert j \rangle$ (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.

source
ElemCo.TREXIO.trexio_read_mo_1e_int_overlap — Method
trexio_read_mo_1e_int_overlap(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle i \vert j \rangle$ 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.

source
ElemCo.TREXIO.trexio_read_mo_1e_int_overlap_im — Method
trexio_read_mo_1e_int_overlap_im(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read $\langle i \vert j \rangle$ (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.

source
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 $\langle i \vert \hat{V}_{\text{ne}} \vert j \rangle$ 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.

source
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 $\langle i \vert \hat{V}_{\text{ne}} \vert j \rangle$ (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.

source
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 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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_read_mo_spin — Method
trexio_read_mo_spin(trexio::TrexioFile) -> (Vector{Int64}, TrexioExitCode)

Read For UHF wave functions, 0 is $\alpha$ and 1 is $\beta$ from TREXIO file in vector format (mo.num).

Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_read_pbc_k_point_weight — Method
trexio_read_pbc_k_point_weight(trexio::TrexioFile) -> (Vector{Float64}, TrexioExitCode)

Read $k$-point weight from TREXIO file in vector format (pbc.kpointnum).

Returns (dummy_info, TREXIO_HAS_NOT) if not present, or (dummy_info, error_code) on failure.

source
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.

source
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.

source
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.

Warning

The function trexio_read_po_class violates the TREXIO standard.

source
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.

Warning

The function trexio_read_po_coefficient violates the TREXIO standard.

source
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.

Warning

The function trexio_read_po_coefficient_im violates the TREXIO standard.

source
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.

Warning

The function trexio_read_po_energy violates the TREXIO standard.

source
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.

Warning

The function trexio_read_po_k_point violates the TREXIO standard.

source
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.

Warning

The function trexio_read_po_num violates the TREXIO standard.

source
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.

Warning

The function trexio_read_po_occupation violates the TREXIO standard.

source
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.

Warning

The function trexio_read_po_spin violates the TREXIO standard.

source
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.

Warning

The function trexio_read_po_symmetry violates the TREXIO standard.

source
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.

Warning

The function trexio_read_po_type violates the TREXIO standard.

source
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.

source
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.

source
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.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_read_rdm_1e_dn — Method
trexio_read_rdm_1e_dn(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read \downarrow-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.

source
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.

source
ElemCo.TREXIO.trexio_read_rdm_1e_up — Method
trexio_read_rdm_1e_up(trexio::TrexioFile) -> (Matrix{Float64}, TrexioExitCode)

Read \uparrow-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.

source
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.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_read_rdm_2e_dndn — Method
trexio_read_rdm_2e_dndn(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)

Read \downarrow\downarrow 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.

source
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 (\downarrow\downarrow) 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.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_read_rdm_2e_updn — Method
trexio_read_rdm_2e_updn(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)

Read \uparrow\downarrow 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.

source
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 (\uparrow\downarrow) 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.

source
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.

source
ElemCo.TREXIO.trexio_read_rdm_2e_upup — Method
trexio_read_rdm_2e_upup(trexio::TrexioFile) -> (Array{Float64, 4}, TrexioExitCode)

Read \uparrow\uparrow 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.

source
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 (\uparrow\uparrow) 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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
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.

source
ElemCo.TREXIO.trexio_write_amplitude_double — Method
trexio_write_amplitude_double(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write Double excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_amplitude_double_dense — Method
trexio_write_amplitude_double_dense(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCode

Write double excitation amplitudes (dense) to TREXIO file in column-major format (v,v,o(o+1)/2).

Warning

The function trexio_write_amplitude_double_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_double_dense_im — Method
trexio_write_amplitude_double_dense_im(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCode

Write double excitation amplitudes, imaginary part (dense) to TREXIO file in column-major format (v,v,o(o+1)/2).

Warning

The function trexio_write_amplitude_double_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_double_dndn_dense — Method
trexio_write_amplitude_double_dndn_dense(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↓↓-spin component of the double excitation amplitudes (dense) to TREXIO file in column-major format (V(V-1)/2,O(O-1)/2).

Warning

The function trexio_write_amplitude_double_dndn_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_double_dndn_dense_im — Method
trexio_write_amplitude_double_dndn_dense_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↓↓-spin component of the double excitation amplitudes, imaginary part (dense) to TREXIO file in column-major format (V(V-1)/2,O(O-1)/2).

Warning

The function trexio_write_amplitude_double_dndn_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_double_exp — Method
trexio_write_amplitude_double_exp(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write Exponentialized double excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_amplitude_double_updn_dense — Method
trexio_write_amplitude_double_updn_dense(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write ↑↓-spin component of the double excitation amplitudes (dense) to TREXIO file in column-major format (v,V,o,O).

Warning

The function trexio_write_amplitude_double_updn_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_double_updn_dense_im — Method
trexio_write_amplitude_double_updn_dense_im(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write ↑↓-spin component of the double excitation amplitudes, imaginary part (dense) to TREXIO file in column-major format (v,V,o,O).

Warning

The function trexio_write_amplitude_double_updn_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_double_upup_dense — Method
trexio_write_amplitude_double_upup_dense(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↑↑-spin component of the double excitation amplitudes (dense) to TREXIO file in column-major format (v(v-1)/2,o(o-1)/2).

Warning

The function trexio_write_amplitude_double_upup_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_double_upup_dense_im — Method
trexio_write_amplitude_double_upup_dense_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↑↑-spin component of the double excitation amplitudes, imaginary part (dense) to TREXIO file in column-major format (v(v-1)/2,o(o-1)/2).

Warning

The function trexio_write_amplitude_double_upup_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_quadruple — Method
trexio_write_amplitude_quadruple(trexio::TrexioFile, value::Array{Float64, 8}) -> TrexioExitCode

Write 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).

source
ElemCo.TREXIO.trexio_write_amplitude_quadruple_exp — Method
trexio_write_amplitude_quadruple_exp(trexio::TrexioFile, value::Array{Float64, 8}) -> TrexioExitCode

Write 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).

source
ElemCo.TREXIO.trexio_write_amplitude_single — Method
trexio_write_amplitude_single(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write Single excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_amplitude_single_dense — Method
trexio_write_amplitude_single_dense(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write single excitation amplitudes (dense) to TREXIO file in column-major format (v,o).

Warning

The function trexio_write_amplitude_single_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_single_dense_im — Method
trexio_write_amplitude_single_dense_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write single excitation amplitudes, imaginary part (dense) to TREXIO file in column-major format (v,o).

Warning

The function trexio_write_amplitude_single_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_single_dn_dense — Method
trexio_write_amplitude_single_dn_dense(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↓-spin component of the single excitation amplitudes (dense) to TREXIO file in column-major format (V,O).

Warning

The function trexio_write_amplitude_single_dn_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_single_dn_dense_im — Method
trexio_write_amplitude_single_dn_dense_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↓-spin component of the single excitation amplitudes, imaginary part (dense) to TREXIO file in column-major format (V,O).

Warning

The function trexio_write_amplitude_single_dn_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_single_exp — Method
trexio_write_amplitude_single_exp(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write Exponentialized single excitation amplitudes to TREXIO file in column-major format (mo.num,mo.num) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_amplitude_single_up_dense — Method
trexio_write_amplitude_single_up_dense(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↑-spin component of the single excitation amplitudes (dense) to TREXIO file in column-major format (v,o).

Warning

The function trexio_write_amplitude_single_up_dense violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_single_up_dense_im — Method
trexio_write_amplitude_single_up_dense_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↑-spin component of the single excitation amplitudes, imaginary part (dense) to TREXIO file in column-major format (v,o).

Warning

The function trexio_write_amplitude_single_up_dense_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_amplitude_triple — Method
trexio_write_amplitude_triple(trexio::TrexioFile, value::Array{Float64, 6}) -> TrexioExitCode

Write 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).

source
ElemCo.TREXIO.trexio_write_amplitude_triple_exp — Method
trexio_write_amplitude_triple_exp(trexio::TrexioFile, value::Array{Float64, 6}) -> TrexioExitCode

Write 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).

source
ElemCo.TREXIO.trexio_write_ao_1e_int_dipole_x — Method
trexio_write_ao_1e_int_dipole_x(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle p \vert \hat{\mu}_x \vert q \rangle$ to TREXIO file in column-major format (ao.num,ao.num).

source
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}) -> TrexioExitCode

Write $\langle p \vert \hat{\mu}_x \vert q \rangle$ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).

source
ElemCo.TREXIO.trexio_write_ao_1e_int_dipole_y — Method
trexio_write_ao_1e_int_dipole_y(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle p \vert \hat{\mu}_y \vert q \rangle$ to TREXIO file in column-major format (ao.num,ao.num).

source
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}) -> TrexioExitCode

Write $\langle p \vert \hat{\mu}_y \vert q \rangle$ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).

source
ElemCo.TREXIO.trexio_write_ao_1e_int_dipole_z — Method
trexio_write_ao_1e_int_dipole_z(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle p \vert \hat{\mu}_z \vert q \rangle$ to TREXIO file in column-major format (ao.num,ao.num).

source
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}) -> TrexioExitCode

Write $\langle p \vert \hat{\mu}_z \vert q \rangle$ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).

source
ElemCo.TREXIO.trexio_write_ao_1e_int_ecp — Method
trexio_write_ao_1e_int_ecp(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle p \vert \hat{V}_{\text{ecp}} \vert q \rangle$ to TREXIO file in column-major format (ao.num,ao.num).

source
ElemCo.TREXIO.trexio_write_ao_1e_int_ecp_im — Method
trexio_write_ao_1e_int_ecp_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle p \vert \hat{V}_{\text{ECP}} \vert q \rangle$ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).

source
ElemCo.TREXIO.trexio_write_ao_1e_int_fock — Method
trexio_write_ao_1e_int_fock(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write Fock matrix (restricted/closed-shell) to TREXIO file in column-major format (ao.num,ao.num).

Warning

The function trexio_write_ao_1e_int_fock violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_ao_1e_int_fock_dn — Method
trexio_write_ao_1e_int_fock_dn(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↓-spin Fock matrix (unrestricted) to TREXIO file in column-major format (ao.num,ao.num).

Warning

The function trexio_write_ao_1e_int_fock_dn violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_ao_1e_int_fock_dn_im — Method
trexio_write_ao_1e_int_fock_dn_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↓-spin Fock matrix (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).

Warning

The function trexio_write_ao_1e_int_fock_dn_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_ao_1e_int_fock_im — Method
trexio_write_ao_1e_int_fock_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write Fock matrix (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).

Warning

The function trexio_write_ao_1e_int_fock_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_ao_1e_int_fock_up — Method
trexio_write_ao_1e_int_fock_up(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↑-spin Fock matrix (unrestricted) to TREXIO file in column-major format (ao.num,ao.num).

Warning

The function trexio_write_ao_1e_int_fock_up violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_ao_1e_int_fock_up_im — Method
trexio_write_ao_1e_int_fock_up_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write ↑-spin Fock matrix (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).

Warning

The function trexio_write_ao_1e_int_fock_up_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_ao_1e_int_kinetic — Method
trexio_write_ao_1e_int_kinetic(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle p \vert \hat{T}_e \vert q \rangle$ to TREXIO file in column-major format (ao.num,ao.num).

source
ElemCo.TREXIO.trexio_write_ao_1e_int_kinetic_im — Method
trexio_write_ao_1e_int_kinetic_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle p \vert \hat{T}_e \vert q \rangle$ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).

source
ElemCo.TREXIO.trexio_write_ao_1e_int_overlap_im — Method
trexio_write_ao_1e_int_overlap_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle p \vert q \rangle$ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).

source
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}) -> TrexioExitCode

Write $\langle p \vert \hat{V}_{\text{ne}} \vert q \rangle$ to TREXIO file in column-major format (ao.num,ao.num).

source
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}) -> TrexioExitCode

Write $\langle p \vert \hat{V}_{\text{ne}} \vert q \rangle$ (imaginary part) to TREXIO file in column-major format (ao.num,ao.num).

source
ElemCo.TREXIO.trexio_write_ao_2e_int_eri — Method
trexio_write_ao_2e_int_eri(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write Electron repulsion integrals to TREXIO file in column-major format (ao.num,ao.num,ao.num,ao.num) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_ao_2e_int_eri_cholesky — Method
trexio_write_ao_2e_int_eri_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCode

Write Cholesky decomposition of the ERI to TREXIO file in column-major format (ao.num,ao.num,ao2eint.ericholeskynum) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_ao_2e_int_eri_lr — Method
trexio_write_ao_2e_int_eri_lr(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write Long-range electron repulsion integrals to TREXIO file in column-major format (ao.num,ao.num,ao.num,ao.num) (sparse: indices/values format).

source
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}) -> TrexioExitCode

Write 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).

source
ElemCo.TREXIO.trexio_write_ao_normalization — Method
trexio_write_ao_normalization(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Normalization factor $\mathcal{N}_i$ to TREXIO file as vector of Float64 values (ao.num).

source
ElemCo.TREXIO.trexio_write_ao_num — Method
trexio_write_ao_num(trexio::TrexioFile, value::Int64) -> TrexioExitCode

Write Total number of atomic orbitals to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_ao_shell — Method
trexio_write_ao_shell(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write Basis set shell for each AO to TREXIO file as vector of Int64 values (ao.num).

source
ElemCo.TREXIO.trexio_write_basis_coefficient — Method
trexio_write_basis_coefficient(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Coefficients of the primitives ($a_{ks}$) to TREXIO file as vector of Float64 values (basis.prim_num).

source
ElemCo.TREXIO.trexio_write_basis_coefficient_im — Method
trexio_write_basis_coefficient_im(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Imaginary part of the coefficients of the primitives ($a_{ks}$) to TREXIO file as vector of Float64 values (basis.prim_num).

source
ElemCo.TREXIO.trexio_write_basis_e_cut — Method
trexio_write_basis_e_cut(trexio::TrexioFile, value::Float64) -> TrexioExitCode

Write Energy cut-off for plane-wave calculations to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_basis_exponent — Method
trexio_write_basis_exponent(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Exponents of the primitives ($\gamma_{ks}$) to TREXIO file as vector of Float64 values (basis.prim_num).

source
ElemCo.TREXIO.trexio_write_basis_exponent_im — Method
trexio_write_basis_exponent_im(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Imaginary part of the exponents of the primitives ($\gamma_{ks}$) to TREXIO file as vector of Float64 values (basis.prim_num).

source
ElemCo.TREXIO.trexio_write_basis_interpolator_grad — Method
trexio_write_basis_interpolator_grad(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write Coefficients for numerical orbital gradient interpolation function to TREXIO file in column-major format (basis.interpcoeffcnt,basis.naogridnum).

source
ElemCo.TREXIO.trexio_write_basis_interpolator_lap — Method
trexio_write_basis_interpolator_lap(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write Coefficients for numerical orbital laplacian interpolation function to TREXIO file in column-major format (basis.interpcoeffcnt,basis.naogridnum).

source
ElemCo.TREXIO.trexio_write_basis_interpolator_phi — Method
trexio_write_basis_interpolator_phi(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write Coefficients for numerical orbital interpolation function to TREXIO file in column-major format (basis.interpcoeffcnt,basis.naogridnum).

source
ElemCo.TREXIO.trexio_write_basis_name — Method
trexio_write_basis_name(trexio::TrexioFile, value::String) -> TrexioExitCode

Write name of the basis set to TREXIO file stored as HDF5 attribute.

Warning

The function trexio_write_basis_name violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_basis_nao_grid_grad — Method
trexio_write_basis_nao_grid_grad(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Radial gradient of numerical orbitals to TREXIO file as vector of Float64 values (basis.naogridnum).

source
ElemCo.TREXIO.trexio_write_basis_nao_grid_lap — Method
trexio_write_basis_nao_grid_lap(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Laplacian of numerical orbitals to TREXIO file as vector of Float64 values (basis.naogridnum).

source
ElemCo.TREXIO.trexio_write_basis_nao_grid_phi — Method
trexio_write_basis_nao_grid_phi(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Wave function values for numerical orbitals to TREXIO file as vector of Float64 values (basis.naogridnum).

source
ElemCo.TREXIO.trexio_write_basis_nao_grid_radius — Method
trexio_write_basis_nao_grid_radius(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Radii of grid points for numerical orbitals to TREXIO file as vector of Float64 values (basis.naogridnum).

source
ElemCo.TREXIO.trexio_write_basis_nao_grid_size — Method
trexio_write_basis_nao_grid_size(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write Number of data points per numerical orbital to TREXIO file as vector of Int64 values (basis.shell_num).

source
ElemCo.TREXIO.trexio_write_basis_nao_grid_start — Method
trexio_write_basis_nao_grid_start(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write Index of the first data point for a given numerical orbital to TREXIO file as vector of Int64 values (basis.shell_num).

source
ElemCo.TREXIO.trexio_write_basis_nucleus_index — Method
trexio_write_basis_nucleus_index(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write One-to-one correspondence between shells and atomic indices to TREXIO file as vector of Int64 values (basis.shell_num).

source
ElemCo.TREXIO.trexio_write_basis_oscillation_arg — Method
trexio_write_basis_oscillation_arg(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Additional argument to have oscillating orbitals ($\beta_{ks}$) to TREXIO file as vector of Float64 values (basis.prim_num).

source
ElemCo.TREXIO.trexio_write_basis_prim_factor — Method
trexio_write_basis_prim_factor(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Normalization coefficients for the primitives ($f_{ks}$) to TREXIO file as vector of Float64 values (basis.prim_num).

source
ElemCo.TREXIO.trexio_write_basis_r_power — Method
trexio_write_basis_r_power(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write Power to which $r$ is raised ($n_s$) to TREXIO file as vector of Int64 values (basis.shell_num).

source
ElemCo.TREXIO.trexio_write_basis_shell_ang_mom — Method
trexio_write_basis_shell_ang_mom(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write One-to-one correspondence between shells and angular momenta to TREXIO file as vector of Int64 values (basis.shell_num).

source
ElemCo.TREXIO.trexio_write_basis_shell_factor — Method
trexio_write_basis_shell_factor(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Normalization factor of each shell ($\mathcal{N}_s$) to TREXIO file as vector of Float64 values (basis.shell_num).

source
ElemCo.TREXIO.trexio_write_basis_shell_index — Method
trexio_write_basis_shell_index(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write One-to-one correspondence between primitives and shell index to TREXIO file as vector of Int64 values (basis.prim_num).

source
ElemCo.TREXIO.trexio_write_basis_type — Method
trexio_write_basis_type(trexio::TrexioFile, value::String) -> TrexioExitCode

Write Type of basis set: "Gaussian", "Slater", "Numerical" or "PW" for plane waves to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_cell_a — Method
trexio_write_cell_a(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write First real space lattice vector to TREXIO file as vector of Float64 values (3).

source
ElemCo.TREXIO.trexio_write_cell_b — Method
trexio_write_cell_b(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Second real space lattice vector to TREXIO file as vector of Float64 values (3).

source
ElemCo.TREXIO.trexio_write_cell_c — Method
trexio_write_cell_c(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Third real space lattice vector to TREXIO file as vector of Float64 values (3).

source
ElemCo.TREXIO.trexio_write_cell_g_a — Method
trexio_write_cell_g_a(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write First reciprocal space lattice vector to TREXIO file as vector of Float64 values (3).

source
ElemCo.TREXIO.trexio_write_cell_g_b — Method
trexio_write_cell_g_b(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Second reciprocal space lattice vector to TREXIO file as vector of Float64 values (3).

source
ElemCo.TREXIO.trexio_write_cell_g_c — Method
trexio_write_cell_g_c(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Third reciprocal space lattice vector to TREXIO file as vector of Float64 values (3).

source
ElemCo.TREXIO.trexio_write_cell_two_pi — Method
trexio_write_cell_two_pi(trexio::TrexioFile, value::Int64) -> TrexioExitCode

Write 0 or 1. If two_pi=1, $2\pi$ is included in the reciprocal vectors. to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_csf_coefficient — Method
trexio_write_csf_coefficient(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Coefficients $C_I$ of the CSF expansion to TREXIO file as vector of Float64 values (csf.num).

source
ElemCo.TREXIO.trexio_write_csf_det_coefficient — Method
trexio_write_csf_det_coefficient(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write Projection on the determinant basis to TREXIO file in column-major format (determinant.num,csf.num) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_determinant_alpha — Method
trexio_write_determinant_alpha(trexio::TrexioFile, value::Array{Int64, 2}) -> TrexioExitCode

Write alpha spin orbital patterns as 64-bit integer bit fields to TREXIO file in column-major format (determinant.n_int,determinant.num).

Warning

The function trexio_write_determinant_alpha violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_determinant_beta — Method
trexio_write_determinant_beta(trexio::TrexioFile, value::Array{Int64, 2}) -> TrexioExitCode

Write beta spin orbital patterns as 64-bit integer bit fields to TREXIO file in column-major format (determinant.n_int,determinant.num).

Warning

The function trexio_write_determinant_beta violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_determinant_coefficient — Method
trexio_write_determinant_coefficient(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Coefficients of the determinants from the CI expansion to TREXIO file as vector of Float64 values (determinant.num).

source
ElemCo.TREXIO.trexio_write_determinant_coefficient_im — Method
trexio_write_determinant_coefficient_im(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write CI coefficients (imaginary part) to TREXIO file as vector of Float64 values (determinant.num).

Warning

The function trexio_write_determinant_coefficient_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_determinant_list — Method
trexio_write_determinant_list(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write List of determinants as integer bit fields to TREXIO file as vector of Int64 values (determinant.num).

source
ElemCo.TREXIO.trexio_write_determinant_n_int — Method
trexio_write_determinant_n_int(trexio::TrexioFile, value::Int64) -> TrexioExitCode

Write number of 64-bit integers per spin pattern (ceil(mo.num/64)) to TREXIO file stored as HDF5 attribute.

Warning

The function trexio_write_determinant_n_int violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_ecp_ang_mom — Method
trexio_write_ecp_ang_mom(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write One-to-one correspondence between ECP items and the angular momentum $\ell$ to TREXIO file as vector of Int64 values (ecp.num).

source
ElemCo.TREXIO.trexio_write_ecp_coefficient — Method
trexio_write_ecp_coefficient(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write $\beta_{A q \ell}$ all ECP coefficients to TREXIO file as vector of Float64 values (ecp.num).

source
ElemCo.TREXIO.trexio_write_ecp_exponent — Method
trexio_write_ecp_exponent(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write $\alpha_{A q \ell}$ all ECP exponents to TREXIO file as vector of Float64 values (ecp.num).

source
ElemCo.TREXIO.trexio_write_ecp_max_ang_mom_plus_1 — Method
trexio_write_ecp_max_ang_mom_plus_1(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write $\ell_{\max}+1$, one higher than the max angular momentum in the removed core orbitals to TREXIO file as vector of Int64 values (nucleus.num).

source
ElemCo.TREXIO.trexio_write_ecp_nucleus_index — Method
trexio_write_ecp_nucleus_index(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write One-to-one correspondence between ECP items and the atom index to TREXIO file as vector of Int64 values (ecp.num).

source
ElemCo.TREXIO.trexio_write_ecp_num — Method
trexio_write_ecp_num(trexio::TrexioFile, value::Int64) -> TrexioExitCode

Write Total number of ECP functions for all atoms and all values of $\ell$ to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_ecp_power — Method
trexio_write_ecp_power(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write $n_{A q \ell}$ all ECP powers to TREXIO file as vector of Int64 values (ecp.num).

source
ElemCo.TREXIO.trexio_write_ecp_z_core — Method
trexio_write_ecp_z_core(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write Number of core electrons to remove per atom to TREXIO file as vector of Int64 values (nucleus.num).

source
ElemCo.TREXIO.trexio_write_grid_ang_coord — Method
trexio_write_grid_ang_coord(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Discretized angular space (if used) to TREXIO file as vector of Float64 values (grid.ang_num).

source
ElemCo.TREXIO.trexio_write_grid_ang_num — Method
trexio_write_grid_ang_num(trexio::TrexioFile, value::Int64) -> TrexioExitCode

Write Number of angular integration points (if used) to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_grid_ang_weight — Method
trexio_write_grid_ang_weight(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Angular grid weights (if used) to TREXIO file as vector of Float64 values (grid.ang_num).

source
ElemCo.TREXIO.trexio_write_grid_coord — Method
trexio_write_grid_coord(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Discretized coordinate space to TREXIO file as vector of Float64 values (grid.num).

source
ElemCo.TREXIO.trexio_write_grid_rad_coord — Method
trexio_write_grid_rad_coord(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Discretized radial space (if used) to TREXIO file as vector of Float64 values (grid.rad_num).

source
ElemCo.TREXIO.trexio_write_grid_rad_num — Method
trexio_write_grid_rad_num(trexio::TrexioFile, value::Int64) -> TrexioExitCode

Write Number of radial integration points (if used) to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_grid_rad_precision — Method
trexio_write_grid_rad_precision(trexio::TrexioFile, value::Float64) -> TrexioExitCode

Write Radial precision parameter (not used in some schemes like Krack-Köster) to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_grid_rad_weight — Method
trexio_write_grid_rad_weight(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Radial grid weights (if used) to TREXIO file as vector of Float64 values (grid.rad_num).

source
ElemCo.TREXIO.trexio_write_grid_weight — Method
trexio_write_grid_weight(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Grid weights according to a given partitioning (e.g. Becke) to TREXIO file as vector of Float64 values (grid.num).

source
ElemCo.TREXIO.trexio_write_jastrow_ee — Method
trexio_write_jastrow_ee(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Electron-electron parameters to TREXIO file as vector of Float64 values (jastrow.ee_num).

source
ElemCo.TREXIO.trexio_write_jastrow_ee_scaling — Method
trexio_write_jastrow_ee_scaling(trexio::TrexioFile, value::Float64) -> TrexioExitCode

Write $\kappa$ value in CHAMP Jastrow for electron-electron distances to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_jastrow_een — Method
trexio_write_jastrow_een(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Electron-electron-nucleus parameters to TREXIO file as vector of Float64 values (jastrow.een_num).

source
ElemCo.TREXIO.trexio_write_jastrow_en — Method
trexio_write_jastrow_en(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Electron-nucleus parameters to TREXIO file as vector of Float64 values (jastrow.en_num).

source
ElemCo.TREXIO.trexio_write_jastrow_en_scaling — Method
trexio_write_jastrow_en_scaling(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write $\kappa$ value in CHAMP Jastrow for electron-nucleus distances to TREXIO file as vector of Float64 values (nucleus.num).

source
ElemCo.TREXIO.trexio_write_metadata_author — Method
trexio_write_metadata_author(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCode

Write Names of the authors of the file to TREXIO file as vector of String values (metadata.author_num).

source
ElemCo.TREXIO.trexio_write_metadata_code — Method
trexio_write_metadata_code(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCode

Write Names of the codes used to TREXIO file as vector of String values (metadata.code_num).

source
ElemCo.TREXIO.trexio_write_mo_1e_int_dipole_x — Method
trexio_write_mo_1e_int_dipole_x(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle i \vert \hat{\mu}_x \vert j \rangle$ to TREXIO file in column-major format (mo.num,mo.num).

source
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}) -> TrexioExitCode

Write $\langle i \vert \hat{\mu}_x \vert j \rangle$ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).

source
ElemCo.TREXIO.trexio_write_mo_1e_int_dipole_y — Method
trexio_write_mo_1e_int_dipole_y(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle i \vert \hat{\mu}_y \vert j \rangle$ to TREXIO file in column-major format (mo.num,mo.num).

source
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}) -> TrexioExitCode

Write $\langle i \vert \hat{\mu}_y \vert j \rangle$ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).

source
ElemCo.TREXIO.trexio_write_mo_1e_int_dipole_z — Method
trexio_write_mo_1e_int_dipole_z(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle i \vert \hat{\mu}_z \vert j \rangle$ to TREXIO file in column-major format (mo.num,mo.num).

source
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}) -> TrexioExitCode

Write $\langle i \vert \hat{\mu}_z \vert j \rangle$ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).

source
ElemCo.TREXIO.trexio_write_mo_1e_int_ecp — Method
trexio_write_mo_1e_int_ecp(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle i \vert \hat{V}_{\text{ECP}} \vert j \rangle$ to TREXIO file in column-major format (mo.num,mo.num).

source
ElemCo.TREXIO.trexio_write_mo_1e_int_ecp_im — Method
trexio_write_mo_1e_int_ecp_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle i \vert \hat{V}_{\text{ECP}} \vert j \rangle$ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).

source
ElemCo.TREXIO.trexio_write_mo_1e_int_kinetic — Method
trexio_write_mo_1e_int_kinetic(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle i \vert \hat{T}_e \vert j \rangle$ to TREXIO file in column-major format (mo.num,mo.num).

source
ElemCo.TREXIO.trexio_write_mo_1e_int_kinetic_im — Method
trexio_write_mo_1e_int_kinetic_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle i \vert \hat{T}_e \vert j \rangle$ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).

source
ElemCo.TREXIO.trexio_write_mo_1e_int_overlap_im — Method
trexio_write_mo_1e_int_overlap_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $\langle i \vert j \rangle$ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).

source
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}) -> TrexioExitCode

Write $\langle i \vert \hat{V}_{\text{ne}} \vert j \rangle$ to TREXIO file in column-major format (mo.num,mo.num).

source
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}) -> TrexioExitCode

Write $\langle i \vert \hat{V}_{\text{ne}} \vert j \rangle$ (imaginary part) to TREXIO file in column-major format (mo.num,mo.num).

source
ElemCo.TREXIO.trexio_write_mo_2e_int_eri — Method
trexio_write_mo_2e_int_eri(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write Electron repulsion integrals to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_mo_2e_int_eri_cholesky — Method
trexio_write_mo_2e_int_eri_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCode

Write Cholesky decomposition of the ERI to TREXIO file in column-major format (mo.num,mo.num,mo2eint.ericholeskynum) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_mo_2e_int_eri_lr — Method
trexio_write_mo_2e_int_eri_lr(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write Long-range electron repulsion integrals to TREXIO file in column-major format (mo.num,mo.num,mo.num,mo.num) (sparse: indices/values format).

source
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}) -> TrexioExitCode

Write 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).

source
ElemCo.TREXIO.trexio_write_mo_class — Method
trexio_write_mo_class(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCode

Write Choose among: Core, Inactive, Active, Virtual, Deleted to TREXIO file as vector of String values (mo.num).

source
ElemCo.TREXIO.trexio_write_mo_energy — Method
trexio_write_mo_energy(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write For canonical MOs, corresponding eigenvalue to TREXIO file as vector of Float64 values (mo.num).

source
ElemCo.TREXIO.trexio_write_mo_k_point — Method
trexio_write_mo_k_point(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write For periodic calculations, the $k$ point to which each MO belongs to TREXIO file as vector of Int64 values (mo.num).

source
ElemCo.TREXIO.trexio_write_mo_spin — Method
trexio_write_mo_spin(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write For UHF wave functions, 0 is $\alpha$ and 1 is $\beta$ to TREXIO file as vector of Int64 values (mo.num).

source
ElemCo.TREXIO.trexio_write_mo_symmetry — Method
trexio_write_mo_symmetry(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCode

Write Symmetry in the point group to TREXIO file as vector of String values (mo.num).

source
ElemCo.TREXIO.trexio_write_mo_type — Method
trexio_write_mo_type(trexio::TrexioFile, value::String) -> TrexioExitCode

Write Free text to identify the set of MOs (HF, Natural, Local, CASSCF, /etc/) to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_nucleus_coord — Method
trexio_write_nucleus_coord(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write Coordinates of the atoms to TREXIO file in column-major format (3,nucleus.num).

source
ElemCo.TREXIO.trexio_write_pbc_k_point — Method
trexio_write_pbc_k_point(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write $k$-point sampling to TREXIO file in column-major format (3,pbc.kpointnum).

source
ElemCo.TREXIO.trexio_write_pbc_madelung — Method
trexio_write_pbc_madelung(trexio::TrexioFile, value::Float64) -> TrexioExitCode

Write Madelung correction of the Ewald probe charge method to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_po_class — Method
trexio_write_po_class(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCode

Write choose among: Core, Inactive, Active, Virtual, Deleted to TREXIO file as vector of String values (po.num).

Warning

The function trexio_write_po_class violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_po_coefficient — Method
trexio_write_po_coefficient(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write PO coefficients to TREXIO file in column-major format (ao.num,po.num).

Warning

The function trexio_write_po_coefficient violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_po_coefficient_im — Method
trexio_write_po_coefficient_im(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write PO coefficients (imaginary part) to TREXIO file in column-major format (ao.num,po.num).

Warning

The function trexio_write_po_coefficient_im violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_po_energy — Method
trexio_write_po_energy(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write for canonical POs, corresponding eigenvalue to TREXIO file as vector of Float64 values (po.num).

Warning

The function trexio_write_po_energy violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_po_k_point — Method
trexio_write_po_k_point(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write for periodic calculations, the k point to which each PO belongs to TREXIO file as vector of Int64 values (po.num).

Warning

The function trexio_write_po_k_point violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_po_num — Method
trexio_write_po_num(trexio::TrexioFile, value::Int64) -> TrexioExitCode

Write number of POs to TREXIO file stored as HDF5 attribute.

Warning

The function trexio_write_po_num violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_po_occupation — Method
trexio_write_po_occupation(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write occupation number to TREXIO file as vector of Float64 values (po.num).

Warning

The function trexio_write_po_occupation violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_po_spin — Method
trexio_write_po_spin(trexio::TrexioFile, value::Vector{Int64}) -> TrexioExitCode

Write for UHF wave functions, 0 is ↑ and 1 is ↓ to TREXIO file as vector of Int64 values (po.num).

Warning

The function trexio_write_po_spin violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_po_symmetry — Method
trexio_write_po_symmetry(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCode

Write symmetry in the point group to TREXIO file as vector of String values (po.num).

Warning

The function trexio_write_po_symmetry violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_po_type — Method
trexio_write_po_type(trexio::TrexioFile, value::String) -> TrexioExitCode

Write free text to identify the set of POs (HF, Natural, Local, CASSCF, etc) to TREXIO file stored as HDF5 attribute.

Warning

The function trexio_write_po_type violates the TREXIO standard.

source
ElemCo.TREXIO.trexio_write_qmc_e_loc — Method
trexio_write_qmc_e_loc(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Local energy evaluated at the points to TREXIO file as vector of Float64 values (qmc.num).

source
ElemCo.TREXIO.trexio_write_qmc_num — Method
trexio_write_qmc_num(trexio::TrexioFile, value::Int64) -> TrexioExitCode

Write Number of 3N-dimensional points to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_qmc_point — Method
trexio_write_qmc_point(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCode

Write 3N-dimensional points to TREXIO file in column-major format (3,electron.num,qmc.num).

source
ElemCo.TREXIO.trexio_write_qmc_psi — Method
trexio_write_qmc_psi(trexio::TrexioFile, value::Vector{Float64}) -> TrexioExitCode

Write Wave function evaluated at the points to TREXIO file as vector of Float64 values (qmc.num).

source
ElemCo.TREXIO.trexio_write_rdm_1e — Method
trexio_write_rdm_1e(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write One body density matrix to TREXIO file in column-major format (mo.num,mo.num).

source
ElemCo.TREXIO.trexio_write_rdm_1e_dn — Method
trexio_write_rdm_1e_dn(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write \downarrow-spin component of the one body density matrix to TREXIO file in column-major format (mo.num,mo.num).

source
ElemCo.TREXIO.trexio_write_rdm_1e_transition — Method
trexio_write_rdm_1e_transition(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write One-particle transition density matrices to TREXIO file in column-major format (mo.num,mo.num,state.num,state.num).

source
ElemCo.TREXIO.trexio_write_rdm_1e_up — Method
trexio_write_rdm_1e_up(trexio::TrexioFile, value::Array{Float64, 2}) -> TrexioExitCode

Write \uparrow-spin component of the one body density matrix to TREXIO file in column-major format (mo.num,mo.num).

source
ElemCo.TREXIO.trexio_write_rdm_2e — Method
trexio_write_rdm_2e(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write 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).

source
ElemCo.TREXIO.trexio_write_rdm_2e_cholesky — Method
trexio_write_rdm_2e_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCode

Write 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).

source
ElemCo.TREXIO.trexio_write_rdm_2e_dndn — Method
trexio_write_rdm_2e_dndn(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write \downarrow\downarrow 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).

source
ElemCo.TREXIO.trexio_write_rdm_2e_dndn_cholesky — Method
trexio_write_rdm_2e_dndn_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCode

Write Cholesky decomposition of the two-body RDM (\downarrow\downarrow) to TREXIO file in column-major format (mo.num,mo.num,rdm.2edndncholesky_num) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_rdm_2e_transition — Method
trexio_write_rdm_2e_transition(trexio::TrexioFile, value::Array{Float64, 6}) -> TrexioExitCode

Write 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).

source
ElemCo.TREXIO.trexio_write_rdm_2e_updn — Method
trexio_write_rdm_2e_updn(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write \uparrow\downarrow 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).

source
ElemCo.TREXIO.trexio_write_rdm_2e_updn_cholesky — Method
trexio_write_rdm_2e_updn_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCode

Write Cholesky decomposition of the two-body RDM (\uparrow\downarrow) to TREXIO file in column-major format (mo.num,mo.num,rdm.2eupdncholesky_num) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_rdm_2e_upup — Method
trexio_write_rdm_2e_upup(trexio::TrexioFile, value::Array{Float64, 4}) -> TrexioExitCode

Write \uparrow\uparrow 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).

source
ElemCo.TREXIO.trexio_write_rdm_2e_upup_cholesky — Method
trexio_write_rdm_2e_upup_cholesky(trexio::TrexioFile, value::Array{Float64, 3}) -> TrexioExitCode

Write Cholesky decomposition of the two-body RDM (\uparrow\uparrow) to TREXIO file in column-major format (mo.num,mo.num,rdm.2eupupcholesky_num) (sparse: indices/values format).

source
ElemCo.TREXIO.trexio_write_state_file_name — Method
trexio_write_state_file_name(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCode

Write 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).

source
ElemCo.TREXIO.trexio_write_state_id — Method
trexio_write_state_id(trexio::TrexioFile, value::Int64) -> TrexioExitCode

Write Index of the current state (0 is ground state) to TREXIO file stored as HDF5 attribute.

source
ElemCo.TREXIO.trexio_write_state_label — Method
trexio_write_state_label(trexio::TrexioFile, value::Vector{String}) -> TrexioExitCode

Write Labels of all states to TREXIO file as vector of String values (state.num).

source
ElemCo.TREXIO.trexio_write_state_num — Method
trexio_write_state_num(trexio::TrexioFile, value::Int64) -> TrexioExitCode

Write Number of states (including the ground state) to TREXIO file stored as HDF5 attribute.

source

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

source

ElemCo Integration Functions

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.

source
ElemCo.TrexioInterface.has_trexio_determinants — Method
has_trexio_determinants(trexio::TrexioFile) -> Bool

Check 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.

source
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_indices are orbitals with class "Inactive" or "Active"
  • virt_indices are orbitals with class "Virtual"

Note: "Core" and "Deleted" orbitals are not included in either list.

source
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.

source
ElemCo.TrexioInterface.open_trexio — Function
open_trexio(filename::String, mode::String="r") -> TrexioFile

Open a TREXIO file. Returns an opened TrexioFile object. Compatible wrapper around the standard TREXIO API.

Arguments

  • filename::String: Path to the TREXIO file
  • mode::String: Access mode ("r" for read, "w" for write, "u" for read-write)
source
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]
source
ElemCo.TrexioInterface.read_trexio_ao_fock — Method
read_trexio_ao_fock(trexio::TrexioFile[, basis::BasisSet]) -> Union{SpinMatrix,Nothing}

Read the Fock matrix from the TREXIO file. With a basis, reorder from the TREXIO AO order to the internal (libcint) AO order; without a basis (rotation / MO-basis dumps) return it as stored. Complex Focks are reconstructed from the *_im fields. Returns a restricted or unrestricted SpinMatrix, or nothing if no Fock matrix is stored.

source
ElemCo.TrexioInterface.read_trexio_basis — Method
read_trexio_basis(trexio::TrexioFile) -> BasisSet

Read basis set information from TREXIO file.

Returns empty BasisSet() if no molecular system or basis is stored (e.g., FCIDUMP-only case).

source
ElemCo.TrexioInterface.read_trexio_determinants — Method
read_trexio_determinants(trexio::TrexioFile; OPattern::Type=UInt64) 
  -> (Vector{SimpleDeterminant{OPattern}}, Vector{<:Number})

Read determinants and CI coefficients from TREXIO file.

Arguments

  • trexio::TrexioFile: Open TREXIO file handle
  • OPattern::Type: Orbital pattern type (default: UInt64, use UInt128 for >64 orbitals)

Returns

  • determinants::Vector{SimpleDeterminant{OPattern}}: Vector of determinants
  • coefficients::Vector{<:Number}: CI coefficients (complex if imaginary part is stored)

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)
end
source
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.

source
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.

source
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.

source
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.

source
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.

source
ElemCo.TrexioInterface.write_trexio_1rdm — Method
write_trexio_1rdm(trexio::TrexioFile, rdm::SpinMatrix)

Write one-particle reduced density matrices to TREXIO. Restricted densities are written to rdm.1e. Unrestricted densities are written to rdm.1e_up, rdm.1e_dn, and their sum to rdm.1e.

source
ElemCo.TrexioInterface.write_trexio_amplitudes — Method
write_trexio_amplitudes(trexio::TrexioFile, T1::AbstractArray{<:Number,2}, T2::AbstractArray{<:Number,4})

Write CC amplitudes to TREXIO format using the standalone TREXIO module. This is a custom extension for storing amplitude data.

source
ElemCo.TrexioInterface.write_trexio_ao_fock — Method
write_trexio_ao_fock(trexio::TrexioFile, fock::SpinMatrix[, basis::BasisSet])

Write the Fock matrix to the TREXIO file (non-standard ao_1e_int field).

For a restricted (closed-shell) fock the single matrix is stored in ao_1e_int_fock; for an unrestricted fock the alpha/beta matrices are stored in ao_1e_int_fock_up/ao_1e_int_fock_dn (complex Focks additionally store the imaginary part in the corresponding *_im fields).

With a basis, the Fock is assumed to be in the internal (libcint) AO basis and is reordered to the TREXIO AO order (matching the orbital coefficients). Without a basis (e.g. stored alongside orbital rotations) the Fock is written as-is in its current MO basis (identity AO order). ao.num must already be written.

source
ElemCo.TrexioInterface.write_trexio_determinants — Method
write_trexio_determinants(trexio::TrexioFile, determinants::Vector{<:AbstractDeterminant}, 
                          coefficients::AbstractVector{<:Number})

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 have alpha and beta fields)
  • coefficients::AbstractVector{<:Number}: CI coefficients for each determinant

Storage Format

  • determinant.num: Number of determinants
  • determinant.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 (real part) [n_dets]
  • determinant.coefficient_im: CI coefficients, imaginary part [n_dets] (complex only)

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)
end
source
ElemCo.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.

source
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.

source
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.

source

Internal Functions

ElemCo.TrexioInterface._pack_pattern! — Method
_pack_pattern!(dest::AbstractVector{Int64}, pattern::OPattern, n_int::Int) where OPattern

Pack 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.

source
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.

source
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.

source
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.

source