Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

wrong variable name in 3-PyQUBO with OpenJij tutorial #26

Open
uni4029 opened this issue Apr 1, 2021 · 0 comments
Open

wrong variable name in 3-PyQUBO with OpenJij tutorial #26

uni4029 opened this issue Apr 1, 2021 · 0 comments

Comments

@uni4029
Copy link

uni4029 commented Apr 1, 2021

Result solved by SQA should be used in decoding.
Where
'''
# エネルギーが一番低い状態を取り出します。
dict_solution = response.first.sample
# 得られた結果をデコードします。
decoded_sample = model.decode_sample(raw_solution.first.sample, vartype='BINARY')
'''

should be
"""
decoded_sample = model.decode_sample(dict_solution, vartype='BINARY')
"""

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant