A package for implementing quantum algorithms using the pysparq package.
To install the package, run the following command in the terminal:
pip install qalgo
To use the package, simply import the module and create an instance of the desired algorithm class. For example:
from qalgo import qda
import numpy as np
a = np.array([[1, 2], [3, 5]])
b = np.array([1, 2])
x_hat = qda.solve(a, b)
The package currently includes the following quantum algorithms:
- Quantum linear system solver based on discrete adiabatic theorem
- Shor's algorithm (TODO)
- Grover's algorithm (TODO)
- Hamiltonian simulation (TODO)
- Quantum linear system solver based on HHL algorithm (TODO)
The documentation for the package can be found at https://qalgo.readthedocs.io/zh-cn/latest/.