Skip to content

Commit

Permalink
Merge branch 'main' into plot-execution-spans
Browse files Browse the repository at this point in the history
  • Loading branch information
ihincks authored Oct 28, 2024
2 parents 660b2ab + 2f2a1d0 commit 81549bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qiskit_ibm_runtime/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ def _is_isa_circuit_helper(circuit: QuantumCircuit, target: Target, qubit_map: D
# errors (beyond pi/2 does not trigger an error down the stack, only may become less
# accurate).
if name == "rzz" and (
instruction.params[0] < 0.0 or instruction.params[0] > 1.001 * np.pi / 2
instruction.operation.params[0] < 0.0
or instruction.operation.params[0] > 1.001 * np.pi / 2
):
return f"The instruction {name} on qubits {qargs} is supported only for angles in the \
range [0, pi/2], but an angle of {instruction.params[0]} has been provided."
range [0, pi/2], but an angle of {instruction.operation.params[0]} has been provided."

if isinstance(operation, ControlFlowOp):
for sub_circ in operation.blocks:
Expand Down

0 comments on commit 81549bc

Please sign in to comment.