pygsti.tools.symplectic.symplectic_innerproduct#
- symplectic_innerproduct(v, w)#
Returns the symplectic inner product of two vectors in F_2^(2n).
Here F_2 is the finite field containing 0 and 1, and 2n is the length of the vectors. Code from “How to efficiently select an arbitrary Clifford group element” by Robert Koenig and John A. Smolin.
- Parameters:
v (numpy.ndarray) – A length-2n vector.
w (numpy.ndarray) – A length-2n vector.
- Return type:
int