pygsti.tools.symplectic.check_symplectic#
- check_symplectic(m, convention='standard')#
Checks whether a matrix is symplectic.
- Parameters:
m (numpy array) – The matrix to check.
convention (str, optional) – Can be either ‘standard’ or ‘directsum’, Specifies the convention of the symplectic form with respect to which the matrix should be sympletic.
- Returns:
A bool specifying whether the matrix is symplectic
- Return type:
bool