2019-01-25 11:39:31 +01:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
|
|
|
source $QP_ROOT/tests/bats/common.bats.sh
|
|
|
|
source $QP_ROOT/quantum_package.rc
|
|
|
|
|
|
|
|
function run() {
|
|
|
|
thresh=$2
|
|
|
|
test_exe fci || skip
|
|
|
|
qp edit --check
|
|
|
|
qp set perturbation do_pt2 False
|
|
|
|
qp set determinants n_det_max 8000
|
|
|
|
qp set determinants n_states 1
|
2023-06-10 11:56:07 +02:00
|
|
|
qp set davidson_keywords threshold_davidson 1.e-10
|
|
|
|
qp set davidson_keywords n_states_diag 8
|
2020-11-11 19:13:04 +01:00
|
|
|
qp run fci
|
2019-01-25 11:39:31 +01:00
|
|
|
energy1="$(ezfio get fci energy | tr '[]' ' ' | cut -d ',' -f 1)"
|
|
|
|
eq $energy1 $1 $thresh
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-02-05 22:15:29 +01:00
|
|
|
function run_stoch() {
|
|
|
|
thresh=$2
|
|
|
|
test_exe fci || skip
|
|
|
|
qp set perturbation do_pt2 True
|
2019-10-24 13:55:38 +02:00
|
|
|
qp set determinants n_det_max $3
|
2019-02-05 22:15:29 +01:00
|
|
|
qp set determinants n_states 1
|
2023-06-10 11:56:07 +02:00
|
|
|
qp set davidson_keywords threshold_davidson 1.e-10
|
|
|
|
qp set davidson_keywords n_states_diag 1
|
2020-11-11 19:13:04 +01:00
|
|
|
qp run fci
|
2019-02-05 22:15:29 +01:00
|
|
|
energy1="$(ezfio get fci energy_pt2 | tr '[]' ' ' | cut -d ',' -f 1)"
|
|
|
|
eq $energy1 $1 $thresh
|
|
|
|
}
|
2019-01-25 11:39:31 +01:00
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "H2_1" { # 1s
|
|
|
|
qp set_file h2_1.ezfio
|
|
|
|
qp set perturbation pt2_max 0.
|
|
|
|
run_stoch -1.06415255 1.e-8 10000
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "H2_3" { # 1s
|
|
|
|
qp set_file h2_3.ezfio
|
|
|
|
qp set perturbation pt2_max 0.
|
|
|
|
run_stoch -0.96029881 1.e-8 10000
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "H3_2" { # 3s
|
|
|
|
qp set_file h3_2.ezfio
|
|
|
|
qp set perturbation pt2_max 0.
|
|
|
|
run_stoch -1.61003132 1.e-8 10000
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "H3_4" { # 2s
|
|
|
|
qp set_file h3_4.ezfio
|
|
|
|
qp set perturbation pt2_max 0.
|
|
|
|
run_stoch -1.02434843 1.e-8 10000
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "H4_1" { # 13s
|
|
|
|
qp set_file h4_1.ezfio
|
|
|
|
qp set perturbation pt2_max 0.
|
|
|
|
run_stoch -2.01675062 1.e-8 10000
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "H4_3" { # 10s
|
|
|
|
qp set_file h4_3.ezfio
|
|
|
|
qp set perturbation pt2_max 0.
|
|
|
|
run_stoch -1.95927626 1.e-8 10000
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "H4_5" { # 3s
|
|
|
|
qp set_file h4_5.ezfio
|
|
|
|
qp set perturbation pt2_max 0.
|
|
|
|
run_stoch -1.25852765 1.e-8 10000
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "B-B" { # 10s
|
2019-10-24 13:55:38 +02:00
|
|
|
qp set_file b2_stretched.ezfio
|
|
|
|
qp set determinants n_det_max 10000
|
|
|
|
qp set_frozen_core
|
|
|
|
run_stoch -49.14103054419 3.e-4 10000
|
|
|
|
}
|
2019-01-25 11:39:31 +01:00
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "NH3" { # 8s
|
2019-01-25 11:39:31 +01:00
|
|
|
qp set_file nh3.ezfio
|
|
|
|
qp set_mo_class --core="[1-4]" --act="[5-72]"
|
2019-10-29 17:53:40 +01:00
|
|
|
run -56.244753429144986 3.e-4 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "DHNO" { # 8s
|
2019-01-25 11:39:31 +01:00
|
|
|
qp set_file dhno.ezfio
|
2020-11-11 19:13:04 +01:00
|
|
|
qp set_mo_class --core="[1-7]" --act="[8-64]"
|
2023-06-10 11:56:07 +02:00
|
|
|
run -130.466208113547 3.e-4 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "HCO" { # 32s
|
2019-01-25 11:39:31 +01:00
|
|
|
qp set_file hco.ezfio
|
2023-06-10 11:56:07 +02:00
|
|
|
run -113.395751656985 1.e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "H2O2" { # 21s
|
2019-01-25 11:39:31 +01:00
|
|
|
qp set_file h2o2.ezfio
|
|
|
|
qp set_mo_class --core="[1-2]" --act="[3-24]" --del="[25-38]"
|
2022-04-13 17:58:24 +02:00
|
|
|
run -151.005848404095 1.e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "HBO" { # 18s
|
2019-01-25 11:39:31 +01:00
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file hbo.ezfio
|
2023-06-10 11:56:07 +02:00
|
|
|
run -100.214 1.5e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "H2O" { # 16s
|
2019-01-25 11:39:31 +01:00
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file h2o.ezfio
|
2023-06-10 11:56:07 +02:00
|
|
|
run -76.238051555276 5.e-4 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "ClO" { # 47s
|
2019-01-25 11:39:31 +01:00
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file clo.ezfio
|
2023-06-10 11:56:07 +02:00
|
|
|
run -534.548529710256 1.e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "SO" { # 23s
|
2019-01-25 11:39:31 +01:00
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file so.ezfio
|
2022-04-21 13:42:10 +02:00
|
|
|
run -26.015 3.e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "H2S" { # 37s
|
2019-01-25 11:39:31 +01:00
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file h2s.ezfio
|
2023-06-10 11:56:07 +02:00
|
|
|
run -398.864853669111 5.e-4 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "OH" { # 12s
|
2019-01-25 11:39:31 +01:00
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file oh.ezfio
|
2023-06-10 11:56:07 +02:00
|
|
|
run -75.615 1.5e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "SiH2_3B1" { # 10s
|
2019-01-25 11:39:31 +01:00
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file sih2_3b1.ezfio
|
2023-06-10 11:56:07 +02:00
|
|
|
run -290.0206626734517 3.e-4 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "H3COH" { # 33s
|
2019-01-25 11:39:31 +01:00
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file h3coh.ezfio
|
2023-06-10 11:56:07 +02:00
|
|
|
run -115.206784386204 1.e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "SiH3" { # 15s
|
2020-02-05 16:49:59 +01:00
|
|
|
[[ -n $TRAVIS ]] && skip
|
2019-01-25 11:39:31 +01:00
|
|
|
qp set_file sih3.ezfio
|
2022-04-21 13:39:01 +02:00
|
|
|
run -5.572 1.e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@test "CH4" { # 16.1612s
|
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file ch4.ezfio
|
|
|
|
qp set_mo_class --core="[1]" --act="[2-30]" --del="[31-59]"
|
2019-10-29 17:53:40 +01:00
|
|
|
run -40.2409678239136 3.e-4 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@test "ClF" { # 16.8864s
|
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file clf.ezfio
|
2023-06-10 11:56:07 +02:00
|
|
|
run -559.174371468224 1.5e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@test "SO2" { # 17.5645s
|
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file so2.ezfio
|
2020-11-11 19:13:04 +01:00
|
|
|
qp set_mo_class --core="[1-8]" --act="[9-87]"
|
2022-04-13 19:54:14 +02:00
|
|
|
run -41.5746738713298 1.5e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@test "C2H2" { # 17.6827s
|
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file c2h2.ezfio
|
|
|
|
qp set_mo_class --act="[1-30]" --del="[31-36]"
|
2022-04-21 13:42:10 +02:00
|
|
|
run -12.367 3.e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@test "N2" { # 18.0198s
|
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file n2.ezfio
|
|
|
|
qp set_mo_class --core="[1,2]" --act="[3-40]" --del="[41-60]"
|
2022-04-21 13:39:01 +02:00
|
|
|
run -109.288 2.e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@test "N2H4" { # 18.5006s
|
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file n2h4.ezfio
|
|
|
|
qp set_mo_class --core="[1-2]" --act="[3-24]" --del="[25-48]"
|
2019-10-29 17:53:40 +01:00
|
|
|
run -111.367332681559 3.e-4 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@test "CO2" { # 21.1748s
|
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file co2.ezfio
|
|
|
|
qp set_mo_class --core="[1,2]" --act="[3-30]" --del="[31-42]"
|
2022-08-29 15:32:36 +02:00
|
|
|
run -187.970184372047 1.6e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@test "[Cu(NH3)4]2+" { # 25.0417s
|
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file cu_nh3_4_2plus.ezfio
|
|
|
|
qp set_mo_class --core="[1-24]" --act="[25-45]" --del="[46-87]"
|
2023-06-11 12:19:39 +02:00
|
|
|
run -1862.98320066637 3.e-04 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@test "HCN" { # 20.3273s
|
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file hcn.ezfio
|
|
|
|
qp set_mo_class --core="[1,2]" --act="[3-40]" --del="[41-55]"
|
2022-04-21 13:42:10 +02:00
|
|
|
run -93.078 2.e-3 100000
|
2019-01-25 11:39:31 +01:00
|
|
|
}
|
|
|
|
|
2023-06-10 11:56:07 +02:00
|
|
|
@test "F2" { # 4.07m
|
|
|
|
[[ -n $TRAVIS ]] && skip
|
|
|
|
qp set_file f2.ezfio
|
|
|
|
qp set_frozen_core
|
|
|
|
run_stoch -199.304922384814 3.e-3 100000
|
|
|
|
}
|
|
|
|
|