pygsti.tools.basistools.flexible_change_basis

pygsti.tools.basistools.flexible_change_basis#

flexible_change_basis(mx, start_basis, end_basis)#

Change mx from start_basis to end_basis allowing embedding expansion and contraction if needed.

(see resize_std_mx() for more details).

Parameters:
  • mx (numpy array) – The operation matrix (a 2D square array) in the start_basis basis.

  • start_basis (Basis) – The source basis.

  • end_basis (Basis) – The destination basis.

Return type:

numpy.ndarray