quantum-compiler / quartz

The Quartz Quantum Compiler
Apache License 2.0
76 stars 19 forks source link

[Optimizer] Add an option to store each circuit transformation step #174

Closed xumingkuan closed 3 months ago

xumingkuan commented 4 months ago

This PR adds an option to store each circuit transformation step, changes test_optimization to test_optimization_steps to test this option, and fixes bugs related to this unit test.

Graph::optimize() now does not create a log file based on the ECC Set name and the circuit name by default.

Also fixes one assertion in circuitseq.cpp that does not compile under debug mode.