quantum-compiler / quartz

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

[Optimizer] Compress the circuit during search #150

Open xumingkuan opened 9 months ago

xumingkuan commented 9 months ago

Currently, the queue of circuits takes up a lot of memory during the search.

Both CircuitSeq and Graph stores a lot of information for easier processing of the circuit. But we only need the minimal information necessary to construct the circuit, like a QASM file. We only need the gate type, qubit indices, and param indices for each gate. We can compress the circuit before pushing it into the queue and decompress it upon popping out of the queue.