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

Functions

def build_artifact_bundle
 
def build_requirement_metadata
 
def main ()
 
def parse_args ()
 
def run_validation
 
def validate_artifact_bundle (bundle)
 
def validate_trace_artifact (trace_artifact)
 
def write_artifact_bundle
 

Variables

tuple ARTIFACT_CORE_FIELDS
 
string ARTIFACT_FILENAME = "trace_anchor_bundle.json"
 
tuple DEFAULT_OUTPUT_DIR
 
 REPO_ROOT = Path(__file__).resolve().parents[3]
 
string SUITE_NAME = "trace_anchor_validation"
 
string TRACE_ARTIFACT_FILENAME = "optimization_trace_4q.json"
 
string TRACE_CASE_NAME = "optimization_trace_4q"
 

Detailed Description

Validation: trace-and-anchor package.

Builds the phase-level trace-and-anchor gate from:
- the already passing workflow baseline, which must contain the documented
  10-qubit anchor evidence,
- and the canonical bounded 4-qubit optimization trace, kept as a stable raw
  artifact rather than renamed into a second trace identity.

The resulting bundle is intentionally a thin validation-evidence layer:
- it keeps the workflow baseline and the bounded trace as separate evidence
  layers,
- it requires both the supported trace and the documented 10-qubit anchor,
- it preserves trace identity and supported-path attribution explicitly,
- and it makes missing trace-or-anchor evidence fail explicitly.

Run with:
python benchmarks/density_matrix/validation_evidence/trace_anchor_validation.py

Function Documentation

◆ build_artifact_bundle()

def trace_anchor_validation.build_artifact_bundle (   workflow_baseline_bundle,
  trace_result,
  qubit_sizes = EXACT_REGIME_WORKFLOW_QUBITS,
  parameter_set_count 
)

Definition at line 115 of file trace_anchor_validation.py.

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

◆ build_requirement_metadata()

def trace_anchor_validation.build_requirement_metadata (   workflow_baseline_bundle,
  qubit_sizes = EXACT_REGIME_WORKFLOW_QUBITS,
  parameter_set_count 
)

Definition at line 70 of file trace_anchor_validation.py.

Here is the caller graph for this function:

◆ main()

def trace_anchor_validation.main ( )

Definition at line 263 of file trace_anchor_validation.py.

Here is the call graph for this function:

◆ parse_args()

def trace_anchor_validation.parse_args ( )

Definition at line 234 of file trace_anchor_validation.py.

Here is the caller graph for this function:

◆ run_validation()

def trace_anchor_validation.run_validation (   qubit_sizes = EXACT_REGIME_WORKFLOW_QUBITS,
  parameter_set_count 
)

Definition at line 207 of file trace_anchor_validation.py.

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

◆ validate_artifact_bundle()

def trace_anchor_validation.validate_artifact_bundle (   bundle)

Definition at line 186 of file trace_anchor_validation.py.

Here is the caller graph for this function:

◆ validate_trace_artifact()

def trace_anchor_validation.validate_trace_artifact (   trace_artifact)

Definition at line 86 of file trace_anchor_validation.py.

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

◆ write_artifact_bundle()

def trace_anchor_validation.write_artifact_bundle (   output_path)

Definition at line 196 of file trace_anchor_validation.py.

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

Variable Documentation

◆ ARTIFACT_CORE_FIELDS

tuple trace_anchor_validation.ARTIFACT_CORE_FIELDS
Initial value:
1 = (
2  "suite_name",
3  "status",
4  "backend",
5  "reference_backend",
6  "requirements",
7  "thresholds",
8  "software",
9  "summary",
10  "required_artifacts",
11  "trace_artifact",
12 )

Definition at line 52 of file trace_anchor_validation.py.

◆ ARTIFACT_FILENAME

string trace_anchor_validation.ARTIFACT_FILENAME = "trace_anchor_bundle.json"

Definition at line 46 of file trace_anchor_validation.py.

◆ DEFAULT_OUTPUT_DIR

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

Definition at line 49 of file trace_anchor_validation.py.

◆ REPO_ROOT

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

Definition at line 28 of file trace_anchor_validation.py.

◆ SUITE_NAME

string trace_anchor_validation.SUITE_NAME = "trace_anchor_validation"

Definition at line 45 of file trace_anchor_validation.py.

◆ TRACE_ARTIFACT_FILENAME

string trace_anchor_validation.TRACE_ARTIFACT_FILENAME = "optimization_trace_4q.json"

Definition at line 48 of file trace_anchor_validation.py.

◆ TRACE_CASE_NAME

string trace_anchor_validation.TRACE_CASE_NAME = "optimization_trace_4q"

Definition at line 47 of file trace_anchor_validation.py.