public QuantumGateModelButton(QuantumGateModel model, CircuitSynthesisWindow circuit) : base()
 {
     Size    = 1;
     Width   = Height = GateDimension;
     Model   = model;
     Circuit = circuit;
 }
Beispiel #2
0
 //TODO: Rozwiązać problem dodawania bramek kontrolujących do istniejących bramek kontrolowanych
 private bool IsCellAvailable(QuantumGateModel model)
 {
     if (!Occupied && !ContainsConnectingGate && controlLine == null)
     {
         return(true);
     }
     //else if (model.IsConnecting && !(Occupied && !ContainsConnectingGate)) { return true; }
     else
     {
         return(false);
     }
 }
 public UnitaryGate(CircuitCell topCell, CircuitCell bottomCell, QuantumGateModel model) : base(topCell, bottomCell, model)
 {
     Controls = new List <ControlGate>();
 }
 public MeasurementGate(CircuitCell topCell, CircuitCell bottomCell, QuantumGateModel model)
     : base(topCell, bottomCell, model)
 {
 }