qiskit-community / qiskit-nature

Qiskit Nature is an open-source, quantum computing, framework for solving quantum mechanical natural science problems.
https://qiskit-community.github.io/qiskit-nature/
Apache License 2.0
301 stars 204 forks source link

Tutorials that are published have PySCF B3YLP warning showing #1296

Closed woodsp-ibm closed 7 months ago

woodsp-ibm commented 10 months ago

While #1249 updated CI to suppress this for unit tests and tutorials tests, it needs doing in the deploy_docs workflow too, so as to suppress the same thing for when the docs that are published are built.

/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pyscf/dft/libxc.py:771: UserWarning: Since PySCF-2.3, B3LYP (and B3P86) are changed to the VWN-RPA variant, corresponding to the original definition by Stephens et al. (issue 1480) and the same as the B3LYP functional in Gaussian. To restore the VWN5 definition, you can put the setting "B3LYP_WITH_VWN5 = True" in pyscf_conf.py warnings.warn('Since PySCF-2.3, B3LYP (and B3P86) are changed to the VWN-RPA variant, '

julenl commented 9 months ago

@woodsp-ibm: What about temporarily hard-coding the variable and value (B3LYP_WITH_VWN5 = True) in the driver, or something like that?

woodsp-ibm commented 9 months ago

We had decided not to do that so users of the driver could decide how they wanted to proceed. Having the warnings come out for us in CI was suppressed, per the referenced PR, which suppresses it in the docs it builds as well. You can see in that its a simple one liner in the workflow - well 2 if you include the comment :). However the docs that are finally deployed are a done in a separate workflow and built from scratch again and the simple fix/change. that was done for other workflows was not done for the deploy_docs. This is all that is needed/wanted.