Stav dette: Discrete circuit optimization