Cove - A Practical Quantum Computer Programming Framework
OperationControlledU Method (TargetOperation, ControlIndex, TargetIndexes)
NamespacesCove.LocalSimulationQuantumRegisterOperationControlledU(IQubitOperation, Int32, array<Int32>[]()[])
Perform the TargetOperation on the qubits at TargetIndexes if ControlIndex is |1>.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister OperationControlledU(
	IQubitOperation TargetOperation,
	int ControlIndex,
	int[] TargetIndexes
Public Function OperationControlledU ( _
	TargetOperation As IQubitOperation, _
	ControlIndex As Integer, _
	TargetIndexes As Integer() _
) As IQuantumRegister
virtual IQuantumRegister^ OperationControlledU(
	IQubitOperation^ TargetOperation, 
	int ControlIndex, 
	array<int>^ TargetIndexes
) sealed
TargetOperation (IQubitOperation)
The operation to apply to the target qubits.
ControlIndex (Int32)
Index of the control qubit.
TargetIndexes (array< Int32 >[]()[])
Indexes of the target qubits
Return Value
A reference to this register after the operation has been applied.
IndexOutOfRangeExceptionThrown if any of the indexes are out of range.
DuplicateIndexesExceptionThrown if the same qubit is specified as control and target.
NotImplementedExceptionThis method is not yet implemented.

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