ApplyOperation Method (Operation, Indexes)
Cove - A Practical Quantum Computer Programming Framework
ApplyOperation Method (Operation, Indexes)
NamespacesCove.BaseIQuantumRegisterApplyOperation(IQuantumOperation, array<Int32>[]()[])
Apply a generic operation to the specified qubits.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister ApplyOperation(
	IQuantumOperation Operation,
	int[] Indexes
)
Function ApplyOperation ( _
	Operation As IQuantumOperation, _
	Indexes As Integer() _
) As IQuantumRegister
IQuantumRegister^ ApplyOperation(
	IQuantumOperation^ Operation, 
	array<int>^ Indexes
)
Parameters
Operation (IQuantumOperation)
Operation to apply to the qubit(s)
Indexes (array< Int32 >[]()[])
Indexes to apply the operation to.
Return Value
A reference to this register after the operation has been applied.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if any of the indexes are out of range.
SizeMismatchExceptionThrown if the operation does not size does not match the size of the register.

Assembly: Cove.Base (Module: Cove.Base) Version: 1.0.0.0 (1.0.0.0)