Skip to content

Support encoding Pauli as dictionary key #1472

Open
@jyu00

Description

What is the expected enhancement?

If I want to build my own Estimator-like function, for example, which accepts a mapping with Pauli as the key, as described in the spec, this does not currently work. The job would fail with

TypeError: keys must be str, int, float, bool or None, not Pauli

since the default JSON encoder doesn't accept Pauli as a dictionary key type.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority: lowLow priorityproject: clientLabel to identify features related with client projectproject: gatewayLabel to identify features related with gateway project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions