pygsti.tools.symplectic.symplectic_kronecker

pygsti.tools.symplectic.symplectic_kronecker#

symplectic_kronecker(sp_factors)#

Takes a kronecker product of symplectic representations.

Construct a single (s,p) symplectic (or stabilizer) representation that corresponds to the tensor (kronecker) product of the objects represented by each (s,p) element of sp_factors.

This is performed by inserting each factor’s s and p elements into the appropriate places of the final (large) s and p arrays. This operation works for combining Clifford operations AND also stabilizer states.

Parameters:

sp_factors (iterable) – A list of (s,p) symplectic (or stabilizer) representation factors.

Returns:

  • s (numpy.ndarray) – An array of shape (2n,2n) where n is the total number of qubits (the sum of the number of qubits in each sp_factors element).

  • p (numpy.ndarray) – A 1D array of length 2n.