-
Notifications
You must be signed in to change notification settings - Fork 1k
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 synchronize_terminal_measurements
transformer to replace SynchronizeTerminalMeasurements
#4911
Conversation
tanujkhattar
commented
Jan 28, 2022
•
edited
Loading
edited
- Part of Organization (and deprecation) of cirq-core/optimizers in cirq-core/transformers #4722
- Follows the new Transformer API Compiling: Circuit Transformers API #4483
- Supports no compile tags NoCompile Tag for optimizers NoCompile Tag for optimizers #4253
- Fixes SynchronizeTerminalMeasurements doesn't handle multi-qubit measurements #4907
…izeTerminalMeasurements
…hronize_terminal
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
cirq-core/cirq/transformers/synchronize_terminal_measurements.py
Outdated
Show resolved
Hide resolved
cirq-core/cirq/transformers/synchronize_terminal_measurements.py
Outdated
Show resolved
Hide resolved
cirq-core/cirq/transformers/synchronize_terminal_measurements.py
Outdated
Show resolved
Hide resolved
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.
Looks good! Just wondering if we should try some CCOs here in the tests ?
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""Transformer pass to move terminal measurements to the end of circuit.""" |
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.
Is this defined as the last moment in the circuit ?
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.
Yes, but the precise moment to which it get's added depends upon the value of after_other_operations
flag.
@MichaelBroughton Added tests for |
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.
Great. LGTM.
…ronizeTerminalMeasurements` (quantumlib#4911) - Part of quantumlib#4722 - Follows the new Transformer API quantumlib#4483 - Supports no compile tags NoCompile Tag for optimizers quantumlib#4253 - Fixes quantumlib#4907
…ronizeTerminalMeasurements` (quantumlib#4911) - Part of quantumlib#4722 - Follows the new Transformer API quantumlib#4483 - Supports no compile tags NoCompile Tag for optimizers quantumlib#4253 - Fixes quantumlib#4907