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