From 656c91a175d4078230b19fe0b7a45b96e48c22c9 Mon Sep 17 00:00:00 2001 From: AlexanderIvrii Date: Mon, 22 Jan 2024 14:06:09 +0200 Subject: [PATCH] experiments --- test/python/transpiler/experiment_collect_stars.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/python/transpiler/experiment_collect_stars.py b/test/python/transpiler/experiment_collect_stars.py index 65edb9705b8a..ffbed3f018ab 100644 --- a/test/python/transpiler/experiment_collect_stars.py +++ b/test/python/transpiler/experiment_collect_stars.py @@ -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( @@ -182,4 +186,5 @@ def example2(): if __name__ == "__main__": + example1() example2()