Cove - A Practical Quantum Computer Programming Framework
ApplyOperation Method (Operation)
NamespacesCove.LocalSimulationQuantumRegisterApplyOperation(IQuantumOperation)
Apply a generic operation to the register.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister ApplyOperation(
	IQuantumOperation Operation
)
Public Function ApplyOperation ( _
	Operation As IQuantumOperation _
) As IQuantumRegister
public:
virtual IQuantumRegister^ ApplyOperation(
	IQuantumOperation^ Operation
) sealed
Parameters
Operation (IQuantumOperation)
The operation to apply
Return Value
A reference to this register after the operation has been applied.
Exceptions
ExceptionCondition
NotUnitaryOperationExceptionThrown if a non-unitary operation is passed. All quantum operations must be unitary.
SizeMismatchExceptionThrown if the size of one of the operations does not match the size of the register.
ArgumentExceptionThrown if the operation does not have AbstractSimulatedQuantumOperation as a base class.

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