Skip to content

Commit

Permalink
fix bqm typing
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Oct 18, 2024
1 parent ebb792a commit 3dc88c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qlasskit/bqm.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def decode_samples(qf, sampleset):
el.sample[bv] if bv in el.sample else random.randint(0, 1)
for bv in arg.bitvec
]
args[arg.name] = interpret_as_qtype(bitstr[::-1], arg.ttype, len(arg))
# TODO: fix this typing
args[arg.name] = interpret_as_qtype(bitstr[::-1], arg.ttype, len(arg)) # type: ignore

# bitstr = [ el.sample[bv] for bv in qf.returns.bitvec ]
# args['_ret'] = interpret_as_qtype(bitstr, qf.returns.ttype, len(qf.returns))
Expand Down

0 comments on commit 3dc88c1

Please sign in to comment.