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

Functions

def build_artifact_bundle
 
def build_cases ()
 
def main
 
def negative_case_invalid_noise_index ()
 
def negative_case_unsupported_gate ()
 
def positive_case_with_noise ()
 
def positive_case_without_noise ()
 
def write_artifact_bundle
 

Variables

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

Detailed Description

Legacy exact lowering validation.

Builds representative legacy `qgd_Circuit` inputs and verifies that exact
in-bounds cases lower into the canonical planner surface while unsupported gate
families and malformed attached noise schedules fail before planner entry.

Run with:
python benchmarks/density_matrix/planner_surface/legacy_exact_lowering_validation.py

Function Documentation

◆ build_artifact_bundle()

def legacy_exact_lowering_validation.build_artifact_bundle (   cases)

Definition at line 138 of file legacy_exact_lowering_validation.py.

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

◆ build_cases()

def legacy_exact_lowering_validation.build_cases (   list,
  dict 
)

Definition at line 129 of file legacy_exact_lowering_validation.py.

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

◆ main()

def legacy_exact_lowering_validation.main (   argv)

Definition at line 171 of file legacy_exact_lowering_validation.py.

Here is the call graph for this function:

◆ negative_case_invalid_noise_index()

def legacy_exact_lowering_validation.negative_case_invalid_noise_index (   dict)

Definition at line 102 of file legacy_exact_lowering_validation.py.

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

◆ negative_case_unsupported_gate()

def legacy_exact_lowering_validation.negative_case_unsupported_gate (   dict)

Definition at line 84 of file legacy_exact_lowering_validation.py.

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

◆ positive_case_with_noise()

def legacy_exact_lowering_validation.positive_case_with_noise (   dict)

Definition at line 60 of file legacy_exact_lowering_validation.py.

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

◆ positive_case_without_noise()

def legacy_exact_lowering_validation.positive_case_without_noise (   dict)

Definition at line 44 of file legacy_exact_lowering_validation.py.

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

◆ write_artifact_bundle()

def legacy_exact_lowering_validation.write_artifact_bundle (   bundle)

Definition at line 164 of file legacy_exact_lowering_validation.py.

Here is the caller graph for this function:

Variable Documentation

◆ ARTIFACT_CORE_FIELDS

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

Definition at line 35 of file legacy_exact_lowering_validation.py.

◆ ARTIFACT_FILENAME

string legacy_exact_lowering_validation.ARTIFACT_FILENAME = "legacy_exact_lowering_bundle.json"

Definition at line 31 of file legacy_exact_lowering_validation.py.

◆ DEFAULT_OUTPUT_DIR

tuple legacy_exact_lowering_validation.DEFAULT_OUTPUT_DIR
Initial value:
1 = (
2  REPO_ROOT / "benchmarks" / "density_matrix" / "artifacts" / "planner_surface"
3 )

Definition at line 32 of file legacy_exact_lowering_validation.py.

◆ REPO_ROOT

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

Definition at line 19 of file legacy_exact_lowering_validation.py.

◆ SUITE_NAME

string legacy_exact_lowering_validation.SUITE_NAME = "phase3_planner_surface_legacy_exact_lowering"

Definition at line 30 of file legacy_exact_lowering_validation.py.