Skip to content

Create a DAGCircuit::with_capacity method in Rust #13002

@raynelfss

Description

@raynelfss

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 the DAGCircuit and re-allocating memory on every addition.

Metadata

Metadata

Assignees

Labels

RustThis PR or issue is related to Rust code in the repositorymod: circuitRelated to the core of the `QuantumCircuit` class or the circuit library

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions