Skip to content

Commit

Permalink
undo order flip
Browse files Browse the repository at this point in the history
  • Loading branch information
Luciano Bello committed May 8, 2019
1 parent 7d80495 commit 31b97ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qiskit/compiler/transpile.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def _parse_basis_gates(basis_gates, backend, circuits):
if basis is None:
gates_in_circuit = set(inst.name for inst, _, _ in circuit.data)
# Other passes might add new gates that need to be supported
basis_gates[index] = list(gates_in_circuit.union(['U', 'CX']))
basis_gates[index] = list(gates_in_circuit.union(['u3', 'cx']))
return basis_gates


Expand Down
2 changes: 1 addition & 1 deletion qiskit/transpiler/preset_passmanagers/level1.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@ def _opt_control(property_set):
# pm1.append(_direction_check) # TODO
pm1.append(_direction, condition=_direction_condition)
pm1.append(_reset)
pm1.append(_opt + _depth_check, do_while=_opt_control)
pm1.append(_depth_check + _opt, do_while=_opt_control)

return pm1
2 changes: 1 addition & 1 deletion qiskit/transpiler/preset_passmanagers/level2.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@ def _opt_control(property_set):
# pm2.append(_direction_check) # TODO
pm2.append(_direction, condition=_direction_condition)
pm2.append(_reset)
pm2.append(_opt + _depth_check, do_while=_opt_control)
pm2.append(_depth_check + _opt, do_while=_opt_control)

return pm2
2 changes: 1 addition & 1 deletion qiskit/transpiler/preset_passmanagers/level3.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ def _opt_control(property_set):
if coupling_map:
pm3.append(_swap_check)
pm3.append(_swap, condition=_swap_condition)
pm3.append(_opt + _depth_check, do_while=_opt_control)
pm3.append(_depth_check + _optdo_while=_opt_control)

return pm3

0 comments on commit 31b97ba

Please sign in to comment.