Create a DAGCircuit::with_capacity
method in Rust
#13002
Labels
mod: circuit
Related to the core of the `QuantumCircuit` class or the circuit library
Rust
This PR or issue is related to Rust code in the repository
What should we add?
Tracked by #13001
This method should allow us to create a pre-allocated
DAGCircuit
avoiding most of the overhead of sequentially adding instructions to theDAGCircuit
and re-allocating memory on every addition.The text was updated successfully, but these errors were encountered: