Cove - A Practical Quantum Computer Programming Framework
OperationControlledU Method (TargetOperation, ControlIndex, TargetIndexes)
NamespacesCove.BaseIQuantumRegisterOperationControlledU(IQubitOperation, Int32, array<Int32>[]()[])
Perform the TargetOperation on the qubits at TargetIndexes if ControlIndex is |1>.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister OperationControlledU(
	IQubitOperation TargetOperation,
	int ControlIndex,
	int[] TargetIndexes
)
Function OperationControlledU ( _
	TargetOperation As IQubitOperation, _
	ControlIndex As Integer, _
	TargetIndexes As Integer() _
) As IQuantumRegister
IQuantumRegister^ OperationControlledU(
	IQubitOperation^ TargetOperation, 
	int ControlIndex, 
	array<int>^ TargetIndexes
)
Parameters
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.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if any of the indexes are out of range.
DuplicateIndexesExceptionThrown if the same qubit is specified as control and target.

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