ChipLayout#

class ChipLayout(qubits, couplers, computational_resonators)#

Bases: object

The chip layout contains the components and their 2D cartesian coordinates.

Module: exa.common.qcm_data.chip_layout

Attributes

components

computational_resonators

couplers

qubits

Methods

from_chip_design_record

Construct the chip layout from a raw chip design record.

get_all_qubit_coordinates

Get the coordinates for all qubits.

get_coordinates

Get the coordinates for the given component.

mirror_yaxis

move_origin

normalize_coordinates

rotate_layout

Parameters:
classmethod from_chip_design_record(record)#

Construct the chip layout from a raw chip design record.

Parameters:

record (dict) – The chip design record as returned by station control.

Returns:

The corresponding chip layout.

Return type:

ChipLayout

get_coordinates(component)#

Get the coordinates for the given component.

Parameters:

component (str) – The name of the component.

Returns:

The 2D cartesian coordinates.

Return type:

tuple[float, float]

get_all_qubit_coordinates()#

Get the coordinates for all qubits.

Return type:

dict[str, tuple[float, float]]