iqm-exa-common 25.29__py3-none-any.whl → 25.30__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -271,11 +271,11 @@ class ChipTopology:
271
271
  """Add a custom mapping from a gate locus to a set of components required for the gate operation.
272
272
 
273
273
  The mapping is of the form {<locus>: <components mapped to locus>}, where a locus can be mapped to one or more
274
- components. The locus itself can be a set (denoting a reciprocal gate) or a tuple (non-reciprocal gate).
274
+ components. The locus itself can be a frozenset (denoting a symmetric gate) or a tuple (non-symmetric gate).
275
275
 
276
276
  Some examples:
277
- - The default mapping (added in init of self) maps pairs of qubits to their common coupler reciprocally.
278
- - Fast flux CZ-gate maps couplers to their pairs of qubits that can perform qubit flux pulses non-reciprocally
277
+ - ``DEFAULT_2QB_MAPPING`` (added in :meth:`__init__`) maps pairs of qubits to their common coupler symmetrically.
278
+ - Fast flux CZ-gate maps pairs of qubits to their couplers non-symmetrically (first locus qubit can perform flux pulses).
279
279
  - A two-qubit gate implementation that includes playing pulses on neighboring components in addition to the
280
280
  connecting coupler.
281
281
 
@@ -412,20 +412,17 @@ class ChipTopology:
412
412
  def get_all_common_resonators(
413
413
  self,
414
414
  qubits: list[str],
415
- ) -> set:
416
- """Extracts common resonator connected to all qubits.
415
+ ) -> set[str]:
416
+ """Computational resonators connected to all the given qubits via a coupler.
417
417
 
418
418
  Args:
419
- qubits: List of qubit names.
419
+ qubits: Qubit names.
420
420
 
421
421
  Returns:
422
- Returns a set containing computational resonator names. If there is no common resonator returns an empty set.
423
-
422
+ Names of the computational resonators neighboring all of ``qubits`` (can be an empty set).
424
423
  """
425
424
  if not qubits:
426
425
  return set()
427
- common_resonator_set = self.get_neighbor_locus_components(qubits[:1])
428
- for qubit in qubits:
429
- common_resonator_set = common_resonator_set.intersection(self.get_neighbor_locus_components([qubit]))
430
-
431
- return common_resonator_set
426
+ common_resonator_set = set.intersection(*(self.get_neighbor_locus_components([qubit]) for qubit in qubits))
427
+ # ensure the resonator set contains only resonators
428
+ return common_resonator_set.intersection(self.computational_resonators)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iqm-exa-common
3
- Version: 25.29
3
+ Version: 25.30
4
4
  Summary: Framework for control and measurement of superconducting qubits: common library
5
5
  Author-email: IQM Finland Oy <info@meetiqm.com>
6
6
  License: Apache License
@@ -45,15 +45,15 @@ exa/common/logger/__init__.py,sha256=D_fMkDh4oXaoCNVV1sdusCv7W4G_81g-eBJOddEWSxo
45
45
  exa/common/logger/logger.py,sha256=7yIRbwI8-tft70J3m4nuClJM1B3qKZOvOyy1EaaUCgo,5689
46
46
  exa/common/qcm_data/__init__.py,sha256=VtsYkGoaniSjCkY0oQlqkcYJCtmC2sTDxfrIe_kpqZg,567
47
47
  exa/common/qcm_data/chad_model.py,sha256=xU2_CZB4OyOSuyVH_9bw0UT7xk3QdlkJ7DE4h7KrkOU,11218
48
- exa/common/qcm_data/chip_topology.py,sha256=5MgAnBd1efzosbgAAM03dsOEj3a2eR-BPZGxDcikH1M,19316
48
+ exa/common/qcm_data/chip_topology.py,sha256=dTTcfhlGy0gaN3bRqB6yl8Geddov2Sax5wUfO1GEx50,19338
49
49
  exa/common/qcm_data/file_adapter.py,sha256=cqjnRUK-arKWEP4N7wwmH8nUjVZsNhM7aXaLjAQvSoE,2530
50
50
  exa/common/qcm_data/immutable_base_model.py,sha256=QXmKIWQbsbWQvovXwKT1d9jtyf2LNJtjQquIwO52zOU,901
51
51
  exa/common/qcm_data/qcm_data_client.py,sha256=r--H5QAmYYbHcl5STsfNwr0TESGall-pscz7YtA4DSs,7713
52
52
  exa/common/sweep/__init__.py,sha256=uEKk5AtzSgSnf8Y0geRPwUpqXIBIXpeCxsN64sX7F1o,591
53
53
  exa/common/sweep/database_serialization.py,sha256=z9jXM_nkn3V84Y3fAlF3HN9YLjigS0g1BV4AIZTEhRs,10033
54
54
  exa/common/sweep/util.py,sha256=46sDCs-tXRCnDY_xeLeDLZ_9918QQ5KreERa3KENkiM,3783
55
- iqm_exa_common-25.29.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
56
- iqm_exa_common-25.29.dist-info/METADATA,sha256=TfL4pDSEalnHMr6aHqVEwFepqVmc5PS-dHni06MSAWc,14548
57
- iqm_exa_common-25.29.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
58
- iqm_exa_common-25.29.dist-info/top_level.txt,sha256=Clphg2toaZ3_jSFRPhjMNEmLurkMNMc4lkK2EFYsSlM,4
59
- iqm_exa_common-25.29.dist-info/RECORD,,
55
+ iqm_exa_common-25.30.dist-info/LICENSE.txt,sha256=R6Q7eUrLyoCQgWYorQ8WJmVmWKYU3dxA3jYUp0wwQAw,11332
56
+ iqm_exa_common-25.30.dist-info/METADATA,sha256=8Rr2ZqFbdJn3vvUEj4TzHo5L0ccXNimVEME3YzK2s6Q,14548
57
+ iqm_exa_common-25.30.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
58
+ iqm_exa_common-25.30.dist-info/top_level.txt,sha256=Clphg2toaZ3_jSFRPhjMNEmLurkMNMc4lkK2EFYsSlM,4
59
+ iqm_exa_common-25.30.dist-info/RECORD,,