bqth29 / simulated-bifurcation-algorithm

Python CPU/GPU implementation of the Simulated Bifurcation (SB) algorithm to solve quadratic optimization problems (QUBO, Ising, TSP, optimal asset allocations for a portfolio, etc.).
MIT License
103 stars 25 forks source link

Deprecate polynomials #26

Closed BusyBeaver-42 closed 11 months ago

BusyBeaver-42 commented 11 months ago

💬 Pull Request Description

Deprecation of IsingPolynomialInterface, BinaryPolynomial, IntegerPolynomial and SpinPolynomial in prevision of the addition of multivariate polynomials of an arbitrary degree. Their behaviour will be modified in simulated-bifurcation 1.3.0.

They are respectively replaced by BaseMultivariateQuadraticPolynomial, BinaryQuadraticPolynomial, IntegerQuadraticPolynomial and SpinQuadraticPolynomial.

✔️ Check list

Before you open the pull request, make sure the following requirements are met.

🚀 New features

🐞 Bug fixes

None

📣 Supplementary information

The deprecated classes will be modified to implement the SB algorithm over multivariate polynomials of an arbitrary degree. See https://arxiv.org/abs/2211.09296.

codecov[bot] commented 11 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Files Coverage Δ
src/simulated_bifurcation/__init__.py 100.00% <100.00%> (ø)
src/simulated_bifurcation/ising_core.py 100.00% <ø> (ø)
src/simulated_bifurcation/models/ising.py 100.00% <100.00%> (ø)
src/simulated_bifurcation/models/markowitz.py 100.00% <100.00%> (ø)
...imulated_bifurcation/models/number_partitioning.py 100.00% <100.00%> (ø)
src/simulated_bifurcation/models/qubo.py 100.00% <100.00%> (ø)
src/simulated_bifurcation/polynomial/__init__.py 100.00% <100.00%> (ø)
...rcation/polynomial/base_multivariate_polynomial.py 100.00% <100.00%> (ø)
...ulated_bifurcation/polynomial/binary_polynomial.py 100.00% <100.00%> (ø)
...lated_bifurcation/polynomial/integer_polynomial.py 100.00% <100.00%> (ø)
... and 6 more

:loudspeaker: Thoughts on this report? Let us know!.