sf.decompositions.nullMZ

nullMZ(n, m, U)[source]

Nullifies element n,m of U using mach_zehnder.

Parameters
  • n (int) – row index of element to be nullified

  • m (int) – column index of element to be nullified

  • U (array) – matrix whose m,n element is to be nullified

Returns

list containing [m, n, internal_phase, external_phase, nmax] of the

mach_zehnder unitaries needed

Return type

list