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.
Currently, the queue of circuits takes up a lot of memory during the search.
Both
CircuitSeq
andGraph
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.