iqm.benchmarks.compressive_gst.compressive_gst.parse_layouts

Contents

iqm.benchmarks.compressive_gst.compressive_gst.parse_layouts#

iqm.benchmarks.compressive_gst.compressive_gst.parse_layouts(qubit_layouts: list[int] | list[list[int]]) list[list[int]]#

Checks for correct setting of qubit_layouts in the configuration and return a correct type.

Parameters:

qubit_layouts (list[int] | list[list[int]]) – The qubit_layouts on the backend where the gates are defined on

Returns:

A properly typed qubit_layout if no Error was raised

Return type:

list[list[int]]