Skip to content

Consider adding numpy number types to TParamVal #5758

Description

@dabacon

Current we define

TParamVal = Union[float, sympy.Expr]

for parameter values (like exponents in cirq.EigenGates). However in general these also work for numpy types like np.double.

We should consider adding support for these numpy types

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

    area/numpyarea/typecheckhelp wantedContributions welcome!kind/healthFor CI/testing/release process/refactoring/technical debt itemsno QC knowledge neededWant to contribute to Cirq, but don't know quantum computing? This issue is for you.triage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked on

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions