Times1C 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 the product of two single-qubit Clifford operators.

function Times1C (left : Microsoft.Quantum.Synthesis.SingleQubitClifford, right : Microsoft.Quantum.Synthesis.SingleQubitClifford) : Microsoft.Quantum.Synthesis.SingleQubitClifford

Input

left : SingleQubitClifford

The first operator to be multiplied.

right : SingleQubitClifford

The second operator to be multiplied.

Output : SingleQubitClifford

The product of left and right.

Example

Suppose that left and right are both single-qubit Clifford operators.

let left = DrawRandomSingleQubitClifford();
let right = DrawRandomSingleQubitClifford();

Then, the following two snippets are equivalent:

Apply1C(right, q);
Apply1C(left, q);

and:

Apply1C(Times1C(left, right), q);