Spin qubits and photonic spin density