Skip to content

Add manual variable support to expr.Var #10923

@jakelishman

Description

@jakelishman

Add support to expr.Var for representing classical variables with some fixed storage location as described in Qiskit/RFCs#50. For the initial pass, we can use some UUID as the backing "data store" link value to use in direct comparisons, which has the advantage of letting QPY round-trip serialisation reproduce the values exactly, whereas requiring singleton object identities for equality has the problem that two circuits serialised separately will end up with spuriously difference variables.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions