psrenergy / ToQUBO.jl

🟦 JuMP ToQUBO Automatic Reformulation
https://psrenergy.github.io/ToQUBO.jl
Other
27 stars 2 forks source link

Non-trivial conversions -- Primer #36

Closed YummyPampers2 closed 2 years ago

YummyPampers2 commented 2 years ago

Hello @pedromxavier, @joaquimg, & @bernalde:

I am attempting to convert two non-trivial functions from Python to Julia:

qubovert.utils.qubo_to_quso
qubovert.utils.quso_to_qubo

What elements of the above functions would one unit test in Python? Is it necessary to use Python, or could one directly unit test with Julia? If so, would you mind sharing your approach here?

Thank you,

pedromxavier commented 2 years ago

IMO when using Python functions in Julia, it is nice to use PythonCall. Also, this kind of topic doesn't has much to do with this project precisely. It would be better to answer it on discourse.