iqm-benchmarks 2.45__py3-none-any.whl → 2.46__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.
@@ -436,12 +436,11 @@ def qscore_analysis(run: BenchmarkRunResult) -> BenchmarkAnalysisResult:
436
436
  instances_with_edges = set(range(num_instances)) - set(no_edge_instances)
437
437
  num_instances_with_edges = len(instances_with_edges)
438
438
  execution_results = xrvariable_to_counts(dataset, num_nodes, num_instances_with_edges)
439
-
440
439
  for inst_idx, instance in enumerate(list(instances_with_edges)):
441
440
  cut_sizes = run_QAOA(
442
441
  execution_results[inst_idx],
443
442
  graph_list[instance],
444
- qubit_to_node_list[instance],
443
+ qubit_to_node_list[inst_idx],
445
444
  use_classically_optimized_angles,
446
445
  num_qaoa_layers,
447
446
  virtual_node_list[instance],
@@ -790,6 +789,7 @@ class QScoreBenchmark(Benchmark):
790
789
  qubit_to_node_list = []
791
790
  no_edge_instances = []
792
791
  qc_all = [] # all circuits, including those with no edges
792
+ start_seed = seed
793
793
  for instance in range(self.num_instances):
794
794
  qcvv_logger.debug(f"Executing graph {instance} with {num_nodes} nodes.")
795
795
  graph = nx.generators.erdos_renyi_graph(num_nodes, 0.5, seed=seed)
@@ -848,6 +848,7 @@ class QScoreBenchmark(Benchmark):
848
848
  qubit_to_node_list.append(qubit_to_node_copy)
849
849
  else:
850
850
  qc_all.append([])
851
+ no_edge_instances.append(instance)
851
852
 
852
853
  seed += 1
853
854
  qcvv_logger.debug(f"Solved the MaxCut on graph {instance+1}/{self.num_instances}.")
@@ -902,7 +903,7 @@ class QScoreBenchmark(Benchmark):
902
903
  {
903
904
  num_nodes: {
904
905
  "qubit_set": qubit_set_list,
905
- "seed_start": seed,
906
+ "seed_start": start_seed,
906
907
  "graph": graph_list,
907
908
  "virtual_nodes": virtual_node_list,
908
909
  "qubit_to_node": qubit_to_node_list,
@@ -914,7 +915,7 @@ class QScoreBenchmark(Benchmark):
914
915
 
915
916
  qcvv_logger.debug(f"Adding counts for the random graph for {num_nodes} nodes to the dataset")
916
917
  dataset, _ = add_counts_to_dataset(execution_results, str(num_nodes), dataset)
917
- self.untranspiled_circuits.circuit_groups.append(CircuitGroup(name=str(num_nodes), circuits=qc_all))
918
+ self.untranspiled_circuits.circuit_groups.append(CircuitGroup(name=str(num_nodes), circuits=qc_list))
918
919
  self.transpiled_circuits.circuit_groups.append(
919
920
  CircuitGroup(name=str(num_nodes), circuits=qc_transpiled_list)
920
921
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iqm-benchmarks
3
- Version: 2.45
3
+ Version: 2.46
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
@@ -16,7 +16,7 @@ iqm/benchmarks/entanglement/__init__.py,sha256=sHVVToRWRCz0LSntk1rQaoSNNeyZLPoiT
16
16
  iqm/benchmarks/entanglement/ghz.py,sha256=7QI7r9x5VEYQu5kqmdsLV9nq3eedYV_WRVqCQTbjapk,41294
17
17
  iqm/benchmarks/entanglement/graph_states.py,sha256=saoAw2QF8j7W4nZMOElnjuNylqDAbY9cBwBypWZKUz8,62521
18
18
  iqm/benchmarks/optimization/__init__.py,sha256=_ajW_OibYLCtzU5AUv5c2zuuVYn8ZNeZUcUUSIGt51M,747
19
- iqm/benchmarks/optimization/qscore.py,sha256=hh96ZVYU7rUYCBEQyhFZNv0IOQoAwM5RYfRvqRl05ow,37281
19
+ iqm/benchmarks/optimization/qscore.py,sha256=55NdsDsY9hwQLIZZdmf46BhU4C0hxjV5CCNYZnyoMAI,37372
20
20
  iqm/benchmarks/quantum_volume/__init__.py,sha256=i-Q4SpDWELBw7frXnxm1j4wJRcxbIyrS5uEK_v06YHo,951
21
21
  iqm/benchmarks/quantum_volume/clops.py,sha256=QS9iK-gtop0zix6IBeUumQeG01-0dXsv0jsYSDhgEu0,31071
22
22
  iqm/benchmarks/quantum_volume/quantum_volume.py,sha256=pro7Lz-A5pPpT9UZ8wtXKTyhdWmTjQjRHt4BylDR-3U,36553
@@ -35,7 +35,7 @@ iqm/benchmarks/randomized_benchmarking/interleaved_rb/__init__.py,sha256=sq6MgN_
35
35
  iqm/benchmarks/randomized_benchmarking/interleaved_rb/interleaved_rb.py,sha256=TaR1YFWBhOgm1hmEQzuwLYpp0yl0Xpuo3jAT6YhiXpc,28471
36
36
  iqm/benchmarks/randomized_benchmarking/mirror_rb/__init__.py,sha256=jRKbivWCZ3xdO1k0sx-ygC3s5DUkGSModd975PoAtcg,692
37
37
  iqm/benchmarks/randomized_benchmarking/mirror_rb/mirror_rb.py,sha256=n_5gt9636ZDMsM9hC3Zm5qP2bQr2sy41zxGhOh0XMjI,32932
38
- iqm_benchmarks-2.45.dist-info/licenses/LICENSE,sha256=2Ncb40-hqkTil78RPv3-YiJfKaJ8te9USJgliKqIdSY,11558
38
+ iqm_benchmarks-2.46.dist-info/licenses/LICENSE,sha256=2Ncb40-hqkTil78RPv3-YiJfKaJ8te9USJgliKqIdSY,11558
39
39
  mGST/LICENSE,sha256=TtHNq55cUcbglb7uhVudeBLUh_qPdUoAEvU0BBwFz-k,1098
40
40
  mGST/README.md,sha256=v_5kw253csHF4-RfE-44KqFmBXIsSMRmOtN0AUPrRxE,5050
41
41
  mGST/additional_fns.py,sha256=MV0Pm5ap59IjhT_E3QhsZyM7lXOF1RZ9SD11zoaf43A,31781
@@ -46,7 +46,7 @@ mGST/optimization.py,sha256=x9tJ9wMQ5aONWpNpBMVtK0rwE6DRcOU33htNgrt0tx4,11015
46
46
  mGST/qiskit_interface.py,sha256=uCdn-Q9CXI2f4FQSxGUy8GmmzQhr9NhCOFb2VPj0gTs,10061
47
47
  mGST/reporting/figure_gen.py,sha256=xFPAHx1Trdqz7swn0kRqwc_jbRaNxhG9Nvx0jeitooo,25847
48
48
  mGST/reporting/reporting.py,sha256=Wss1-zFsMEhzrrXKfP-RICau80ezjDIzcN555KhSehc,34160
49
- iqm_benchmarks-2.45.dist-info/METADATA,sha256=a121AuXxTW_ziKGmIdEd-qjjBunWeV3iFEp60U4kT9o,10905
50
- iqm_benchmarks-2.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
51
- iqm_benchmarks-2.45.dist-info/top_level.txt,sha256=3G23Z-1LGf-IOzTCUl6QwWqiQ3USz25Zt90Ihq192to,9
52
- iqm_benchmarks-2.45.dist-info/RECORD,,
49
+ iqm_benchmarks-2.46.dist-info/METADATA,sha256=si3yJgRHE9BhCYE9di9FKDsw_dIXUUm39MmvoggV_1c,10905
50
+ iqm_benchmarks-2.46.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
51
+ iqm_benchmarks-2.46.dist-info/top_level.txt,sha256=3G23Z-1LGf-IOzTCUl6QwWqiQ3USz25Zt90Ihq192to,9
52
+ iqm_benchmarks-2.46.dist-info/RECORD,,