Quantum error correction is believed to be a necessity for large-scale fault-tolerant quantum computation. In the past two decades, various constructions of error-correcting codes (QECCs) have been developed, leading many good code families. However, majority these are not suitable near-term devices. Here we present VarQEC, noise-resilient variational algorithm search with hardware-efficient en...