Perform the Hadamard (square root of Not) operation to the specified qubits.
Declaration Syntax
C# | Visual Basic | Visual C++ |
IQuantumRegister OperationHadamard( int[] Indexes )
Function OperationHadamard ( _ Indexes As Integer() _ ) As IQuantumRegister
IQuantumRegister^ OperationHadamard( array<int>^ Indexes )
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 the indexes do not exist
in the register. |