Creates new Register, with given width and initial state.Namespace: Quantum
Assembly: Quantum (in Quantum.dll) Version: 18.104.22.168 (22.214.171.124)
- Type: System UInt64
Unsigned long integer, which binary representation is the initial configuration of qubits in new register.
- 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 ValueType: Register
Newly created register.