Skip to content

Move ParameterVector to Rust #16208

@jakelishman

Description

@jakelishman

We currently have a Python object (ParameterVector) deeply nested inside a core Rust data type (ParameterExpression -> Symbol). Since ParameterVector is frequently used in library circuits, this means we inadvertently have Python objects buried much deeper than we expect, which a) makes us slower than we should be and b) makes it easier to violate panicking contracts in simple Clone operations (e.g. #16053).

We need to make ParameterVector a core Rust object to avoid this in the future.

Chain of PRs to fix this issue:

Metadata

Metadata

Assignees

Labels

mod: qpyRelated to QPY serialization

Type

No type
No fields configured for issues without a type.

Projects

Status
Ready

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions