pygsti.decompose_gate_matrix¶
-
pygsti.
decompose_gate_matrix
(gateMx)¶ Compute how the action of a gate matrix can be is decomposed into fixed points, axes of rotation, angles of rotation, and decays. Also determines whether a gate appears to be valid and/or unitary.
Parameters: gateMx (numpy array) – The gate matrix to act on. Returns: A dictionary describing the decomposed action. Keys are: - ‘isValid’ : bool
- whether decomposition succeeded
- ‘isUnitary’ : bool
- whether gateMx describes unitary action
- ‘fixed point’ : numpy array
- the fixed point of the action
- ‘axis of rotation’ : numpy array or nan
- the axis of rotation
- ‘decay of diagonal rotation terms’ : float
- decay of diagonal terms
- ‘rotating axis 1’ : numpy array or nan
- 1st axis orthogonal to axis of rotation
- ‘rotating axis 2’ : numpy array or nan
- 2nd axis orthogonal to axis of rotation
- ‘decay of off diagonal rotation terms’ : float
- decay of off-diagonal terms
- ‘pi rotations’ : float
- angle of rotation in units of pi radians
Return type: dict