Skip to content
This repository was archived by the owner on Aug 19, 2026. It is now read-only.

Repository files navigation

Platformgithub repo badgegithub license badgePythonCode style: BlackTestsCoverage 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.gitcd qubolspython3 -m pip install .

Example

importnumpyasnpfromqubols.qubolsimportQUBOLSfromqubols.encodingsimportRangedEfficientEncodingfromdwave.samplersimportSimulatedAnnealingSampler# define a symmetric matrixsize=4A=np.random.rand(size,size)
A=0.1*(A+A.T)
# define the right hand side of the systemb=np.random.rand(size,1)
# options of the qubols solveroptions= {'num_reads':50, 'sampler':SimulatedAnnealingSampler(), 'encoding': RangedEfficientEncoding, 'num_qbits':4, 'range':10.0}
# create the solverqubols=QUBOLS(options)
# solve the linear systemsol_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.

About

Linear System Solver using QUBO

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages