I'm using qiskit and would like to convert easily between matrix operators and their corresponding circuits. I have 2 types of operators:
- Permutation matrices (binary entries only) which must be converted without error to a circuit
- General unitary matrices for which I can tolerate a small error
The matrices are in
How can this be achieved? And how much of an error is introduced?