Decomposition of unitary matrix into quantum gates

14 Jan 2025  ·  Dmytro Fedoriaka ·

An algorithm is proposed to convert arbitrary unitary matrix to a sequence of $X$ gates and fully controlled $R_y, R_z$ and $R_1$ gates. This algorithm is used to generate Q# implementation for arbitrary unitary matrix. Some optimizations are considered and complexity of the result is analyzed.

PDF Abstract