Channel composition¶
qif.channel.compose
Functions¶
- parallel(A: ndarray, B: ndarray) ndarray¶
The parallel composition \(A \parallel B\) of two channels on the same secrets: both are run independently on the same secret and both observations are revealed, that is \((A\parallel B)_{x,(y_1,y_2)} = A_{x,y_1} B_{x,y_2}\). The observation \((y_1,y_2)\) is column
y1 * B.shape[1] + y2.