A physical qubit with built-in error correction