RAll1 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-ones state by a given phase.

operation RAll1 (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{1\cdots 1}\bra{1\cdots 1}$.

Input

phase : Double

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

qubits : Qubit[]

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

Output : Unit