Cove - A Practical Quantum Computer Programming Framework
ApplyOperation Method (OperationMatrix)
Apply a generic operation to the register.
Declaration Syntax
C#Visual BasicVisual C++
protected IQuantumRegister ApplyOperation(
	ComplexMatrix OperationMatrix
Protected Function ApplyOperation ( _
	OperationMatrix As ComplexMatrix _
) As IQuantumRegister
IQuantumRegister^ ApplyOperation(
	ComplexMatrix^ OperationMatrix
OperationMatrix (ComplexMatrix)
The operation to apply
Return Value
A reference to this register after the operation has been applied.
SizeMismatchExceptionThrown if the number of qubits the operation applies to does not match the number of qubits in the register.
ArgumentExceptionThrown if the number of rows and columns in OperationMatrix are not equal.
ArgumentExceptionThrown if the number of rows and columns in OpeartionMatrix are not a power of two.
ArgumentOutOfRangeExceptionThrown if OperationMatrix doesn't match the size of the exposed qubits.

Assembly: Cove.LocalSimulation (Module: Cove.LocalSimulation) Version: (