Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
performance_evidence/validation_support.py
Go to the documentation of this file.
1 """Shared bundle assembly for performance-evidence validation slices."""
2 
3 from __future__ import annotations
4 
5 from typing import Any
6 
7 from benchmarks.density_matrix.correctness_evidence.common import build_selected_candidate
8 from benchmarks.density_matrix.performance_evidence.common import (
9  PERFORMANCE_EVIDENCE_CASE_SCHEMA_VERSION,
10  build_package_software_metadata,
11 )
12 
13 
15  suite_name: str,
16  status: str,
17  summary: dict[str, Any],
18  cases: list[dict[str, Any]],
19 ) -> dict[str, Any]:
20  return {
21  "suite_name": suite_name,
22  "status": status,
23  "record_schema_version": PERFORMANCE_EVIDENCE_CASE_SCHEMA_VERSION,
24  "software": build_package_software_metadata(),
25  "selected_candidate": build_selected_candidate(),
26  "summary": summary,
27  "cases": cases,
28  }
29 
30 
32  suite_name: str,
33  status: str,
34  summary: dict[str, Any],
35  cases: list[dict[str, Any]],
36 ) -> dict[str, Any]:
37  """Benchmark matrix inventory bundle has no record_schema_version."""
38  return {
39  "suite_name": suite_name,
40  "status": status,
41  "selected_candidate": build_selected_candidate(),
42  "software": build_package_software_metadata(),
43  "summary": summary,
44  "cases": cases,
45  }
def build_package_software_metadata()