|
Sequential Quantum Gate Decomposer
v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Functions | |
| def | _microcase_base (case) |
| def | build_artifact_bundle (results) |
| def | build_microcase_operation_audit (case, operations) |
| def | build_software_metadata () |
| def | build_threshold_metadata () |
| def | capture_microcase (case, verbose=True) |
| def | density_energy |
| def | main () |
| def | parse_microcase_operation |
| def | print_summary (results) |
| def | run_validation (verbose=True) |
| def | trace_distance |
| def | validate_artifact_bundle (bundle) |
| def | validate_microcase (case, verbose=True) |
| def | write_artifact_bundle |
Variables | |
| tuple | ARTIFACT_CORE_FIELDS |
| string | ARTIFACT_FILENAME = "micro_validation_bundle.json" |
| int | ENERGY_ERROR_TOL = 1e-10 |
| int | OBSERVABLE_IMAG_TOL = 1e-10 |
| string | PRIMARY_BACKEND = "density_matrix" |
| string | REFERENCE_BACKEND = "qiskit_aer_density_matrix" |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
| string | SUITE_NAME = "mandatory_micro_validation" |
| int | TRACE_TOL = 1e-10 |
| int | VALIDITY_TOL = 1e-10 |
Mandatory micro-validation matrix for the exact observable path. Validates the required 1- to 3-qubit microcases against Qiskit Aer density-matrix simulation using the frozen exact-observable contract: `Re Tr(H*rho)`, density validity, trace preservation, and Hermitian-observable consistency. Run with: python benchmarks/density_matrix/validate_squander_vs_qiskit.py
|
private |
Definition at line 222 of file validate_squander_vs_qiskit.py.

| def validate_squander_vs_qiskit.build_artifact_bundle | ( | results | ) |
Definition at line 380 of file validate_squander_vs_qiskit.py.


| def validate_squander_vs_qiskit.build_microcase_operation_audit | ( | case, | |
| operations | |||
| ) |
Summarize required gate/noise coverage and mixed-sequence order.
Definition at line 145 of file validate_squander_vs_qiskit.py.


| def validate_squander_vs_qiskit.build_software_metadata | ( | ) |
Definition at line 213 of file validate_squander_vs_qiskit.py.

| def validate_squander_vs_qiskit.build_threshold_metadata | ( | ) |
Definition at line 203 of file validate_squander_vs_qiskit.py.

| def validate_squander_vs_qiskit.capture_microcase | ( | case, | |
verbose = True |
|||
| ) |
Capture validation output for one mandatory micro-validation microcase.
Definition at line 332 of file validate_squander_vs_qiskit.py.


| def validate_squander_vs_qiskit.density_energy | ( | hamiltonian | ) |
Definition at line 197 of file validate_squander_vs_qiskit.py.

| def validate_squander_vs_qiskit.main | ( | ) |
Definition at line 463 of file validate_squander_vs_qiskit.py.

| def validate_squander_vs_qiskit.parse_microcase_operation | ( | operation | ) |
Definition at line 50 of file validate_squander_vs_qiskit.py.

| def validate_squander_vs_qiskit.print_summary | ( | results | ) |
Print micro-validation summary.
Definition at line 419 of file validate_squander_vs_qiskit.py.

| def validate_squander_vs_qiskit.run_validation | ( | verbose = True | ) |
Run the mandatory micro-validation micro-validation matrix.
Definition at line 360 of file validate_squander_vs_qiskit.py.


| def validate_squander_vs_qiskit.trace_distance | ( | rho1 | ) |
Definition at line 190 of file validate_squander_vs_qiskit.py.

| def validate_squander_vs_qiskit.validate_artifact_bundle | ( | bundle | ) |
Definition at line 403 of file validate_squander_vs_qiskit.py.

| def validate_squander_vs_qiskit.validate_microcase | ( | case, | |
verbose = True |
|||
| ) |
Evaluate one mandatory micro-validation microcase.
Definition at line 237 of file validate_squander_vs_qiskit.py.


| def validate_squander_vs_qiskit.write_artifact_bundle | ( | output_path | ) |
Definition at line 413 of file validate_squander_vs_qiskit.py.


| tuple validate_squander_vs_qiskit.ARTIFACT_CORE_FIELDS |
Definition at line 38 of file validate_squander_vs_qiskit.py.
| string validate_squander_vs_qiskit.ARTIFACT_FILENAME = "micro_validation_bundle.json" |
Definition at line 37 of file validate_squander_vs_qiskit.py.
| int validate_squander_vs_qiskit.ENERGY_ERROR_TOL = 1e-10 |
Definition at line 33 of file validate_squander_vs_qiskit.py.
| int validate_squander_vs_qiskit.OBSERVABLE_IMAG_TOL = 1e-10 |
Definition at line 36 of file validate_squander_vs_qiskit.py.
| string validate_squander_vs_qiskit.PRIMARY_BACKEND = "density_matrix" |
Definition at line 30 of file validate_squander_vs_qiskit.py.
| string validate_squander_vs_qiskit.REFERENCE_BACKEND = "qiskit_aer_density_matrix" |
Definition at line 31 of file validate_squander_vs_qiskit.py.
| validate_squander_vs_qiskit.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 24 of file validate_squander_vs_qiskit.py.
| string validate_squander_vs_qiskit.SUITE_NAME = "mandatory_micro_validation" |
Definition at line 32 of file validate_squander_vs_qiskit.py.
| int validate_squander_vs_qiskit.TRACE_TOL = 1e-10 |
Definition at line 35 of file validate_squander_vs_qiskit.py.
| int validate_squander_vs_qiskit.VALIDITY_TOL = 1e-10 |
Definition at line 34 of file validate_squander_vs_qiskit.py.
1.8.13