HY 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.Standard

Applies the Y-basis analog to the Hadamard transformation that interchanges the Z and Y axes.

operation HY (target : Qubit) : Unit is Adj + Ctl

Description

This operation can be simulated by the unitary matrix \begin{align} H_Y \mathrel{:=} S H = \frac{1}{\sqrt{2}} \begin{bmatrix} 1 & 1 \\ i & -i \end{bmatrix}. \end{align}

Input

target : Qubit

Qubit to which the gate should be applied.

Output : Unit

See Also