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.

Is it possible to fetch a custom Hamiltonian (two-particle integral) into PySCF for unrestricted case?

See original GitHub issue

Hi,

It is possible to run restricted-orbital calculations for a custom Hamiltonian - but is there a way to do the same for unrestricted case? I couldn’t find what shape should _eri object take in such a case - usually one deals with 4 (or 3) blocks of two-electron integrals with different spin symmetries: aaaa, bbbb, aabb (and bbaa), but there is only a single _eri object, which only seems to accept 4-D tensor?

Thank you very much in advance! Iakov

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
davidzsoltmanriquecommented, Aug 5, 2022

Hi All, I am just wondering, is this feature supported in the PySCF 2.0 and is there an example of its usage? Many thanks!

1reaction
sunqmcommented, May 13, 2021

This is not supported. For mean field object, you have to overwrite the get_jk or get_veff method. For post HF modules, you need to modify the ao2mo method.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quickstart — PySCF
This quickstart provides a brief introduction to the use of PySCF in common quantum chemical simulations. These make reference to specific examples within ......
Read more >
pyscf - Bountysource
It is possible to run restricted-orbital calculations for a custom Hamiltonian - but is there a way to do the same for unrestricted...
Read more >
master - GitHub
Customizing Hamiltonian for SCF module. Three steps to define Hamiltonian for SCF: 1. Specify the number of electrons. (Note mole ...
Read more >
216258402.pdf - CORE
In PySCF, the SCF module includes implementations of Hartree-Fock (HF) and density functional the- ory (DFT) for restricted, unrestricted, ...
Read more >
(PDF) Recent developments in the PySCF program package
a custom Hamiltonian without considering whether it. will work in a DFT ... in the integral and tensor operations, are implemented.
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