Skip to content

Conversation

@daxfohl
Copy link
Collaborator

@daxfohl daxfohl commented Apr 23, 2022

Update all "circuit_params" members to allow complex scalar values. Update the hashing function also to handle these values by returning fixed-point (real, imag) tuples for complex numbers. Add a couple sanity checks that things still work.

Closes #5282

@tanujkhattar

@daxfohl daxfohl requested review from a team, cduck and vtomole as code owners April 23, 2022 05:48
@daxfohl daxfohl requested a review from viathor April 23, 2022 05:49
@CirqBot CirqBot added the size: S 10< lines changed <50 label Apr 23, 2022
@tanujkhattar tanujkhattar self-assigned this Apr 25, 2022
@tanujkhattar tanujkhattar added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Apr 25, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Apr 25, 2022
@CirqBot CirqBot merged commit 1f81beb into quantumlib:master Apr 25, 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 Apr 25, 2022
@daxfohl daxfohl deleted the complex branch April 26, 2022 14:18
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Update all "circuit_params" members to allow complex scalar values. Update the hashing function also to handle these values by returning fixed-point `(real, imag)` tuples for complex numbers. Add a couple sanity checks that things still work.

Closes quantumlib#5282

@tanujkhattar
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
Update all "circuit_params" members to allow complex scalar values. Update the hashing function also to handle these values by returning fixed-point `(real, imag)` tuples for complex numbers. Add a couple sanity checks that things still work.

Closes quantumlib#5282

@tanujkhattar
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.

Update study params to allow Scalar, not just float

3 participants