Apply the Not (X gate) operation to the qubits at the specified indexes.
Declaration Syntax
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
Parameters
- Indexes (array< Int32 >[]()[])
- Indexes of qubits to apply the operations to.
Return Value
A reference to this register after the operation has been applied.
Exceptions
Exception | Condition |
---|---|
IndexOutOfRangeException | Thrown if any of the indexes are
out of range. |