SetQubits Method (Indexes, SetTo)
Cove - A Practical Quantum Computer Programming Framework
SetQubits Method (Indexes, SetTo)
NamespacesCove.BaseIQuantumRegisterSetQubits(array<Int32>[]()[], Boolean)
Set the specified qubits to the value specified.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister SetQubits(
	int[] Indexes,
	bool SetTo
)
Function SetQubits ( _
	Indexes As Integer(), _
	SetTo As Boolean _
) As IQuantumRegister
IQuantumRegister^ SetQubits(
	array<int>^ Indexes, 
	bool SetTo
)
Parameters
Indexes (array< Int32 >[]()[])
The indexes of the qubits to set.
SetTo (Boolean)
Value to set the qubits to, true (1) or false (0).
Return Value
A reference to the modified register.
Remarks
A qubit is measured before it is set, so any other qubits entangled with these will be effected.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if any of the specified indexes are out of range.

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