pygsti.tools.symplectic.check_valid_clifford#
- check_valid_clifford(s, p)#
Checks if a symplectic matrix - phase vector pair (s,p) is the symplectic representation of a Clifford.
This uses the formulas derived in Hostens and De Moor PRA 71, 042315 (2005).
- Parameters:
s (numpy array) – The symplectic matrix over the integers mod 2 representing the Clifford
p (numpy array) – The ‘phase vector’ over the integers mod 4 representing the Clifford
- Returns:
True if (s,p) is the symplectic representation of some Clifford.
- Return type:
bool