Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a DAGCircuit::with_capacity method in Rust #13002

Closed
Tracked by #13001
raynelfss opened this issue Aug 20, 2024 · 0 comments · Fixed by #12975
Closed
Tracked by #13001

Create a DAGCircuit::with_capacity method in Rust #13002

raynelfss opened this issue Aug 20, 2024 · 0 comments · Fixed by #12975
Assignees
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

Comments

@raynelfss
Copy link
Contributor

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.

@raynelfss raynelfss added Rust This PR or issue is related to Rust code in the repository mod: circuit Related to the core of the `QuantumCircuit` class or the circuit library labels Aug 20, 2024
@raynelfss raynelfss self-assigned this Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant