public QuantumGateModelButton(QuantumGateModel model, CircuitSynthesisWindow circuit) : base() { Size = 1; Width = Height = GateDimension; Model = model; Circuit = circuit; }
//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) { }