Mapping Spin Coherence of a Single Rare-Earth Ion in a Crystal onto a Single Photon Polarization State