Click or drag to resize
QubitStateSet Method (Double, Double, Double, Double)
Sets the state vector for this qubit, if it is unentangled. This method will raise an exception if the qubit is entangled.

Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax
F#
member StateSet : 
        r1 : float * 
        i1 : float * 
        r2 : float * 
        i2 : float -> unit 

Parameters

r1
Type: SystemDouble
The real part of the |0> amplitude to set this qubit's state to.
i1
Type: SystemDouble
The imaginary part of the |0> amplitude to set this qubit's state to.
r2
Type: SystemDouble
The real part of the |1> amplitude to set this qubit's state to.
i2
Type: SystemDouble
The imaginary part of the |1> amplitude to set this qubit's state to.
See Also