Skip to content

Commit

Permalink
Add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythir committed Sep 20, 2024
1 parent 90355c9 commit ad1afd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qiskit_quantuminspire/cqasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ def dumps(circuit: QuantumCircuit) -> str:
continue

try:
# Get the gate's method in the CircuitBuilder class, call with operands
# All of the builder's methods follow the same pattern, first the qubit operands, then parameters
# Only method with classical bit operands is measure, which does not have parameters
getattr(builder, _QISKIT_TO_OPENSQUIRREL_MAPPING[name])(*qubit_operands, *clbit_operands, *params)
except KeyError:
raise NotImplementedError(
Expand Down

0 comments on commit ad1afd3

Please sign in to comment.