inner_product¶
-
forest.benchmarking.operator_tools.calculational.
inner_product
(bra1: numpy.ndarray, bra2: numpy.ndarray) → complex¶ Given two possibly complex row vectors bra1 and bra2 construct the inner product:
<bra1|bra2>
which can be complex,
Parameters: - bra1 – Is a dim by 1 np.ndarray.
- bra2 – Is a dim by 1 np.ndarray.
Returns: the inner product.