Creates new Register, with given width and initial state.
Namespace: QuantumAssembly: Quantum (in Quantum.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- initval
- Type: System UInt64
Unsigned long integer, which binary representation is the initial configuration of qubits in new register.
- width
- Type: System Int32
The number of qubits in newly created register.
- size (Optional)
- Type: System Nullable Int32
Optional argument. Describes size of data structure for storing all possible register states and their amplitudes. That inner data structure dynamically resizes itself, but if it could be very inefficient, this argument enables to reserve enough memory in advance.
Return Value
Type: RegisterNewly created register.
See Also