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

Functions

def _artifact_semantics_complete (artifact)
 
def _build_artifact_entry (artifact_id, artifact_class, mandatory, path, status, expected_statuses, purpose, generation_command, summary)
 
def _load_end_to_end_trace
 
def _load_json
 
def _load_matrix_baseline
 
def _load_unsupported_workflow
 
def _load_workflow_contract
 
def _load_workflow_interpretation
 
def _write_artifact
 
def build_workflow_publication_bundle
 
def main ()
 
def parse_args ()
 
def run_validation
 
def validate_workflow_publication_bundle
 
def write_workflow_publication_bundle
 

Variables

string ARTIFACT_FILENAME = "workflow_publication_bundle.json"
 
tuple BUNDLE_FIELDS
 
 DEFAULT_OUTPUT_DIR = WORKFLOW_EVIDENCE_OUTPUT_DIR
 
 END_TO_END_TRACE_PATH = DEFAULT_OUTPUT_DIR / END_TO_END_TRACE_ARTIFACT_FILENAME
 
 MATRIX_BASELINE_PATH = DEFAULT_OUTPUT_DIR / MATRIX_BASELINE_ARTIFACT_FILENAME
 
 REPO_ROOT = Path(__file__).resolve().parents[3]
 
dictionary REQUIRED_SEMANTIC_FLAGS
 
string SUITE_NAME = "workflow_publication_evidence"
 
 UNSUPPORTED_WORKFLOW_PATH = DEFAULT_OUTPUT_DIR / UNSUPPORTED_WORKFLOW_ARTIFACT_FILENAME
 
 WORKFLOW_CONTRACT_PATH = DEFAULT_OUTPUT_DIR / WORKFLOW_CONTRACT_ARTIFACT_FILENAME
 
tuple WORKFLOW_INTERPRETATION_PATH
 

Detailed Description

Validation: workflow publication bundle.

Builds the top-level workflow manifest by assembling the emitted workflow
evidence artifacts into one reproducible, machine-checkable package. The bundle
preserves canonical workflow identity and contract-version fields across the
packaged evidence layers.

Run with:
python benchmarks/density_matrix/workflow_evidence/workflow_publication_bundle.py

Function Documentation

◆ _artifact_semantics_complete()

def workflow_publication_bundle._artifact_semantics_complete (   artifact)
private

Definition at line 184 of file workflow_publication_bundle.py.

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

◆ _build_artifact_entry()

def workflow_publication_bundle._build_artifact_entry (   artifact_id,
  artifact_class,
  mandatory,
  path,
  status,
  expected_statuses,
  purpose,
  generation_command,
  summary 
)
private

Definition at line 170 of file workflow_publication_bundle.py.

Here is the caller graph for this function:

◆ _load_end_to_end_trace()

def workflow_publication_bundle._load_end_to_end_trace (   path)
private

Definition at line 118 of file workflow_publication_bundle.py.

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

◆ _load_json()

def workflow_publication_bundle._load_json (   path)
private

Definition at line 105 of file workflow_publication_bundle.py.

Here is the caller graph for this function:

◆ _load_matrix_baseline()

def workflow_publication_bundle._load_matrix_baseline (   path)
private

Definition at line 127 of file workflow_publication_bundle.py.

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

◆ _load_unsupported_workflow()

def workflow_publication_bundle._load_unsupported_workflow (   path)
private

Definition at line 136 of file workflow_publication_bundle.py.

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

◆ _load_workflow_contract()

def workflow_publication_bundle._load_workflow_contract (   path)
private

Definition at line 109 of file workflow_publication_bundle.py.

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

◆ _load_workflow_interpretation()

def workflow_publication_bundle._load_workflow_interpretation (   path)
private

Definition at line 145 of file workflow_publication_bundle.py.

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

◆ _write_artifact()

def workflow_publication_bundle._write_artifact (   path)
private

Definition at line 154 of file workflow_publication_bundle.py.

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

◆ build_workflow_publication_bundle()

def workflow_publication_bundle.build_workflow_publication_bundle (   output_dir)

Definition at line 190 of file workflow_publication_bundle.py.

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

◆ main()

def workflow_publication_bundle.main ( )

Definition at line 617 of file workflow_publication_bundle.py.

Here is the call graph for this function:

◆ parse_args()

def workflow_publication_bundle.parse_args ( )

Definition at line 571 of file workflow_publication_bundle.py.

Here is the caller graph for this function:

◆ run_validation()

def workflow_publication_bundle.run_validation (   workflow_contract_path)

Definition at line 510 of file workflow_publication_bundle.py.

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

◆ validate_workflow_publication_bundle()

def workflow_publication_bundle.validate_workflow_publication_bundle (   bundle,
  bundle_dir 
)

Definition at line 429 of file workflow_publication_bundle.py.

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

◆ write_workflow_publication_bundle()

def workflow_publication_bundle.write_workflow_publication_bundle (   output_path)

Definition at line 502 of file workflow_publication_bundle.py.

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

Variable Documentation

◆ ARTIFACT_FILENAME

string workflow_publication_bundle.ARTIFACT_FILENAME = "workflow_publication_bundle.json"

Definition at line 57 of file workflow_publication_bundle.py.

◆ BUNDLE_FIELDS

tuple workflow_publication_bundle.BUNDLE_FIELDS
Initial value:
1 = (
2  "suite_name",
3  "status",
4  "workflow_id",
5  "contract_version",
6  "backend",
7  "reference_backend",
8  "software",
9  "provenance",
10  "summary",
11  "artifacts",
12 )

Definition at line 66 of file workflow_publication_bundle.py.

◆ DEFAULT_OUTPUT_DIR

workflow_publication_bundle.DEFAULT_OUTPUT_DIR = WORKFLOW_EVIDENCE_OUTPUT_DIR

Definition at line 58 of file workflow_publication_bundle.py.

◆ END_TO_END_TRACE_PATH

workflow_publication_bundle.END_TO_END_TRACE_PATH = DEFAULT_OUTPUT_DIR / END_TO_END_TRACE_ARTIFACT_FILENAME

Definition at line 60 of file workflow_publication_bundle.py.

◆ MATRIX_BASELINE_PATH

workflow_publication_bundle.MATRIX_BASELINE_PATH = DEFAULT_OUTPUT_DIR / MATRIX_BASELINE_ARTIFACT_FILENAME

Definition at line 61 of file workflow_publication_bundle.py.

◆ REPO_ROOT

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

Definition at line 20 of file workflow_publication_bundle.py.

◆ REQUIRED_SEMANTIC_FLAGS

dictionary workflow_publication_bundle.REQUIRED_SEMANTIC_FLAGS
Initial value:
1 = {
2  "workflow_contract_bundle": ("contract_sections_complete",),
3  "end_to_end_trace_bundle": (
4  "end_to_end_gate_completed",
5  "end_to_end_qubits_match_contract",
6  "trace_case_name_matches_contract",
7  "workflow_thresholds_match_contract",
8  ),
9  "matrix_baseline_bundle": (
10  "matrix_gate_completed",
11  "workflow_inventory_matches_contract",
12  "workflow_thresholds_match_contract",
13  "documented_10q_anchor_present",
14  ),
15  "unsupported_workflow_bundle": (
16  "unsupported_gate_completed",
17  "backend_incompatible_case_present",
18  ),
19  "workflow_interpretation_bundle": (
20  "mandatory_artifacts_complete",
21  "unsupported_evidence_negative_only",
22  "unsupported_case_field_alignment",
23  "main_workflow_claim_completed",
24  ),
25 }

Definition at line 78 of file workflow_publication_bundle.py.

◆ SUITE_NAME

string workflow_publication_bundle.SUITE_NAME = "workflow_publication_evidence"

Definition at line 56 of file workflow_publication_bundle.py.

◆ UNSUPPORTED_WORKFLOW_PATH

workflow_publication_bundle.UNSUPPORTED_WORKFLOW_PATH = DEFAULT_OUTPUT_DIR / UNSUPPORTED_WORKFLOW_ARTIFACT_FILENAME

Definition at line 62 of file workflow_publication_bundle.py.

◆ WORKFLOW_CONTRACT_PATH

workflow_publication_bundle.WORKFLOW_CONTRACT_PATH = DEFAULT_OUTPUT_DIR / WORKFLOW_CONTRACT_ARTIFACT_FILENAME

Definition at line 59 of file workflow_publication_bundle.py.

◆ WORKFLOW_INTERPRETATION_PATH

tuple workflow_publication_bundle.WORKFLOW_INTERPRETATION_PATH
Initial value:
1 = (
2  DEFAULT_OUTPUT_DIR / WORKFLOW_INTERPRETATION_ARTIFACT_FILENAME
3 )

Definition at line 63 of file workflow_publication_bundle.py.