Skip to content

SURFQuantum/qc-quantum-linear-systems

Repository files navigation

PyPI Version Python Version CI/CD Coverage Status

quantum-linear-systems

Quantum algorithms to solve linear systems of equations.

Installation

Dependencies are managed with poetry. If poetry is not already installed on your system/evironment, follow the installation instructions.

Then clone the project

git clone https://github.com/SURFQuantum/qc-quantum-linear-systems.git

Switch to the project directory with cd qc-quantum-linear-systems and then simply:

poetry install

to install all dependencies.

Additional Requirements

Classiq SDK

This project makes use of the classiq SDK. To use the classiq SDK the user must perform authentication. For more info check out the classiq docs page.

Authentication is as simple as:

import classiq

classiq.authenticate()

This will open a confirmation window in your default browser. After confirming the user code the classiq login screen appears. Completing the login completes the authentication process.

Framework Diagram

flowchart TD
    subgraph Class QuantumLinearSolver
        D{"QLS.solve()"} --> CH{{check}}
        CH --> S{{"impl.solve()"}}
    end
    A(Matrix A, vector b) -->|inside| B[Class ToyModel]
    M(Implementations HHL/VQLS, Classiq/qiskit) ---> |method| D
    B --> |A,b| D
    S --> Q(QASM circuit)
    S --> V("StateVector |x>")