SetQubits Method (QubitValues)
Cove - A Practical Quantum Computer Programming Framework
SetQubits Method (QubitValues)
NamespacesCove.BaseIQuantumRegisterSetQubits(array<Boolean>[]()[])
Set qubits based on the boolean values given.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister SetQubits(
	bool[] QubitValues
)
Function SetQubits ( _
	QubitValues As Boolean() _
) As IQuantumRegister
IQuantumRegister^ SetQubits(
	array<bool>^ QubitValues
)
Parameters
QubitValues (array< Boolean >[]()[])
Values to set each qubit to. Qubit at position x will be set to the boolean element at position x in QubitValues.
Return Value
A reference to the modified register.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if QubitValues is null.
ArgumentOutOfRangeExceptionThrown if the length of QubitValues does not match the length of the exposed qubits in the register.

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