spheres.utils.compare_nophase

spheres.utils.compare_nophase(a, b)[source]

Compares two vectors disregarding their overall complex phase.

Parameters
  • a (qt.Qobj or np.array) –

  • b (qt.Qobj or np.array) –

Returns

equal

Return type

bool