Experimental application of decoherence-free subspaces in an optical quantum-computing algorithm.