QuantumComputer NewRegister Method (IDictionary UInt64,  , Int32)A Sandcastle Documented Class Library
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: Quantum
Assembly: Quantum (in Quantum.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public Register NewRegister(
	IDictionary<ulong, Complex> initStates,
	int width
)

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: Register
Newly created register.
See Also