Skip to main content

Comprehensive Library of Variational LSE Solvers

Project description

Variational-LSE-Solver

This repo contains the code for the PennyLane-based variational-lse-solver library introduced in "Comprehensive Library of Variational LSE Solvers", N. Meyer et al. (2024).

Setup and Installation

The library requires an installation of python 3.12, and following libraries:

  • pennylane~=0.34
  • torch~=2.1.2
  • tqdm~=4.66.2

We recommend setting up a conda environment:

conda create --name ENV_NAME python=3.12
conda activate ENV_NAME

The package variational-lse-solver can be installed locally via:

pip install variational-lse-solver

Usage and Further Information

For further usage details and examples please refer to the repository https://github.com/nicomeyer96/variational-lse-solver

Acknowledgements

The variational-lse-solver library is mostly based on the techniques introduced in "Variational Quantum Linear Solver", C. Bravo-Prieto et al., Quantum 7, 1188 (2023).

The concept of using dynamically growing circuits is inspired by "Variational quantum linear solver with a dynamic ansatz", H. Patil et al., Phys. Rev. A 105, 012423 (2022)

There are some alternative implementations of subroutines provided by variational-lse-solver in the PennyLane Demos:

However, those realisations contain several hard-coded parts and can not be used for arbitrary problems out of the box. Furthermore, we identified some small inaccuracies, which might lead to converging to a wrong solution -- this is explained in more detail in the documentation of variational-lse-solver.

Citation

If you use the variational-lse-solver or results from the paper, please cite "Comprehensive Library of Variational LSE Solvers", N. Meyer et al. (2024).

Version History

Initial release (v1.0): April 2024

License

Apache 2.0 License

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

variational_lse_solver-1.0.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

variational_lse_solver-1.0-py3-none-any.whl (48.5 kB view details)

Uploaded Python 3

File details

Details for the file variational_lse_solver-1.0.tar.gz.

File metadata

  • Download URL: variational_lse_solver-1.0.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for variational_lse_solver-1.0.tar.gz
Algorithm Hash digest
SHA256 164037318b492a163e9567b916b5955943511a2ab5e75197a1c5669b3d63867c
MD5 bea187ddf9f7a5a463b51d0583f2f3dd
BLAKE2b-256 b2b702a3bad2f3be33f8c38e0824cc2523f7cf45c7c9597778d0e8d0deb974a9

See more details on using hashes here.

File details

Details for the file variational_lse_solver-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for variational_lse_solver-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c890f584589d8fd1acbd5f91db71a60a23421f8a8413eaccff7aa741f14ae7f
MD5 1db1a16fff4a234601fc2939fd7cb734
BLAKE2b-256 149e0d4097cbbd3c0ba98dca4cfcb7529fd4094d5a2cae12431c915e801e9529

See more details on using hashes here.

Supported by

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