The goal of this project is to find a unitary matrix that can collapse the superposition of basis states
Because the columns of unitaries form the orthonormal set, it is impossible to find the perfect mapping. So, the application of
See the attached Examples notebook to see such a transformation for a 2-qubit case. According to our goal, mtrx should ideally perform the following mappings:
... I hope you got the idea ...
I found MTRX through gradient decent starting from a random 4x4 matrix (see Getting-Unitary.py)