Skip to content

Commit

Permalink
need quantum volume None check
Browse files Browse the repository at this point in the history
  • Loading branch information
yiiyama committed Apr 25, 2023
1 parent e3f0d63 commit ae84687
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/qc_workbook/utils.py
Expand Up @@ -49,10 +49,10 @@ def backend_filter(backend):
return False

if qv is not None:
if config.quantum_volume != qv:
if config.quantum_volume is None or config.quantum_volume != qv:
return False
else:
if config.quantum_volume < min_qv:
elif min_qv > 0:
if config.quantum_volume is None or config.quantum_volume < min_qv:
return False

return True
Expand Down

0 comments on commit ae84687

Please sign in to comment.