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 theA
matrices and concatenating theb
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)
tripleAbc2 (
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
code/api/mrmustard.physics.gaussian_integrals.join_Abc
Download Python script
Download Notebook
View on GitHub