Cove - A Practical Quantum Computer Programming Framework
QuantumRegister Constructor (NumberOfQubits)
NamespacesCove.LocalSimulationQuantumRegisterQuantumRegister(Int32)
Construct a quantum register with a specific number of qubits.
Declaration Syntax
C#Visual BasicVisual C++
public QuantumRegister(
	int NumberOfQubits
)
Public Sub New ( _
	NumberOfQubits As Integer _
)
public:
QuantumRegister(
	int NumberOfQubits
)
Parameters
NumberOfQubits (Int32)
Number of qubits in the register.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown 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)