CHEMPS2(1)
โจ CHEMPS2 โจ โ the manual, but make it make sense ๐
bestie, you've landed on the chemps2(1) manual page, and I'm about to walk you through it like we're in the group chat and you need to pass this exam. No cap. ๐
๐ธ NAME ๐ธ
chemps2 โ spin-adapted DMRG for ab initio quantum chemistry ๐ง
๐ SYNOPSIS ๐
chemps2 [OPTION] ...
That's it. That's the whole vibe. Options, in, out, slay. โจ
๐ฆ DESCRIPTION ๐ฆ
chemps2 is a scientific code that does spin-adapted density matrix renormalization group (DMRG) calculations for ab initio quantum chemistry fcidump files. Okay so basically โ this method lets you get numerical accuracy in active spaces that are way beyond what full configuration interaction (FCI) can handle. It's giving "I can do what FCI can't." ๐
And it can return the active space 2-, 3-, and 4-RDM. Which means it's literally the perfect thing to swap in as the FCI solver inside complete active space self consistent field (CASSCF) and complete active space second order perturbation theory (CASPT2) methods. Main character energy fr fr.
The link to the user manual lives down in the SEE ALSO section, bestie โ go look, iykyk. ๐ซถ
๐ OPTIONS ๐
๐ซ SYMMETRY ๐ซ
The conventions for the symmetry group and irrep numbers are the same as psi4, periodt:
| 0 1 2 3 4 5 6 7
---------|-----------------------------------------
0 : c1 | A
1 : ci | Ag Au
2 : c2 | A B
3 : cs | Ap App
4 : d2 | A B1 B2 B3
5 : c2v | A1 A2 B1 B2
6 : c2h | Ag Bg Au Bu
7 : d2h | Ag B1g B2g B3g Au B1u B2u B3u
โญ ARGUMENTS โญ
-f,--file=inputfileโ tell it which input file to read. ๐-v,--versionโ prints the version ofchemps2. ๐ท๏ธ-h,--helpโ shows you this help. ๐
๐ INPUT FILE ๐
FCIDUMP = /path/to/fcidumpโ your FCIDUMP path. โ ๏ธ Heads up bestie: the orbital irreps in the FCIDUMP file follow the molpro convention!GROUP = intโ set the psi4 symmetry group number[0-7]that matches your FCIDUMP file. ๐ขMULTIPLICITY = intโ overwrite the spin multiplicity[2S+1]from the FCIDUMP file. โ๏ธNELECTRONS = intโ overwrite the number of electrons from the FCIDUMP file. โกIRREP = intโ overwrite the target wavefunction irrep[0-7]from the FCIDUMP file (psi4 convention). ๐ฏEXCITATION = intโ picks which excitation to calculate. If it's zero, you get the ground state (default0). ๐ฑSWEEP_STATES = int,int,intโ sets the number of reduced renormalized basis states for the successive sweep instructions (positive integers). ๐ฅSWEEP_ENERGY_CONV = flt,flt,fltโ sets the energy convergence that stops the successive sweep instructions (positive floats). ๐SWEEP_MAX_SWEEPS = int,int,intโ sets the max number of sweeps for the successive sweep instructions (positive integers). ๐SWEEP_NOISE_PREFAC = flt,flt,fltโ sets the noise prefactors for the successive sweep instructions (floats). ๐ฃSWEEP_DVDSON_RTOL = flt,flt,fltโ sets the residual norm tolerance for the Davidson algorithm for the successive sweep instructions (positive floats). ๐งฎNOCC = int,int,int,intโ sets the number of occupied (external core) orbitals per irrep (psi4 irrep ordering). ๐ชNACT = int,int,int,intโ sets the number of active orbitals per irrep (psi4 irrep ordering). โ๏ธNVIR = int,int,int,intโ sets the number of virtual (secondary) orbitals per irrep (psi4 irrep ordering). ๐ปMOLCAS_2RDM = /path/to/2rdm/outputโ when all orbitals are active orbitals, write out the 2-RDM in HDF5 format when specified (default unspecified). ๐MOLCAS_3RDM = /path/to/3rdm/outputโ when all orbitals are active orbitals, write out the 3-RDM in HDF5 format when specified (default unspecified). ๐MOLCAS_F4RDM = /path/to/f4rdm/outputโ when all orbitals are active orbitals, write out the 4-RDM contracted with the Fock operator in HDF5 format when specified (default unspecified). ๐MOLCAS_FOCK = /path/to/fock/inputโ when all orbitals are active orbitals, read in this file containing the Fock operator (default unspecified). ๐ฅMOLCAS_FIEDLER = boolโ when all orbitals are active orbitals, switch on orbital reordering based on the Fiedler vector of the exchange matrix (TRUEorFALSE; defaultFALSE). ๐ธ๏ธMOLCAS_ORDER = int,int,int,intโ when all orbitals are active orbitals, provide a custom orbital reordering (default unspecified). โ ๏ธ When specified, this option takes precedence overMOLCAS_FIEDLER.MOLCAS_OCC = int,int,int,intโ when all orbitals are active orbitals, set initial guess to an ROHF determinant (default unspecified). The occupancy integers should be0,1or2and the orbital ordering convention is FCIDUMP. ๐งฉMOLCAS_MPS = boolโ when all orbitals are active orbitals, switch on the creation of MPS checkpoints (TRUEorFALSE; defaultFALSE). ๐พMOLCAS_STATE_AVG = boolโ switch on writing to disk of N-RDMs of intermediate roots (TRUEorFALSE; defaultFALSE). ๐ฟSCF_STATE_AVG = boolโ switch on state-averaging (TRUEorFALSE; defaultFALSE). ๐๏ธSCF_DIIS_THR = fltโ switch on DIIS when the update norm is smaller than the given threshold (default0.0). ๐SCF_GRAD_THR = fltโ gradient norm threshold for convergence of the DMRG-SCF orbital rotations (default1e-6). ๐SCF_MAX_ITER = intโ sets the maximum number of DMRG-SCF iterations (default100). ๐SCF_ACTIVE_SPACE = charโ rotate the active space orbitals: no additional rotations (I), natural orbitals (N), localized and ordered orbitals (L), or ordered orbitals only (F) (defaultI). ๐SCF_MOLDEN = /path/to/moldenโ rotate the FCIDUMP orbitals to the DMRG-SCF occupied (external core), active, and virtual (secondary) orbitals. ๐จCASPT2_CALC = boolโ switch on the CASPT2 calculation (TRUEorFALSE; defaultFALSE). ๐งชCASPT2_ORBS = charโ perform the DMRG calculation for the 4-RDM in theSCF_ACTIVE_SPACEorbitals (A) or in the pseudocanonical orbitals (P) (defaultA). ๐ฐ๏ธCASPT2_IPEA = fltโ ionization potential - electron affinity shift (default0.0). โCASPT2_IMAG = fltโ imaginary level shift (default0.0). ๐ซ๏ธCASPT2_CHECKPT = boolโ create checkpoints to continue the CASPT2 4-RDM calculation over multiple runs (TRUEorFALSE; defaultFALSE). โธ๏ธCASPT2_CUMUL = boolโ use a cumulant approximation for the CASPT2 4-RDM and overwriteCASPT2_CHECKPTtoFALSE(TRUEorFALSE; defaultFALSE). ๐PRINT_CORR = boolโ print correlation functions (TRUEorFALSE; defaultFALSE). ๐จ๏ธTMP_FOLDER = /path/to/tmp/folderโ overwrite the tmp folder for the renormalized operators. With MPI, separate folders per process can (but do not have to) be used (default/tmp). ๐๏ธ
๐ EXAMPLE ๐
Bestie, here's the whole run, verbatim, no edits:
$ cd /tmp
$ wget 'https://github.com/SebWouters/CheMPS2/raw/master/tests/matrixelements/N2.CCPVDZ.FCIDUMP'
$ ls -al N2.CCPVDZ.FCIDUMP
$ wget 'https://github.com/SebWouters/CheMPS2/raw/master/tests/test14.input'
$ sed -i "s/path\/to/tmp/" test14.input
$ cat test14.input
$ chemps2 --file=test14.input
Obsessed with how clean that is. ๐ธ
๐ AUTHOR ๐
Written by Sebastian Wouters <sebastianwouters@gmail.com> ๐
๐ BUGS ๐
Reporting bugs: https://github.com/sebwouters/CheMPS2/issues โ pls do report them, not me ignoring them ๐
๐ฅ SEE ALSO ๐ฅ
User manual: http://sebwouters.github.io/CheMPS2/index.html โ the link from the DESCRIPTION, right where I promised it'd be ๐ซถ
๐ COPYRIGHT ๐
CheMPS2: a spin-adapted implementation of DMRG for ab initio quantum chemistry Copyright (C) 2013-2021 Sebastian Wouters
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
okay that's the whole page bestie, you ate that ๐
This was chemps2 version 1.8.12, dated 9 March 2022 โ go be iconic with your DMRG, ily, bye! ๐โจ๐ฆ
๐ฆ where this page comes from
- debian bookworm: chemps2 1.8.12-1+b1 ยท GPL-2.0-or-later
- ubuntu noble: chemps2 1.8.12-3.1build2 ยท GPL-2.0-or-later
- ubuntu questing: chemps2 1.8.12-4
- ubuntu resolute: chemps2 1.8.12-5build1 ยท GPL-2.0-or-later
- ubuntu stonking: chemps2 1.8.12-5build2 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms