uid | title | ms.date | ms.topic | qsharp.kind | qsharp.namespace | qsharp.name | qsharp.summary |
---|---|---|---|---|---|---|---|
Microsoft.Quantum.Canon.CControlledC |
CControlledC function |
7/28/2023 12:00:00 AM |
managed-reference |
function |
Microsoft.Quantum.Canon |
CControlledC |
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. |
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)
An operation to be conditionally applied.
A new operation which is op if the classical control bit is true.
The input type of the operation to be conditionally applied.
- Microsoft.Quantum.Canon.CControlled