qasp 0.1.0__tar.gz

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 (95) hide show
  1. qasp-0.1.0/LICENSE +21 -0
  2. qasp-0.1.0/PKG-INFO +2043 -0
  3. qasp-0.1.0/README.md +2000 -0
  4. qasp-0.1.0/pyproject.toml +72 -0
  5. qasp-0.1.0/qasp/__init__.py +202 -0
  6. qasp-0.1.0/qasp/circuits/__init__.py +10 -0
  7. qasp-0.1.0/qasp/circuits/constructor.py +715 -0
  8. qasp-0.1.0/qasp/circuits/templates.py +562 -0
  9. qasp-0.1.0/qasp/circuits/tikz.py +1193 -0
  10. qasp-0.1.0/qasp/circuits/uqc.py +21 -0
  11. qasp-0.1.0/qasp/classifiers/__init__.py +65 -0
  12. qasp-0.1.0/qasp/classifiers/decoders.py +275 -0
  13. qasp-0.1.0/qasp/classifiers/factory.py +150 -0
  14. qasp-0.1.0/qasp/classifiers/losses.py +214 -0
  15. qasp-0.1.0/qasp/classifiers/metrics.py +441 -0
  16. qasp-0.1.0/qasp/classifiers/models.py +615 -0
  17. qasp-0.1.0/qasp/classifiers/training.py +140 -0
  18. qasp-0.1.0/qasp/devices.py +70 -0
  19. qasp-0.1.0/qasp/diagnostics/__init__.py +5 -0
  20. qasp-0.1.0/qasp/diagnostics/barren_plateau.py +828 -0
  21. qasp-0.1.0/qasp/feature_maps/__init__.py +4 -0
  22. qasp-0.1.0/qasp/feature_maps/templates.py +213 -0
  23. qasp-0.1.0/qasp/genlearn/__init__.py +17 -0
  24. qasp-0.1.0/qasp/genlearn/drawing.py +75 -0
  25. qasp-0.1.0/qasp/genlearn/factory.py +16 -0
  26. qasp-0.1.0/qasp/genlearn/losses.py +191 -0
  27. qasp-0.1.0/qasp/genlearn/models.py +762 -0
  28. qasp-0.1.0/qasp/initialization.py +410 -0
  29. qasp-0.1.0/qasp/optimization/__init__.py +42 -0
  30. qasp-0.1.0/qasp/optimization/drawing.py +300 -0
  31. qasp-0.1.0/qasp/optimization/optimizers.py +360 -0
  32. qasp-0.1.0/qasp/optimization/pce.py +465 -0
  33. qasp-0.1.0/qasp/optimization/problem.py +246 -0
  34. qasp-0.1.0/qasp/optimization/qaoa.py +784 -0
  35. qasp-0.1.0/qasp/optimization/recursive.py +262 -0
  36. qasp-0.1.0/qasp/optimization/results.py +72 -0
  37. qasp-0.1.0/qasp/qkernels/__init__.py +30 -0
  38. qasp-0.1.0/qasp/qkernels/factory.py +188 -0
  39. qasp-0.1.0/qasp/qkernels/kernels.py +79 -0
  40. qasp-0.1.0/qasp/qkernels/kta.py +208 -0
  41. qasp-0.1.0/qasp/qkernels/quantum_kernels.py +688 -0
  42. qasp-0.1.0/qasp/rl/__init__.py +55 -0
  43. qasp-0.1.0/qasp/rl/differentiable_pp_sim.py +4 -0
  44. qasp-0.1.0/qasp/rl/envs.py +197 -0
  45. qasp-0.1.0/qasp/rl/metrics.py +621 -0
  46. qasp-0.1.0/qasp/rl/model.py +246 -0
  47. qasp-0.1.0/qasp/rl/policies.py +1960 -0
  48. qasp-0.1.0/qasp/rl/pp_sim.py +773 -0
  49. qasp-0.1.0/qasp/rl/qfunctions/__init__.py +13 -0
  50. qasp-0.1.0/qasp/rl/qfunctions/drawing.py +85 -0
  51. qasp-0.1.0/qasp/rl/qfunctions/models.py +323 -0
  52. qasp-0.1.0/qasp/rl/qfunctions/observables.py +222 -0
  53. qasp-0.1.0/qasp/rl/torchrl.py +3107 -0
  54. qasp-0.1.0/qasp/rl/trl.py +165 -0
  55. qasp-0.1.0/qasp/simulators/__init__.py +12 -0
  56. qasp-0.1.0/qasp/simulators/_inference.py +114 -0
  57. qasp-0.1.0/qasp/simulators/_iqp_observables.py +160 -0
  58. qasp-0.1.0/qasp/simulators/_pauli_propagation.py +1062 -0
  59. qasp-0.1.0/qasp/simulators/_van_den_nest.py +488 -0
  60. qasp-0.1.0/qasp/simulators/iqp.py +295 -0
  61. qasp-0.1.0/qasp/simulators/iqp_tn.py +755 -0
  62. qasp-0.1.0/qasp/simulators/pauli_propagation.py +213 -0
  63. qasp-0.1.0/qasp/simulators/readout.py +127 -0
  64. qasp-0.1.0/qasp.egg-info/PKG-INFO +2043 -0
  65. qasp-0.1.0/qasp.egg-info/SOURCES.txt +93 -0
  66. qasp-0.1.0/qasp.egg-info/dependency_links.txt +1 -0
  67. qasp-0.1.0/qasp.egg-info/requires.txt +23 -0
  68. qasp-0.1.0/qasp.egg-info/top_level.txt +1 -0
  69. qasp-0.1.0/setup.cfg +4 -0
  70. qasp-0.1.0/tests/test_barren_plateau_diagnoser.py +344 -0
  71. qasp-0.1.0/tests/test_classifiers.py +655 -0
  72. qasp-0.1.0/tests/test_deep_q_learning.py +109 -0
  73. qasp-0.1.0/tests/test_dependency_integrations.py +47 -0
  74. qasp-0.1.0/tests/test_genlearn.py +392 -0
  75. qasp-0.1.0/tests/test_initialization.py +377 -0
  76. qasp-0.1.0/tests/test_initialization_distributions.py +207 -0
  77. qasp-0.1.0/tests/test_iqp_importance.py +163 -0
  78. qasp-0.1.0/tests/test_iqp_parallel_backward.py +118 -0
  79. qasp-0.1.0/tests/test_iqp_simulator.py +237 -0
  80. qasp-0.1.0/tests/test_iqp_simulator_applications.py +153 -0
  81. qasp-0.1.0/tests/test_iqp_tn.py +288 -0
  82. qasp-0.1.0/tests/test_iqp_tn_applications.py +93 -0
  83. qasp-0.1.0/tests/test_iqp_tn_inference.py +320 -0
  84. qasp-0.1.0/tests/test_iqp_tn_product_basis.py +203 -0
  85. qasp-0.1.0/tests/test_majority_modulo_sparse_projectors.py +279 -0
  86. qasp-0.1.0/tests/test_mpi_devices.py +233 -0
  87. qasp-0.1.0/tests/test_optimization.py +406 -0
  88. qasp-0.1.0/tests/test_pauli_propagation_applications.py +134 -0
  89. qasp-0.1.0/tests/test_pauli_propagation_simulator.py +220 -0
  90. qasp-0.1.0/tests/test_pqdqn_experiment.py +48 -0
  91. qasp-0.1.0/tests/test_qfunctions.py +373 -0
  92. qasp-0.1.0/tests/test_qfunctions_pauli_propagation.py +203 -0
  93. qasp-0.1.0/tests/test_quantum_kernels.py +255 -0
  94. qasp-0.1.0/tests/test_tikz_export.py +343 -0
  95. qasp-0.1.0/tests/test_windy_target_navigation.py +51 -0
qasp-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (C) 2026, INESC TEC
4
+
5
+ QASP – Quantum Agent Software Package: a Python research software package providing reusable components and integrated workflows for quantum reinforcement learning, quantum classifiers, quantum kernels, generative learning and combinatorial optimisation. QASP supports differentiable hybrid quantum-classical workflows and execution through local and distributed simulation environments.
6
+
7
+ This software is authored by: André Manuel Sequeira
8
+
9
+ This program makes use and is distributed with the following libraries: * Gymnasium: (https://github.com/Farama-Foundation/Gymnasium) * Matplotlib: (https://github.com/matplotlib/matplotlib) * NumPy: (https://github.com/numpy/numpy) * pandas: (https://github.com/pandas-dev/pandas) * PennyLane: (https://github.com/PennyLaneAI/pennylane) * Ray / RLlib: (https://github.com/ray-project/ray) * SciPy: (https://github.com/scipy/scipy) * TensorDict: (https://github.com/pytorch/tensordict) * PyTorch: (https://github.com/pytorch/pytorch) * TorchRL: (https://github.com/pytorch/rl) * ipykernel: (https://github.com/ipython/ipykernel) * pytest: (https://github.com/pytest-dev/pytest) * Ruff: (https://github.com/astral-sh/ruff) * scikit-learn: (https://github.com/scikit-learn/scikit-learn) * NetworkX: (https://github.com/networkx/networkx) * nbformat: (https://github.com/jupyter/nbformat) * Weights & Biases SDK: (https://github.com/wandb/wandb)
10
+
11
+ You can reach INESC TEC Technology Transfer Office (TTO) at tech-transfer@inesctec.pt, or Campus da Faculdade de Engenharia da Universidade do Porto Rua Dr. Roberto Frias 4200-465 Porto Portugal
12
+
13
+ If you use QASP in a work that leads to a scientific publication, we would appreciate it if you would kindly cite QASP – Quantum Agent Software Package in your manuscript.
14
+
15
+ [paper]
16
+
17
+ The paper can be found at [https://doi.org/…]
18
+
19
+ Licensed under the terms of MIT License
20
+
21
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.