ffsim.linalg.match_global_phase¶ ffsim.linalg.match_global_phase(a, b)[source]¶ Phase the given arrays so that their phases match at one entry. Parameters: a (ndarray) – A Numpy array. b (ndarray) – Another Numpy array. Return type: tuple[ndarray, ndarray] Returns: A pair of arrays (a’, b’) that are equal if and only if a == b * exp(i phi) for some real number phi.