qml-essentials 0.2.3__tar.gz → 0.3.2__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 (286) hide show
  1. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.github/workflows/docs-publish.yml +11 -17
  2. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.github/workflows/docs.yml +12 -18
  3. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.github/workflows/publish.yml +13 -13
  4. qml_essentials-0.3.2/.github/workflows/quality-publish.yml +23 -0
  5. qml_essentials-0.3.2/.github/workflows/quality.yml +24 -0
  6. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.github/workflows/test-on-pr.yml +7 -8
  7. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.github/workflows/test-on-publish.yml +7 -8
  8. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.gitignore +1 -0
  9. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/CITATION.cff +4 -2
  10. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/CONTRIBUTING.md +2 -2
  11. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/PKG-INFO +16 -16
  12. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/README.md +11 -9
  13. qml_essentials-0.3.2/docs/algebra.md +84 -0
  14. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/ansaetze.ipynb +2 -2
  15. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/ansaetze.md +4 -4
  16. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/coefficients.ipynb +2 -2
  17. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/coefficients.md +4 -4
  18. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/entanglement.md +40 -0
  19. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/generate_circuits.py +3 -3
  20. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/index.md +2 -0
  21. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/noise.md +2 -2
  22. qml_essentials-0.3.2/docs/pulses.md +69 -0
  23. qml_essentials-0.3.2/docs/references.md +140 -0
  24. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/usage.md +15 -12
  25. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/mkdocs.yml +1 -2
  26. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/pyproject.toml +6 -8
  27. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/algebra.py +1 -1
  28. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/ansaetze.py +153 -22
  29. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/coefficients.py +2 -2
  30. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/entanglement.py +95 -21
  31. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/model.py +46 -45
  32. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/pauli.py +12 -8
  33. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/random_sampling.py +5 -5
  34. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/states.py +1 -1
  35. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/topologies.py +41 -1
  36. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/trainability.py +4 -4
  37. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/tests/conftest.py +1 -1
  38. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/tests/test_algebra.py +1 -1
  39. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/tests/test_ansaetze.py +118 -52
  40. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/tests/test_coefficients.py +5 -5
  41. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/tests/test_matchgate_migration.py +5 -5
  42. qml_essentials-0.3.2/tests/test_math_model.py +56 -0
  43. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/tests/test_model.py +26 -8
  44. qml_essentials-0.3.2/tests/test_pauli_circuit.py +70 -0
  45. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/tests/test_states.py +2 -2
  46. qml_essentials-0.3.2/uv.lock +2652 -0
  47. qml_essentials-0.2.3/.github/workflows/quality-publish.yml +0 -24
  48. qml_essentials-0.2.3/.github/workflows/quality.yml +0 -25
  49. qml_essentials-0.2.3/docs/benchmarks.py +0 -322
  50. qml_essentials-0.2.3/docs/figures/gates_fidelities_dark.png +0 -0
  51. qml_essentials-0.2.3/docs/figures/gates_fidelities_light.png +0 -0
  52. qml_essentials-0.2.3/docs/figures/jaqsi_overview_dark.png +0 -0
  53. qml_essentials-0.2.3/docs/figures/jaqsi_overview_light.png +0 -0
  54. qml_essentials-0.2.3/docs/figures/jaqsi_pulse_dark.png +0 -0
  55. qml_essentials-0.2.3/docs/figures/jaqsi_pulse_light.png +0 -0
  56. qml_essentials-0.2.3/docs/figures/pulse_gates_dependencies_dark.png +0 -0
  57. qml_essentials-0.2.3/docs/figures/pulse_gates_dependencies_light.png +0 -0
  58. qml_essentials-0.2.3/docs/figures/pulse_schedule_dark.png +0 -0
  59. qml_essentials-0.2.3/docs/figures/pulse_schedule_light.png +0 -0
  60. qml_essentials-0.2.3/docs/figures/pulses_structure_dark.png +0 -0
  61. qml_essentials-0.2.3/docs/figures/pulses_structure_light.png +0 -0
  62. qml_essentials-0.2.3/docs/jaqsi.ipynb +0 -549
  63. qml_essentials-0.2.3/docs/jaqsi.md +0 -356
  64. qml_essentials-0.2.3/docs/math_utils.md +0 -108
  65. qml_essentials-0.2.3/docs/pulses.ipynb +0 -615
  66. qml_essentials-0.2.3/docs/pulses.md +0 -185
  67. qml_essentials-0.2.3/docs/references.md +0 -372
  68. qml_essentials-0.2.3/docs/slurm_benchmark.sh +0 -31
  69. qml_essentials-0.2.3/qml_essentials/drawing.py +0 -970
  70. qml_essentials-0.2.3/qml_essentials/evolution.py +0 -570
  71. qml_essentials-0.2.3/qml_essentials/gates.py +0 -245
  72. qml_essentials-0.2.3/qml_essentials/jaqsi.py +0 -167
  73. qml_essentials-0.2.3/qml_essentials/math.py +0 -431
  74. qml_essentials-0.2.3/qml_essentials/memory.py +0 -345
  75. qml_essentials-0.2.3/qml_essentials/operations.py +0 -2617
  76. qml_essentials-0.2.3/qml_essentials/pulses.py +0 -1689
  77. qml_essentials-0.2.3/qml_essentials/qoc.py +0 -3085
  78. qml_essentials-0.2.3/qml_essentials/qoc_results_drag.csv +0 -4
  79. qml_essentials-0.2.3/qml_essentials/qoc_results_gaussian.csv +0 -4
  80. qml_essentials-0.2.3/qml_essentials/qoc_results_square.csv +0 -4
  81. qml_essentials-0.2.3/qml_essentials/script.py +0 -720
  82. qml_essentials-0.2.3/qml_essentials/simulation.py +0 -400
  83. qml_essentials-0.2.3/qml_essentials/tape.py +0 -138
  84. qml_essentials-0.2.3/qml_essentials/unitary.py +0 -712
  85. qml_essentials-0.2.3/qml_essentials/utils.py +0 -13
  86. qml_essentials-0.2.3/tests/test_jaqsi.py +0 -3074
  87. qml_essentials-0.2.3/tests/test_math.py +0 -468
  88. qml_essentials-0.2.3/tests/test_pauli.py +0 -258
  89. qml_essentials-0.2.3/tests/test_pulse_state.py +0 -113
  90. qml_essentials-0.2.3/tests/test_qoc.py +0 -388
  91. qml_essentials-0.2.3/uv.lock +0 -2193
  92. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.github/CODEOWNERS +0 -0
  93. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  94. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.github/ISSUE_TEMPLATE/code-health.md +0 -0
  95. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  96. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.github/dependabot.yml +0 -0
  97. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.github/workflows/dependabot-approve.yml +0 -0
  98. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/.pre-commit-config.yaml +0 -0
  99. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/LICENSE +0 -0
  100. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/diagrams.drawio +0 -0
  101. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/expressibility.md +0 -0
  102. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/bloch-sphere.svg +0 -0
  103. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuit_tikz_dark.png +0 -0
  104. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuit_tikz_light.png +0 -0
  105. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_10_dark.png +0 -0
  106. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_10_light.png +0 -0
  107. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_13_dark.png +0 -0
  108. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_13_light.png +0 -0
  109. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_14_dark.png +0 -0
  110. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_14_light.png +0 -0
  111. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_15_dark.png +0 -0
  112. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_15_light.png +0 -0
  113. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_16_dark.png +0 -0
  114. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_16_light.png +0 -0
  115. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_17_dark.png +0 -0
  116. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_17_light.png +0 -0
  117. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_18_dark.png +0 -0
  118. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_18_light.png +0 -0
  119. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_19_dark.png +0 -0
  120. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_19_light.png +0 -0
  121. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_1_dark.png +0 -0
  122. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_1_light.png +0 -0
  123. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_20_dark.png +0 -0
  124. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_20_light.png +0 -0
  125. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_2_dark.png +0 -0
  126. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_2_light.png +0 -0
  127. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_3_dark.png +0 -0
  128. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_3_light.png +0 -0
  129. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_4_dark.png +0 -0
  130. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_4_light.png +0 -0
  131. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_5_dark.png +0 -0
  132. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_5_light.png +0 -0
  133. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_6_dark.png +0 -0
  134. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_6_light.png +0 -0
  135. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_7_dark.png +0 -0
  136. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_7_light.png +0 -0
  137. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_8_dark.png +0 -0
  138. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_8_light.png +0 -0
  139. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_9_dark.png +0 -0
  140. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Circuit_9_light.png +0 -0
  141. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/GHZ_dark.png +0 -0
  142. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/GHZ_light.png +0 -0
  143. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Hardware_Efficient_dark.png +0 -0
  144. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Hardware_Efficient_light.png +0 -0
  145. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/No_Ansatz_dark.png +0 -0
  146. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/No_Ansatz_light.png +0 -0
  147. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/No_Entangling_dark.png +0 -0
  148. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/No_Entangling_light.png +0 -0
  149. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Strongly_Entangling_dark.png +0 -0
  150. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_4q/Strongly_Entangling_light.png +0 -0
  151. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_10_dark.png +0 -0
  152. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_10_light.png +0 -0
  153. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_13_dark.png +0 -0
  154. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_13_light.png +0 -0
  155. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_14_dark.png +0 -0
  156. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_14_light.png +0 -0
  157. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_15_dark.png +0 -0
  158. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_15_light.png +0 -0
  159. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_16_dark.png +0 -0
  160. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_16_light.png +0 -0
  161. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_17_dark.png +0 -0
  162. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_17_light.png +0 -0
  163. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_18_dark.png +0 -0
  164. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_18_light.png +0 -0
  165. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_19_dark.png +0 -0
  166. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_19_light.png +0 -0
  167. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_1_dark.png +0 -0
  168. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_1_light.png +0 -0
  169. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_20_dark.png +0 -0
  170. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_20_light.png +0 -0
  171. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_2_dark.png +0 -0
  172. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_2_light.png +0 -0
  173. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_3_dark.png +0 -0
  174. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_3_light.png +0 -0
  175. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_4_dark.png +0 -0
  176. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_4_light.png +0 -0
  177. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_5_dark.png +0 -0
  178. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_5_light.png +0 -0
  179. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_6_dark.png +0 -0
  180. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_6_light.png +0 -0
  181. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_7_dark.png +0 -0
  182. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_7_light.png +0 -0
  183. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_8_dark.png +0 -0
  184. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_8_light.png +0 -0
  185. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_9_dark.png +0 -0
  186. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Circuit_9_light.png +0 -0
  187. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/GHZ_dark.png +0 -0
  188. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/GHZ_light.png +0 -0
  189. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Hardware_Efficient_dark.png +0 -0
  190. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Hardware_Efficient_light.png +0 -0
  191. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/No_Ansatz_dark.png +0 -0
  192. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/No_Ansatz_light.png +0 -0
  193. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/No_Entangling_dark.png +0 -0
  194. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/No_Entangling_light.png +0 -0
  195. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Strongly_Entangling_dark.png +0 -0
  196. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_5q/Strongly_Entangling_light.png +0 -0
  197. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_10_dark.png +0 -0
  198. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_10_light.png +0 -0
  199. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_13_dark.png +0 -0
  200. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_13_light.png +0 -0
  201. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_14_dark.png +0 -0
  202. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_14_light.png +0 -0
  203. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_15_dark.png +0 -0
  204. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_15_light.png +0 -0
  205. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_16_dark.png +0 -0
  206. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_16_light.png +0 -0
  207. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_17_dark.png +0 -0
  208. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_17_light.png +0 -0
  209. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_18_dark.png +0 -0
  210. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_18_light.png +0 -0
  211. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_19_dark.png +0 -0
  212. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_19_light.png +0 -0
  213. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_1_dark.png +0 -0
  214. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_1_light.png +0 -0
  215. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_20_dark.png +0 -0
  216. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_20_light.png +0 -0
  217. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_2_dark.png +0 -0
  218. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_2_light.png +0 -0
  219. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_3_dark.png +0 -0
  220. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_3_light.png +0 -0
  221. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_4_dark.png +0 -0
  222. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_4_light.png +0 -0
  223. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_5_dark.png +0 -0
  224. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_5_light.png +0 -0
  225. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_6_dark.png +0 -0
  226. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_6_light.png +0 -0
  227. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_7_dark.png +0 -0
  228. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_7_light.png +0 -0
  229. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_8_dark.png +0 -0
  230. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_8_light.png +0 -0
  231. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_9_dark.png +0 -0
  232. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Circuit_9_light.png +0 -0
  233. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/GHZ_dark.png +0 -0
  234. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/GHZ_light.png +0 -0
  235. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Hardware_Efficient_dark.png +0 -0
  236. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Hardware_Efficient_light.png +0 -0
  237. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/No_Ansatz_dark.png +0 -0
  238. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/No_Ansatz_light.png +0 -0
  239. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/No_Entangling_dark.png +0 -0
  240. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/No_Entangling_light.png +0 -0
  241. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Strongly_Entangling_dark.png +0 -0
  242. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/circuits_6q/Strongly_Entangling_light.png +0 -0
  243. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/code.svg +0 -0
  244. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/fourier_fingerprint_dark.png +0 -0
  245. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/fourier_fingerprint_light.png +0 -0
  246. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/fourier_series_dark.png +0 -0
  247. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/fourier_series_light.png +0 -0
  248. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/fourier_series_tf_dark.png +0 -0
  249. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/fourier_series_tf_light.png +0 -0
  250. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/histogram.svg +0 -0
  251. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/invert_images.sh +0 -0
  252. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_2d_psd_dark.png +0 -0
  253. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_2d_psd_light.png +0 -0
  254. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_fct_dark.png +0 -0
  255. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_fct_light.png +0 -0
  256. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_fct_spectr_dark.png +0 -0
  257. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_fct_spectr_light.png +0 -0
  258. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_fct_spectr_os_dark.png +0 -0
  259. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_fct_spectr_os_light.png +0 -0
  260. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_fct_spectr_ours_dark.png +0 -0
  261. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_fct_spectr_ours_light.png +0 -0
  262. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_psd_an_dark.png +0 -0
  263. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_psd_an_light.png +0 -0
  264. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_psd_dark.png +0 -0
  265. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/model_psd_light.png +0 -0
  266. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/rel-entropy.svg +0 -0
  267. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/trained_series_dark.png +0 -0
  268. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/trained_series_dataset_dark.png +0 -0
  269. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/trained_series_dataset_light.png +0 -0
  270. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/trained_series_light.png +0 -0
  271. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/trained_series_tf_dark.png +0 -0
  272. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/figures/trained_series_tf_light.png +0 -0
  273. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/javascripts/mathjax.js +0 -0
  274. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/logo.svg +0 -0
  275. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/metrics.ipynb +0 -0
  276. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/random_sampling.md +0 -0
  277. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/style.css +0 -0
  278. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/training.ipynb +0 -0
  279. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/training.md +0 -0
  280. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/docs/usage.ipynb +0 -0
  281. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/__init__.py +0 -0
  282. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/qml_essentials/expressibility.py +0 -0
  283. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/tests/__init__.py +0 -0
  284. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/tests/test_entanglement.py +0 -0
  285. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/tests/test_expressiblity.py +0 -0
  286. {qml_essentials-0.2.3 → qml_essentials-0.3.2}/tests/test_random_sampling.py +0 -0
@@ -9,21 +9,18 @@ permissions:
9
9
  contents: write
10
10
  pages: write
11
11
  id-token: write
12
+ env:
13
+ UV_PYTHON: "3.13"
12
14
  jobs:
13
15
  test:
14
16
  runs-on: self-hosted
15
17
  if: ${{ github.ref != 'refs/heads/main' }}
16
18
  steps:
17
19
  - uses: actions/checkout@v7
18
- - name: Install system dependencies
19
- run: sudo apt-get update && sudo apt-get install -y gcc graphviz libgraphviz-dev pkg-config
20
- - name: Set up Python 3.13
21
- uses: actions/setup-python@v7
22
- with:
23
- python-version: "3.13"
24
- # cache: "uv"
20
+ - name: Set up uv
21
+ uses: astral-sh/setup-uv@v7
25
22
  - name: Install dependencies
26
- run: pipx run uv sync --group docs
23
+ run: uv sync --group docs
27
24
  - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
28
25
  # - name: Setting up Cache
29
26
  # uses: actions/cache@v4
@@ -33,7 +30,7 @@ jobs:
33
30
  # restore-keys: |
34
31
  # mkdocs-material-
35
32
  - name: Build Docs
36
- run: pipx run uv run zensical build --strict
33
+ run: uv run zensical build --strict
37
34
  deploy:
38
35
  runs-on: self-hosted
39
36
  if: ${{ github.ref == 'refs/heads/main' }}
@@ -47,13 +44,10 @@ jobs:
47
44
  run: |
48
45
  git config user.name github-actions[bot]
49
46
  git config user.email 41898282+github-actions[bot]@users.noreply.github.com
50
- - name: Set up Python 3.13
51
- uses: actions/setup-python@v7
52
- with:
53
- python-version: "3.13"
54
- # cache: "uv"
47
+ - name: Set up uv
48
+ uses: astral-sh/setup-uv@v7
55
49
  - name: Install dependencies
56
- run: pipx run uv sync --group docs
50
+ run: uv sync --group docs
57
51
  - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
58
52
  # - name: Setting up Cache
59
53
  # uses: actions/cache@v4
@@ -63,13 +57,13 @@ jobs:
63
57
  # restore-keys: |
64
58
  # mkdocs-material-
65
59
  - name: Download a single artifact
66
- uses: actions/download-artifact@v7
60
+ uses: actions/download-artifact@v8
67
61
  with:
68
62
  name: coverage-report
69
63
  run-id: ${{ inputs.test-run-id }}
70
64
  path: docs/coverage/
71
65
  - name: Build Docs
72
- run: pipx run uv run zensical build --strict --clean
66
+ run: uv run zensical build --strict --clean
73
67
  - uses: actions/upload-pages-artifact@v5
74
68
  with:
75
69
  path: site
@@ -9,21 +9,18 @@ on:
9
9
  type: string
10
10
  permissions:
11
11
  contents: write
12
+ env:
13
+ UV_PYTHON: "3.13"
12
14
  jobs:
13
15
  test:
14
16
  runs-on: self-hosted
15
17
  if: ${{ github.ref != 'refs/heads/main' }}
16
18
  steps:
17
19
  - uses: actions/checkout@v7
18
- - name: Install system dependencies
19
- run: sudo apt-get update && sudo apt-get install -y gcc graphviz libgraphviz-dev pkg-config
20
- - name: Set up Python 3.13
21
- uses: actions/setup-python@v7
22
- with:
23
- python-version: "3.13"
24
- # cache: "uv"
20
+ - name: Set up uv
21
+ uses: astral-sh/setup-uv@v7
25
22
  - name: Install dependencies
26
- run: pipx run uv sync --group docs
23
+ run: uv sync --group docs
27
24
  - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
28
25
  # - name: Setting up Cache
29
26
  # uses: actions/cache@v4
@@ -33,7 +30,7 @@ jobs:
33
30
  # restore-keys: |
34
31
  # mkdocs-material-
35
32
  - name: Build Docs
36
- run: pipx run uv run zensical build --strict
33
+ run: uv run zensical build --strict
37
34
  deploy:
38
35
  runs-on: self-hosted
39
36
  if: ${{ github.ref == 'refs/heads/main' }}
@@ -43,13 +40,10 @@ jobs:
43
40
  run: |
44
41
  git config user.name github-actions[bot]
45
42
  git config user.email 41898282+github-actions[bot]@users.noreply.github.com
46
- - name: Set up Python 3.13
47
- uses: actions/setup-python@v7
48
- with:
49
- python-version: "3.13"
50
- # cache: "uv"
43
+ - name: Set up uv
44
+ uses: astral-sh/setup-uv@v7
51
45
  - name: Install dependencies
52
- run: pipx run uv sync --group docs
46
+ run: uv sync --group docs
53
47
  - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
54
48
  # - name: Setting up Cache
55
49
  # uses: actions/cache@v4
@@ -59,12 +53,12 @@ jobs:
59
53
  # restore-keys: |
60
54
  # mkdocs-material-
61
55
  - name: Download a single artifact
62
- uses: actions/download-artifact@v7
56
+ uses: actions/download-artifact@v8
63
57
  with:
64
58
  name: coverage-report
65
59
  run-id: ${{ inputs.test-run-id }}
66
60
  path: docs/coverage/
67
61
  - name: Build Docs
68
- run: pipx run uv run zensical build --strict
62
+ run: uv run zensical build --strict
69
63
  - name: Deploy
70
- run: pipx run uv run zensical gh-deploy --force
64
+ run: uv run zensical gh-deploy --force
@@ -6,6 +6,8 @@ permissions:
6
6
  contents: write
7
7
  pages: write
8
8
  id-token: write
9
+ env:
10
+ UV_PYTHON: "3.13"
9
11
  jobs:
10
12
  test-publish:
11
13
  name: Trigger Expensive Tests
@@ -29,44 +31,42 @@ jobs:
29
31
  with:
30
32
  fetch-tags: true
31
33
  ssh-key: ${{ secrets.DEPLOY_KEY }}
32
- - name: Set up Python 3.13
33
- uses: actions/setup-python@v7
34
- with:
35
- python-version: "3.13"
36
- # cache: "uv"
34
+ - name: Set up uv
35
+ uses: astral-sh/setup-uv@v7
37
36
  - name: Compare tag and version
38
37
  run: |
39
38
  git fetch --tags
40
- if [ "$(git tag | sort -g | tail -1)" = "$(pipx run uv version --short)" ]; then
39
+ if [ "$(git tag | sort -V | tail -1)" = "$(uv version --short)" ]; then
41
40
  echo "The tag and the version are the same, nothing to do."
42
41
  echo "DORELEASE=false" >> $GITHUB_ENV
43
42
  else
44
- echo "The tag ($(git tag | sort -g | tail -1)) and the version ($(pipx run uv version --short)) differ, trigging a release."
43
+ echo "The tag ($(git tag | sort -V | tail -1)) and the version ($(uv version --short)) differ, trigging a release."
45
44
  echo "DORELEASE=true" >> $GITHUB_ENV
46
45
  fi
47
46
  - name: Update Citation
48
47
  if: env.DORELEASE == 'true'
49
48
  run: |
50
- sed -i "/^cff/! s/version:\s\S*/version: $(pipx run uv version --short)/" CITATION.cff
49
+ sed -i "/^cff/! s/version:\s\S*/version: $(uv version --short)/" CITATION.cff
51
50
  sed -i "s/date-released:\s\S*/date-released: $(date +'%Y-%m-%d')/" CITATION.cff
52
51
  git config user.name github-actions[bot]
53
52
  git config user.email 41898282+github-actions[bot]@users.noreply.github.com
54
53
  git commit -am "Update Citation"
54
+ git pull --rebase
55
55
  git push
56
56
  env:
57
57
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58
58
  - name: Create Release & Tag
59
59
  if: env.DORELEASE == 'true'
60
60
  run: |
61
- gh release create "$(pipx run uv version --short)" \
61
+ gh release create "$(uv version --short)" \
62
62
  --repo="$GITHUB_REPOSITORY" \
63
- --title="${GITHUB_REPOSITORY#*/} $(pipx run uv version --short)" \
63
+ --title="${GITHUB_REPOSITORY#*/} $(uv version --short)" \
64
64
  --generate-notes
65
65
  env:
66
66
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67
67
  - name: Publish to PyPI
68
68
  if: env.DORELEASE == 'true'
69
69
  run: |
70
- pipx run uv sync --group dev
71
- pipx run uv build
72
- pipx run uv publish --token ${{ secrets.PYPI_API_TOKEN }}
70
+ uv sync --group dev
71
+ uv build
72
+ uv publish --token ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,23 @@
1
+ name: Quality on Publish
2
+ on:
3
+ workflow_call:
4
+ permissions:
5
+ contents: read
6
+ env:
7
+ UV_PYTHON: "3.13"
8
+ jobs:
9
+ quality:
10
+ runs-on: self-hosted
11
+ if: ${{ (github.actor != 'dependabot[bot]') }}
12
+ steps:
13
+ - uses: actions/checkout@v7
14
+ - name: Set up uv
15
+ uses: astral-sh/setup-uv@v7
16
+ - name: Install dependencies
17
+ run: uv sync --group dev
18
+ - name: Lint with ruff
19
+ run: |
20
+ uv run ruff check qml_essentials
21
+ uv run ruff check tests
22
+ - name: Running license check
23
+ run: uv run licensecheck --zero --license mit
@@ -0,0 +1,24 @@
1
+ name: Quality
2
+ on:
3
+ pull_request:
4
+ branches: ["main"]
5
+ permissions:
6
+ contents: read
7
+ env:
8
+ UV_PYTHON: "3.13"
9
+ jobs:
10
+ quality:
11
+ runs-on: self-hosted
12
+ if: ${{ (github.actor != 'dependabot[bot]') }}
13
+ steps:
14
+ - uses: actions/checkout@v7
15
+ - name: Set up uv
16
+ uses: astral-sh/setup-uv@v7
17
+ - name: Install dependencies
18
+ run: uv sync --group dev
19
+ - name: Lint with ruff
20
+ run: |
21
+ uv run ruff check qml_essentials
22
+ uv run ruff check tests
23
+ - name: Running license check
24
+ run: uv run licensecheck --zero --license mit
@@ -9,19 +9,18 @@ permissions:
9
9
  concurrency:
10
10
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11
11
  cancel-in-progress: true
12
+ env:
13
+ UV_PYTHON: "3.13"
12
14
  jobs:
13
15
  test-all:
14
16
  runs-on: self-hosted
15
17
  steps:
16
18
  - uses: actions/checkout@v7
17
- - name: Set up Python 3.13
18
- uses: actions/setup-python@v7
19
- with:
20
- python-version: "3.13"
21
- # cache: "uv"
19
+ - name: Set up uv
20
+ uses: astral-sh/setup-uv@v7
22
21
  - name: Install dependencies
23
- run: pipx run uv sync --group dev
22
+ run: uv sync --group dev
24
23
  - name: Test with pytest (no benchmark)
25
- run: pipx run uv run pytest --cov=qml_essentials --dist load -n 2 -m "not benchmark" -v
24
+ run: uv run pytest --cov=qml_essentials --dist load -n 2 -m "not benchmark" -v
26
25
  - name: Test with pytest (benchmark)
27
- run: pipx run uv run pytest --cov=qml_essentials -m "benchmark"
26
+ run: uv run pytest --cov=qml_essentials -m "benchmark"
@@ -3,23 +3,22 @@ on:
3
3
  workflow_call:
4
4
  permissions:
5
5
  contents: write
6
+ env:
7
+ UV_PYTHON: "3.13"
6
8
  jobs:
7
9
  test-all:
8
10
  runs-on: self-hosted
9
11
  if: ${{ (github.actor != 'github-actions[bot]') }}
10
12
  steps:
11
13
  - uses: actions/checkout@v7
12
- - name: Set up Python 3.13
13
- uses: actions/setup-python@v7
14
- with:
15
- python-version: "3.13"
16
- # cache: "uv"
14
+ - name: Set up uv
15
+ uses: astral-sh/setup-uv@v7
17
16
  - name: Install dependencies
18
- run: pipx run uv sync --group dev
17
+ run: uv sync --group dev
19
18
  - name: Test with pytest (no benchmark)
20
- run: pipx run uv run pytest --cov=qml_essentials --cov-report html --dist load -n 0 -m "not benchmark"
19
+ run: uv run pytest --cov=qml_essentials --cov-report html --dist load -n 0 -m "not benchmark"
21
20
  - name: Share coverage report
22
- uses: actions/upload-artifact@v6
21
+ uses: actions/upload-artifact@v7
23
22
  with:
24
23
  name: coverage-report
25
24
  path: htmlcov/
@@ -1,3 +1,4 @@
1
+ .codegraph
1
2
  .vscode
2
3
  logs/
3
4
  tests_external/
@@ -21,11 +21,13 @@ authors:
21
21
  - family-names: "Wahl"
22
22
  given-names: "Johannes"
23
23
  title: "QML Essentials"
24
- version: 0.2.3
25
- date-released: 2026-08-28
24
+ version: 0.3.2
25
+ date-released: 2026-11-09
26
26
  repository-code: "https://github.com/cirKITers/qml-essentials"
27
27
  url: "https://cirkiters.github.io/qml-essentials"
28
28
  license: MIT
29
29
  identifiers:
30
30
  - type: doi
31
31
  value: 10.1109/QSW67625.2025.00035
32
+ - type: doi
33
+ value: 10.1109/QSW72780.2026.00017
@@ -34,9 +34,9 @@ However, it's a good idea to run tests and linting (Ruff and Ty) locally before
34
34
  ```
35
35
  uv run ruff format qml_essentials tests
36
36
  uv run ruff check --fix qml_essentials tests
37
- uv run pytest --dist load -m "not expensive" -n auto
37
+ uv run pytest --dist load -m "not benchmark" -n auto
38
38
  ```
39
- Which will run all tests that are not marked as expensive.
39
+ Which will run all tests that are not marked as benchmarks.
40
40
  See [Pytest](https://pytest.org/) for more details on how to run specific tests only.
41
41
 
42
42
  ## Packaging
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: qml-essentials
3
- Version: 0.2.3
3
+ Version: 0.3.2
4
4
  Summary: A toolbox to make working with QML models easier.
5
5
  Project-URL: Homepage, https://cirkiters.github.io/qml-essentials/
6
6
  Project-URL: Repository, https://github.com/cirKITers/qml-essentials
@@ -16,17 +16,15 @@ Classifier: Natural Language :: English
16
16
  Classifier: Programming Language :: Python
17
17
  Classifier: Programming Language :: Python :: 3
18
18
  Classifier: Programming Language :: Python :: 3 :: Only
19
- Classifier: Programming Language :: Python :: 3.11
20
19
  Classifier: Programming Language :: Python :: 3.12
21
20
  Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
22
  Classifier: Topic :: Scientific/Engineering :: Physics
23
- Requires-Python: <3.13,>=3.11
24
- Requires-Dist: diffrax>=0.7.2
25
- Requires-Dist: equinox>=0.13.4
23
+ Requires-Python: <3.15,>=3.12
24
+ Requires-Dist: jaqsi>=0.1.1
26
25
  Requires-Dist: jax>=0.9.0.1
27
26
  Requires-Dist: jaxlib>=0.9.0.1
28
- Requires-Dist: optax>=0.2.7
29
- Requires-Dist: psutil>=7.2.2
27
+ Requires-Dist: numpy>=2.0.0
30
28
  Requires-Dist: scipy>=1.17.0
31
29
  Description-Content-Type: text/markdown
32
30
 
@@ -49,10 +47,6 @@ Checkout our [Arxiv Paper](https://arxiv.org/abs/2506.06695) to learn more.
49
47
  ```
50
48
  pip install qml-essentials
51
49
  ```
52
- or with the [uv package manager](https://github.com/astral-sh/uv):
53
- ```
54
- uv add qml-essentials
55
- ```
56
50
 
57
51
  to install our package from [PyPI](https://pypi.org/project/qml-essentials/).
58
52
 
@@ -69,21 +63,22 @@ You can find details on how to use it and further documentation on the correspon
69
63
 
70
64
  The following diagram provides an overview on how the different components within this package depend on each other.
71
65
 
66
+ Circuit simulation is provided by [jaqsi](https://github.com/cirKITers/jaqsi), our gate- and pulse-level simulator, which this package builds upon.
67
+
72
68
  ```mermaid
73
69
  flowchart LR
74
70
  qmless([QML Essentials])
75
71
  qmless --> qmless.ansaetze([Ansaetze])
76
72
  qmless.ansaetze --> qmless.blocks([Blocks])
77
- qmless.blocks --> qmless.gates([Gates])
78
73
  qmless.blocks --> qmless.topo([Topologies])
79
- qmless.gates --> qmless.unitary([UnitaryGates])
80
- qmless.gates --> qmless.pulse([PulseGates])
74
+ qmless.blocks --> jaqsi.gates([Gates])
81
75
  qmless --> qmless.coefficients([Coefficients])
82
76
  qmless.coefficients --> qmless.analytical([Analytical])
83
77
  qmless.coefficients --> qmless.numerical([Numerical])
84
78
  qmless.numerical --> qmless.fcc([Fourier Coefficient Correlation])
85
79
  qmless.numerical --> qmless.fingerprint([Fourier Fingerprints])
86
80
  qmless --> qmless.models([Models])
81
+ qmless.models --> jaqsi.script([Script])
87
82
  qmless --> qmless.expr([Expressibility])
88
83
  qmless --> qmless.ent([Entanglement])
89
84
  qmless.ent --> qmless.mw([Meyer Wallach])
@@ -92,6 +87,11 @@ flowchart LR
92
87
  qmless.ent --> qmless.ef([Entanglement of Formation])
93
88
  qmless.ent --> qmless.ce([Concentratable Entanglement])
94
89
 
90
+ subgraph jaqsi [jaqsi]
91
+ jaqsi.gates
92
+ jaqsi.script
93
+ end
94
+
95
95
  classDef l1 fill:#1f8f5a,stroke:#1f8f5a,color:#d4f7e8
96
96
  classDef l2 fill:#2fb170,stroke:#2fb170,color:#d4f7e8
97
97
  classDef l3 fill:#58e3a6,stroke:#58e3a6,color:#272a35
@@ -101,8 +101,8 @@ flowchart LR
101
101
 
102
102
  class qmless l1
103
103
  class qmless.ansaetze,qmless.coefficients,qmless.models,qmless.expr,qmless.ent l2
104
- class qmless.blocks,qmless.gates,qmless.numerical,qmless.analytical,qmless.mw,qmless.bell,qmless.ef,qmless.re,qmless.ce l3
105
- class qmless.unitary,qmless.pulse,qmless.topo,qmless.fcc,qmless.fingerprint l4
104
+ class qmless.blocks,qmless.numerical,qmless.analytical,qmless.mw,qmless.bell,qmless.ef,qmless.re,qmless.ce l3
105
+ class qmless.topo,qmless.fcc,qmless.fingerprint,jaqsi.gates,jaqsi.script l4
106
106
  ```
107
107
 
108
108
  ## 🚧 Contributing
@@ -17,10 +17,6 @@ Checkout our [Arxiv Paper](https://arxiv.org/abs/2506.06695) to learn more.
17
17
  ```
18
18
  pip install qml-essentials
19
19
  ```
20
- or with the [uv package manager](https://github.com/astral-sh/uv):
21
- ```
22
- uv add qml-essentials
23
- ```
24
20
 
25
21
  to install our package from [PyPI](https://pypi.org/project/qml-essentials/).
26
22
 
@@ -37,21 +33,22 @@ You can find details on how to use it and further documentation on the correspon
37
33
 
38
34
  The following diagram provides an overview on how the different components within this package depend on each other.
39
35
 
36
+ Circuit simulation is provided by [jaqsi](https://github.com/cirKITers/jaqsi), our gate- and pulse-level simulator, which this package builds upon.
37
+
40
38
  ```mermaid
41
39
  flowchart LR
42
40
  qmless([QML Essentials])
43
41
  qmless --> qmless.ansaetze([Ansaetze])
44
42
  qmless.ansaetze --> qmless.blocks([Blocks])
45
- qmless.blocks --> qmless.gates([Gates])
46
43
  qmless.blocks --> qmless.topo([Topologies])
47
- qmless.gates --> qmless.unitary([UnitaryGates])
48
- qmless.gates --> qmless.pulse([PulseGates])
44
+ qmless.blocks --> jaqsi.gates([Gates])
49
45
  qmless --> qmless.coefficients([Coefficients])
50
46
  qmless.coefficients --> qmless.analytical([Analytical])
51
47
  qmless.coefficients --> qmless.numerical([Numerical])
52
48
  qmless.numerical --> qmless.fcc([Fourier Coefficient Correlation])
53
49
  qmless.numerical --> qmless.fingerprint([Fourier Fingerprints])
54
50
  qmless --> qmless.models([Models])
51
+ qmless.models --> jaqsi.script([Script])
55
52
  qmless --> qmless.expr([Expressibility])
56
53
  qmless --> qmless.ent([Entanglement])
57
54
  qmless.ent --> qmless.mw([Meyer Wallach])
@@ -60,6 +57,11 @@ flowchart LR
60
57
  qmless.ent --> qmless.ef([Entanglement of Formation])
61
58
  qmless.ent --> qmless.ce([Concentratable Entanglement])
62
59
 
60
+ subgraph jaqsi [jaqsi]
61
+ jaqsi.gates
62
+ jaqsi.script
63
+ end
64
+
63
65
  classDef l1 fill:#1f8f5a,stroke:#1f8f5a,color:#d4f7e8
64
66
  classDef l2 fill:#2fb170,stroke:#2fb170,color:#d4f7e8
65
67
  classDef l3 fill:#58e3a6,stroke:#58e3a6,color:#272a35
@@ -69,8 +71,8 @@ flowchart LR
69
71
 
70
72
  class qmless l1
71
73
  class qmless.ansaetze,qmless.coefficients,qmless.models,qmless.expr,qmless.ent l2
72
- class qmless.blocks,qmless.gates,qmless.numerical,qmless.analytical,qmless.mw,qmless.bell,qmless.ef,qmless.re,qmless.ce l3
73
- class qmless.unitary,qmless.pulse,qmless.topo,qmless.fcc,qmless.fingerprint l4
74
+ class qmless.blocks,qmless.numerical,qmless.analytical,qmless.mw,qmless.bell,qmless.ef,qmless.re,qmless.ce l3
75
+ class qmless.topo,qmless.fcc,qmless.fingerprint,jaqsi.gates,jaqsi.script l4
74
76
  ```
75
77
 
76
78
  ## 🚧 Contributing
@@ -0,0 +1,84 @@
1
+ # Algebra and States
2
+
3
+ Beyond the metrics computed from a `Model`, the `algebra` and `states` modules provide
4
+ dynamical Lie algebra (DLA) tooling and state-preparation utilities used for
5
+ trainability and barren-plateau analysis.
6
+
7
+ ## DLA and g-purity
8
+
9
+ Beyond circuit execution, the `algebra` module provides dynamical Lie algebra (DLA) helpers used for trainability and barren-plateau analysis.
10
+ The matchgate algebra $\mathfrak{so}(2n)$ is available both as a generating set and as an explicit Pauli-string basis, and the latter must match the Lie closure of the former:
11
+
12
+ ```python
13
+ from qml_essentials.algebra import (
14
+ matchgate_generators,
15
+ matchgate_basis,
16
+ dim_so2n,
17
+ lie_closure_paulis,
18
+ g_purity_from_basis,
19
+ )
20
+
21
+ n = 3
22
+ gens = matchgate_generators(n) # {Z_k} u {X_k X_{k+1}}
23
+ basis = matchgate_basis(n) # the n(2n-1) Pauli strings of so(2n)
24
+ assert len(basis) == dim_so2n(n)
25
+ assert {pw.to_pauli_string() for pw in lie_closure_paulis(gens)} == set(basis)
26
+ ```
27
+
28
+ An ansatz that saturates $\mathfrak{su}(2^n)$ has a closure of $4^n - 1$ words, which quickly becomes intractable to enumerate.
29
+ Pass `max_dim` to stop the growth early; a result of that length means $\dim \mathfrak{g} \geq$ `max_dim` and the basis is partial, so it is only meaningful as a dimension bound:
30
+
31
+ ```python
32
+ capped = lie_closure_paulis(gens, max_dim=dim_so2n(n))
33
+ assert len(capped) == dim_so2n(n) # so(2n) is reached exactly
34
+ ```
35
+
36
+ The g-purity $P_g = \sum_B \langle\psi\lvert B\rvert\psi\rangle^2$ of a statevector with respect to a DLA basis measures how much of the state lies in the algebra:
37
+
38
+ ```python
39
+ import numpy as np
40
+
41
+ psi = np.zeros(2**n, dtype=complex)
42
+ psi[0] = 1.0 # |0...0>
43
+ print(g_purity_from_basis(psi, basis)) # 3.0 (only the on-site Z_k contribute)
44
+ ```
45
+
46
+ `g_purity_from_basis` takes a Pauli-word basis (strings or `PauliWord` objects).
47
+ For a Hilbert-Schmidt-orthonormal Hermitian matrix basis, for example the output of `lie_closure_matrices`, use `g_purity_matrix` instead.
48
+
49
+
50
+ ## Permutation-symmetric operators and input states
51
+
52
+ The `symmetric_pauli_sum` constructor sums a Pauli over all subsets of a given size, e.g. $\sum_k X_k$ (`locality=1`) or $\sum_{j<k} X_j X_k$ (`locality=2`).
53
+ The $S_n$-equivariant generators $\{\sum_k X_k, \sum_k Y_k, \sum_{j<k} Z_j Z_k\}$ and observable $O = \tfrac{2}{n(n-1)} \sum_{j<k} X_j X_k$ build on it, and the generators feed the matrix DLA:
54
+
55
+ ```python
56
+ import numpy as np
57
+ from qml_essentials.algebra import (
58
+ sn_equivariant_generators,
59
+ lie_closure_matrices,
60
+ g_purity_matrix,
61
+ )
62
+ from qml_essentials.states import dicke_state, haar_state, graph_state_vector, path_edges
63
+
64
+ n = 4
65
+ basis = lie_closure_matrices(sn_equivariant_generators(n)) # HS-orthonormal DLA basis
66
+
67
+ for psi in (dicke_state(n, 2), haar_state(n, seed=0), graph_state_vector(n, path_edges(n))):
68
+ print(g_purity_matrix(psi, basis))
69
+ ```
70
+
71
+ The same statevectors can be evolved through a circuit by passing them as the initial state:
72
+
73
+ ```python
74
+ from jaqsi import Script
75
+ from qml_essentials.ansaetze import Ansaetze
76
+ import jaqsi
77
+
78
+ def circ():
79
+ Ansaetze.Permutation_Equivariant.build(np.array([0.7, 1.1, 0.5]), n)
80
+
81
+ script = Script(circ, n_qubits=n)
82
+ zs = script.execute(type="expval", obs=[jaqsi.PauliZ(q) for q in range(n)], initial_state=dicke_state(n, 2))
83
+ ```
84
+
@@ -56,7 +56,7 @@
56
56
  "outputs": [],
57
57
  "source": [
58
58
  "from qml_essentials.ansaetze import Circuit\n",
59
- "from qml_essentials.gates import Gates\n",
59
+ "from jaqsi.gates import Gates\n",
60
60
  "from qml_essentials.topologies import Topology, Block\n",
61
61
  "\n",
62
62
  "\n",
@@ -99,7 +99,7 @@
99
99
  "outputs": [],
100
100
  "source": [
101
101
  "import pennylane.numpy as np\n",
102
- "from qml_essentials.gates import PulseInformation as pinfo\n",
102
+ "from jaqsi.gates import PulseInformation as pinfo\n",
103
103
  "from typing import Optional\n",
104
104
  "\n",
105
105
  "\n",
@@ -20,14 +20,14 @@ To get an overview of all the available Ansaetze, checkout the [references](http
20
20
  ## Custom Ansatz
21
21
 
22
22
  For building the different Ansatzes, we use topology patterns defined in `qml_essentials.topologies`.
23
- Four patterns are available: `Topology.stairs` (a configurable chain of entangling gates), `Topology.bricks` (a brick-wall pattern), `Topology.all_to_all` (every ordered qubit pair) and `Topology.all_pairs` (every unordered qubit pair).
23
+ Five patterns are available: `Topology.stairs` (a configurable chain of entangling gates), `Topology.bricks` (a brick-wall pattern), `Topology.all_to_all` (every ordered qubit pair), `Topology.all_pairs` (every unordered qubit pair) and `Topology.graph` (an explicit edge list).
24
24
  Several built-in circuits rely on them, e.g. Circuit_5 uses `all_to_all` and Circuit_7 uses `bricks`.
25
25
  You can find a list of all the available topologies in the [references](https://cirkiters.github.io/qml-essentials/references/) as well.
26
26
 
27
27
  To start implementing your own ansatz, you can inheriting from the `Circuit` class:
28
28
  ```python
29
29
  from qml_essentials.ansaetze import Circuit
30
- from qml_essentials.gates import Gates
30
+ from jaqsi import Gates
31
31
  from qml_essentials.topologies import Topology, Block
32
32
 
33
33
  class MyHardwareEfficient(Circuit):
@@ -67,7 +67,7 @@ model = Model(
67
67
  If you don't want to use the provided blocks and topologies, you can build your own Ansatz from scratch but have to implement all the required methods shown in the example below:
68
68
  ```python
69
69
  import pennylane.numpy as np
70
- from qml_essentials.gates import PulseInformation as pinfo
70
+ from jaqsi.gates import PulseInformation as pinfo
71
71
  from typing import Optional
72
72
 
73
73
  class MyHardwareEfficient(Circuit):
@@ -133,7 +133,7 @@ A callable must take an input, the wire where it's acting on and an optional noi
133
133
  Let's look at an example, where we want to encode a two-dimensional input:
134
134
  ```python
135
135
  from qml_essentials.model import Model
136
- from qml_essentials.gates import Gates
136
+ from jaqsi import Gates
137
137
 
138
138
  def MyCustomEncoding(w, wires, **kwars):
139
139
  Gates.RX(w[0], wires, **kwargs)
@@ -327,7 +327,7 @@
327
327
  ],
328
328
  "source": [
329
329
  "from matplotlib.colors import LogNorm\n",
330
- "from qml_essentials.gates import Gates\n",
330
+ "from jaqsi.gates import Gates\n",
331
331
  "import pennylane as qml\n",
332
332
  "import numpy as np\n",
333
333
  "\n",
@@ -396,7 +396,7 @@
396
396
  }
397
397
  ],
398
398
  "source": [
399
- "from qml_essentials.gates import Gates\n",
399
+ "from jaqsi.gates import Gates\n",
400
400
  "\n",
401
401
  "\n",
402
402
  "def none_encoding(*args, **kwargs):\n",