# cirq.block_diag¶

cirq.block_diag(*blocks) → numpy.ndarray[source]

Concatenates blocks into a block diagonal matrix.

Parameters: *blocks – Square matrices to place along the diagonal of the result. A block diagonal matrix with the given blocks along its diagonal. ValueError – A block isn’t square.