Arbitrary Rotation of a Single Spinwave Qubit in an Atomic-Ensemble Quantum Memory