Add support for CCO's to Gatesets. #5004
Labels
area/classical
area/gatesets
area/transformers
kind/feature-request
Describes new functionality
priority/p2
Next release should contain it
status/needs-agreed-design
We want to do this, but it needs an agreed upon design before implementation
triage/accepted
A consensus emerged that this bug report, feature request, or other action should be worked on
Milestone
Is your feature request related to a use case or problem? Please describe.
Gatesets currently accept any
cirq.Gate
instance or sub-type as a valid input parameter. For special operations, likeGlobalPhaseOperation
,CircuitOperation
etc, they have flags likeunroll_circuit_op
oraccept_global_phase_op
to control the behavior.ClassicallyControlledOperation
was recently introduced as a new type of operation that wraps traditional gate operations but don't have anop.gate
property. As a result, there's currently no way to specify in a gateset definition that aCCO
should be accepted or not.Describe the solution you'd like
Support for
CCO
s should be added to gatesets, either by adding an additional flag or by adding a.gate
property to theCCO
operation, which can simply return the.gate
of it's underlying sub_operation.What is the urgency from your perspective for this issue? Is it blocking important work?
P1 - I need this no later than the next release (end of quarter)
The text was updated successfully, but these errors were encountered: