File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,20 @@ struct GateDecompositionPattern final
112112 }
113113 }
114114 }
115+
116+ llvm::errs () << " Found series (" << series.complexity << " ): " ;
117+ for (auto && gate : series.gates ) {
118+ llvm::errs () << gate.op ->getName ().stripDialect ().str () << " , " ;
119+ }
120+
115121 if (!bestSequence) {
116122 return mlir::failure ();
117123 }
124+ llvm::errs () << " \n Decomposition (" << bestSequence->complexity () << " ): " ;
125+ for (auto && gate : bestSequence->gates ) {
126+ llvm::errs () << qc::toString (gate.type ) << " , " ;
127+ }
128+ llvm::errs () << " \n " ;
118129 // only accept new sequence if it shortens existing series by more than two
119130 // gates; this prevents an oscillation with phase gates
120131 if (bestSequence->complexity () + 2 >= series.complexity ) {
You can’t perform that action at this time.
0 commit comments