Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ElePT committed Jan 11, 2024
1 parent ce47108 commit c4a5736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/compiler/transpiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def _check_circuits_coupling_map(circuits, cmap, backend):
for circuit in circuits:
# If coupling_map is not None or num_qubits == 1
num_qubits = len(circuit.qubits)
if max_qubits > 0 and (num_qubits > max_qubits):
if 0 < num_qubits < max_qubits:
raise CircuitTooWideForTarget(
f"Number of qubits ({num_qubits}) in {circuit.name} "
f"is greater than maximum ({max_qubits}) in the coupling_map"
Expand Down

0 comments on commit c4a5736

Please sign in to comment.