Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Functions | Variables
runtime_semantics_validation Namespace Reference

Functions

def _semantic_case
 
def build_artifact_bundle
 
def build_cases ()
 
def main
 
def write_artifact_bundle
 

Variables

tuple ARTIFACT_CORE_FIELDS
 
string ARTIFACT_FILENAME = "runtime_semantics_bundle.json"
 
tuple DEFAULT_OUTPUT_DIR
 
 REPO_ROOT = Path(__file__).resolve().parents[3]
 
string SUITE_NAME = "phase3_partitioned_runtime_runtime_semantics"
 

Detailed Description

Runtime semantics validation: partitioned vs sequential reference exactness.

Exercises representative supported cases that stress remapping, parameter
routing, and explicit noise placement, then checks that the partitioned runtime
matches the sequential descriptor-driven reference exactly within the frozen
tolerance.

Run with:
python benchmarks/density_matrix/partitioned_runtime/runtime_semantics_validation.py

Function Documentation

◆ _semantic_case()

def runtime_semantics_validation._semantic_case (   case_name)
private

Definition at line 58 of file runtime_semantics_validation.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ build_artifact_bundle()

def runtime_semantics_validation.build_artifact_bundle (   cases)

Definition at line 120 of file runtime_semantics_validation.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ build_cases()

def runtime_semantics_validation.build_cases (   list,
  dict 
)

Definition at line 94 of file runtime_semantics_validation.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

def runtime_semantics_validation.main (   argv)

Definition at line 157 of file runtime_semantics_validation.py.

Here is the call graph for this function:

◆ write_artifact_bundle()

def runtime_semantics_validation.write_artifact_bundle (   bundle)

Definition at line 150 of file runtime_semantics_validation.py.

Here is the caller graph for this function:

Variable Documentation

◆ ARTIFACT_CORE_FIELDS

tuple runtime_semantics_validation.ARTIFACT_CORE_FIELDS
Initial value:
1 = (
2  "suite_name",
3  "status",
4  "software",
5  "summary",
6  "cases",
7 )

Definition at line 49 of file runtime_semantics_validation.py.

◆ ARTIFACT_FILENAME

string runtime_semantics_validation.ARTIFACT_FILENAME = "runtime_semantics_bundle.json"

Definition at line 40 of file runtime_semantics_validation.py.

◆ DEFAULT_OUTPUT_DIR

tuple runtime_semantics_validation.DEFAULT_OUTPUT_DIR
Initial value:
1 = (
2  REPO_ROOT
3  / "benchmarks"
4  / "density_matrix"
5  / "artifacts"
6  / "partitioned_runtime"
7  / "runtime_semantics"
8 )

Definition at line 41 of file runtime_semantics_validation.py.

◆ REPO_ROOT

runtime_semantics_validation.REPO_ROOT = Path(__file__).resolve().parents[3]

Definition at line 20 of file runtime_semantics_validation.py.

◆ SUITE_NAME

string runtime_semantics_validation.SUITE_NAME = "phase3_partitioned_runtime_runtime_semantics"

Definition at line 39 of file runtime_semantics_validation.py.