Experimental demonstration of loop state-preparation-and-measurement tomography