Skip to content

Commit

Permalink
to merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rjain37 committed Dec 22, 2023
1 parent bd73647 commit 36610fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qbraid_qir/cirq/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ def visit_operation(self, operation: cirq.Operation, qids: FrozenSet[cirq.Qid]):
results = [pyqir.result(self._module.context, n) for n in qlabels]
# call some function that depends on qubits and results

callable = get_callable_from_pyqir_name(operation)
callable(self._builder, *qubits, *results)

def ir(self) -> str:
return str(self._module)

Expand Down

0 comments on commit 36610fa

Please sign in to comment.