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]]) – List[List[[int]] or List[int] The qubit_layouts on the backend where the gates are defined on

Returns:

List[List[int]]

A properly typed qubit_layout if no Error was raised

Return type:

qubit_layouts