Hardware-efficient designs for quantum error correction