RAll1 operation
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
反馈
提交和查看相关反馈