Creates new Register, with given width and initial states with their amplitudes.
Very useful, when there is a need for creating register in nontrivial state, with some possible values.
Namespace: QuantumAssembly: Quantum (in Quantum.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- initStates
- Type: System.Collections.Generic IDictionary UInt64, Complex
Dictionary, where keys represents states, and values their amplitudes.
- width
- Type: System Int32
The number of qubits in new register.
Return Value
Type: RegisterNewly created register.
See Also