RAll0 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

Rotates the all-zeros state by a given phase.

operation RAll0 (phase : Double, qubits : Qubit[]) : Unit is Adj + Ctl

Description

This operation can be simulated by the unitary matrix $R=\boldone - (1 - e^{i \phi})\ket{0\cdots 0}\bra{0\cdots 0}$.

Input

phase : Double

The phase $\phi$ applied to the all-zeros state $\ket{0\cdots 0}$.

qubits : Qubit[]

The register whose state is to be rotated by $R$.

Output : Unit