Quantum Error Correction of a Qubit Encoded in Grid States of an Oscillator