-
Notifications
You must be signed in to change notification settings - Fork 150
Expand file tree
/
Copy patho2_selci.py
More file actions
executable file
·66 lines (56 loc) · 1.72 KB
/
o2_selci.py
File metadata and controls
executable file
·66 lines (56 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#! /usr/bin/env python3
from nexus import settings,job,run_project
from nexus import generate_physical_system
from nexus import generate_quantum_package
# note: you must source the QP config file before running this script
# source /home/ubuntu/apps/qp2/quantum_package.rc
settings(
results = '',
status_only = 0,
generate_only = 0,
sleep = 3,
machine = 'ws16',
qprc = '/home/ubuntu/apps/qp2/quantum_package.rc',
)
# define run details
qp_job = job(cores=16,threads=16)
# read in structure for oxygen dimer
dimer = generate_physical_system(
structure = './O2.xyz',
net_spin = 2,
)
# path, job, system details are shared across runs
qp_shared = dict(
path = 'O_dimer_selected_CI',
job = qp_job,
system = dimer,
prefix = 'fci', # single shared ezfio, rsync if different
)
# run Hartree-Fock
scf = generate_quantum_package(
identifier = 'scf',
run_type = 'scf',
ao_basis = 'aug-cc-pvdz',
io_ao_two_e_integrals = 'Write', # write 2e integrals
four_idx_transform = True, # compute 2e integrals
**qp_shared
)
# initial selected CI run
fci0 = generate_quantum_package(
identifier = 'fci0',
run_type = 'fci',
n_det_max = 5000, # max determinant count
save_natorb = True, # write natural orbitals
four_idx_transform = True, # compute 2e integrals
dependencies = (scf,'other'),
**qp_shared
)
# final selected CI based on natural orbitals
fci = generate_quantum_package(
identifier = 'fci',
run_type = 'fci',
n_det_max = 5000,
dependencies = (fci0,'other'),
**qp_shared
)
run_project()