pygsti.tools.symplectic.find_symplectic_transvection

pygsti.tools.symplectic.find_symplectic_transvection#

find_symplectic_transvection(x, y)#

A utility function for selecting a random Clifford element.

Code from “How to efficiently select an arbitrary Clifford group element” by Robert Koenig and John A. Smolin.

Parameters:
  • x (numpy.ndarray) – A length-2n vector.

  • y (numpy.ndarray) – A length-2n vector.

Return type:

numpy.ndarray