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