iqm.cirq_iqm.devices.iqm_device_metadata.IQMDeviceMetadata#
- class iqm.cirq_iqm.devices.iqm_device_metadata.IQMDeviceMetadata(qubits: Iterable[NamedQid], connectivity: Iterable[tuple[NamedQid, ...]], *, operations: dict[type[Gate], list[tuple[NamedQid, ...]]] | None = None, gateset: Gateset | None = None, resonators: Iterable[NamedQid] = (), architecture: DynamicQuantumArchitecture | None = None)#
Bases:
DeviceMetadata
Hardware metadata for IQM devices.
- Parameters:
qubits (Iterable[NamedQid]) – qubits on the device
connectivity (Iterable[tuple[NamedQid, ...]]) – qubit connectivity graph of the device
operations (Optional[dict[type[cirq.Gate], list[tuple[cirq.NamedQid, ...]]]]) – Supported quantum operations of the device, mapping op types to their possible loci.
gateset (Optional[cirq.Gateset]) – Native gateset of the device. If None, a default IQM device gateset will be used.
resonators (Iterable[NamedQid]) – computational resonators of the device
architecture (Optional[DynamicQuantumArchitecture]) – architecture from which values of the other arguments were obtained
Attributes
prefix for qubit names, to be followed by their numerical index
Dimension abstraction for the resonator Qids
Returns the
cirq.Gateset
of supported gates on this device.Returns the set of resonators on the device.
Methods
__eq__
(other)Return self==value.
__hash__
()Return hash(self).
__ne__
(other)Return self!=value.
_value_equality_values_
()_value_equality_values_cls_
()from_architecture
(architecture)Returns device metadata object created based on dynamic quantum architecture
from_qubit_indices
(qubit_count, ...[, gateset])Returns device metadata object created based on connectivity specified using qubit indices only.
- property resonator_set: FrozenSet[NamedQid]#
Returns the set of resonators on the device.
- Returns:
Frozenset of resonators on device.
- classmethod from_architecture(architecture: DynamicQuantumArchitecture) IQMDeviceMetadata #
Returns device metadata object created based on dynamic quantum architecture
- Parameters:
architecture (DynamicQuantumArchitecture) –
- Return type:
- classmethod from_qubit_indices(qubit_count: int, connectivity_indices: Iterable[set[int]], gateset: tuple[type[Gate]] | None = None) IQMDeviceMetadata #
Returns device metadata object created based on connectivity specified using qubit indices only.
- property gateset: Gateset#
Returns the
cirq.Gateset
of supported gates on this device.