pygsti.tools.optools.decompose_gate_matrix

pygsti.tools.optools.decompose_gate_matrix#

decompose_gate_matrix(operation_mx)#

Decompose a gate matrix into fixed points, axes of rotation, angles of rotation, and decay rates.

This function computes how the action of a operation 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:

operation_mx (numpy array) – The operation matrix to act on.

Returns:

A dictionary describing the decomposed action. Keys are:

’isValid’bool

whether decomposition succeeded

’isUnitary’bool

whether operation_mx 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