mm.physics.gaussian_integrals.join_Abc

mrmustard.physics.gaussian_integrals.join_Abc(Abc1, Abc2)[source]

Joins two (A,b,c) triples into a single (A,b,c) triple by block addition of the A matrices and concatenating the b vectors.

Parameters:
  • Abc1 (Tuple[ndarray[Tuple[int, int], TypeVar(C, complex64, complex128)], ndarray[Tuple[int], TypeVar(C, complex64, complex128)], complex]) – the first (A,b,c) triple

  • Abc2 (Tuple[ndarray[Tuple[int, int], TypeVar(C, complex64, complex128)], ndarray[Tuple[int], TypeVar(C, complex64, complex128)], complex]) – the second (A,b,c) triple

Returns:

The joined (A,b,c) triple