Cove - A Practical Quantum Computer Programming Framework
ApplyOperation Method (OperationMatrix)
NamespacesCove.LocalSimulationQuantumRegisterApplyOperation(ComplexMatrix)
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
protected:
IQuantumRegister^ ApplyOperation(
	ComplexMatrix^ OperationMatrix
)
Parameters
OperationMatrix (ComplexMatrix)
The operation to apply
Return Value
A reference to this register after the operation has been applied.
Exceptions
ExceptionCondition
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: 1.0.0.0 (1.0.0.0)