Leverage Rust InternContext for DAGCircuit internals #11721
Labels
mod: transpiler
Issues and PRs related to Transpiler
performance
type: feature request
New feature or request
Milestone
What should we add?
The memory and speed advantages provided by #10827 and #11214
QuantumCircuit
should be at least partially applicable toDAGCircuit
as well. In general theCircuitInstruction
class is more or less equivalent with theDAGOpNode
class for theDAGCircuit
. The big difference though is the container class is already in rust, via rustworkx, so there isn't anything analgous toCircuitData
in the public interface to port for that.We should be able to take advantage of the
InternContext
for the individual entries in the dagcircuit if we store theInternContext
or some container object for dealing with the bit object caching in theDAGCircuit
and use it for the bits stored in the dag nodes. There is also some potential for further dag circuit specific optimization like using the bit indices from the internal caching to generate thesort_key
attribute of the dag nodes more efficiently.The text was updated successfully, but these errors were encountered: