Skip to content

Resolve union types of float / complex and symbolic stuff #266

@EarlMilktea

Description

@EarlMilktea

Describe the feature you'd like

Refactor simulators or/and update annotations to accurately keep track of types and get rid of unions such as npt.NDArray[np.complex128 | np.object_].

Additional context

Union types in return type annotations are in general not good, as users/developers need to further narrow types frequently.

Metadata

Metadata

Labels

codingcoding (not mbqc-related) issue and proposalsdiscussion neededsimulation backendrelated to numerical simulation backend

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions