Returns amplitudes of each possible state of register. Amplitude is a complex number, which squared magnitude is the probability of the state.
If register is entangled, the amplitudes cannot be computed. Thus, the method GetAmplitudes() returns null for such registers. The method returns meaningful value, if register is RootRegister, or if it was not a part of multi-register operations (see Quantum.Operations). Even if the register is not entangled with any other, but was used in multi-register operation, the returned value is null because such operation connect participating registers into one RootRegister.
Assembly: Quantum (in Quantum.dll) Version: 220.127.116.11 (18.104.22.168)
Return ValueType: IReadOnlyDictionary UInt64,
Dictionary, where key is a possible state, and value is amplitude of that state.
Null, if register is a part of other register (e.g. RootRegister, after participating in multi-register operation).