Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
jlapeyre committed Jul 6, 2023
1 parent 413d22e commit 0b961b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qiskit/circuit/quantumcircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ def qasm(
instruction_qasm = "barrier;" if not qargs else f"barrier {qargs};"
elif hasattr(operation, "has_qasm2") and not operation.has_qasm2():
raise CircuitError(
f"No QASM 2 representation is defined for operation {operation.name}"
f"No OpenQASM 2 representation is defined for operation {operation.name}"
)
else:
operation = _qasm2_define_custom_operation(
Expand Down Expand Up @@ -5211,6 +5211,7 @@ def _bit_argument_conversion_scalar(specifier, bit_sequence, bit_set, type_):
)
raise CircuitError(message)


def _instruction_qasm2(operation):
"""Return an OpenQASM 2 string for the instruction."""
name_param = operation.name
Expand Down

0 comments on commit 0b961b3

Please sign in to comment.