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

Functions

def _base_case_metadata
 
def build_artifact_bundle (results)
 
def build_density_vqe
 
def build_requirement_metadata ()
 
def capture_unsupported_case (case_builder, verbose=True)
 
def case_custom_gate_structure_source ()
 
def case_hea_zyz_lowering ()
 
def case_invalid_after_gate_index ()
 
def case_invalid_noise_channel ()
 
def main ()
 
def print_summary (bundle)
 
def run_validation (verbose=True)
 
def validate_artifact_bundle (bundle)
 
def write_artifact_bundle
 

Variables

tuple ARTIFACT_CORE_FIELDS
 
string ARTIFACT_FILENAME = "unsupported_bridge_bundle.json"
 
 REPO_ROOT = Path(__file__).resolve().parents[3]
 
string SUITE_NAME = "unsupported_bridge_validation"
 
tuple UNSUPPORTED_CASE_BUILDERS
 

Detailed Description

Validation: unsupported bridge cases.

Captures representative unsupported bridge requests as structured artifacts. The
goal is to prove that unsupported circuit-source, lowering, and noise-boundary
cases fail before execution and surface a stable first unsupported condition.

Run with:
python benchmarks/density_matrix/bridge_scope/unsupported_bridge_validation.py

Function Documentation

◆ _base_case_metadata()

def unsupported_bridge_validation._base_case_metadata (   case_name)
private

Definition at line 102 of file unsupported_bridge_validation.py.

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

◆ build_artifact_bundle()

def unsupported_bridge_validation.build_artifact_bundle (   results)

Definition at line 314 of file unsupported_bridge_validation.py.

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

◆ build_density_vqe()

def unsupported_bridge_validation.build_density_vqe (   qbit_num)

Definition at line 77 of file unsupported_bridge_validation.py.

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

◆ build_requirement_metadata()

def unsupported_bridge_validation.build_requirement_metadata ( )

Definition at line 54 of file unsupported_bridge_validation.py.

Here is the caller graph for this function:

◆ capture_unsupported_case()

def unsupported_bridge_validation.capture_unsupported_case (   case_builder,
  verbose = True 
)

Definition at line 273 of file unsupported_bridge_validation.py.

Here is the caller graph for this function:

◆ case_custom_gate_structure_source()

def unsupported_bridge_validation.case_custom_gate_structure_source ( )

Definition at line 138 of file unsupported_bridge_validation.py.

Here is the call graph for this function:

◆ case_hea_zyz_lowering()

def unsupported_bridge_validation.case_hea_zyz_lowering ( )

Definition at line 163 of file unsupported_bridge_validation.py.

Here is the call graph for this function:

◆ case_invalid_after_gate_index()

def unsupported_bridge_validation.case_invalid_after_gate_index ( )

Definition at line 192 of file unsupported_bridge_validation.py.

Here is the call graph for this function:

◆ case_invalid_noise_channel()

def unsupported_bridge_validation.case_invalid_noise_channel ( )

Definition at line 224 of file unsupported_bridge_validation.py.

Here is the call graph for this function:

◆ main()

def unsupported_bridge_validation.main ( )

Definition at line 386 of file unsupported_bridge_validation.py.

Here is the call graph for this function:

◆ print_summary()

def unsupported_bridge_validation.print_summary (   bundle)

Definition at line 353 of file unsupported_bridge_validation.py.

Here is the caller graph for this function:

◆ run_validation()

def unsupported_bridge_validation.run_validation (   verbose = True)

Definition at line 307 of file unsupported_bridge_validation.py.

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

◆ validate_artifact_bundle()

def unsupported_bridge_validation.validate_artifact_bundle (   bundle)

Definition at line 337 of file unsupported_bridge_validation.py.

Here is the caller graph for this function:

◆ write_artifact_bundle()

def unsupported_bridge_validation.write_artifact_bundle (   output_path)

Definition at line 347 of file unsupported_bridge_validation.py.

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

Variable Documentation

◆ ARTIFACT_CORE_FIELDS

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

Definition at line 43 of file unsupported_bridge_validation.py.

◆ ARTIFACT_FILENAME

string unsupported_bridge_validation.ARTIFACT_FILENAME = "unsupported_bridge_bundle.json"

Definition at line 42 of file unsupported_bridge_validation.py.

◆ REPO_ROOT

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

Definition at line 21 of file unsupported_bridge_validation.py.

◆ SUITE_NAME

string unsupported_bridge_validation.SUITE_NAME = "unsupported_bridge_validation"

Definition at line 41 of file unsupported_bridge_validation.py.

◆ UNSUPPORTED_CASE_BUILDERS

tuple unsupported_bridge_validation.UNSUPPORTED_CASE_BUILDERS
Initial value:
1 = (
2  case_custom_gate_structure_source,
3  case_hea_zyz_lowering,
4  case_invalid_after_gate_index,
5  case_invalid_noise_channel,
6 )

Definition at line 265 of file unsupported_bridge_validation.py.