pygsti.tools.symplectic.embed_clifford#
- embed_clifford(s, p, qubit_inds, n)#
Embeds the (s,p) Clifford symplectic representation into a larger symplectic representation.
The action of (s,p) takes place on the qubit indices specified by qubit_inds.
- 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
qubit_inds (list) – A list or array of integers specifying which qubits s and p act on.
n (int) – The total number of qubits
- Returns:
s (numpy array) – The symplectic matrix over the integers mod 2 representing the embedded Clifford
p (numpy array) – The ‘phase vector’ over the integers mod 4 representing the embedded Clifford