Пример #1
0
 public OutputState(ulong initialValue, double probability, int width)
 {
     _width = width;
     _bits = new char[width];
     _value = initialValue;
     UpdateBits(initialValue);
     _amplitute = null;
     _probability = probability;
 }
Пример #2
0
 public OutputState(ulong initialValue, Complex amplitude, int width)
 {
     _width = width;
     _bits = new char[width];
     _value = initialValue;
     UpdateBits(initialValue);
     _amplitute = amplitude;
     _probability = Math.Pow(amplitude.Magnitude, 2);
 }
Пример #3
0
 protected override void OnMouseDown(MouseEventArgs e)
 {
     Size size = this.ClientSize;
     this._DragPoint = this.Camera.Transform(e.X, e.Y, size.Width, size.Height);
 }
Пример #4
0
 protected override void OnMouseUp(MouseEventArgs e)
 {
     this._DragPoint = null;
 }