Գրեք սա: Discrete circuit optimization