Perform the Z gate operation to the qubits at the specified indexes.
| C# | Visual Basic | Visual C++ |
IQuantumRegister OperationZGate( int[] Indexes )
Function OperationZGate ( _ Indexes As Integer() _ ) As IQuantumRegister
IQuantumRegister^ OperationZGate( array<int>^ Indexes )
- Indexes (array< Int32 >[]()[])
- Indexes of qubits to apply the operation to.
A reference to this register after the operation has been applied.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | Thrown if any of the indexes
are out of range. |