Page 5 of 5

Re: molden2qmc

Posted: Sat Jun 24, 2017 5:48 am
by Vladimir_Konjkov
In 3.0.1 version of molden2qmc QChem is supported.

For QChem only spherical-harmonic angular functions are supported. You should checkout PURECART variable which handle the angular form of the basis functions, default value is applicable.

To get molden output in QChem run it with the following parameters:

MOLDEN_FORMAT true
PRINT_ORBITALS 2000 # or more than number of orbitals

After that extract molden data from output file with sed utility:

pat1="======= MOLDEN-FORMATTED INPUT FILE FOLLOWS ======="
pat2="======= END OF MOLDEN-FORMATTED INPUT FILE ======="
sed -n "/$(pat1)/,/$(pat2)/{/$(pat1)/!{/$(pat2)/!p}}" qchem_out > mol.molden

and than run molden2qmc with code 7
molden2qmc.py 7 mol.molden

molden2qmc now is none-interactive and can be used in a batch execution.

usage: molden2qmc.py [-h] [--pseudoatoms PSEUDOATOMS] code input_file [output_file]

This script converts a MOLDEN file to a CASINO gwfn.data file.

positional arguments:
code number corresponding to the quantum chemistry code used to produce this MOLDEN file:
0 -- TURBOMOLE
1 -- PSI4
2 -- CFOUR 2.0beta
3 -- ORCA 3.X - 4.X
4 -- DALTON2013
5 -- MOLPRO
6 -- NWCHEM
7 -- QCHEM 4.X
input_file filename with path to MOLDEN file
output_file filename with path to output file

optional arguments:
-h, --help show this help message and exit
--pseudoatoms PSEUDOATOMS
This script did not detect if a pseudopotential was used.
Please enter the list of atoms for those pseudopotential was used:
none = pseudopotential was not used for any atoms in this calculation.
all = pseudopotential was used for all atoms in this calculation.
white space separated numbers = number of pseudoatoms (started from 1).

Re: molden2qmc

Posted: Mon Sep 04, 2017 10:38 am
by Vladimir_Konjkov
Hello all

My plan is to add multi-determinant expansion into the molden2qmc script.

What is the best practice of doing this?

Imagine I carried out some sort of multi-reference calculation like CASSCF and put determinants coefficients into the MULTIDETERMINANT INFORMATION section of the gwfn.data file.

Is this the only and best way to provide multi-determinant data to CASINO program?

Is it possible to optimize this determinants coefficients with casl JASTROW format using opt_det_coeff : T

What is the best method to define the MULTIDETERMINANT INFORMATION if seeing the perspective of the development of the CASINO program.

I will be grateful for any advice.

Vladimir.

Re: molden2qmc

Posted: Sat Sep 03, 2022 4:51 pm
by Vladimir_Konjkov
Greetings to all who use the Casino. I found an issue in the molden2qmc script that shows up in Python version 3.10. Corrections in the next PR - https://github.com/Konjkov/molden2qmc/c ... 0778cd177d
Sincerely, Vladimir

Re: molden2qmc

Posted: Sat Sep 24, 2022 8:06 pm
by Neil Drummond
Thanks very much for maintaining molden2qmc!

Re: molden2qmc

Posted: Sun Sep 25, 2022 12:32 pm
by Vladimir_Konjkov
Hello Neil

I also use this script because I took your CASINO source code with comments and partially rewrote it to python3 + numpy + numba
and although it works 3-7 times slower than on Fortran, it is enough to compare results and testing.

Best Vladimir

Re: molden2qmc

Posted: Sat Mar 16, 2024 3:45 pm
by Vladimir_Konjkov
A good way to check if the orbitals have been parsed correctly is to compute the molecular orbital overlap matrix, which should give you the identity matrix. The overlap matrix is also very cheap to compute, even for large systems. I think it's worth doing this check.