cogwheel.utils.real_matmul

cogwheel.utils.real_matmul(a, b)

Return real part of complex matrix multiplication.

Same as (a @ b).real but ~2 times faster. Note, b is not conjugated by this function.