Cove - A Practical Quantum Computer Programming Framework
ApplyOperation Method (Operation)
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
virtual IQuantumRegister^ ApplyOperation(
	IQuantumOperation^ Operation
) sealed
Operation (IQuantumOperation)
The operation to apply
Return Value
A reference to this register after the operation has been applied.
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: (