iqm-benchmarks 2.21__py3-none-any.whl → 2.22__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.

Potentially problematic release.


This version of iqm-benchmarks might be problematic. Click here for more details.

@@ -411,8 +411,7 @@ def qscore_analysis(run: BenchmarkRunResult) -> BenchmarkAnalysisResult:
411
411
  backend_name = dataset.attrs["backend_name"]
412
412
  timestamp = dataset.attrs["execution_timestamp"]
413
413
 
414
- max_num_nodes = dataset.attrs["max_num_nodes"]
415
- min_num_nodes = dataset.attrs["min_num_nodes"]
414
+ nodes_list = dataset.attrs["node_numbers"]
416
415
  num_instances: int = dataset.attrs["num_instances"]
417
416
 
418
417
  use_virtual_node: bool = dataset.attrs["use_virtual_node"]
@@ -420,7 +419,6 @@ def qscore_analysis(run: BenchmarkRunResult) -> BenchmarkAnalysisResult:
420
419
  num_qaoa_layers = dataset.attrs["num_qaoa_layers"]
421
420
 
422
421
  qscore = 0
423
- nodes_list = list(range(min_num_nodes, max_num_nodes + 1))
424
422
  beta_ratio_list = []
425
423
  beta_ratio_std_list = []
426
424
  for num_nodes in nodes_list:
@@ -753,17 +751,26 @@ class QScoreBenchmark(Benchmark):
753
751
  else:
754
752
  nqubits = self.backend.num_qubits
755
753
 
756
- if self.max_num_nodes is None or self.max_num_nodes == nqubits + 1:
754
+ if self.custom_qubits_array is not None:
757
755
  if self.use_virtual_node:
758
- max_num_nodes = nqubits + 1
756
+ node_numbers = [len(qubit_layout)+1 for qubit_layout in self.custom_qubits_array]
759
757
  else:
760
- max_num_nodes = nqubits
758
+ node_numbers = [len(qubit_layout) for qubit_layout in self.custom_qubits_array]
759
+
761
760
  else:
762
- max_num_nodes = self.max_num_nodes
761
+ if self.max_num_nodes is None or self.max_num_nodes == nqubits + 1:
762
+ if self.use_virtual_node:
763
+ max_num_nodes = nqubits + 1
764
+ else:
765
+ max_num_nodes = nqubits
766
+ else:
767
+ max_num_nodes = self.max_num_nodes
768
+ node_numbers = range(self.min_num_nodes, max_num_nodes + 1)
763
769
 
764
- dataset.attrs.update({"max_num_nodes": max_num_nodes})
770
+ dataset.attrs.update({"max_num_nodes": node_numbers[-1]})
771
+ dataset.attrs.update({"node_numbers": node_numbers})
765
772
 
766
- for num_nodes in range(self.min_num_nodes, max_num_nodes + 1):
773
+ for num_nodes in node_numbers:
767
774
  qc_list = []
768
775
  qc_transpiled_list: List[QuantumCircuit] = []
769
776
  execution_results = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: iqm-benchmarks
3
- Version: 2.21
3
+ Version: 2.22
4
4
  Summary: A package for implementation of Quantum Characterization, Verification and Validation (QCVV) techniques on IQM's hardware at gate level abstraction
5
5
  Author-email: IQM Finland Oy <developers@meetiqm.com>, Adrian Auer <adrian.auer@meetiqm.com>, Raphael Brieger <raphael.brieger@meetiqm.com>, Alessio Calzona <alessio.calzona@meetiqm.com>, Pedro Figueroa Romero <pedro.romero@meetiqm.com>, Amin Hosseinkhani <amin.hosseinkhani@meetiqm.com>, Miikka Koistinen <miikka@meetiqm.com>, Nadia Milazzo <nadia.milazzo@meetiqm.com>, Vicente Pina Canelles <vicente.pina@meetiqm.com>, Aniket Rath <aniket.rath@meetiqm.com>, Jami Rönkkö <jami@meetiqm.com>, Stefan Seegerer <stefan.seegerer@meetiqm.com>
6
6
  Project-URL: Homepage, https://github.com/iqm-finland/iqm-benchmarks
@@ -11,7 +11,7 @@ iqm/benchmarks/compressive_gst/gst_analysis.py,sha256=PxCThBfh2zdQpipI-6gAvLKdmk
11
11
  iqm/benchmarks/entanglement/__init__.py,sha256=9T7prOwqMmFWdb4t6ETAHZXKK5o6FvU2DvVb6WhNi-U,682
12
12
  iqm/benchmarks/entanglement/ghz.py,sha256=tQXKiav6pKZlV3ZU4BOrYrP7PfBAGn0zOsSUORQn5kw,42652
13
13
  iqm/benchmarks/optimization/__init__.py,sha256=_ajW_OibYLCtzU5AUv5c2zuuVYn8ZNeZUcUUSIGt51M,747
14
- iqm/benchmarks/optimization/qscore.py,sha256=xAv97MRVUNB_YjRbxzM6Ph0Pz0ctJjSA46J9lrbwe-w,37541
14
+ iqm/benchmarks/optimization/qscore.py,sha256=4PHsWdxdJuCj9J8nEb-LR4tNpXxb8NAWVroP6Ege7-E,37869
15
15
  iqm/benchmarks/quantum_volume/__init__.py,sha256=i-Q4SpDWELBw7frXnxm1j4wJRcxbIyrS5uEK_v06YHo,951
16
16
  iqm/benchmarks/quantum_volume/clops.py,sha256=abuYvc7XaRTuqLDim9jwZvG_W_KybEbiBs6SD0JUtcA,31319
17
17
  iqm/benchmarks/quantum_volume/quantum_volume.py,sha256=njX5lBty9jcWMuJnl7uNqRfwE9akMe5gcX-f1_uYDXk,36791
@@ -36,8 +36,8 @@ mGST/optimization.py,sha256=YHwkzIkYvsZOPjclR-BCQWh24jeqjuXp0BB0WX5Lwow,10559
36
36
  mGST/qiskit_interface.py,sha256=L4H-4SdhP_bjSFFvpQoF1E7EyGbIJ_CI_y4a7_YEwmU,10102
37
37
  mGST/reporting/figure_gen.py,sha256=6Xd8vwfy09hLY1YbJY6TRevuMsQSU4MsWqemly3ZO0I,12970
38
38
  mGST/reporting/reporting.py,sha256=We1cccz9BKbITYcSlZHdmBGdjMWAa1xNZe5tKP-yh_E,26004
39
- iqm_benchmarks-2.21.dist-info/LICENSE,sha256=2Ncb40-hqkTil78RPv3-YiJfKaJ8te9USJgliKqIdSY,11558
40
- iqm_benchmarks-2.21.dist-info/METADATA,sha256=y-gRyH1c_MMl0hDu-Kv6d_yL78We2Ksctl3UkKc_7tE,10384
41
- iqm_benchmarks-2.21.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
42
- iqm_benchmarks-2.21.dist-info/top_level.txt,sha256=3G23Z-1LGf-IOzTCUl6QwWqiQ3USz25Zt90Ihq192to,9
43
- iqm_benchmarks-2.21.dist-info/RECORD,,
39
+ iqm_benchmarks-2.22.dist-info/LICENSE,sha256=2Ncb40-hqkTil78RPv3-YiJfKaJ8te9USJgliKqIdSY,11558
40
+ iqm_benchmarks-2.22.dist-info/METADATA,sha256=kI_X87cglQbGfr6Y1CJF6q6wm7XKYmg2eY3kdOBgSDA,10384
41
+ iqm_benchmarks-2.22.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
42
+ iqm_benchmarks-2.22.dist-info/top_level.txt,sha256=3G23Z-1LGf-IOzTCUl6QwWqiQ3USz25Zt90Ihq192to,9
43
+ iqm_benchmarks-2.22.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5