Quantum gate identification: Error analysis, numerical results and optical experiment. (March 2019)