Skip to content

Commit

Permalink
macros.py
Browse files Browse the repository at this point in the history
  • Loading branch information
to24toro committed Aug 4, 2023
1 parent d859ac9 commit f4bc1a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qiskit/pulse/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ def measure(

# backend is V2.
if isinstance(backend, BackendV2) or target:
if hasattr(backend, "meas_map"):
meas_map = meas_map or backend.meas_map
meas_map = meas_map or getattr(backend, "meas_map", None)

return _measure_v2(
qubits=qubits,
Expand Down

0 comments on commit f4bc1a9

Please sign in to comment.