Computes an efficient quantum algorithm for the quantum Schur transform on
The quantum algorithm is returned as a list of
The quantum algorithm uses
We assume that the initial register written as a vector has form
Runs with Python 3.2+.
The main procedure in "schurtransform.py" is schuralg(n), which returns a list of
schurindices(n) returns a dict that maps the key '$s,k,m_s$' to the output entry used to encode the state with spin-projection
For example,
This version allows straightforward interactive visualization using Mathematica language tools.
Runs with Mathematica 10+.
The main procedure in "Schur Transform.nb" is SchurDecomp[n], which returns a list of
SchurIndices[n] returns an association (map) that takes the key