-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ParallelGate and deprecate ParallelGateOperation #4398
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor comments.
|
||
@pytest.mark.parametrize( | ||
'gate, num_copies, qubits', | ||
( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
turbo nit: I would suggest using list for the list of parametrization cases, since it's homogeneous, unlike the tuples for each case. Applies in several places below, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm, you mean replacing the outermost "tuple of tuples" with a "list of tuples", i.e.
@pytest.mark.parametrize(
'gate, num_copies, qubits',
[ # List instead of tuple
(cirq.SingleQubitGate(), 2, cirq.LineQubit.range(2)),
(cirq.X ** 0.5, 4, cirq.LineQubit.range(4)),
]
)
…into parallel_gate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments, then LGTM
Automerge cancelled: A status check is failing. |
…quantumlib#4411) I had to deprecate a serializable value in quantumlib#4398 and couldn't find documentation around how to do it. This PR adds the relevant documentation.
This PR deprecates `ParallelGateOperation` in favor of a new `ParallelGate` which should be instead. See quantumlib#4358 for more details. This PR also adds support for `ParallleGate` in neutral atoms and pasqal devices, where currently `ParallelGateOperation` is used. The uses of `ParallelGateOperation` will be removed later during deprecation.
This PR deprecates
ParallelGateOperation
in favor of a newParallelGate
which should be instead. See #4358 for more details.This PR also adds support for
ParallleGate
in neutral atoms and pasqal devices, where currentlyParallelGateOperation
is used.The uses of
ParallelGateOperation
will be removed later during deprecation.