Coded Qubit Based on Electron Spin