common
are_matrices_equivalent_up_to_global_phase(matrix_a, matrix_b)
Checks whether two matrices are equivalent up to a global phase.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
matrix_a |
NDArray[complex128]
|
first matrix. |
required |
matrix_b |
NDArray[complex128]
|
second matrix. |
required |
Returns:
Type | Description |
---|---|
bool
|
Whether two matrices are equivalent up to a global phase. |