Gate circuit QEC