Physical implementation of protected qubits