NoOp operation

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.QSharp.Foundation

Performs the identity operation (no-op) on an argument.

operation NoOp<'T> (input : 'T) : Unit is Adj + Ctl

Description

This operation takes a value of any type and does nothing to it. This can be useful whenever an input of an operation type is expected, but no action should be taken. For instance, if a particular error correction syndrome indicates that no error has occurred, NoOp<Qubit[]> may be the correct recovery procedure. Similarly, if an operation expects a state preparation procedure as input, NoOp<Qubit[]> can be used to prepare the state $\ket{0 \cdots 0}$.

Input

input : 'T

A value to be ignored.

Output : Unit

Type Parameters

'T

See Also