pygsti.tools.symplectic.construct_valid_phase_vector

pygsti.tools.symplectic.construct_valid_phase_vector#

construct_valid_phase_vector(s, pseed)#

Constructs a phase vector that, when paired with the provided symplectic matrix, defines a Clifford gate.

If the seed phase vector, when paired with s, represents some Clifford this seed is returned. Otherwise 1 mod 4 is added to the required elements of the pseed in order to make it at valid phase vector (which is one of many possible phase vectors that, together with s, define a valid Clifford).

Parameters:
  • s (numpy array) – The symplectic matrix over the integers mod 2 representing the Clifford

  • pseed (numpy array) – The seed ‘phase vector’ over the integers mod 4.

Returns:

Some p such that (s,p) is the symplectic representation of some Clifford.

Return type:

numpy array