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
public:
virtual IQuantumRegister^ SetQubits(
	array<int>^ Indexes, 
	bool SetTo
) sealed
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.
NotImplementedExceptionThis method is not yet implemented.

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