Cove - A Practical Quantum Computer Programming Framework
SetQubits Method (StartingIndex, SetTo)
NamespacesCove.BaseIQuantumRegisterSetQubits(Int32, ClassicalResult)
Set the qubits starting at StartingIndex to the classical result SetTo.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister SetQubits(
	int StartingIndex,
	ClassicalResult SetTo
Function SetQubits ( _
	StartingIndex As Integer, _
	SetTo As ClassicalResult _
) As IQuantumRegister
IQuantumRegister^ SetQubits(
	int StartingIndex, 
	ClassicalResult^ SetTo
StartingIndex (Int32)
Starting index of the qubits to set.
SetTo (ClassicalResult)
The classical result which will be read and the applied to the qubits starting at StartingIndex and in the same order.
Return Value
A reference to the modified register.
ArgumentOutOfRangeExceptionThrown if the length of SetTo exceeds plus StartingIndex exceeds the length of the register. Example: If the register consists of 5 qubits and StartingIndex is 3 and the length of SetTo is 20 qubits then this exception will be thrown.
IndexOutOfRangeExceptionThrown if the index specified does not exist in the register.

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