Skip to content

Commit

Permalink
experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderivrii committed Jan 22, 2024
1 parent 86ab8b1 commit 656c91a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/python/transpiler/experiment_collect_stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ def example2():
qc.cx(0, 2)
qc.cx(3, 1)
qc.cx(3, 2)
print(qc)

print(f"First using DAGCircuit:")


block_collector = BlockCollector(circuit_to_dag(qc))
blocks = block_collector.collect_all_matching_blocks(
Expand Down Expand Up @@ -182,4 +186,5 @@ def example2():


if __name__ == "__main__":
example1()
example2()

0 comments on commit 656c91a

Please sign in to comment.