dq.isherm
isherm(x: QArrayLike, rtol: float = 1e-05, atol: float = 1e-08) -> bool
Returns True if the qarray is Hermitian.
Parameters:
-
x(qarray-like of shape (..., n, n)) –Qarray-like.
-
rtol–Relative tolerance of the check.
-
atol–Absolute tolerance of the check.
Returns:
-
True if
xis Hermitian, False otherwise.
Examples:
>>> dq.isherm(jnp.eye(3))
Array(True, dtype=bool)
>>> dq.isherm([[0, 1j], [1j, 0]])
Array(False, dtype=bool)