Skip to main content

SA-OO-VQE method implemented via Qiskit library

Project description

SA-OO-VQE

This package contains an implementation of SA-OO-VQE method for electronic structure computations using Quantum Processing Units or quantum simulators. It is possible to compute not only energies, but also gradients of potential energy surfaces, non-adiabatic couplings, etc. Everything in combination with both orbital optimization and/or diabatization. The package is mostly developed using Qiskit SDK.

The purpose of this README is only to get you going quickly. If you need more examples and in-depth explanations in the form of both user and programmer documentation, have a look at our official documentation website sa-oo-vqe-qiskit.rtfd.io.

Paper

The introductory paper about the package can be read here: DOI

Installation from PyPi

First of all, install Psi4, pandoc and pip packages, if you haven't already. With these available, all the other dependencies will be taken care of by pip.

Now you can either use pip to install SA-OO-VQE from PyPi like

$ python3 -m pip install saoovqe

Manual installation

If you don't want to, or you can't use pip for installation of SA-OO-VQE, you can do it also manually.

Cloning the repository

$ git clone git@gitlab.com:MartinBeseda/sa-oo-vqe-qiskit.git

Installation via Conda

$ cd sa-oo-vqe-qiskit
$ conda env create -f environment.yml
$ conda activate saoovqe-env
$ python3 -m pip install .

Installation without Conda

In this case, you need to install Psi4, pandoc and pip manually, if you haven't already. Subsequently, you'll take care of the remaining dependencies via the following command.

$ python3 -m pip install qiskit==1.1.0 qiskit-nature>=0.7.0 numpy>=1.26.4 deprecated>=1.2.14 mendeleev>=0.13.1 scipy>=1.10.1 sympy>=1.11.1 setuptools>=67.8.0 lxml>=4.9.2 ipython jupyter pygments scikit-learn>=1.2.2 icecream>=2.1.3 pytest>=7.3.1 --upgrade

And now the only remaining thing is to go into a SA-OO-VQE root folder and installing the module itself.

$ cd sa-oo-vqe-qiskit
$ python3 -m pip install .

Testing the installation

That's all! Now you should be able to test your SA-OO-VQE installation.

If you want to be sure about all its abilities, you can run all the automated tests like

python3 -m pytest tests

but it can take quite a long time. If you want to test just the few basic use cases (~45s), try running the following command.

python3 -m pytest tests/test_vqe_optimization.py::TestSAOOVQE::test_get_energy tests/test_vqe_optimization.py::TestSAOOVQE::test_eval_eng_gradient tests/test_vqe_optimization.py::TestSAOOVQE::test_eval_nac

And when the test are successfully done, you can finally try importing your package and checking the version.

$ python3

>>> import saoovqe
>>> saoovqe.__version__

Bug reporting

If you encounter any bug, you can report it with Bug tag using an Issue tracker in this repository.

Asking for support

Is there anything we can help you with and you didn't find it in the documentation? Are you unsure, if some weird behavior is a bug or not? Ask us using our Issue tracker with a Question tag.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

saoovqe-1.2.0.tar.gz (283.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

saoovqe-1.2.0-py3-none-any.whl (62.6 kB view details)

Uploaded Python 3

File details

Details for the file saoovqe-1.2.0.tar.gz.

File metadata

  • Download URL: saoovqe-1.2.0.tar.gz
  • Upload date:
  • Size: 283.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for saoovqe-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c3551e5df6e11532f183645ac1cf537eb980edcab06133f7badf4e61c99f0654
MD5 9fdd6f590d9f04aee0e6aa9d9a8ec0c7
BLAKE2b-256 9994e3c212227e37ab7631be8545bf31d365b7cd77a7147eafe4cb8e20bff421

See more details on using hashes here.

File details

Details for the file saoovqe-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: saoovqe-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 62.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for saoovqe-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dcf9c8f11f7816bb454868873f3329a3d9b4aac1a4d8a66b89c04e9de8401b95
MD5 0e4c69cbf2543fdee1eaf204cdbdcfcd
BLAKE2b-256 95ceaff9bf6715ce083b4c30feb92597343fc9ca635c3e38ca021f72e7aae96d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page