A new general model formulates the optimal implementation of any N-qubit quantum gate as a boundary value problem solvable ...