Runtime Parameters#

Runtime parameters and options in LibRPA are generally managed through the LibrpaOptions object.

  • When using the API, assign values to the corresponding attributes before calling compute routines. API defaults are set by librpa_init_options(), the C++ librpa::Options constructor, or opts%init() in the Fortran API.

  • When using the driver, parameters are read from librpa.in in the working directory using key = value syntax. Unlike the API, the driver requires task to be explicitly specified.

Note

Rows marked Experimental expose development, diagnostic, or less-tested code paths. Use them as opt-in features and validate results against reference calculations before production use.

For API use, switch values are set with LIBRPA_SWITCH_ON and LIBRPA_SWITCH_OFF in C/C++. The Fortran wrapper exposes these fields as logical values.

Overview#

Driver#

These parameters are available only through the standalone driver.

Parameter Name

Description

Default Value

Since

constants_choice

Physical constants source.

internal (internal, aims)

cs_threshold

Screening threshold when reading RI coefficient data.

1e-6

i_state_high

Last state index for printed QP energies, exclusive.

999999

i_state_low

First state index for printed QP energies, inclusive.

0

output_energy_qp

Output quasiparticle energies for external BSE workflows.

false

output_gw_spec_func

Output GW spectral-function data.

false

output_hamgnn

Output GW energies for HamGNN machine-learning workflows.

false

output_level

Verbosity level for driver output.

info (silent, critical, info, warn, debug)

sf_omega_end

Ending frequency for spectral-function output.

1.0

sf_omega_start

Starting frequency for spectral-function output.

0.0

sf_omega_step

Frequency step for spectral-function output.

0.1

sf_state_end

Last state index for spectral-function output, exclusive.

-1

sf_state_start

First state index for spectral-function output, inclusive.

-1

task

Task type.

required (rpa, g0w0, exx, exx_band)

use_pyatb

Use PyATB mean-field data for dielectric head/wing calculations.

false

use_spinor_wfc

Read wavefunctions in spinor format.

false

Input Files#

These parameters are used to locate dataset files. Filename parameters are interpreted relative to input_dir. Prefix parameters match all files in input_dir whose names begin with the given value.

Parameter Name

Description

Default Value

Since

fn_band_kpath_info

Band-path k-point metadata filename.

band_kpath_info

fn_basis

Deprecated combined basis-set fallback filename.

basis_out

fn_basis_aux

Auxiliary-basis metadata filename.

basis_aux_out

fn_basis_aux_shrink

Compressed auxiliary-basis metadata filename used with use_shrink_abfs = true.

basis_aux_shrink_out

fn_basis_wfc

Wave-function basis metadata filename.

basis_wfc_out

fn_bz_sampling

Brillouin-zone sampling filename.

bz_sampling_out

fn_dielfunc

Dielectric-function filename for dielectric-head correction.

dielecfunc_out

fn_eigocc_scf

SCF eigenvalue and occupation filename.

band_out

fn_stru

Structure-data filename.

stru_out

fn_vxc_scf

SCF exchange-correlation potential filename.

vxc_out

input_dir

Input directory to find and read the AO dataset.

./

prefix_coul_cut

Prefix of truncated Coulomb matrix files.

coulomb_cut

prefix_coul_full

Prefix of bare Coulomb matrix files.

coulomb_mat

prefix_eigvecs_scf

Prefix of SCF Kohn-Sham eigenvector files.

KS_eigenvector

prefix_lri_coeff

Prefix of localized RI coefficient files.

Cs_data

prefix_lri_coeff_shrink

Prefix of compressed-auxiliary-basis RI coefficient files.

Cs_shrinked_data

prefix_shrink_sinvS

Prefix of shrink auxiliary-basis transform files.

shrink_sinvS_

version_coul_reader

Coulomb reader-version selector.

-1

version_lri_reader

Local RI coefficient reader-version selector.

-1

Common Settings#

Parameter Name

Description

Default Value

Since

minimax_emax

Maximal transition energy when generating minimax grids.

-1.0

minimax_emin

Minimal transition energy when generating minimax grids.

-1.0

minimax_regulation

Regulation for minimax grids generation.

0.0

nfreq

Number of time/frequency points.

6

option_bvk_remap

BvK remapping convention for band interpolation.

1

output_dir

Output directory for results.

librpa.d/

parallel_routing

Scheme of parallelization.

LIBRPA_ROUTING_AUTO

restart_from_dir

Directory to read restart checkpoint files from. Empty uses output_dir.

empty

tfgrids_freq_interval

Frequency interval for even-spaced grids, in Hartree.

0.0

tfgrids_freq_max

Maximum frequency for grid generation, in Hartree.

1000.0

tfgrids_freq_min

Minimum frequency for grid generation, in Hartree.

0.005

tfgrids_time_interval

Time interval for even-spaced grids, in Hartree^-1.

0.0

tfgrids_time_min

Minimum time for grid generation, in Hartree^-1.

0.005

tfgrids_type

Type of time/frequency grids.

LIBRPA_TFGRID_UNSET

use_kpara_scf_eigvec

Flag to specify parallel distribution of eigenvectors of SCF starting point.

false

vq_threshold

Threshold for real-space Coulomb matrices.

0.0

Coulomb Matrices#

Parameter Name

Description

Default Value

Since

output_abacus_gw_gf

Switch of outputting ABACUS-compatible GW Green’s-function data.

false

use_fullcoul_eps

Switch of using full Coulomb interaction in \(\varepsilon = 1 - v \chi^0\)

true

use_fullcoul_exx

Switch of using full Coulomb interaction in exact-exchange operator.

false

use_fullcoul_wc

Switch of using full Coulomb interaction in \(W^c = (\varepsilon^{-1} - 1) v\).

false

use_symmetry_exx

Switch of using the symmetry context in exact-exchange paths.

false

use_symmetry_gw

Switch of using the symmetry context in GW paths.

false

use_symmetry_rpa

Switch of using the symmetry context in RPA/chi0 paths.

false

Response function#

These parameters may affect subsequent calculations using response function as input, e.g. RPA, GW.

Parameter Name

Description

Default Value

Since

gf_threshold

Threshold for real-space Green’s function in response function calculation.

0.0

libri_chi0_collect_max_bytes

Maximum estimated local chi0 tensor bytes per LibRI collection chunk; 0 keeps one-shot collection.

0

libri_chi0_collect_s0_chunk

Number of first-index atoms per LibRI chi0 collection chunk; 0 keeps one-shot collection.

0

n_bands_chi0

Maximal number of bands for computing response function.

-1 (< 0 for all bands)

RPA correlation#

Parameter Name

Description

Default Value

Since

use_scalapack_ecrpa

Flag to control whether to use ScaLAPACK to compute RPA correlation energy.

true

ABF Compression#

Parameter Name

Description

Default Value

Since

use_shrink_abfs

Flag to use a compressed auxiliary basis.

false

use_shrink_chi

Flag to compress response function using shrinked basis.

true

GW#

Parameter Name

Description

Default Value

Since

anacon_nfreq

Number of points in the optional GW analytic-continuation frequency grid.

-1

anacon_tfgrids_type

Type of optional frequency grid used for GW analytic continuation.

LIBRPA_TFGRID_UNSET

istate_ref_hedin_shift

Absolute zero-based reference state index for Hedin shifts.

-1

n_bands_sigc

Maximal number of bands for computing correlation self-energy.

-1 (< 0 for all bands)

n_params_anacon

Number of parameters for analytic continuation.

-1 (uses all nfreq data)

n_params_anacon_resample

Number of parameters for the source-grid Pade used to resample GW analytic continuation.

-1

option_dielect_func

Option of computing dielectric function on imaginary axis.

0

option_qpe_solver

Quasi-particle equation solver option.

0

override_qpe_solver_nan

If enabled, keep the final unconverged QPE iterate instead of outputting NaN.

false

qpe_solver_damp_factor

Damping factor for quasi-particle equation solver updates.

0.1

qpe_solver_n_iter_max

Maximum number of iterations for the quasi-particle equation solver; must be positive.

10000

qpe_solver_thres

Convergence threshold for the quasi-particle equation solver, in Hartree.

1.0e-6

read_sigc_mat_rf

Flag of reading NAO correlation self-energy matrix in real-space/frequency form.

false

replace_w_head

Flag of replacing head of screened interaction by macroscopic dielectric function.

false

rpa_headwing_body_start

First regular Coulomb-eigenbasis channel used by RPA head/wing correction.

0

rpa_headwing_mode

RPA Gamma correction mode: “qavg” keeps the current head/wing q-average,

sf_gf_omega_shift

Broadening/shift used for Green’s function in spectral-function output, in Hartree.

0.01

sf_sigc_omega_shift

Broadening/shift used for correlation self-energy in spectral-function output, in Hartree.

0.01

sqrt_coulomb_threshold

Threshold of eigenvalues to perform square root of Coulomb matrices.

0.0

use_2d_dielectric

Switch of using 2D dielectric function.

false

use_cholesky_gw_wc

Flag of using cholesky factorization for computing Wc from chi0.

false

use_elpa_sqrt_coulomb

Flag of using ELPA for sqrt Coulomb matrix.

Build-dependent: true with LIBRPA_USE_ELPA, false otherwise.

use_gpu_replace_scalapack

Flag of using GPU for computing Wc from chi0.

Build-dependent: true when a CUDA/HIP build detects a device, false otherwise.

use_hedin_shift

Compute and apply Hedin shifts in QP solves.

false

use_qpe_adaptive_damp

If enabled, adapt the QPE damping factor during the solve.

false

use_qpe_legacy_update

Test-only switch to recover the legacy non-adaptive QPE update.

false

use_scalapack_gw_wc

Flag of using ScaLAPACK for computing Wc from chi0.

true

LibRI Filtering#

These parameters are active for LibRI-enabled builds and LibRI routing.

Parameter Name

Description

Default Value

Since

libri_chi0_threshold_C

Threshold of real-space LRI triple coefficients to compute response function using LibRI.

0.0

libri_chi0_threshold_G

Threshold of real-space Green’s function to compute response function using LibRI.

0.0

libri_exx_threshold_C

Threshold of real-space LRI triple coefficients to compute exact exchange using LibRI.

0.0

libri_exx_threshold_D

Threshold of real-space density matrices to compute exact exchange using LibRI.

0.0

libri_exx_threshold_V

Threshold of real-space Coulomb matrices to compute exact exchange using LibRI.

0.0

libri_g0w0_threshold_C

Threshold of real-space LRI triple coefficients to compute GW correlation self-energy using LibRI.

0.0

libri_g0w0_threshold_G

Threshold of real-space Green’s function to compute GW correlation self-energy using LibRI.

0.0

libri_g0w0_threshold_Wc

Threshold of correlation screened Coulomb matrix to compute GW correlation self-energy using LibRI.

0.0

Output Control#

Parameter Name

Description

Default Value

Since

ifreq_output_wc_end

Half-open Wc frequency output end index; negative means all remaining frequencies.

-1

ifreq_output_wc_start

First zero-based Wc frequency index to output.

0

istate_output_mat_end

Half-open KS-state end index when exporting KS-basis matrices; negative

-1

istate_output_mat_start

First zero-based KS state included in both dimensions when exporting the

0

output_exx_ks_mat_k

Output exact-exchange matrix in KS basis and k-space.

false

output_gw_sigc_ks_kf

Output KS-diagonal correlation self-energy in k-space, imaginary frequency domain.

false

output_gw_sigc_ks_mat_kf

Output correlation self-energy matrix in KS basis (k-space, imaginary frequency domain).

false

output_gw_sigc_mat_kf

Output correlation self-energy matrix in NAO basis (k-space, imaginary frequency domain).

false

output_gw_sigc_mat_rf

Output correlation self-energy matrix in NAO basis (real space, imaginary frequency domain).

false

output_gw_sigc_mat_rt

Output correlation self-energy matrix in NAO basis (real space, imaginary time domain).

false

output_wc_rf

Output Wc matrix in ABFs (real space, imaginary frequency domain).

false

output_wc_rf_atom_pair

Output Wc(R, iw) as atom-pair blocks instead of full matrices.

true

Driver Compatibility Aliases#

The driver still accepts a few older input keys for backward compatibility, and may remove them in the future.

Alias Name

Preferred Name

Notes

debug

output_level

debug = true maps to output_level = debug

use_soc

use_spinor_wfc

Old spelling for selecting spinor-format driver input

tfgrid_type

tfgrids_type

Old spelling

gf_R_threshold

gf_threshold

Old spelling

output_gw_sigc_ks_if

output_gw_sigc_ks_kf

Old spelling

output_gw_sigc_mat

output_gw_sigc_ks_mat_kf

Old spelling

option_output_Wc_Rf_mat

output_wc_rf, ifreq_output_wc_start, ifreq_output_wc_end

0 disables output, 1 maps to [0,1), 2 maps to [0,all)

g0w0_band is accepted as a deprecated alias of g0w0.

For details on all API parameters, see section below or visit the API documentation of struct LibrpaOptions.

Parameter Details#

(API) anacon_nfreq

Number of points in the optional GW analytic-continuation frequency grid.

  • Type: int

  • Default: -1

  • Status: Experimental

Negative values use the source grid nfreq when the analytic-continuation grid is built. Zero is invalid. Positive values select that many points; if this equals the source nfreq and no new grid type is selected, the original grid is reused.

(API) anacon_tfgrids_type

Type of optional frequency grid used for GW analytic continuation.

  • Type: enum/string

  • Default: LIBRPA_TFGRID_UNSET

  • Status: Experimental

When unset and anacon_nfreq does not request a different grid size, analytic continuation uses the original GW self-energy grid.

(Driver) constants_choice

Physical constants source.

  • Type: string

  • Default: internal (internal, aims)

(Driver) cs_threshold

Screening threshold when reading RI coefficient data.

  • Type: double

  • Default: 1e-6

(Driver) fn_band_kpath_info

Band-path k-point metadata filename.

  • Type: string

  • Default: band_kpath_info

(Driver) fn_basis

Deprecated combined basis-set fallback filename.

  • Type: string

  • Default: basis_out

  • Status: Deprecated: Use fn_basis_wfc and fn_basis_aux instead.

(Driver) fn_basis_aux

Auxiliary-basis metadata filename.

  • Type: string

  • Default: basis_aux_out

(Driver) fn_basis_aux_shrink

Compressed auxiliary-basis metadata filename used with use_shrink_abfs = true.

  • Type: string

  • Default: basis_aux_shrink_out

  • Status: Experimental

(Driver) fn_basis_wfc

Wave-function basis metadata filename.

  • Type: string

  • Default: basis_wfc_out

(Driver) fn_bz_sampling

Brillouin-zone sampling filename.

  • Type: string

  • Default: bz_sampling_out

(Driver) fn_dielfunc

Dielectric-function filename for dielectric-head correction.

  • Type: string

  • Default: dielecfunc_out

(Driver) fn_eigocc_scf

SCF eigenvalue and occupation filename.

  • Type: string

  • Default: band_out

(Driver) fn_stru

Structure-data filename.

  • Type: string

  • Default: stru_out

(Driver) fn_vxc_scf

SCF exchange-correlation potential filename.

  • Type: string

  • Default: vxc_out

(API) gf_threshold

Threshold for real-space Green’s function in response function calculation.

  • Type: double

  • Default: 0.0

(Driver) i_state_high

Last state index for printed QP energies, exclusive.

  • Type: int

  • Default: 999999

Negative values enable automatic selection from a Fermi-level/gap energy window. The current upper bound is \(E_F + \frac{1}{2}E_g + 0.5 \text{Ha}\). Values larger than the number of states are truncated.

(Driver) i_state_low

First state index for printed QP energies, inclusive.

  • Type: int

  • Default: 0

Negative values enable automatic selection from a Fermi-level/gap energy window. The current lower bound is \(E_F - \frac{1}{2}E_g - 0.5 \text{Ha}\).

(API) ifreq_output_wc_end

Half-open Wc frequency output end index; negative means all remaining frequencies.

  • Type: int

  • Default: -1

  • Status: Experimental

(API) ifreq_output_wc_start

First zero-based Wc frequency index to output.

  • Type: int

  • Default: 0

  • Status: Experimental

(Driver) input_dir

Input directory to find and read the AO dataset.

  • Type: string

  • Default: ./

(API) istate_output_mat_end

Half-open KS-state end index when exporting KS-basis matrices; negative

  • Type: int

  • Default: -1

  • Status: Experimental

means all remaining states.

(API) istate_output_mat_start

First zero-based KS state included in both dimensions when exporting the

  • Type: int

  • Default: 0

  • Status: Experimental

KS-basis exact-exchange and correlation self-energy matrices. Matrix construction is unaffected.

(API) istate_ref_hedin_shift

Absolute zero-based reference state index for Hedin shifts.

  • Type: int

  • Default: -1

  • Status: Experimental

This index is not relative to i_state_low. A negative value applies a per-state shift; a nonnegative value uses that state at each k-point and spin channel for all states in the same channel.

(API) libri_chi0_collect_max_bytes

Maximum estimated local chi0 tensor bytes per LibRI collection chunk; 0 keeps one-shot collection.

  • Type: long long

  • Default: 0

  • Status: Experimental

(API) libri_chi0_collect_s0_chunk

Number of first-index atoms per LibRI chi0 collection chunk; 0 keeps one-shot collection.

  • Type: int

  • Default: 0

  • Status: Experimental

(API) libri_chi0_threshold_C

Threshold of real-space LRI triple coefficients to compute response function using LibRI.

  • Type: double

  • Default: 0.0

(API) libri_chi0_threshold_G

Threshold of real-space Green’s function to compute response function using LibRI.

  • Type: double

  • Default: 0.0

(API) libri_exx_threshold_C

Threshold of real-space LRI triple coefficients to compute exact exchange using LibRI.

  • Type: double

  • Default: 0.0

(API) libri_exx_threshold_D

Threshold of real-space density matrices to compute exact exchange using LibRI.

  • Type: double

  • Default: 0.0

(API) libri_exx_threshold_V

Threshold of real-space Coulomb matrices to compute exact exchange using LibRI.

  • Type: double

  • Default: 0.0

(API) libri_g0w0_threshold_C

Threshold of real-space LRI triple coefficients to compute GW correlation self-energy using LibRI.

  • Type: double

  • Default: 0.0

(API) libri_g0w0_threshold_G

Threshold of real-space Green’s function to compute GW correlation self-energy using LibRI.

  • Type: double

  • Default: 0.0

(API) libri_g0w0_threshold_Wc

Threshold of correlation screened Coulomb matrix to compute GW correlation self-energy using LibRI.

  • Type: double

  • Default: 0.0

(API) minimax_emax

Maximal transition energy when generating minimax grids.

  • Type: double

  • Default: -1.0

  • Status: Experimental

This option is introduced for test of supercell to fix the minimax frequency points

(API) minimax_emin

Minimal transition energy when generating minimax grids.

  • Type: double

  • Default: -1.0

  • Status: Experimental

When set negative (the default), the minimal energy is decided by the mean-field input and set to the energy gap. For now, it is suggested to manually set this option for gapless systems.

(API) minimax_regulation

Regulation for minimax grids generation.

  • Type: double

  • Default: 0.0

  • Status: Experimental

(API) n_bands_chi0

Maximal number of bands for computing response function.

  • Type: int

  • Default: -1 (< 0 for all bands)

  • Status: Experimental

(API) n_bands_sigc

Maximal number of bands for computing correlation self-energy.

  • Type: int

  • Default: -1 (< 0 for all bands)

  • Status: Experimental

(API) n_params_anacon

Number of parameters for analytic continuation.

  • Type: int

  • Default: -1 (uses all nfreq data)

(API) n_params_anacon_resample

Number of parameters for the source-grid Pade used to resample GW analytic continuation.

  • Type: int

  • Default: -1

  • Status: Experimental

Negative values use n_params_anacon. This parameter only works when resampling imaginary-frequency grids is enabled via a different frequency grids type (anacon_tfgrids_type) or number of grids points (anacon_nfreq) from the direct evaluation of \(\Sigma_c(i\omega)\).

(API) nfreq

Number of time/frequency points.

  • Type: int

  • Default: 6

(API) option_bvk_remap

BvK remapping convention for band interpolation.

  • Type: int

  • Default: 1

Available values:

  • 0: map each atom-pair R to one nearest BvK image.

  • 1: Wigner-Seitz remapping; split over all nearest BvK images at equal distance.

(API) option_dielect_func

Option of computing dielectric function on imaginary axis.

  • Type: int

  • Default: 0

Available values:

  • 0: use data directly read from input

  • 1: cubic-spline interpolation from input data

  • 2: dielectric model fitting from input data

  • 3: analytic head and wing correction

  • 4: analytic head correction

(API) option_qpe_solver

Quasi-particle equation solver option.

  • Type: int

  • Default: 0

Available values:

  • 0: damped residual-mixing self-consistent solver

  • 1: quasi-Newton self-consistent solver using the Pade derivative

  • 2: perturbative solver linearized at the mean-field energy

(API) output_abacus_gw_gf

Switch of outputting ABACUS-compatible GW Green’s-function data.

  • Type: bool

  • Default: false

  • Status: Experimental

(API) output_dir

Output directory for results.

  • Type: string

  • Default: librpa.d/

Set with librpa_set_output_dir() or librpa::Options::set_output_dir() so directory normalization is applied.

(Driver) output_energy_qp

Output quasiparticle energies for external BSE workflows.

  • Type: bool

  • Default: false

  • Status: Experimental

(API) output_exx_ks_mat_k

Output exact-exchange matrix in KS basis and k-space.

  • Type: bool

  • Default: false

  • Status: Experimental

(API) output_gw_sigc_ks_kf

Output KS-diagonal correlation self-energy in k-space, imaginary frequency domain.

  • Type: bool

  • Default: false

  • Status: Experimental

(API) output_gw_sigc_ks_mat_kf

Output correlation self-energy matrix in KS basis (k-space, imaginary frequency domain).

  • Type: bool

  • Default: false

  • Status: Experimental

(API) output_gw_sigc_mat_kf

Output correlation self-energy matrix in NAO basis (k-space, imaginary frequency domain).

  • Type: bool

  • Default: false

  • Status: Experimental

(API) output_gw_sigc_mat_rf

Output correlation self-energy matrix in NAO basis (real space, imaginary frequency domain).

  • Type: bool

  • Default: false

  • Status: Experimental

(API) output_gw_sigc_mat_rt

Output correlation self-energy matrix in NAO basis (real space, imaginary time domain).

  • Type: bool

  • Default: false

  • Status: Experimental

(Driver) output_gw_spec_func

Output GW spectral-function data.

  • Type: bool

  • Default: false

  • Status: Experimental

(Driver) output_hamgnn

Output GW energies for HamGNN machine-learning workflows.

  • Type: bool

  • Default: false

  • Status: Experimental

(Driver) output_level

Verbosity level for driver output.

  • Type: enum/string

  • Default: info (silent, critical, info, warn, debug)

It is parsed to the global API function set_output_level.

(API) output_wc_rf

Output Wc matrix in ABFs (real space, imaginary frequency domain).

  • Type: bool

  • Default: false

  • Status: Experimental

(API) output_wc_rf_atom_pair

Output Wc(R, iw) as atom-pair blocks instead of full matrices.

  • Type: bool

  • Default: true

  • Status: Experimental

(API) override_qpe_solver_nan

If enabled, keep the final unconverged QPE iterate instead of outputting NaN.

  • Type: bool

  • Default: false

  • Status: Diagnostic

(API) parallel_routing

Scheme of parallelization.

  • Type: enum/string

  • Default: LIBRPA_ROUTING_AUTO

Available driver values: auto, atompair, rtau, libri.

(Driver) prefix_coul_cut

Prefix of truncated Coulomb matrix files.

  • Type: string

  • Default: coulomb_cut

(Driver) prefix_coul_full

Prefix of bare Coulomb matrix files.

  • Type: string

  • Default: coulomb_mat

(Driver) prefix_eigvecs_scf

Prefix of SCF Kohn-Sham eigenvector files.

  • Type: string

  • Default: KS_eigenvector

(Driver) prefix_lri_coeff

Prefix of localized RI coefficient files.

  • Type: string

  • Default: Cs_data

(Driver) prefix_lri_coeff_shrink

Prefix of compressed-auxiliary-basis RI coefficient files.

  • Type: string

  • Default: Cs_shrinked_data

  • Status: Experimental

(Driver) prefix_shrink_sinvS

Prefix of shrink auxiliary-basis transform files.

  • Type: string

  • Default: shrink_sinvS_

  • Status: Experimental

(API) qpe_solver_damp_factor

Damping factor for quasi-particle equation solver updates.

  • Type: double

  • Default: 0.1

Used as the initial and maximum factor when adaptive damping is enabled.

(API) qpe_solver_n_iter_max

Maximum number of iterations for the quasi-particle equation solver; must be positive.

  • Type: int

  • Default: 10000

(API) qpe_solver_thres

Convergence threshold for the quasi-particle equation solver, in Hartree.

  • Type: double

  • Default: 1.0e-6

(API) read_sigc_mat_rf

Flag of reading NAO correlation self-energy matrix in real-space/frequency form.

  • Type: bool

  • Default: false

  • Status: Experimental

(API) replace_w_head

Flag of replacing head of screened interaction by macroscopic dielectric function.

  • Type: bool

  • Default: false

(API) restart_from_dir

Directory to read restart checkpoint files from. Empty uses output_dir.

  • Type: string

  • Default: empty

  • Status: Experimental

Set with librpa_set_restart_from_dir() or librpa::Options::set_restart_from_dir() so directory normalization is applied.

(API) rpa_headwing_body_start

First regular Coulomb-eigenbasis channel used by RPA head/wing correction.

  • Type: int

  • Default: 0

  • Status: Experimental

Zero uses channel 1 in the current analytic 3D/2D head/wing path.

(API) rpa_headwing_mode

RPA Gamma correction mode: “qavg” keeps the current head/wing q-average,

  • Type: string

  • Default: not documented

“head_only” replaces only the analytic head before the ordinary trace-log.

(API) sf_gf_omega_shift

Broadening/shift used for Green’s function in spectral-function output, in Hartree.

  • Type: double

  • Default: 0.01

  • Status: Experimental

(Driver) sf_omega_end

Ending frequency for spectral-function output.

  • Type: double

  • Default: 1.0

  • Status: Experimental

(Driver) sf_omega_start

Starting frequency for spectral-function output.

  • Type: double

  • Default: 0.0

  • Status: Experimental

(Driver) sf_omega_step

Frequency step for spectral-function output.

  • Type: double

  • Default: 0.1

  • Status: Experimental

(API) sf_sigc_omega_shift

Broadening/shift used for correlation self-energy in spectral-function output, in Hartree.

  • Type: double

  • Default: 0.01

  • Status: Experimental

(Driver) sf_state_end

Last state index for spectral-function output, exclusive.

  • Type: int

  • Default: -1

  • Status: Experimental

Negative values inherit i_state_high after QP state-range normalization.

(Driver) sf_state_start

First state index for spectral-function output, inclusive.

  • Type: int

  • Default: -1

  • Status: Experimental

Negative values inherit i_state_low after QP state-range normalization.

(API) sqrt_coulomb_threshold

Threshold of eigenvalues to perform square root of Coulomb matrices.

  • Type: double

  • Default: 0.0

(Driver) task

Task type.

  • Type: string

  • Default: required (rpa, g0w0, exx, exx_band)

(API) tfgrids_freq_interval

Frequency interval for even-spaced grids, in Hartree.

  • Type: double

  • Default: 0.0

(API) tfgrids_freq_max

Maximum frequency for grid generation, in Hartree.

  • Type: double

  • Default: 1000.0

(API) tfgrids_freq_min

Minimum frequency for grid generation, in Hartree.

  • Type: double

  • Default: 0.005

(API) tfgrids_time_interval

Time interval for even-spaced grids, in Hartree^-1.

  • Type: double

  • Default: 0.0

(API) tfgrids_time_min

Minimum time for grid generation, in Hartree^-1.

  • Type: double

  • Default: 0.005

(API) tfgrids_type

Type of time/frequency grids.

  • Type: enum/string

  • Default: LIBRPA_TFGRID_UNSET

Available driver values: GL, GC-I, GL-II, minimax, evenspaced, evenspaced_tf. The driver maps the unset API value to minimax.

(API) use_2d_dielectric

Switch of using 2D dielectric function.

  • Type: bool

  • Default: false

  • Status: Experimental

(API) use_cholesky_gw_wc

Flag of using cholesky factorization for computing Wc from chi0.

  • Type: bool

  • Default: false

  • Status: Experimental

(API) use_elpa_sqrt_coulomb

Flag of using ELPA for sqrt Coulomb matrix.

  • Type: bool

  • Default: Build-dependent: true with LIBRPA_USE_ELPA, false otherwise.

  • Status: Experimental

(API) use_fullcoul_eps

Switch of using full Coulomb interaction in \(\varepsilon = 1 - v \chi^0\)

  • Type: bool

  • Default: true

(API) use_fullcoul_exx

Switch of using full Coulomb interaction in exact-exchange operator.

  • Type: bool

  • Default: false

(API) use_fullcoul_wc

Switch of using full Coulomb interaction in \(W^c = (\varepsilon^{-1} - 1) v\).

  • Type: bool

  • Default: false

(API) use_gpu_replace_scalapack

Flag of using GPU for computing Wc from chi0.

  • Type: bool

  • Default: Build-dependent: true when a CUDA/HIP build detects a device, false otherwise.

  • Status: Experimental

(API) use_hedin_shift

Compute and apply Hedin shifts in QP solves.

  • Type: bool

  • Default: false

  • Status: Experimental

\[ \Delta_{rks} = \mathrm{Re}\,\Sigma_c(\epsilon_{rks} - E_F) + \Sigma_x(rks) - v_{xc}(rks) \]

and evaluate the correlation self-energy in QP solves at $\( \Sigma_c(E - E_F - \Delta_{rks}). \)$

(API) use_kpara_scf_eigvec

Flag to specify parallel distribution of eigenvectors of SCF starting point.

  • Type: bool

  • Default: false

  • Status: Experimental

(Driver) use_pyatb

Use PyATB mean-field data for dielectric head/wing calculations.

  • Type: bool

  • Default: false

  • Status: Experimental

(API) use_qpe_adaptive_damp

If enabled, adapt the QPE damping factor during the solve.

  • Type: bool

  • Default: false

(API) use_qpe_legacy_update

Test-only switch to recover the legacy non-adaptive QPE update.

  • Type: bool

  • Default: false

  • Status: Diagnostic

Ignored when adaptive damping is enabled.

(API) use_scalapack_ecrpa

Flag to control whether to use ScaLAPACK to compute RPA correlation energy.

  • Type: bool

  • Default: true

(API) use_scalapack_gw_wc

Flag of using ScaLAPACK for computing Wc from chi0.

  • Type: bool

  • Default: true

(API) use_shrink_abfs

Flag to use a compressed auxiliary basis.

  • Type: bool

  • Default: false

  • Status: Experimental

(API) use_shrink_chi

Flag to compress response function using shrinked basis.

  • Type: bool

  • Default: true

  • Status: Experimental

(Driver) use_spinor_wfc

Read wavefunctions in spinor format.

  • Type: bool

  • Default: false

(API) use_symmetry_exx

Switch of using the symmetry context in exact-exchange paths.

  • Type: bool

  • Default: false

  • Status: Experimental

(API) use_symmetry_gw

Switch of using the symmetry context in GW paths.

  • Type: bool

  • Default: false

  • Status: Experimental

(API) use_symmetry_rpa

Switch of using the symmetry context in RPA/chi0 paths.

  • Type: bool

  • Default: false

  • Status: Experimental

(Driver) version_coul_reader

Coulomb reader-version selector.

  • Type: int

  • Default: -1

  • Status: Experimental

Available values:

  • -1: auto-detect from the first file matching the prefix.

  • 0: legacy text or binary rectangular matrix blocks.

  • 1: binary v1 files with atom-pair blocks.

(Driver) version_lri_reader

Local RI coefficient reader-version selector.

  • Type: int

  • Default: -1

  • Status: Experimental

Available values:

  • -1: auto-detect from the first file matching the prefix.

  • 0: legacy text or legacy binary files.

  • 1: binary v1 files with a block table and payload offsets.

(API) vq_threshold

Threshold for real-space Coulomb matrices.

  • Type: double

  • Default: 0.0