Apply the Not (X gate) operation to the qubit at the specified index.
| C# | Visual Basic | Visual C++ |
IQuantumRegister OperationNot( int Index )
Function OperationNot ( _ Index As Integer _ ) As IQuantumRegister
IQuantumRegister^ OperationNot( int Index )
- Index (Int32)
- Index of the qubit to apply the operation to.
A reference to this register after the operation has been applied.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | Thrown in the index specified
is out of range. |