Skip to main content

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

Metadata

Release files for variational-lse-solver 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for variational-lse-solver 1.0
File Size Uploaded
variational_lse_solver-1.0.tar.gz 26.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for variational-lse-solver 1.0
File Interpreter ABI Platform
variational_lse_solver-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 74.9 kB

Release files / variational_lse_solver-1.0.tar.gz

Download URL variational_lse_solver-1.0.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
164037318b492a163e9567b916b5955943511a2ab5e75197a1c5669b3d63867c
BLAKE2b-256 checksum
How to use checksums
b2b702a3bad2f3be33f8c38e0824cc2523f7cf45c7c9597778d0e8d0deb974a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / variational_lse_solver-1.0-py3-none-any.whl

Download URL variational_lse_solver-1.0-py3-none-any.whl
Size 48.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c890f584589d8fd1acbd5f91db71a60a23421f8a8413eaccff7aa741f14ae7f
BLAKE2b-256 checksum
How to use checksums
149e0d4097cbbd3c0ba98dca4cfcb7529fd4094d5a2cae12431c915e801e9529
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page