CControlledC function
Warning
This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.
Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.
Namespace: Microsoft.Quantum.Canon
Package: Microsoft.Quantum.Standard
Given an operation op, returns a new operation which
applies the op if a classical control bit is true. If false
, nothing happens.
The modifier C
indicates that the operation is controllable.
function CControlledC<'T> (op : ('T => Unit is Ctl)) : ((Bool, 'T) => Unit is Ctl)
Input
op : 'T => Unit is Ctl
An operation to be conditionally applied.
Output : (Bool,'T) => Unit is Ctl
A new operation which is op if the classical control bit is true.
Type Parameters
'T
The input type of the operation to be conditionally applied.
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for