qubols

qubols allows to solve linear system using a QUBO approach that can be deployed on quantum annealers

2
contributors
Get started
29 commitsLast commit ≈ 2 months ago0 stars0 forks

What qubols can do for you

Platform github repo badge github license badge Python Code style: Black Tests Coverage Status

qubols

QUBOLS

qubols allow to solve linear system of equations using a QUBO approach and to deploy this calculation on D`Wave hardware. See an example of use here

Installation

To install qubols from GitHub repository, do:

git clone https://github.com/QuantumApplicationLab/qubols.git
cd qubols
python3 -m pip install .

Example

import numpy as np
from qubols.qubols import QUBOLS
from qubols.encodings import RangedEfficientEncoding
from dwave.samplers import SimulatedAnnealingSampler

# define a symmetric matrix
size = 4
A = np.random.rand(size,size)
A = 0.1*(A+A.T)

# define the right hand side of the system
b =  np.random.rand(size,1)

# options of the qubols solver
options = {'num_reads':50, 'sampler':SimulatedAnnealingSampler(), 
           'encoding': RangedEfficientEncoding, 'num_qbits':4, 'range':10.0}

# create the solver
qubols= QUBOLS(options)

# solve the linear system
sol_num = qubols.solve(A, b)

Contributing

If you want to contribute to the development of qubols, have a look at the contribution guidelines.

Credits

This package was created with Cookiecutter and the NLeSC/python-template.

Keywords
Programming languages
  • Jupyter Notebook 81%
  • Python 18%
  • Shell 1%
License
</>Source code

Participating organisations

ASTRON
Quantum Application Lab
Netherlands eScience Center
Natural Sciences & Engineering
Natural Sciences & Engineering

Contributors

Related projects

QuWater

Quantum computing for water networks

Updated 6 months ago
Finished

Integrating Quantum Computers into a Radio Telescope

Updated 10 months ago
Finished

Related software

HERA_CAL_QUANTUM

HE

Radioastronomy calibration pipeline of the HERA telescope ported on quantum computers

Updated 1 week ago
7

vqls-prototype

VQ

Variational Quantum Linear Solver Library.

Updated 1 week ago
172 2