pygsti.tools.symplectic.compute_internal_gate_symplectic_representations

pygsti.tools.symplectic.compute_internal_gate_symplectic_representations#

compute_internal_gate_symplectic_representations(gllist=None)#

Creates a dictionary of the symplectic representations of ‘standard’ Clifford gates.

Returns a dictionary containing the symplectic matrices and phase vectors that represent the specified ‘standard’ Clifford gates, or the representations of all the standard gates if no list of operation labels is supplied. These ‘standard’ Clifford gates are those gates that are already known to the code gates (e.g., the label ‘CNOT’ has a specific meaning in the code), and are recorded as unitaries in “internalgates.py”.

Parameters:

gllist (list, optional) – If not None, a list of strings corresponding to operation labels for any of the standard gates that have fixed meaning for the code (e.g., ‘CNOT’ corresponds to the CNOT gate with the first qubit the target). For example, this list could be gllist = [‘CNOT’,’H’,’P’,’I’,’X’].

Returns:

srep_dict – dictionary of (smatrix,svector) tuples, where smatrix and svector are numpy arrays containing the symplectic matrix and phase vector representing the operation label given by the key.

Return type:

dict