Exemplo n.º 1
0
 static CircuitCell()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(CircuitCell), new FrameworkPropertyMetadata(typeof(Canvas)));
     None        = new CircuitCell();
     CellSize    = 50;
     MarginValue = CellSize / 10;
 }
Exemplo n.º 2
0
 public override QuantumGate CreateGate(CircuitCell topCell, CircuitCell bottomCell)
 {
     return(new ControlGate(topCell, bottomCell, this));
 }
Exemplo n.º 3
0
 public override QuantumGate CreateGate(CircuitCell topCell, CircuitCell bottomCell)
 {
     return(new QuantumGate(CircuitCell.None, CircuitCell.None, this));
 }
Exemplo n.º 4
0
 public UnitaryGate(CircuitCell topCell, CircuitCell bottomCell, UnitaryGateModel model) : base(topCell, bottomCell, model)
 {
     Controls = new List <ControlGate>();
 }