qiskit-mitigation 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. qiskit_mitigation/__init__.py +33 -0
  2. qiskit_mitigation/mitigation_task.py +998 -0
  3. qiskit_mitigation/noise.py +182 -0
  4. qiskit_mitigation/pec.py +700 -0
  5. qiskit_mitigation/postselection/__init__.py +25 -0
  6. qiskit_mitigation/postselection/constants.py +49 -0
  7. qiskit_mitigation/postselection/passes/__init__.py +28 -0
  8. qiskit_mitigation/postselection/passes/_utils.py +44 -0
  9. qiskit_mitigation/postselection/passes/add_post_circuit_checks.py +190 -0
  10. qiskit_mitigation/postselection/passes/add_pre_circuit_checks.py +251 -0
  11. qiskit_mitigation/postselection/passes/add_spectator_post_circuit_checks.py +493 -0
  12. qiskit_mitigation/postselection/passes/add_spectator_pre_circuit_checks.py +313 -0
  13. qiskit_mitigation/postselection/passes/x_pulse_type.py +26 -0
  14. qiskit_mitigation/postselection/post_selection_summary.py +421 -0
  15. qiskit_mitigation/postselection/post_selector.py +298 -0
  16. qiskit_mitigation/postselection/xslow_gate.py +28 -0
  17. qiskit_mitigation/trex.py +330 -0
  18. qiskit_mitigation/utils/__init__.py +34 -0
  19. qiskit_mitigation/utils/expectation_values.py +744 -0
  20. qiskit_mitigation/utils/measurement_bases.py +188 -0
  21. qiskit_mitigation/utils/observable_mappings.py +101 -0
  22. qiskit_mitigation/utils/utils.py +176 -0
  23. qiskit_mitigation/zne/__init__.py +23 -0
  24. qiskit_mitigation/zne/extrapolation.py +506 -0
  25. qiskit_mitigation/zne/gate_folding.py +1000 -0
  26. qiskit_mitigation/zne/pea.py +635 -0
  27. qiskit_mitigation-0.1.0.dist-info/METADATA +329 -0
  28. qiskit_mitigation-0.1.0.dist-info/RECORD +30 -0
  29. qiskit_mitigation-0.1.0.dist-info/WHEEL +4 -0
  30. qiskit_mitigation-0.1.0.dist-info/licenses/LICENSE.txt +201 -0
@@ -0,0 +1,33 @@
1
+ # This code is a Qiskit project.
2
+ #
3
+ # (C) Copyright IBM 2026.
4
+ #
5
+ # This code is licensed under the Apache License, Version 2.0. You may
6
+ # obtain a copy of this license in the LICENSE.txt file in the root directory
7
+ # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
8
+ #
9
+ # Any modifications or derivative works of this code must retain this
10
+ # copyright notice, and modified files need to carry a notice indicating
11
+ # that they have been altered from the originals.
12
+
13
+ # Warning: this module is not documented and it does not have an RST file.
14
+ # If we ever publicly expose interfaces users can import from this module,
15
+ # we should set up its RST file.
16
+ """Qiskit mitigation Python API."""
17
+
18
+ from .mitigation_task import MitigationTask
19
+ from .pec import PEC
20
+ from .trex import TREX
21
+ from .utils.utils import find_combined_unique_layers, load_tasks_from_result
22
+ from .zne.gate_folding import GateFolding
23
+ from .zne.pea import PEA
24
+
25
+ __all__ = [
26
+ "PEA",
27
+ "PEC",
28
+ "TREX",
29
+ "GateFolding",
30
+ "MitigationTask",
31
+ "find_combined_unique_layers",
32
+ "load_tasks_from_result",
33
+ ]