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

Functions

def _case_from_surface
 
def _flatten_canonical_indices
 
def _flatten_member_names
 
def build_artifact_bundle
 
def main
 
def run_validation
 
def write_artifact_bundle
 

Variables

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

Detailed Description

Partition-descriptor ordering and noise placement validation.

Emits order-and-noise audits for one continuity case, the boundary-heavy 4-qubit
microcase, and one structured-family case. Verifies that partition descriptors
preserve exact within-partition order and keep noise placement explicit as
first-class descriptor content.

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

Function Documentation

◆ _case_from_surface()

def descriptor_ordering_validation._case_from_surface (   case_kind)
private

Definition at line 77 of file descriptor_ordering_validation.py.

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

◆ _flatten_canonical_indices()

def descriptor_ordering_validation._flatten_canonical_indices (   payload)
private

Definition at line 61 of file descriptor_ordering_validation.py.

Here is the caller graph for this function:

◆ _flatten_member_names()

def descriptor_ordering_validation._flatten_member_names (   payload)
private

Definition at line 69 of file descriptor_ordering_validation.py.

Here is the caller graph for this function:

◆ build_artifact_bundle()

def descriptor_ordering_validation.build_artifact_bundle (   cases)

Definition at line 176 of file descriptor_ordering_validation.py.

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

◆ main()

def descriptor_ordering_validation.main (   argv)

Definition at line 219 of file descriptor_ordering_validation.py.

Here is the call graph for this function:

◆ run_validation()

def descriptor_ordering_validation.run_validation (   verbose)

Definition at line 118 of file descriptor_ordering_validation.py.

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

◆ write_artifact_bundle()

def descriptor_ordering_validation.write_artifact_bundle (   bundle)

Definition at line 212 of file descriptor_ordering_validation.py.

Here is the caller graph for this function:

Variable Documentation

◆ ARTIFACT_CORE_FIELDS

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

Definition at line 51 of file descriptor_ordering_validation.py.

◆ ARTIFACT_FILENAME

string descriptor_ordering_validation.ARTIFACT_FILENAME = "descriptor_ordering_bundle.json"

Definition at line 42 of file descriptor_ordering_validation.py.

◆ DEFAULT_OUTPUT_DIR

tuple descriptor_ordering_validation.DEFAULT_OUTPUT_DIR
Initial value:
1 = (
2  REPO_ROOT
3  / "benchmarks"
4  / "density_matrix"
5  / "artifacts"
6  / "planner_surface"
7  / "descriptor_ordering"
8 )

Definition at line 43 of file descriptor_ordering_validation.py.

◆ REPO_ROOT

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

Definition at line 20 of file descriptor_ordering_validation.py.

◆ SUITE_NAME

string descriptor_ordering_validation.SUITE_NAME = "phase3_planner_surface_descriptor_ordering"

Definition at line 41 of file descriptor_ordering_validation.py.