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

Functions

def _include_density_matrix
 
def _output_case
 
def build_artifact_bundle
 
def build_cases ()
 
def main
 
def write_artifact_bundle
 

Variables

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

Detailed Description

Runtime output validation: exact-output schema and comparison-ready payloads.

Emits supported runtime outputs in the shared comparison-ready shape used by
later exact-baseline checks. Small cases include the explicit density matrix in
the emitted exact-output record; larger cases keep the same schema but omit the
full matrix payload.

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

Function Documentation

◆ _include_density_matrix()

def runtime_output_validation._include_density_matrix (   qbit_num)
private

Definition at line 59 of file runtime_output_validation.py.

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

◆ _output_case()

def runtime_output_validation._output_case (   case_name)
private

Definition at line 65 of file runtime_output_validation.py.

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

◆ build_artifact_bundle()

def runtime_output_validation.build_artifact_bundle (   cases)

Definition at line 144 of file runtime_output_validation.py.

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

◆ build_cases()

def runtime_output_validation.build_cases (   list,
  dict 
)

Definition at line 115 of file runtime_output_validation.py.

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

◆ main()

def runtime_output_validation.main (   argv)

Definition at line 184 of file runtime_output_validation.py.

Here is the call graph for this function:

◆ write_artifact_bundle()

def runtime_output_validation.write_artifact_bundle (   bundle)

Definition at line 177 of file runtime_output_validation.py.

Here is the caller graph for this function:

Variable Documentation

◆ ARTIFACT_CORE_FIELDS

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

Definition at line 50 of file runtime_output_validation.py.

◆ ARTIFACT_FILENAME

string runtime_output_validation.ARTIFACT_FILENAME = "runtime_output_bundle.json"

Definition at line 41 of file runtime_output_validation.py.

◆ DEFAULT_OUTPUT_DIR

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

Definition at line 42 of file runtime_output_validation.py.

◆ REPO_ROOT

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

Definition at line 20 of file runtime_output_validation.py.

◆ SUITE_NAME

string runtime_output_validation.SUITE_NAME = "phase3_partitioned_runtime_runtime_output"

Definition at line 40 of file runtime_output_validation.py.