Cove - A Practical Quantum Computer Programming Framework
SetQubits Method (Indexes, SetTo)
NamespacesCove.LocalSimulationQuantumRegisterSetQubits(array<Int32>[]()[], Boolean)
Set the specified qubits to the value specified.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister SetQubits(
	int[] Indexes,
	bool SetTo
Public Function SetQubits ( _
	Indexes As Integer(), _
	SetTo As Boolean _
) As IQuantumRegister
virtual IQuantumRegister^ SetQubits(
	array<int>^ Indexes, 
	bool SetTo
) sealed
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.
A qubit is measured before it is set, so any other qubits entangled with these will be effected.
IndexOutOfRangeExceptionThrown if any of the specified indexes are out of range.
NotImplementedExceptionThis method is not yet implemented.

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