Ward of the 16th is the only likely candidate I could find. However, I would doubt a staff specialist would be assigned to lead rifleman.
Also, this Ward was in SW Virginia at the time.
James R. Ward, Captain and A. Q. M., ordered to report to 16th Virginia Regiment Cavalry as Ass't QM, April 30, 1863, to take rank March 2, signed a requisition March 31, 1864 at Tazwell County, Va. as Capt. & AQM, assigned Q. M. D., Post duty at Wytheville, Va. November 27, 1964