Set the qubits starting at StartingIndex to the classical result SetTo.
| C# | Visual Basic | Visual C++ |
public IQuantumRegister SetQubits( ClassicalResult SetTo )
Public Function SetQubits ( _ SetTo As ClassicalResult _ ) As IQuantumRegister
public: virtual IQuantumRegister^ SetQubits( ClassicalResult^ SetTo ) sealed
- SetTo (ClassicalResult)
- The classical result which will be read and the applied to the qubits starting at StartingIndex and in the same order.
A reference to the modified register.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown 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. |
| IndexOutOfRangeException | Thrown if the index specified does
not exist in the register. |
| NotImplementedException | This method is not yet
implemented. |