ControlledReset Method (ControlIndex, TargetIndexes, ClassicalValue)
Cove - A Practical Quantum Computer Programming Framework
ControlledReset Method (ControlIndex, TargetIndexes, ClassicalValue)
NamespacesCove.BaseIQuantumAlgorithmsControlledReset(Int32, array<Int32>[]()[], ClassicalResult)
The controlled reset operation. If the control qubit is 1 then all the target indexes are reset to 0.
Declaration Syntax
C#Visual BasicVisual C++
List<IQuantumOperation> ControlledReset(
	int ControlIndex,
	int[] TargetIndexes,
	ClassicalResult ClassicalValue
Function ControlledReset ( _
	ControlIndex As Integer, _
	TargetIndexes As Integer(), _
	ClassicalValue As ClassicalResult _
) As List(Of IQuantumOperation)
List<IQuantumOperation^>^ ControlledReset(
	int ControlIndex, 
	array<int>^ TargetIndexes, 
	ClassicalResult^ ClassicalValue
ControlIndex (Int32)
The index of the control qubit.
TargetIndexes (array< Int32 >[]()[])
The target indexes to reset if the control is set.
ClassicalValue (ClassicalResult)
The classical value to reset.
Return Value
Operations required to perform this.
ArgumentNullExceptionThrown if any of the parameters are null.
DuplicateIndexesExceptionThrown if any of the indexes specified are not unique.
ArgumentOutOfRangeExceptionThrown if any of the indexes specified are less than 0, or if TargetIndexes is an empty array.

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