Apply the Not (X gate) operation to the qubits at the specified indexes.
| C# | Visual Basic | Visual C++ |
IQuantumRegister OperationNot( int[] Indexes )
Function OperationNot ( _ Indexes As Integer() _ ) As IQuantumRegister
IQuantumRegister^ OperationNot( array<int>^ Indexes )
- Indexes (array< Int32 >[]()[])
- Indexes of qubits to apply the operations 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. |