Construct a quantum register with a specific number of qubits.

Declaration Syntax
public QuantumRegister(
int NumberOfQubits
)
Public Sub New ( _
NumberOfQubits As Integer _
)
public:
QuantumRegister(
int NumberOfQubits
)

Parameters
- NumberOfQubits (Int32)
- Number of qubits in the register.

Exceptions
| Exception | Condition |
|---|
| ArgumentOutOfRangeException | Thrown if the NumberOfQubits parameter
is less than or equal to zero- it must be a positive integer. Also thrown if the
maximum number of allowable qubits would be exceeded.
|
Assembly:
Cove.LocalSimulation (Module: Cove.LocalSimulation) Version: 1.0.0.0 (1.0.0.0)