Skip to content

Commit

Permalink
better experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderivrii committed Jan 22, 2024
1 parent 6299cfb commit 86ab8b1
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions test/python/transpiler/experiment_collect_stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,24 @@ def example1():

def example2():
"""Showing off dag dependency"""
qc = QuantumCircuit(6)

qc = QuantumCircuit(4)
qc.cx(0, 1)
qc.cx(0, 2)
qc.cx(0, 3)

qc.cx(5, 1)
qc.cx(5, 2)
qc.cx(5, 3)

qc.cx(0, 4)
qc.cx(5, 4)

print(qc)

qc.cx(3, 1)
qc.cx(3, 2)
qc.cx(0, 1)
qc.cx(0, 2)
qc.cx(3, 1)
qc.cx(3, 2)
qc.cx(0, 1)
qc.cx(0, 2)
qc.cx(3, 1)
qc.cx(3, 2)
qc.cx(0, 1)
qc.cx(0, 2)
qc.cx(3, 1)
qc.cx(3, 2)

block_collector = BlockCollector(circuit_to_dag(qc))
blocks = block_collector.collect_all_matching_blocks(
Expand Down

0 comments on commit 86ab8b1

Please sign in to comment.