surface_sim.layouts.Layout.expansion_matrix#
- layouts.Layout.expansion_matrix()#
Returns the expansion matrix corresponding to the layout. The matrix can expand a vector of measurements/defects to a 2D array corresponding to layout of the ancilla qubits. Used for convolutional neural networks.
- Returns:
- DataArray
The expansion matrix.