recruit-communications / pyqubo

Python DSL for constructing QUBOs from mathematical expressions.
https://pyqubo.readthedocs.io/
Apache License 2.0
172 stars 46 forks source link

Support to the number of spins #158

Open joeliuz6 opened 2 years ago

joeliuz6 commented 2 years ago

Describe the bug I try to formulate a problem as the attached figure, but when I convert the model to the Ising model, "model.to_ising()", the python kernel crashed. Similar conditions occurred when the number of spins are over 200. How many spins do Pyqubo support? bug

crash

kotarotanahashi commented 2 years ago

@zhuo-liu-scut Thank you for reporting the issue. I'll look into it.

kotarotanahashi commented 2 years ago

@zhuo-liu-scut Could you share the complete code to reproduce the crash? (In the code above, G_radius is not defined.)

joeliuz6 commented 2 years ago

G_radius is a class object in Python NetworkX package. G_radius.edges() is formulated as below, which is related to the problem. ![Uploading G_radius.PNG…]()