You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
openjij.BinaryQuadraticModelから生成したインスタンス(例えばbqm = dimod.BinaryQuadraticModel.from_qubo(Q=qubo, offset=offset))は、dwave.system.compositesのEmbeddingCompositeなどに投げると
AttributeError: 'BinaryQuadraticModel' object has no attribute 'spin'というエラーが出ます。
To Reproduce
Steps to reproduce the behavior:
openjijチュートリアルの9-Solving Graph Coloring Problem with PyQUBOのコードをqubo, offset = model.to_qubo()の部分まで実行してqubo, offsetを得る
Describe the bug
openjij.BinaryQuadraticModelから生成したインスタンス(例えばbqm = dimod.BinaryQuadraticModel.from_qubo(Q=qubo, offset=offset))は、dwave.system.compositesのEmbeddingCompositeなどに投げると
AttributeError: 'BinaryQuadraticModel' object has no attribute 'spin'というエラーが出ます。
To Reproduce
Steps to reproduce the behavior:
from dwave.system.composites import EmbeddingComposite
dw = DWaveSampler(token="XX")
sampler = EmbeddingComposite(child_sampler=dw)
response = sampler.sample(bqm)
Expected behavior
EmbeddingCompositeによるsampleが問題なく行える
Additional context
原因は、EmbeddingCompositeのソースコードかわかるように
openjij.BinaryQuadraticModelにspinアトリビュートがないことだと思われます。
The text was updated successfully, but these errors were encountered: