pygsti.tools.symplectic.compute_symplectic_matrix#
- compute_symplectic_matrix(i, n)#
Returns the 2n x 2n symplectic matrix, over the finite field containing 0 and 1, with the “canonical” index i.
Code from “How to efficiently select an arbitrary Clifford group element” by Robert Koenig and John A. Smolin.
- Parameters:
i (int) – Canonical index.
n (int) – Number of qubits.
- Return type:
numpy.ndarray