-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Implement a way to identify CircuitOperations (operations with loops) #6570
Copy link
Copy link
Open
Labels
good first issueThis issue can be resolved by someone who is not familiar with the codebase. A good starting issue.This issue can be resolved by someone who is not familiar with the codebase. A good starting issue.kind/feature-requestDescribes new functionalityDescribes new functionalitytriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked onA consensus emerged that this bug report, feature request, or other action should be worked on
Metadata
Metadata
Assignees
Labels
good first issueThis issue can be resolved by someone who is not familiar with the codebase. A good starting issue.This issue can be resolved by someone who is not familiar with the codebase. A good starting issue.kind/feature-requestDescribes new functionalityDescribes new functionalitytriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked onA consensus emerged that this bug report, feature request, or other action should be worked on
Is your feature request related to a use case or problem? Please describe.
I've been doing a lot of transformations on
Circuits containingCircuitOperations. Sometimes I need to manipulateCircuitOperations. The way I nominally identify them is usingisinstance(..., cirq.CircuitOperation). But it turns out this doesn't work if theCircuitOperationis contained in acirq.TaggedOperation.Describe the solution you'd like
Implement a function like
cirq.measurement_key_objsthat I can trust to always tell me if an operation is aCircuitOperation(or effectively one under the hood).[optional] Describe alternatives/workarounds you've considered
Writing my own custom identifier that handles TaggedOperations. But am I missing something?
[optional] Additional context (e.g. screenshots)
What is the urgency from your perspective for this issue? Is it blocking important work?
P3 - I'm not really blocked by it, it is an idea I'd like to discuss / suggestion based on principle