question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Periodic calculation of diamond C-vacancy with GDF fails in 2.0.0 vs 1.7.x

See original GitHub issue

I am running a calculation of a 222 tiling of the primitive diamond supercell with a carbon vacancy. This calculation successfully completes with pyscf 1.7.x but now fails in 2.0.0. I believe the problem stems from this issue: https://github.com/pyscf/pyscf/issues/843 where changes to GDF were made based upon the discrepancy between supercells built by hand and pyscf’s tools.

In pyscf 2.0.0, GDF outputs a new error message that it did not in pyscf 1.7.x: DF metric linear dependency for kpt 0 cond = -1.704e+04, drop 143 bfns Which is triggered at this line: https://github.com/pyscf/pyscf/blob/master/pyscf/pbc/df/df.py#L218

Additionally, a colleague has found that using gth-szv or gth-dzv (rather than gth-dzvp in the MWE) or FFTDF will converge the SCF calculation.

This error is also present in a pristine supercell, i.e. without the C-vacancy. I have attached a MWE example that demonstrates this error, as well as the output. In both cases the initial energy is reasonable but immediately diverges on cycle 1.

MWE-diamond_GR1.txt 1026174_00-diamond_GR1.txt 1026178_00-diamond_pristine.txt

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
btglaucommented, May 26, 2021

Hi fish, majo,

We (tberkel and jamesETsmith) now think the problem is libcint / qcint, where the latest version of qcint is what causes the problem (with dzvp, but not dzv), but not libcint. We don’t know which version of qcint specifically, presumably between Dec 2020 and now. James notes that the previous version of qcint is not compatible with pyscf 2.0.0a

1reaction
susilehtolacommented, Jul 17, 2021

Yes, this might definitely arise from the same problem as #1018 i.e. wrong integrals from qcint.

Unfortunately, it appears that libcint and qcint don’t have unit tests… Do any of the test builders use qcint?

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyscf - Bountysource
Periodic calculation of diamond C-vacancy with GDF fails in 2.0.0 vs ... This calculation successfully completes with pyscf 1.7.x but now fails in...
Read more >
Germanium-Vacancy Single Color Centers in Diamond - PMC
Figure 5b shows calculated energy levels of the SiV and GeV color centers in diamond. For both centers, the eu and eg levels...
Read more >
A Theoretical Investigation of the Nitrogen-Vacancy Center in ...
In Paper A, the method of charging a defect (NV-center in diamond) through an electron donor (nitrogen) is developed and investigated, and how...
Read more >
The formation of NV centers in diamond: A theoretical study ...
A-G where we compare our calculations with existing experimental or ... neutral vacancy in diamond is the schoolbook example for the failure of...
Read more >
Ab Initio Magneto-Optical Spectrum of Group-IV Vacancy ...
Group-IV vacancy color centers in diamond are fast emerging qubits that can be harnessed in quantum communication and sensor applications.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found