Open bqth29 opened 4 months ago
Attention: Patch coverage is 99.24242%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 99.94%. Comparing base (
7fb0fec
) to head (8af1338
). Report is 3 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
src/simulated_bifurcation/core/variable.py | 96.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
💬 Pull Request Description
This PR allows the optimization of quadratic polynomials to occur on different domains at the same time. For instance, let us consider a model with 4 variables:
Previously, all variables had to be defined on the same domain but it is now possible to specify one domain per variable. To do so, instead of a string, the
domain
argument of the optimization functions must be passed as a list of string with the same length as the number of variables. For the previous example, the input would be:Example
✔️ Check list
🚀 New features
Possibility to define on optimization domain per variable.
🐞 Bug fixes
None.
📣 Supplementary information
The quadratic-polynomial-to-Ising conversions have been unified in a single formula. The math behind this new formula is explained below: