You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this project, an output file of a Hamiltonian is generated from an input file of an unrotated Hamiltonian and that of a Unitary transformation.
The format of the input file is as follows
Here, $c_m$ represents a coefficient (float), $n_{mi}$ indicates the spin number (which spin), and $p_{mi}$ represents the pauli matrix acting on the spin $n_{mi}$. $p_{mi}$ could only take on integer values of ${0,1,2,3}$, where $0$ is the identity matrix, $1$ is the pauli X matrix, $2$ is the pauli Y matrix, and $3$ is the pauli Z matrix.
So, using this format of input and output for an input Hamiltonian and a Unitary transformation, we create another file of the same format.