Skip to content

Commit

Permalink
Merge pull request #73 from qiskit-community/delay_fix
Browse files Browse the repository at this point in the history
Fix delays returning no scores
  • Loading branch information
nonhermitian committed May 3, 2024
2 parents 7d4d923 + c2ae1a6 commit bd8e5d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mapomatic/layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def evaluate_layouts(circ, layouts, backend, cost_function=None):
"""
if not any(layouts):
return []
circuit_gates = set(circ.count_ops()).difference({'barrier', 'reset', 'measure'})
circuit_gates = set(circ.count_ops()).difference({'barrier', 'reset',
'measure', 'delay'})
if not circuit_gates.issubset(backend.configuration().basis_gates):
return []
if not isinstance(layouts[0], list):
Expand Down

0 comments on commit bd8e5d7

Please sign in to comment.