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