Skip to content

Add numpy support for Google serialization#5451

Merged
CirqBot merged 2 commits into
quantumlib:masterfrom
dstrain115:serialization_numpy_types
Jun 6, 2022
Merged

Add numpy support for Google serialization#5451
CirqBot merged 2 commits into
quantumlib:masterfrom
dstrain115:serialization_numpy_types

Conversation

@dstrain115

@dstrain115 dstrain115 commented Jun 6, 2022

Copy link
Copy Markdown
Collaborator
  • Adds support for numpy types for CircuitSerializer and
    deprecated GateOpSerializer.
  • Also add checks for numpy floats and ints.

Fixes: #4010

- Adds support for numpy types for CircuitSerializer and
deprecated GateOpSerializer.
- Also add checks for numpy floats and ints.
@dstrain115 dstrain115 requested review from a team, cduck, verult, vtomole and wcourtney as code owners June 6, 2022 17:38
@dstrain115 dstrain115 requested a review from tanujkhattar June 6, 2022 17:38
@CirqBot CirqBot added the size: S 10< lines changed <50 label Jun 6, 2022
@MichaelBroughton MichaelBroughton self-assigned this Jun 6, 2022
@MichaelBroughton MichaelBroughton added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 6, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 6, 2022
@CirqBot CirqBot merged commit 7e204e9 into quantumlib:master Jun 6, 2022
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Jun 6, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
- Adds support for numpy types for CircuitSerializer and
deprecated GateOpSerializer.
- Also add checks for numpy floats and ints.

Fixes: quantumlib#4010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: S 10< lines changed <50

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GateOpSerializer in cirq.google does not accept numpy numeric types as convertible to float

3 participants