Problem
Apply a global phase -1 to all qubits x : Qubit[]
.
My solution
ApplyToEach(R, PauliI, 2.0 * PI(), x)
However this yields a syntax error.
From the ApplyToEach doc, it works if the operation has no parameters:
using (register = Qubit[3]) {
ApplyToEach(H, register);
}
Thank you for your expertise. Happy qubitting!