Skip to content

Replace TaggedOperation with a proper object proxy #8268

Description

@daxfohl

Is your design idea/issue related to a use case or problem? Please explain

TaggedOperation and such tend to be troublesome both for users to use (have to remember to unwrap everywhere) and for maintainers to maintain (have to remember to forward any new protocols, implement all new base methods).

Describe your design idea/issue

Make a Tagged object proxy or use a popular third party one like wrapt, and eliminate the manual plumbing and upkeep of forwarding method and protocol calls, have isinstance work how users expect, and allow the same behavior for gates, qubits, moments, etc without needing individual classes for each.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/design-issueA conversation around designstatus/needs-agreed-designWe want to do this, but it needs an agreed upon design before implementationtriage/needs-feasibility[Feature requests] Needs design work to prove feasibility before accepting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions