basis
This keyword defines the basis functions for quantum chemical calculations and allows flexible definition of basis sets.
Using Built-in Basis Sets
Many important basis
sets are provided in the basis directory located in the same path as Qbics. The files are named after the well-known basis sets in the computational chemistry community. For example, basis/cc-pvdz
contains the cc-pVDZ basis set. All file names use lowercase letters.
To use them, simply specify the basis set name. It is case-insensitive. For example, to apply def2-TZVP to all atoms:
Qbics extracts the basis set information from the file located at basis/def2-tzvp
.
Explicit Basis Set Definitions
You can also explicitly define your own basis sets. For example, if your system contains two elements, H and Li, their basis sets can be defined as follows:
basis
H 0
S 3 1.00
13.0107010 0.19682158E-01
1.9622572 0.13796524
0.4445379 0.47831935
S 1 1.00
0.12194962 1.0000000
P 1 1.00
0.8000000 1.0000000
****
Li 0
S 5 1.00
266.27785516 0.64920150325E-02
40.069783447 0.47747863215E-01
9.0559944389 0.20268796111
2.4503009051 0.48606574817
0.72209571855 0.43626977955
S 1 1.00
0.52810884721E-01 1.0000000
S 1 1.00
0.20960948798E-01 1.0000000
P 2 1.00
1.4500000 0.2586000
0.3000000 1.0000000
P 1 1.00
0.0820000 1.0000000
****
end
The analytical expression of a Gaussian basis function is:
$$\chi(\mathbf{r}) = A_{L}(\mathbf{r})\sum_{k=1}^{K} C_k e^{-\alpha_k r_A^2}$$
-
Here,
- \( A_L(\mathbf{r}) \) is the angular part with angular momentum quantum number \( L \).
- \( K \) is the contraction degree.
- \( \alpha_k \) is the exponent.
- \( C_k \) is the contraction coefficient.
- \( \mathbf{A} \) is the atom position. .
The basis set definition follows the standard Gaussian94 format:
- Each atom's basis set definition ends with four asterisks (
****
). - The definition begins with the element name (e.g.,
Li
) followed by a0
. Currently, the0
has no functional meaning. - Each GTO shell is then defined, starting with three values:
- The angular momentum \( L \), which can be any non-negative integer (e.g., 0, 5) or one of the standard letter notations: S, P, D, F, G, H, or I.
- The contraction degree \( K \), which must be a positive integer.
- A real number, currently unused.
- Following that, each line specifies two real numbers: the exponent \( \alpha_k \) and the contraction coefficient \( C_k \) of each primitive GTO to be contracted.
For more details on basis function expressions, please refer to basinfo.
Basis sets in Gaussian94 format can be obtained from several websites. However, be sure to replace D
with E
, as D
is not recognized by Qbics.
Using Self-Defined Basis Set Files
You can also store your custom basis set definitions in a file, such as /home/zhang/userdef/my-own-basis
. Qbics will automatically read the file if you provide its full path.
The format can be found in the basis
directory.
Defining Different Basis Sets for Different Elements
If you want to assign different basis sets to different elements, start with a line containing the keyword element
.
Then, list each element followed by its corresponding basis set file name, one per line.
For example:
basis
element # This indicates that Qbics will assign basis set element by element.
O aug-cc-pvtz
C cc-pvtz
N /home/zhang/userdef/my-own-basis
end
Theoretical Background
Guidelines for Choosing a Basis Set
- Avoid outdated basis sets: Basis sets like STO-nG or those without polarization functions (e.g.,
6-31G
) are rarely used today—unless you have a specific reason and know exactly what you're doing. - Use diffuse functions for delocalized systems: For systems with strongly delocalized electrons, choose diffuse basis sets such as
6-31+G(d)
oraug-cc-pVDZ
. - Consider core-related effects: To capture core excitations or strong core-valence interactions, use basis sets like (aug-)cc-pwCVnZ.
- Aim for accuracy with triple-zeta or higher: For reliable energy calculations, use at least triple-zeta basis sets such as
6-311g(d)
,def2-TZVP
orcc-pVTZ
. - Prefer pseudopotentials for heavy atoms: In non-relativistic calculations, it's better to use basis sets with pseudopotentials rather than all-electron ones. For instance, use
cc-pVDZ-PP
for Cu instead ofcc-pVDZ
.
Karlsruhe Basis Sets
The Karlsruhe basis sets (def2-
series) are a versatile and widely used family in quantum chemistry, known for their balance between accuracy and computational efficiency.
They are especially suitable for systems involving heavy elements.
For elements with atomic number ≥ Rb, the def2-
basis sets include effective core potentials (pseudopotentials),
which significantly reduce computational cost while preserving high accuracy in valence electron properties.
These basis sets for elements ≥ Rb must be used together with the corresponding def2-ECP
pseudopotentials! See the example below.
In Qbics, the following Karlsruhe basis sets are available:
Basis set | Applied to |
---|---|
def2-svp |
H-Xe, Cs-Ba, Hf-Rn, La-Lu |
def2-tzvp |
H-Xe, Cs-Ba, Hf-Rn, La-Lu |
def2-tzvpp |
H-Xe, Cs-Ba, Hf-Rn, La-Lu |
def2-qzvp |
H-Xe, Cs-Ba, Hf-Rn, La-Lu |
def2-qzvpp |
H-Xe, Cs-Ba, Hf-Rn, La-Lu |
def2-svpd |
H-Xe, Cs-Ba, Hf-Rn, La |
def2-tzvpd |
H-Xe, Cs-Ba, Hf-Rn, La |
def2-tzvppd |
H-Xe, Cs-Ba, Hf-Rn, La |
def2-qzvpd |
H-Xe, Cs-Ba, Hf-Rn, La |
def2-qzvppd |
H-Xe, Cs-Ba, Hf-Rn, La |
Here:
pp
: Adds additional polarization functions to both heavy atoms and hydrogen atoms.pd
: Adds diffuse functions to both heavy atoms and hydrogen atoms.ppd
: Adds both diffuse functions and additional polarization functions to both heavy atoms and hydrogen atoms.
Dunning Correlation-Consistent Basis Sets
Dunning correlation-consistent basis sets are high-precision basis sets widely used in quantum chemistry, especially for systems with significant electron correlation.
These basis sets are designed to ensure consistent treatment of electron correlation across different levels of precision, providing reliable and accurate results.
They are particularly recommended for high-accuracy calculations and for studying excited states.
In Qbics, the following Dunning correlation-consistent basis sets are available:
Basis set | Applied to |
---|---|
cc-pVDZ |
H-He, Li-Ne, Na-Ar, Ca-Kr |
cc-pVTZ |
H-He, Li-Ne, Na-Ar, Ca-Kr |
cc-pVQZ |
H-He, Li-Ne, Na-Ar, Ca-Kr |
cc-pCVDZ |
Li-Ne, Na-Ar, Ca |
cc-pCVTZ |
Li-Ne, Na-Ar, Ca |
cc-pCVQZ |
Li-Ne, Na-Ar, Ca |
cc-pwCVDZ |
B-Ne, Al-Ar |
cc-pWCVTZ |
B-Ne, Al-Ar, Sc-Zn |
cc-pWCVQZ |
B-Ne, Al-Ar, Sc-Zn, Br |
aug-cc-pVDZ |
H-Ar, Sc-Kr |
aug-cc-pVTZ |
H-Ar, Sc-Kr |
aug-cc-pVQZ |
H-Ar, Sc-Kr |
aug-cc-pCVDZ |
Li-Ne, Na-Ar |
aug-cc-pCVTZ |
Li-Ne, Na-Ar |
aug-cc-pCVQZ |
Li-Ne, Na-Ar |
aug-cc-pWCVDZ |
B-Ne, Al-Ar |
aug-cc-pWCVTZ |
B-Ne, Al-Ar |
aug-cc-pWCVQZ |
B-Ne, Al-Ar |
Here:
aug
: Adds diffuse functions to both heavy atoms and hydrogen atoms.c
: Adds tight basis functions to describe core electrons.wc
: Adds even tighter core functions for improved treatment of core electron correlation.
Dunning Correlation-Consistent Basis Sets with Pseudopotentials
Dunning correlation-consistent basis sets with pseudopotentials simplify calculations for heavy elements by replacing core electrons with pseudopotentials. This approach significantly reduces computational cost while maintaining high accuracy for valence electron interactions.
These basis sets must be used together with the corresponding cc-ECP
pseudopotentials. See the example below.
In Qbics, the following Dunning correlation-consistent basis sets with pseudopotentials are available:
Basis set | Applied to |
---|---|
cc-pVDZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
cc-pVTZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
cc-pVQZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
cc-pWCVDZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
cc-pWCVTZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
cc-pWCVQZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
aug-cc-pVDZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
aug-cc-pVTZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
aug-cc-pVQZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
aug-cc-pWCVDZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
aug-cc-pWCVTZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
aug-cc-pWCVQZ-PP |
Cu-Kr, Y-Xe, Hf-Rn |
Pople Basis Sets
Pople basis sets are widely used in quantum chemical calculations to describe the electronic structure of molecules. They offer an effective balance between computational efficiency and accuracy, particularly for molecules containing elements from hydrogen (H) to calcium (Ca).
The following Pople basis sets are available in Qbics:
Basis set | Applied to |
---|---|
3-21G |
H-Xe, Cs |
4-31G |
H-He, B-Ne, P-Cl |
6-31G |
H-Zn |
6-31G(d) , 6-31G(d,p) |
H-Kr |
6-31G(2df,p) , 6-31G(3df,3pd) |
H-Ar |
6-31+G , 6-31+G(d) , 6-31+G(d,p) |
H-Ar |
6-31++G , 6-31++G(d) , 6-31++G(d,p) |
H-Ar |
6-311G , 6-311G(d) , 6-311G(d,p) |
H-Ar, K-Ca, Ga-Kr, I |
6-311G(2df,2pd) |
H-Ne, K-Ca |
6-311+G , 6-311+G(d) , 6-311+G(d,p) , 6-311+G(2d,p) |
H-Ar, K-Ca |
6-311++G , 6-311++G(d) , 6-311++G(d,p) , 6-311++G(2d,2p) |
H, Li-Ar, K-Ca |
6-311++G(3df,3pd) |
H, Li-Ar |
Here:
(d)
: Adds one set of d functions to heavy atoms.(d,p)
: Adds one set of d functions to heavy atoms and one set of p functions to hydrogen atoms.+
: Adds s and p diffuse functions to heavy atoms.++
: Adds s and p diffuse functions to heavy atoms and s diffuse functions to hydrogen atoms.(2df,p)
: Adds two sets of d functions and one set of f functions to heavy atoms, and two sets of p functions to hydrogen atoms.
STO-nG Basis Sets
In STO-nG basis sets, each atomic orbital is represented using a single-zeta basis, where n Gaussian functions approximate a Slater-type orbital. This approach offers a compact and computationally efficient representation of atomic wavefunctions.
The following STO-nG basis sets are available in Qbics:
Basis set | Applied to |
---|---|
sto-2g , sto-3g , sto-4g , sto-5g , sto-6g |
H-Xe |
Los Alamos National Laboratory Pseudopotentials
The Los Alamos National Laboratory (LANL) basis sets are designed to simplify quantum chemistry calculations involving heavy elements. For all elements with atomic number ≥ 11 (i.e., sodium and heavier), effective core potentials (pseudopotentials) are used to replace core electrons, reducing computational cost while maintaining accuracy.
For elements with atomic number ≥ 11 (i.e., sodium and heavier), these basis sets must be used together with the corresponding LANL-ECP
pseudopotentials. See the example below for proper usage.
The following LANL
basis sets are available in Qbics:
Basis set | Applied to |
---|---|
LANL2DZ |
H, Li-Xe, Cs-Bi, La, U-Pu |
LANL2DZdp |
H, C-F, Si-Cl, Ge-Br, Sn-I, Pb-Bi |
LANL08 |
Na-Xe, Cs-Bi, La |
LANL08+ |
Sc-Zn |
LANL08(d) |
Si-Cl, Ge-Br, Sn-I, Pb-Bi |
LANL08(f) |
Sc-Cu, Y-Ag, Hf-Au, La |
LANL2TZ |
Sc-Zn, Y-Cd, Hf-Hg, La |
LANL2TZ+ |
Sc-Zn |
Here:
+
: Adds d diffuse functions.d
orf
: Adds d or f polarization functions.
Input Examples
Some examples are also provided in the pseudopotential section.
Example: CuH with cc-pVDZ and cc-pVDZ-PP
Below is a calculation example for CuH
using both an all-electron correlation-consistent basis set and a correlation-consistent basis set with a pseudopotential.
The first example uses the all-electron basis set:
# All electrons for CuH.
basis
cc-pvdz
end
mol
Cu -0.00000000 -0.00000000 -0.23939021
H 0.00000000 0.00000000 1.23939021
end
task
opt b3lyp
end
The output is shown below:
The number of electrons is 30, and the optimized bond length is 1.48 Å.
Now, we use the pseudopotential version:
# Pseudopotentials for Cu, all-electrons for H.
basis
element
Cu cc-pvdz-pp
H cc-pvdz
end
pseudopotential
cc-ecp
end
mol
Cu -0.00000000 -0.00000000 -0.23939021
H 0.00000000 0.00000000 1.23939021
end
task
opt b3lyp
end
The output is shown below:
The number of electrons is 20; 10 core electrons of Cu (corresponding to the Ne core) are replaced by a pseudopotential. The optimized bond length is 1.46 Å.
Example: AuH with Karlsruhe Basis Set
This example demonstrates how to calculate AuH using a Karlsruhe
basis set:
basis
def2-TZVP
end
pseudopotential
def2-ecp # If there are elements >= Rb, this must be used!
end
mol
Au 0. 0. 0.
H 0. 0. 1.5
end
task
opt b3lyp
end
Example: AgI with LANL Basis Set
This example demonstrates how to optimize the structure of AgI using a LANL
basis set:
basis
lanl2dz
end
pseudopotential
lanl-ecp # For LANL basis set, this should always be set.
end
mol
Ag 0. 0. 0.
I 0. 0. 1.5
end
task
opt b3lyp
end
The output is as follows:
The number of electrons is 26, meaning that 74 electrons were replaced by pseudopotentials. The optimized bond length is 2.65 Å.
The number of electrons is 26, so 74 electrons were replaced by pseudopotential. The optimized structure has a bond length of 2.65 Angstrom.