HF failing when using larger basis sets using the X2C Hamiltonian

28 views
Skip to first unread message

Ruairi Graham

unread,
Sep 14, 2026, 10:25:22 AM (8 days ago) Sep 14
to dirac-users
Hi,

I am trying to run some HF calculations on BaH using the X2C Hamiltonian. This works fine up to dyall.v4z but then when i try and augment Ba I begin to see problems. The calculation seems to fail when I use only the X2C Hamiltonian and so I then had to add the XAMFI keyword to the input which did help calculations converge at longer bond lengths, however, at short bond lengths I either just get NaN or a very large negative number. I cannot seem to explain why this happens at shorter bond lengths. Any advice would be greatly appreciated.

Kind Regards,
Ruairi 

Miroslav Iliaš

unread,
Sep 14, 2026, 11:24:58 AM (8 days ago) Sep 14
to dirac...@googlegroups.com
Dear Ruairi,

please send your inputs/outputs so that we see what is going wrong.

Miro

--
You received this message because you are subscribed to the Google Groups "dirac-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dirac-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dirac-users/12dbbf61-c6f1-477a-afcb-4078b8a03942n%40googlegroups.com.

Trond Saue

unread,
Sep 14, 2026, 1:12:43 PM (8 days ago) Sep 14
to dirac...@googlegroups.com

Hi Ruairi,

can you send an output file showing the problem ?

Best regards,

   Trond

--
You received this message because you are subscribed to the Google Groups "dirac-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dirac-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dirac-users/12dbbf61-c6f1-477a-afcb-4078b8a03942n%40googlegroups.com.
--
Trond Saue
Laboratoire de Chimie et Physique Quantiques
UMR 5626 CNRS --- Université de Toulouse
118 route de Narbonne, F-31062 Toulouse, France

Office: 229, building 3R1 Phone : +33/561556361 Fax: +33/561556065
Mail : trond...@irsamc.ups-tlse.fr
Web : https://dirac.ups-tlse.fr/saue
DIRAC : http://www.diracprogram.org/
ESQC : http://www.esqc.org/
ERC Advanced Grant: HAMP-vQED
Book: Principles and Practices of Molecular Properties: Theory, Modeling, and Simulations

Ruairi Graham

unread,
Sep 16, 2026, 5:16:06 AM (7 days ago) Sep 16
to dirac...@googlegroups.com
Hi,

I have attached the output file for a short bond length in BaH which has a very unusual HF energy (around -80,000 hartrees). 

Kind Regards,
Ruairi

hf_BaH.out

Kenneth Dyall

unread,
Sep 16, 2026, 11:46:15 AM (6 days ago) Sep 16
to dirac...@googlegroups.com
You might be running into linear dependence problems. What's the smallest eigenvalue of the overlap matrix?

Ken.

Hans Jørgen Aagaard Jensen

unread,
Sep 17, 2026, 3:14:57 AM (6 days ago) Sep 17
to dirac...@googlegroups.com
Hi,

You have found a bug in the X2c transformation, probably caused by the linear dependency among the basis functions (maybe the X2c transformation has never been tried before with basis sets with linear dependency ...).
image.png

It becomes clear when you look at the orbital energies. The energy of the first occupied MO is close to -2mc^2, that is, it is a negative energy orbital ☹️
image.png

It will be fixed at the latest for the next release.

Best regards, Hans Jørgen.

Reply all
Reply to author
Forward
0 new messages