Cove - A Practical Quantum Computer Programming Framework
OperationControlledU Method (TargetOperation, ControlIndex)
NamespacesCove.LocalSimulationQuantumRegisterOperationControlledU(IQubitOperation, Int32)
Perform the TargetOperation on all qubits except the qubit at ControlIndex if the qubit at ControlIndex is |1>. Else there is no change in the register. This arbitrary application of a single qubit operator to n qubits in a register based on a control qubit is called ControlU.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister OperationControlledU(
	IQubitOperation TargetOperation,
	int ControlIndex
)
Public Function OperationControlledU ( _
	TargetOperation As IQubitOperation, _
	ControlIndex As Integer _
) As IQuantumRegister
public:
virtual IQuantumRegister^ OperationControlledU(
	IQubitOperation^ TargetOperation, 
	int ControlIndex
) sealed
Parameters
TargetOperation (IQubitOperation)
The operation to apply to all qubits except the qubit at ControlIndex.
ControlIndex (Int32)
The index of the qubit that will serve as the control. If this is |1> then the TargetOperation is applied to all other qubits.
Return Value
A reference to this register after the operation has been applied.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if ControlIndex is out of range.
NotImplementedExceptionThis method is not yet implemented.

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