Download dense_evolution/mitigation/__init__.py from Tatopenn/dense-Evolution: direct link, hf CLI and curl.
- Browser
- Download file 2.13 kB
-
https://huggingface.co/Tatopenn/dense-Evolution/resolve/main/dense_evolution/mitigation/__init__.py
- Command line
-
hf download hf://Tatopenn/dense-Evolution/dense_evolution/mitigation/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Tatopenn/dense-Evolution/resolve/main/dense_evolution/mitigation/__init__.py
2.13 kB
| """Mitigation subpackage: Zero-Noise Extrapolation (zne) and the | |
| predictive-healing primitives (healing) it composes, plus density-matrix | |
| diagnostics validated in Dense-Evolution-Discovery: the sandwiched | |
| quantum Renyi divergence (renyi), magic entropy (magic_entropy), and a | |
| classical-shadows-based estimator for magic entropy from measurement | |
| snapshots (magic_entropy_shadows).""" | |
| from .zne import ( | |
| richardson_extrapolate, zero_noise_extrapolation, polynomial_extrapolate, | |
| project_to_physical, uhlmann_fidelity, zne_density_matrix, | |
| jsd_predictive_zne_density_matrix, | |
| richardson_extrapolate_jit, zero_noise_extrapolation_jit, | |
| polynomial_extrapolate_jit, uhlmann_fidelity_jit, zne_density_matrix_jit, | |
| ) | |
| from .healing import ( | |
| calculate_advanced_sigma, calculate_phi_ab, calculate_vettore_dinamico, | |
| calculate_vettore_statico, calculate_delta_preemp, evaluate_phi_trigger, | |
| calculate_jax_reflection, MemoryReflectionEngine, GLOBAL_CONSTANTS, | |
| ) | |
| from .renyi import sandwiched_renyi_divergence, sandwiched_renyi_divergence_jit | |
| from .magic_entropy import magic_entropy, magic_entropy_jit | |
| from .magic_entropy_shadows import ( | |
| sample_classical_shadow, magic_entropy_from_shadows, | |
| approx_shadow_std, fit_shadow_sample_complexity, | |
| ) | |
| __all__ = [ | |
| "richardson_extrapolate", "zero_noise_extrapolation", "polynomial_extrapolate", | |
| "project_to_physical", "uhlmann_fidelity", "zne_density_matrix", | |
| "jsd_predictive_zne_density_matrix", | |
| "richardson_extrapolate_jit", "zero_noise_extrapolation_jit", | |
| "polynomial_extrapolate_jit", "uhlmann_fidelity_jit", "zne_density_matrix_jit", | |
| "calculate_advanced_sigma", "calculate_phi_ab", "calculate_vettore_dinamico", | |
| "calculate_vettore_statico", "calculate_delta_preemp", "evaluate_phi_trigger", | |
| "calculate_jax_reflection", "MemoryReflectionEngine", "GLOBAL_CONSTANTS", | |
| "sandwiched_renyi_divergence", "sandwiched_renyi_divergence_jit", | |
| "magic_entropy", "magic_entropy_jit", | |
| "sample_classical_shadow", "magic_entropy_from_shadows", | |
| "approx_shadow_std", "fit_shadow_sample_complexity", | |
| ] | |