Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
d9dd3e4
Implemented the quantum part of the Lanczos method without the postpr…
MatP1337 Aug 6, 2025
ae61fe8
removed multimeasurement for k=even based on the paper
MatP1337 Aug 6, 2025
b715784
added docstrings and classical post-processing functions, as well as …
MatP1337 Aug 21, 2025
f5d30e7
added example to test the lanczos_alg functionality
MatP1337 Aug 21, 2025
06ec68b
Improved docstrings
MatP1337 Aug 22, 2025
2ef426b
Added mes_kwargs as a keyword argument to inner_lanczos and lanczos_alg
MatP1337 Aug 22, 2025
601b7b0
added lanczos to the documentation
MatP1337 Aug 22, 2025
66f4525
minor changes to the docstrings
MatP1337 Aug 22, 2025
4a790e3
fixed typo preventing the documentation to be compiled. Thanks @renez…
MatP1337 Aug 22, 2025
8488c04
extended documentation for the helper functions
MatP1337 Aug 22, 2025
767ea16
added Lanczos method to the index.rst table in the algorithms folder
MatP1337 Aug 22, 2025
3bd612b
Review Lanczos implementation: minor improvements to documentation; f…
renezander90 Aug 26, 2025
679fe2a
Removed jrange import
renezander90 Aug 26, 2025
9e7d5b8
Merge branch 'main' of https://github.com/eclipse-qrisp/Qrisp into La…
MatP1337 Oct 10, 2025
8df014c
Merge branch 'main' of https://github.com/eclipse-qrisp/Qrisp into La…
MatP1337 Oct 21, 2025
6b48e07
Merge branch 'main' of https://github.com/eclipse-qrisp/Qrisp into La…
MatP1337 Nov 7, 2025
607e002
obtaining block encoding via H.pauli_block_encoding() in inner_lanczos
MatP1337 Nov 12, 2025
cee3c99
minor changes, importing qache in qubit_operator
MatP1337 Nov 13, 2025
f68a288
Restructuring the code: split inner_lanczos into inner_lanczos (prepa…
MatP1337 Nov 13, 2025
124ab78
fixed reflection import
MatP1337 Nov 13, 2025
c20e3fb
fixed reflection import
MatP1337 Nov 13, 2025
22e4ed8
fixed the reflection import. for real this time
MatP1337 Nov 14, 2025
fde14ff
Added default amount of shots in Lanczos_expvals function; vectorized…
renezander90 Nov 14, 2025
192b5ea
Separate jax postprocessing functions; returning info for lanczos opt…
renezander90 Nov 14, 2025
2586d93
Fixed minor issue in lanczos example
renezander90 Nov 14, 2025
1f172e2
Changed interface to lanczos algorithm: now receives and init_state f…
renezander90 Nov 14, 2025
a7f1b4c
Added test case for lanczos algorithm
renezander90 Nov 14, 2025
9027652
Minor change in test for lanczos
renezander90 Nov 14, 2025
20efe56
Completed Jasp version of lanczos; currently deactivated since solvin…
renezander90 Nov 14, 2025
6fb36f7
Some improvements for lanczos documentation
renezander90 Nov 14, 2025
4f0b723
Minor fix for VQE test
renezander90 Nov 15, 2025
7cd8655
Merge branch 'main' into Lanczos_method
renezander90 Nov 19, 2025
8c79a3f
Rename init_state to operand_prep in Lanczos algorithm
renezander90 Nov 21, 2025
08fabdc
Remove workaround for q_cond
renezander90 Nov 21, 2025
03919bb
Merge branch 'main' into Lanczos_method
renezander90 Nov 21, 2025
a3024d1
JAX implementation for solving generalized eigenvalue problem; improv…
renezander90 Nov 30, 2025
a1fa657
Added test for jasp Lanczos
renezander90 Nov 30, 2025
58334c8
Merge branch 'main' into Lanczos_method
renezander90 Nov 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions documentation/source/reference/Algorithms/Lanczos.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.. _lanczos_alg:


Lanczos Algorithm
=================

.. currentmodule:: qrisp.lanczos

.. autofunction:: lanczos_alg

.. autosummary::
:toctree: generated/

lanczos_expvals
inner_lanczos
build_S_H_from_Tk
regularize_S_H
2 changes: 1 addition & 1 deletion documentation/source/reference/Algorithms/Shor.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. _Shor:

Shor's algorithm
Shor's Algorithm
================

In the realm of quantum computing, where classical limitations are challenged and new horizons are explored, Shor's Algorithm stands as a testament to the transformative potential of quantum mechanics in the field of cryptography. Developed by mathematician Peter Shor in 1994, this groundbreaking algorithm has the power to revolutionize the world of cryptography by efficiently factoring large numbers—once considered an insurmountable task for classical computers.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
qrisp.lanczos.build\_S\_H\_from\_Tk
===================================

.. currentmodule:: qrisp.lanczos

.. autofunction:: build_S_H_from_Tk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
qrisp.lanczos.inner\_lanczos
============================

.. currentmodule:: qrisp.lanczos

.. autofunction:: inner_lanczos
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
qrisp.lanczos.lanczos\_expvals
==============================

.. currentmodule:: qrisp.lanczos

.. autofunction:: lanczos_expvals
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
qrisp.lanczos.regularize\_S\_H
==============================

.. currentmodule:: qrisp.lanczos

.. autofunction:: regularize_S_H
3 changes: 3 additions & 0 deletions documentation/source/reference/Algorithms/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ This algorithms submodule of Qrisp provides a collection of commonly used quantu
- estimating the amount of solutions for a given Grover oracle
* - :ref:`Quantum Monte Carlo Integration <QMCI>`
- numerical integration
* - :ref:`Lanczos Algorithm <lanczos_alg>`
- finding the ground state energy of a Hamiltonian
* - :ref:`CKS Algorithm <CKS>`
- solving the quantum linear system problem

Expand All @@ -45,6 +47,7 @@ We encourage you to explore these algorithms, delve into their documentation, an
QITE
Shor
Grover
Lanczos
QuantumBacktrackingTree
quantum_counting
QMCI
Expand Down
1 change: 1 addition & 0 deletions src/qrisp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"qite",
"qmci",
"cks",
"lanczos",
]:
sys.modules["qrisp." + i] = sys.modules["qrisp.algorithms." + i]

Expand Down
1 change: 1 addition & 0 deletions src/qrisp/algorithms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
import qrisp.algorithms.vqe as vqe
import qrisp.algorithms.qite as qite
import qrisp.algorithms.qmci as qmci
import qrisp.algorithms.lanczos as lanczos
import qrisp.algorithms.cks as cks
Loading