SingleQubitCliffordAsOperation 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.Synthesis

Package: Microsoft.Quantum.Standard

Returns a representation of a single-qubit Clifford operator as an operation acting on a single qubit.

function SingleQubitCliffordAsOperation (clifford : Microsoft.Quantum.Synthesis.SingleQubitClifford) : (Qubit => Unit is Adj + Ctl)

Input

clifford : SingleQubitClifford

The operator to be represented as an operation.

Output : Qubit => Unit is Adj + Ctl

An operation that applies the given Clifford operator to a single qubit.

Example

Suppose that op is a single-qubit Clifford operator, and that q is a single qubit:

let op = DrawRandomSingleQubitClifford();
use q = Qubit();

Then, the following two lines are equivalent:

Apply1C(op, q);
SingleQubitCliffordAsOperation(op)(q);

See Also