quspect 0.2.0__tar.gz → 0.3.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 (267) hide show
  1. {quspect-0.2.0 → quspect-0.3.0}/PKG-INFO +4 -3
  2. {quspect-0.2.0 → quspect-0.3.0}/README.md +3 -2
  3. {quspect-0.2.0 → quspect-0.3.0}/docs/source/installation.rst +6 -3
  4. {quspect-0.2.0 → quspect-0.3.0}/docs/source/locale/zh_CN/LC_MESSAGES/installation.po +42 -34
  5. {quspect-0.2.0 → quspect-0.3.0}/docs/source/locale/zh_CN/LC_MESSAGES/quickstart.po +5 -5
  6. {quspect-0.2.0 → quspect-0.3.0}/docs/source/locale/zh_CN/LC_MESSAGES/releasing.po +64 -44
  7. {quspect-0.2.0 → quspect-0.3.0}/docs/source/quickstart.rst +1 -1
  8. {quspect-0.2.0 → quspect-0.3.0}/docs/source/releasing.rst +23 -12
  9. {quspect-0.2.0 → quspect-0.3.0}/pyproject.toml +6 -1
  10. {quspect-0.2.0 → quspect-0.3.0}/.clang-format +0 -0
  11. {quspect-0.2.0 → quspect-0.3.0}/.gitignore +0 -0
  12. {quspect-0.2.0 → quspect-0.3.0}/.readthedocs.yaml +0 -0
  13. {quspect-0.2.0 → quspect-0.3.0}/LICENSE +0 -0
  14. {quspect-0.2.0 → quspect-0.3.0}/NOTICE +0 -0
  15. {quspect-0.2.0 → quspect-0.3.0}/README_CN.md +0 -0
  16. {quspect-0.2.0 → quspect-0.3.0}/cpp/CMakeLists.txt +0 -0
  17. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/common/bit_ops.hpp +0 -0
  18. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/common/parallel.hpp +0 -0
  19. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/executor/executor.hpp +0 -0
  20. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/executor/gradient_executor.hpp +0 -0
  21. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/ir/program_builder.hpp +0 -0
  22. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/ir/qsal_decoder.hpp +0 -0
  23. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/ir/validation.hpp +0 -0
  24. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/kernels/dispatch_table.hpp +0 -0
  25. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/kernels/noise_kernels.hpp +0 -0
  26. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/optimization/ising_solver.hpp +0 -0
  27. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/runtime/classical_register.hpp +0 -0
  28. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/runtime/density_matrix.hpp +0 -0
  29. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/runtime/program.hpp +0 -0
  30. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/runtime/runtime_engine.hpp +0 -0
  31. {quspect-0.2.0 → quspect-0.3.0}/cpp/include/quspect_native/runtime/state_vector.hpp +0 -0
  32. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/common/parallel.cpp +0 -0
  33. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/executor/execution_result.cpp +0 -0
  34. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/executor/gradient_executor.cpp +0 -0
  35. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/executor/simulation_executor.cpp +0 -0
  36. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/ir/program_builder.cpp +0 -0
  37. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/ir/qsal_decoder.cpp +0 -0
  38. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/ir/validation.cpp +0 -0
  39. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/avx2/dense_gate.cpp +0 -0
  40. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/avx2/expectation.cpp +0 -0
  41. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/avx2/single_qubit_gate.cpp +0 -0
  42. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/avx2/two_qubit_gate.cpp +0 -0
  43. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/dispatch/dispatch.cpp +0 -0
  44. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/scalar/collapse.cpp +0 -0
  45. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/scalar/dense_gate.cpp +0 -0
  46. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/scalar/diagonal_gate.cpp +0 -0
  47. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/scalar/expectation.cpp +0 -0
  48. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/scalar/noise_kernels.cpp +0 -0
  49. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/scalar/sampling.cpp +0 -0
  50. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/scalar/single_qubit_gate.cpp +0 -0
  51. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/scalar/state_init.cpp +0 -0
  52. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/kernels/scalar/two_qubit_gate.cpp +0 -0
  53. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/optimization/ising_solver.cpp +0 -0
  54. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/pybind/module.cpp +0 -0
  55. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/runtime/classical_register.cpp +0 -0
  56. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/runtime/gate_operation.cpp +0 -0
  57. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/runtime/observable.cpp +0 -0
  58. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/runtime/program.cpp +0 -0
  59. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/runtime/runtime_engine.cpp +0 -0
  60. {quspect-0.2.0 → quspect-0.3.0}/cpp/src/runtime/state_vector.cpp +0 -0
  61. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_bit_ops.cpp +0 -0
  62. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_circuit_execution.cpp +0 -0
  63. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_classical_register.cpp +0 -0
  64. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_dense_gate.cpp +0 -0
  65. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_dispatch.cpp +0 -0
  66. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_dispatch_scalar.cpp +0 -0
  67. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_executor.cpp +0 -0
  68. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_expectation.cpp +0 -0
  69. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_expectation_multi_flip.cpp +0 -0
  70. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_gradient.cpp +0 -0
  71. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_ising_solver.cpp +0 -0
  72. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_measurement.cpp +0 -0
  73. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_noise.cpp +0 -0
  74. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_parallel.cpp +0 -0
  75. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_qsal_bridge.cpp +0 -0
  76. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_sampling.cpp +0 -0
  77. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_single_qubit_gate.cpp +0 -0
  78. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_state_vector.cpp +0 -0
  79. {quspect-0.2.0 → quspect-0.3.0}/cpp/tests/test_two_qubit_gate.cpp +0 -0
  80. {quspect-0.2.0 → quspect-0.3.0}/docs/requirements.txt +0 -0
  81. {quspect-0.2.0 → quspect-0.3.0}/docs/source/_static/circuit_sample.svg +0 -0
  82. {quspect-0.2.0 → quspect-0.3.0}/docs/source/_static/readme/bell_circuit_dark.svg +0 -0
  83. {quspect-0.2.0 → quspect-0.3.0}/docs/source/_static/readme/bell_circuit_light.svg +0 -0
  84. {quspect-0.2.0 → quspect-0.3.0}/docs/source/_static/sampling_sample.svg +0 -0
  85. {quspect-0.2.0 → quspect-0.3.0}/docs/source/api.rst +0 -0
  86. {quspect-0.2.0 → quspect-0.3.0}/docs/source/architecture.rst +0 -0
  87. {quspect-0.2.0 → quspect-0.3.0}/docs/source/conf.py +0 -0
  88. {quspect-0.2.0 → quspect-0.3.0}/docs/source/index.rst +0 -0
  89. {quspect-0.2.0 → quspect-0.3.0}/docs/source/ising_solver.rst +0 -0
  90. {quspect-0.2.0 → quspect-0.3.0}/docs/source/isingq.rst +0 -0
  91. {quspect-0.2.0 → quspect-0.3.0}/docs/source/locale/zh_CN/LC_MESSAGES/api.po +0 -0
  92. {quspect-0.2.0 → quspect-0.3.0}/docs/source/locale/zh_CN/LC_MESSAGES/architecture.po +0 -0
  93. {quspect-0.2.0 → quspect-0.3.0}/docs/source/locale/zh_CN/LC_MESSAGES/index.po +0 -0
  94. {quspect-0.2.0 → quspect-0.3.0}/docs/source/locale/zh_CN/LC_MESSAGES/ising_solver.po +0 -0
  95. {quspect-0.2.0 → quspect-0.3.0}/docs/source/locale/zh_CN/LC_MESSAGES/isingq.po +0 -0
  96. {quspect-0.2.0 → quspect-0.3.0}/docs/source/locale/zh_CN/LC_MESSAGES/optimization.po +0 -0
  97. {quspect-0.2.0 → quspect-0.3.0}/docs/source/locale/zh_CN/LC_MESSAGES/optimization_applications.po +0 -0
  98. {quspect-0.2.0 → quspect-0.3.0}/docs/source/locale/zh_CN/LC_MESSAGES/variational.po +0 -0
  99. {quspect-0.2.0 → quspect-0.3.0}/docs/source/optimization.rst +0 -0
  100. {quspect-0.2.0 → quspect-0.3.0}/docs/source/optimization_applications.rst +0 -0
  101. {quspect-0.2.0 → quspect-0.3.0}/docs/source/variational.rst +0 -0
  102. {quspect-0.2.0 → quspect-0.3.0}/examples/grover_long.py +0 -0
  103. {quspect-0.2.0 → quspect-0.3.0}/examples/portfolio_selection.py +0 -0
  104. {quspect-0.2.0 → quspect-0.3.0}/examples/qaoa_max_cut.py +0 -0
  105. {quspect-0.2.0 → quspect-0.3.0}/examples/wireless_channel_assignment.py +0 -0
  106. {quspect-0.2.0 → quspect-0.3.0}/quspect/__init__.py +0 -0
  107. {quspect-0.2.0 → quspect-0.3.0}/quspect/_native_loader.py +0 -0
  108. {quspect-0.2.0 → quspect-0.3.0}/quspect/algorithms/__init__.py +0 -0
  109. {quspect-0.2.0 → quspect-0.3.0}/quspect/algorithms/qft.py +0 -0
  110. {quspect-0.2.0 → quspect-0.3.0}/quspect/backends/__init__.py +0 -0
  111. {quspect-0.2.0 → quspect-0.3.0}/quspect/backends/_base.py +0 -0
  112. {quspect-0.2.0 → quspect-0.3.0}/quspect/backends/_exceptions.py +0 -0
  113. {quspect-0.2.0 → quspect-0.3.0}/quspect/backends/_execution.py +0 -0
  114. {quspect-0.2.0 → quspect-0.3.0}/quspect/backends/logicalqubit/__init__.py +0 -0
  115. {quspect-0.2.0 → quspect-0.3.0}/quspect/backends/logicalqubit/_backend.py +0 -0
  116. {quspect-0.2.0 → quspect-0.3.0}/quspect/backends/logicalqubit/_job.py +0 -0
  117. {quspect-0.2.0 → quspect-0.3.0}/quspect/backends/logicalqubit/_provider.py +0 -0
  118. {quspect-0.2.0 → quspect-0.3.0}/quspect/backends/logicalqubit/_translator.py +0 -0
  119. {quspect-0.2.0 → quspect-0.3.0}/quspect/circuit/__init__.py +0 -0
  120. {quspect-0.2.0 → quspect-0.3.0}/quspect/circuit/circuit.py +0 -0
  121. {quspect-0.2.0 → quspect-0.3.0}/quspect/circuit/instruction.py +0 -0
  122. {quspect-0.2.0 → quspect-0.3.0}/quspect/circuit/parameter.py +0 -0
  123. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/__init__.py +0 -0
  124. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/compiler.py +0 -0
  125. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/dag_circuit.py +0 -0
  126. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/dag_node.py +0 -0
  127. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/dag_to_circuit.py +0 -0
  128. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/passes/__init__.py +0 -0
  129. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/passes/base.py +0 -0
  130. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/passes/commutation.py +0 -0
  131. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/passes/diagonal_before_measure.py +0 -0
  132. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/passes/gate_cancellation.py +0 -0
  133. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/passes/rotation_merging.py +0 -0
  134. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/passes/single_qubit_fusion.py +0 -0
  135. {quspect-0.2.0 → quspect-0.3.0}/quspect/dag/phase_polynomial.py +0 -0
  136. {quspect-0.2.0 → quspect-0.3.0}/quspect/gates/__init__.py +0 -0
  137. {quspect-0.2.0 → quspect-0.3.0}/quspect/gates/_matrix_utils.py +0 -0
  138. {quspect-0.2.0 → quspect-0.3.0}/quspect/gates/gate.py +0 -0
  139. {quspect-0.2.0 → quspect-0.3.0}/quspect/gates/parameterized.py +0 -0
  140. {quspect-0.2.0 → quspect-0.3.0}/quspect/gates/standard.py +0 -0
  141. {quspect-0.2.0 → quspect-0.3.0}/quspect/ir/__init__.py +0 -0
  142. {quspect-0.2.0 → quspect-0.3.0}/quspect/ir/compilation.py +0 -0
  143. {quspect-0.2.0 → quspect-0.3.0}/quspect/ir/errors.py +0 -0
  144. {quspect-0.2.0 → quspect-0.3.0}/quspect/ir/qasm2.py +0 -0
  145. {quspect-0.2.0 → quspect-0.3.0}/quspect/ir/qasm_importer.py +0 -0
  146. {quspect-0.2.0 → quspect-0.3.0}/quspect/ir/qsal.py +0 -0
  147. {quspect-0.2.0 → quspect-0.3.0}/quspect/native/__init__.py +0 -0
  148. {quspect-0.2.0 → quspect-0.3.0}/quspect/noise/__init__.py +0 -0
  149. {quspect-0.2.0 → quspect-0.3.0}/quspect/noise/adder.py +0 -0
  150. {quspect-0.2.0 → quspect-0.3.0}/quspect/noise/channel.py +0 -0
  151. {quspect-0.2.0 → quspect-0.3.0}/quspect/noise/noise_model.py +0 -0
  152. {quspect-0.2.0 → quspect-0.3.0}/quspect/operators/__init__.py +0 -0
  153. {quspect-0.2.0 → quspect-0.3.0}/quspect/operators/fermion_operator.py +0 -0
  154. {quspect-0.2.0 → quspect-0.3.0}/quspect/operators/qubit_operator.py +0 -0
  155. {quspect-0.2.0 → quspect-0.3.0}/quspect/operators/transforms.py +0 -0
  156. {quspect-0.2.0 → quspect-0.3.0}/quspect/optimization/__init__.py +0 -0
  157. {quspect-0.2.0 → quspect-0.3.0}/quspect/optimization/codec.py +0 -0
  158. {quspect-0.2.0 → quspect-0.3.0}/quspect/optimization/compiler.py +0 -0
  159. {quspect-0.2.0 → quspect-0.3.0}/quspect/optimization/conversion.py +0 -0
  160. {quspect-0.2.0 → quspect-0.3.0}/quspect/optimization/expression.py +0 -0
  161. {quspect-0.2.0 → quspect-0.3.0}/quspect/optimization/hardware.py +0 -0
  162. {quspect-0.2.0 → quspect-0.3.0}/quspect/optimization/isingq.py +0 -0
  163. {quspect-0.2.0 → quspect-0.3.0}/quspect/optimization/model.py +0 -0
  164. {quspect-0.2.0 → quspect-0.3.0}/quspect/optimization/native_solver.py +0 -0
  165. {quspect-0.2.0 → quspect-0.3.0}/quspect/optimization/program.py +0 -0
  166. {quspect-0.2.0 → quspect-0.3.0}/quspect/py.typed +0 -0
  167. {quspect-0.2.0 → quspect-0.3.0}/quspect/simulation/__init__.py +0 -0
  168. {quspect-0.2.0 → quspect-0.3.0}/quspect/simulation/density_matrix.py +0 -0
  169. {quspect-0.2.0 → quspect-0.3.0}/quspect/simulation/density_simulator.py +0 -0
  170. {quspect-0.2.0 → quspect-0.3.0}/quspect/simulation/gate_applicator.py +0 -0
  171. {quspect-0.2.0 → quspect-0.3.0}/quspect/simulation/monte_carlo_simulator.py +0 -0
  172. {quspect-0.2.0 → quspect-0.3.0}/quspect/simulation/result.py +0 -0
  173. {quspect-0.2.0 → quspect-0.3.0}/quspect/simulation/simulator.py +0 -0
  174. {quspect-0.2.0 → quspect-0.3.0}/quspect/transpiler/__init__.py +0 -0
  175. {quspect-0.2.0 → quspect-0.3.0}/quspect/transpiler/_mapping.py +0 -0
  176. {quspect-0.2.0 → quspect-0.3.0}/quspect/transpiler/_passes.py +0 -0
  177. {quspect-0.2.0 → quspect-0.3.0}/quspect/transpiler/_target.py +0 -0
  178. {quspect-0.2.0 → quspect-0.3.0}/quspect/transpiler/validation.py +0 -0
  179. {quspect-0.2.0 → quspect-0.3.0}/quspect/variational/__init__.py +0 -0
  180. {quspect-0.2.0 → quspect-0.3.0}/quspect/variational/adjoint.py +0 -0
  181. {quspect-0.2.0 → quspect-0.3.0}/quspect/variational/objective.py +0 -0
  182. {quspect-0.2.0 → quspect-0.3.0}/quspect/variational/result.py +0 -0
  183. {quspect-0.2.0 → quspect-0.3.0}/quspect/variational/sampling.py +0 -0
  184. {quspect-0.2.0 → quspect-0.3.0}/quspect/visualization/__init__.py +0 -0
  185. {quspect-0.2.0 → quspect-0.3.0}/quspect/visualization/sampling_viz.py +0 -0
  186. {quspect-0.2.0 → quspect-0.3.0}/quspect/visualization/svg_drawer.py +0 -0
  187. {quspect-0.2.0 → quspect-0.3.0}/quspect/visualization/text_drawer.py +0 -0
  188. {quspect-0.2.0 → quspect-0.3.0}/tests/__init__.py +0 -0
  189. {quspect-0.2.0 → quspect-0.3.0}/tests/algorithms/__init__.py +0 -0
  190. {quspect-0.2.0 → quspect-0.3.0}/tests/algorithms/test_qft.py +0 -0
  191. {quspect-0.2.0 → quspect-0.3.0}/tests/backends/__init__.py +0 -0
  192. {quspect-0.2.0 → quspect-0.3.0}/tests/backends/test_execution.py +0 -0
  193. {quspect-0.2.0 → quspect-0.3.0}/tests/backends/test_logicalqubit.py +0 -0
  194. {quspect-0.2.0 → quspect-0.3.0}/tests/backends/test_logicalqubit_backend.py +0 -0
  195. {quspect-0.2.0 → quspect-0.3.0}/tests/backends/test_logicalqubit_job.py +0 -0
  196. {quspect-0.2.0 → quspect-0.3.0}/tests/backends/test_logicalqubit_provider.py +0 -0
  197. {quspect-0.2.0 → quspect-0.3.0}/tests/backends/test_logicalqubit_translator.py +0 -0
  198. {quspect-0.2.0 → quspect-0.3.0}/tests/circuit/__init__.py +0 -0
  199. {quspect-0.2.0 → quspect-0.3.0}/tests/circuit/test_circuit.py +0 -0
  200. {quspect-0.2.0 → quspect-0.3.0}/tests/circuit/test_instruction.py +0 -0
  201. {quspect-0.2.0 → quspect-0.3.0}/tests/circuit/test_parameter.py +0 -0
  202. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/__init__.py +0 -0
  203. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/passes/__init__.py +0 -0
  204. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/passes/test_commutation.py +0 -0
  205. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/passes/test_diagonal_before_measure.py +0 -0
  206. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/passes/test_gate_cancellation.py +0 -0
  207. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/passes/test_pass_manager.py +0 -0
  208. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/passes/test_pipeline.py +0 -0
  209. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/passes/test_rotation_merging.py +0 -0
  210. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/passes/test_single_qubit_fusion.py +0 -0
  211. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/test_compiler.py +0 -0
  212. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/test_dag_circuit.py +0 -0
  213. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/test_dag_to_circuit.py +0 -0
  214. {quspect-0.2.0 → quspect-0.3.0}/tests/dag/test_phase_polynomial.py +0 -0
  215. {quspect-0.2.0 → quspect-0.3.0}/tests/gates/__init__.py +0 -0
  216. {quspect-0.2.0 → quspect-0.3.0}/tests/gates/test_parameterized.py +0 -0
  217. {quspect-0.2.0 → quspect-0.3.0}/tests/gates/test_standard.py +0 -0
  218. {quspect-0.2.0 → quspect-0.3.0}/tests/ir/__init__.py +0 -0
  219. {quspect-0.2.0 → quspect-0.3.0}/tests/ir/test_qasm2.py +0 -0
  220. {quspect-0.2.0 → quspect-0.3.0}/tests/ir/test_qsal.py +0 -0
  221. {quspect-0.2.0 → quspect-0.3.0}/tests/native/__init__.py +0 -0
  222. {quspect-0.2.0 → quspect-0.3.0}/tests/native/test_gradient.py +0 -0
  223. {quspect-0.2.0 → quspect-0.3.0}/tests/native/test_native_executor.py +0 -0
  224. {quspect-0.2.0 → quspect-0.3.0}/tests/native/test_native_loader.py +0 -0
  225. {quspect-0.2.0 → quspect-0.3.0}/tests/native/test_native_threads.py +0 -0
  226. {quspect-0.2.0 → quspect-0.3.0}/tests/noise/__init__.py +0 -0
  227. {quspect-0.2.0 → quspect-0.3.0}/tests/noise/test_channel.py +0 -0
  228. {quspect-0.2.0 → quspect-0.3.0}/tests/noise/test_noise_model.py +0 -0
  229. {quspect-0.2.0 → quspect-0.3.0}/tests/operators/__init__.py +0 -0
  230. {quspect-0.2.0 → quspect-0.3.0}/tests/operators/test_fermion_operator.py +0 -0
  231. {quspect-0.2.0 → quspect-0.3.0}/tests/operators/test_qubit_operator.py +0 -0
  232. {quspect-0.2.0 → quspect-0.3.0}/tests/operators/test_transforms.py +0 -0
  233. {quspect-0.2.0 → quspect-0.3.0}/tests/optimization/__init__.py +0 -0
  234. {quspect-0.2.0 → quspect-0.3.0}/tests/optimization/test_application_examples.py +0 -0
  235. {quspect-0.2.0 → quspect-0.3.0}/tests/optimization/test_compiler.py +0 -0
  236. {quspect-0.2.0 → quspect-0.3.0}/tests/optimization/test_conversion.py +0 -0
  237. {quspect-0.2.0 → quspect-0.3.0}/tests/optimization/test_end_to_end.py +0 -0
  238. {quspect-0.2.0 → quspect-0.3.0}/tests/optimization/test_expression.py +0 -0
  239. {quspect-0.2.0 → quspect-0.3.0}/tests/optimization/test_isingq.py +0 -0
  240. {quspect-0.2.0 → quspect-0.3.0}/tests/optimization/test_model.py +0 -0
  241. {quspect-0.2.0 → quspect-0.3.0}/tests/optimization/test_native_solver.py +0 -0
  242. {quspect-0.2.0 → quspect-0.3.0}/tests/optimization/test_program.py +0 -0
  243. {quspect-0.2.0 → quspect-0.3.0}/tests/simulation/__init__.py +0 -0
  244. {quspect-0.2.0 → quspect-0.3.0}/tests/simulation/test_density_matrix.py +0 -0
  245. {quspect-0.2.0 → quspect-0.3.0}/tests/simulation/test_density_simulator.py +0 -0
  246. {quspect-0.2.0 → quspect-0.3.0}/tests/simulation/test_gate_applicator.py +0 -0
  247. {quspect-0.2.0 → quspect-0.3.0}/tests/simulation/test_gradient.py +0 -0
  248. {quspect-0.2.0 → quspect-0.3.0}/tests/simulation/test_native_noise.py +0 -0
  249. {quspect-0.2.0 → quspect-0.3.0}/tests/simulation/test_result.py +0 -0
  250. {quspect-0.2.0 → quspect-0.3.0}/tests/simulation/test_simulator.py +0 -0
  251. {quspect-0.2.0 → quspect-0.3.0}/tests/test_gate_connectivity.py +0 -0
  252. {quspect-0.2.0 → quspect-0.3.0}/tests/test_integration.py +0 -0
  253. {quspect-0.2.0 → quspect-0.3.0}/tests/test_qasm_importer.py +0 -0
  254. {quspect-0.2.0 → quspect-0.3.0}/tests/tools/__init__.py +0 -0
  255. {quspect-0.2.0 → quspect-0.3.0}/tests/tools/test_check_translations.py +0 -0
  256. {quspect-0.2.0 → quspect-0.3.0}/tests/tools/test_windows_repair_wheel.py +0 -0
  257. {quspect-0.2.0 → quspect-0.3.0}/tests/transpiler/__init__.py +0 -0
  258. {quspect-0.2.0 → quspect-0.3.0}/tests/transpiler/test_optimize_pass.py +0 -0
  259. {quspect-0.2.0 → quspect-0.3.0}/tests/transpiler/test_sabre.py +0 -0
  260. {quspect-0.2.0 → quspect-0.3.0}/tests/transpiler/test_validation.py +0 -0
  261. {quspect-0.2.0 → quspect-0.3.0}/tests/variational/__init__.py +0 -0
  262. {quspect-0.2.0 → quspect-0.3.0}/tests/variational/test_adjoint_engine.py +0 -0
  263. {quspect-0.2.0 → quspect-0.3.0}/tests/variational/test_sampling_engine.py +0 -0
  264. {quspect-0.2.0 → quspect-0.3.0}/tests/visualization/__init__.py +0 -0
  265. {quspect-0.2.0 → quspect-0.3.0}/tests/visualization/test_sampling_viz.py +0 -0
  266. {quspect-0.2.0 → quspect-0.3.0}/tests/visualization/test_svg_drawer.py +0 -0
  267. {quspect-0.2.0 → quspect-0.3.0}/tests/visualization/test_text_drawer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quspect
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: QuSpect — A quantum computing SDK for research and education
5
5
  Keywords: quantum computing,quantum circuits,simulation,qsal
6
6
  Author: Quspect
@@ -143,13 +143,14 @@ Pre-built binary wheels include the C++ simulation engine (with OpenMP), so
143
143
  | Platform | Architecture | Python | Wheel |
144
144
  |----------|--------------|--------|-------|
145
145
  | Linux (glibc ≥ 2.28, e.g. Ubuntu 20.04+, RHEL/Rocky 8+, Debian 10+) | x86_64 | 3.10–3.15 | `manylinux_2_28_x86_64` |
146
+ | Linux (glibc ≥ 2.28, e.g. Ubuntu 20.04+, RHEL/Rocky 8+, Debian 10+) | aarch64 (arm64) | 3.10–3.15 | `manylinux_2_28_aarch64` |
146
147
  | Windows 10/11 | x86_64 (64-bit Python) | 3.10–3.15 | `win_amd64` |
147
148
  | macOS 14 (Sonoma) or newer | Apple Silicon (arm64) | 3.10–3.15 | `macosx_14_0_arm64` |
148
149
 
149
150
  - **Windows:** 64-bit CPython 3.10–3.15 needs nothing extra — the MSVC C++ and
150
151
  OpenMP runtimes are bundled in the wheel.
151
- - **Other platforms** (Linux aarch64, musl/Alpine, 32-bit Windows, Intel Macs,
152
- macOS < 14, PyPy, …) install from the source distribution, which compiles the
152
+ - **Other platforms** (musl/Alpine, 32-bit Windows, Intel Macs, macOS < 14,
153
+ PyPy, …) install from the source distribution, which compiles the
153
154
  C++ extension. This needs CMake ≥ 3.22 and a C++17 compiler — Visual Studio
154
155
  Build Tools on Windows, Xcode Command Line Tools (+ `brew install libomp` for
155
156
  OpenMP) on macOS, GCC or Clang on Linux — and network access to fetch
@@ -90,13 +90,14 @@ Pre-built binary wheels include the C++ simulation engine (with OpenMP), so
90
90
  | Platform | Architecture | Python | Wheel |
91
91
  |----------|--------------|--------|-------|
92
92
  | Linux (glibc ≥ 2.28, e.g. Ubuntu 20.04+, RHEL/Rocky 8+, Debian 10+) | x86_64 | 3.10–3.15 | `manylinux_2_28_x86_64` |
93
+ | Linux (glibc ≥ 2.28, e.g. Ubuntu 20.04+, RHEL/Rocky 8+, Debian 10+) | aarch64 (arm64) | 3.10–3.15 | `manylinux_2_28_aarch64` |
93
94
  | Windows 10/11 | x86_64 (64-bit Python) | 3.10–3.15 | `win_amd64` |
94
95
  | macOS 14 (Sonoma) or newer | Apple Silicon (arm64) | 3.10–3.15 | `macosx_14_0_arm64` |
95
96
 
96
97
  - **Windows:** 64-bit CPython 3.10–3.15 needs nothing extra — the MSVC C++ and
97
98
  OpenMP runtimes are bundled in the wheel.
98
- - **Other platforms** (Linux aarch64, musl/Alpine, 32-bit Windows, Intel Macs,
99
- macOS < 14, PyPy, …) install from the source distribution, which compiles the
99
+ - **Other platforms** (musl/Alpine, 32-bit Windows, Intel Macs, macOS < 14,
100
+ PyPy, …) install from the source distribution, which compiles the
100
101
  C++ extension. This needs CMake ≥ 3.22 and a C++17 compiler — Visual Studio
101
102
  Build Tools on Windows, Xcode Command Line Tools (+ `brew install libomp` for
102
103
  OpenMP) on macOS, GCC or Clang on Linux — and network access to fetch
@@ -27,6 +27,10 @@ Supported platforms
27
27
  - x86_64
28
28
  - 3.10 -- 3.15
29
29
  - ``manylinux_2_28_x86_64``
30
+ * - Linux with glibc 2.28 or newer (Ubuntu 20.04+, Debian 10+, RHEL/Rocky 8+, ...)
31
+ - aarch64 (arm64)
32
+ - 3.10 -- 3.15
33
+ - ``manylinux_2_28_aarch64``
30
34
  * - Windows 10/11
31
35
  - x86_64 (64-bit Python)
32
36
  - 3.10 -- 3.15
@@ -43,9 +47,8 @@ bundled in the wheel.
43
47
  Installing from source
44
48
  ----------------------
45
49
 
46
- On any other platform -- for example Linux aarch64, musl-based distributions
47
- such as Alpine, 32-bit Windows, Intel Macs, macOS older than 14, or PyPy --
48
- ``pip`` falls back to the source distribution and compiles the C++ extension
50
+ On any other platform -- for example musl-based distributions such as Alpine,
51
+ 32-bit Windows, Intel Macs, macOS older than 14, or PyPy -- ``pip`` falls back to the source distribution and compiles the C++ extension
49
52
  locally. This requires:
50
53
 
51
54
  * CMake 3.22 or newer and a C++17 compiler: Visual Studio Build Tools on
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: QuSpect \n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2026-10-28 07:11-0700\n"
11
+ "POT-Creation-Date: 2026-10-28 21:20-0700\n"
12
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language: zh_CN\n"
@@ -57,7 +57,7 @@ msgstr "Python"
57
57
  msgid "Wheel tag"
58
58
  msgstr "Wheel 标签"
59
59
 
60
- #: ../../source/installation.rst:26
60
+ #: ../../source/installation.rst:26 ../../source/installation.rst:30
61
61
  msgid ""
62
62
  "Linux with glibc 2.28 or newer (Ubuntu 20.04+, Debian 10+, RHEL/Rocky 8+,"
63
63
  " ...)"
@@ -68,7 +68,7 @@ msgid "x86_64"
68
68
  msgstr "x86_64"
69
69
 
70
70
  #: ../../source/installation.rst:28 ../../source/installation.rst:32
71
- #: ../../source/installation.rst:36
71
+ #: ../../source/installation.rst:36 ../../source/installation.rst:40
72
72
  msgid "3.10 -- 3.15"
73
73
  msgstr "3.10 -- 3.15"
74
74
 
@@ -76,31 +76,39 @@ msgstr "3.10 -- 3.15"
76
76
  msgid "``manylinux_2_28_x86_64``"
77
77
  msgstr "``manylinux_2_28_x86_64``"
78
78
 
79
- #: ../../source/installation.rst:30
79
+ #: ../../source/installation.rst:31
80
+ msgid "aarch64 (arm64)"
81
+ msgstr "aarch64(arm64)"
82
+
83
+ #: ../../source/installation.rst:33
84
+ msgid "``manylinux_2_28_aarch64``"
85
+ msgstr "``manylinux_2_28_aarch64``"
86
+
87
+ #: ../../source/installation.rst:34
80
88
  msgid "Windows 10/11"
81
89
  msgstr "Windows 10/11"
82
90
 
83
- #: ../../source/installation.rst:31
91
+ #: ../../source/installation.rst:35
84
92
  msgid "x86_64 (64-bit Python)"
85
93
  msgstr "x86_64(64 位 Python)"
86
94
 
87
- #: ../../source/installation.rst:33
95
+ #: ../../source/installation.rst:37
88
96
  msgid "``win_amd64``"
89
97
  msgstr "``win_amd64``"
90
98
 
91
- #: ../../source/installation.rst:34
99
+ #: ../../source/installation.rst:38
92
100
  msgid "macOS 14 (Sonoma) or newer"
93
101
  msgstr "macOS 14(Sonoma)及以上"
94
102
 
95
- #: ../../source/installation.rst:35
103
+ #: ../../source/installation.rst:39
96
104
  msgid "Apple Silicon (arm64)"
97
105
  msgstr "Apple Silicon(arm64)"
98
106
 
99
- #: ../../source/installation.rst:37
107
+ #: ../../source/installation.rst:41
100
108
  msgid "``macosx_14_0_arm64``"
101
109
  msgstr "``macosx_14_0_arm64``"
102
110
 
103
- #: ../../source/installation.rst:39
111
+ #: ../../source/installation.rst:43
104
112
  msgid ""
105
113
  "On Windows, 64-bit CPython 3.10 -- 3.15 needs nothing extra: the MSVC C++"
106
114
  " runtime (``msvcp140.dll``) and the OpenMP runtime (``vcomp140.dll``) are"
@@ -109,21 +117,21 @@ msgstr ""
109
117
  "在 Windows 上,64 位 CPython 3.10 -- 3.15 无需任何额外安装:MSVC C++ "
110
118
  "运行库(``msvcp140.dll``)和 OpenMP 运行库(``vcomp140.dll``)都已打包在 wheel 中。"
111
119
 
112
- #: ../../source/installation.rst:44
120
+ #: ../../source/installation.rst:48
113
121
  msgid "Installing from source"
114
122
  msgstr "从源码安装"
115
123
 
116
- #: ../../source/installation.rst:46
124
+ #: ../../source/installation.rst:50
117
125
  msgid ""
118
- "On any other platform -- for example Linux aarch64, musl-based "
119
- "distributions such as Alpine, 32-bit Windows, Intel Macs, macOS older "
120
- "than 14, or PyPy -- ``pip`` falls back to the source distribution and "
121
- "compiles the C++ extension locally. This requires:"
126
+ "On any other platform -- for example musl-based distributions such as "
127
+ "Alpine, 32-bit Windows, Intel Macs, macOS older than 14, or PyPy -- "
128
+ "``pip`` falls back to the source distribution and compiles the C++ "
129
+ "extension locally. This requires:"
122
130
  msgstr ""
123
- "在其他任何平台上——例如 Linux aarch64、Alpine 等基于 musl 的发行版、32 位 Windows、Intel Mac、低于"
131
+ "在其他任何平台上——例如 Alpine 等基于 musl 的发行版、32 位 Windows、Intel Mac、低于"
124
132
  " 14 的 macOS 或 PyPy——``pip`` 会退回到源码包并在本地编译 C++ 扩展。这需要:"
125
133
 
126
- #: ../../source/installation.rst:51
134
+ #: ../../source/installation.rst:54
127
135
  msgid ""
128
136
  "CMake 3.22 or newer and a C++17 compiler: Visual Studio Build Tools on "
129
137
  "Windows, the Xcode Command Line Tools on macOS (plus ``brew install "
@@ -133,21 +141,21 @@ msgstr ""
133
141
  "Xcode Command Line Tools(OpenMP 支持需另外 ``brew install libomp``),Linux 上为 "
134
142
  "GCC / Clang;"
135
143
 
136
- #: ../../source/installation.rst:54
144
+ #: ../../source/installation.rst:57
137
145
  msgid ""
138
146
  "network access during the build, to fetch the header-only nlohmann/json "
139
147
  "library."
140
148
  msgstr "构建期间需要网络,用于获取仅头文件的 nlohmann/json 库。"
141
149
 
142
- #: ../../source/installation.rst:58
150
+ #: ../../source/installation.rst:61
143
151
  msgid "Runtime configuration"
144
152
  msgstr "运行时配置"
145
153
 
146
- #: ../../source/installation.rst:60
154
+ #: ../../source/installation.rst:63
147
155
  msgid "``QUSPECT_DISABLE_AVX2``"
148
156
  msgstr "``QUSPECT_DISABLE_AVX2``"
149
157
 
150
- #: ../../source/installation.rst:61
158
+ #: ../../source/installation.rst:64
151
159
  msgid ""
152
160
  "On x86_64 the wheel ships two extension modules: a portable scalar build "
153
161
  "and an AVX2 + FMA build. The AVX2 module is loaded only when the CPU and"
@@ -159,25 +167,25 @@ msgstr ""
159
167
  " FMA 时才会加载 AVX2 模块。设置 ``QUSPECT_DISABLE_AVX2=1`` "
160
168
  "可强制使用标量内核。该变量只在首次加载原生后端时读取一次。"
161
169
 
162
- #: ../../source/installation.rst:67
170
+ #: ../../source/installation.rst:70
163
171
  msgid "``OMP_NUM_THREADS``"
164
172
  msgstr "``OMP_NUM_THREADS``"
165
173
 
166
- #: ../../source/installation.rst:68
174
+ #: ../../source/installation.rst:71
167
175
  msgid ""
168
176
  "The parallel kernels use OpenMP. Set ``OMP_NUM_THREADS`` to limit the "
169
177
  "number of threads."
170
178
  msgstr "并行内核基于 OpenMP。设置 ``OMP_NUM_THREADS`` 可限制线程数。"
171
179
 
172
- #: ../../source/installation.rst:71
180
+ #: ../../source/installation.rst:74
173
181
  msgid "Check which backend is active:"
174
182
  msgstr "查看当前使用的后端:"
175
183
 
176
- #: ../../source/installation.rst:78
184
+ #: ../../source/installation.rst:81
177
185
  msgid "Detecting the native core"
178
186
  msgstr "检测原生核心"
179
187
 
180
- #: ../../source/installation.rst:80
188
+ #: ../../source/installation.rst:83
181
189
  msgid ""
182
190
  "Use :func:`quspect.native.load_core` to check whether the C++ native core"
183
191
  " is available. It is the supported, stable public way to detect the "
@@ -187,22 +195,22 @@ msgid ""
187
195
  "availability signal; its name (``quspect._core_scalar`` or "
188
196
  "``quspect._core_avx2``) is an implementation detail."
189
197
  msgstr ""
190
- "使用 :func:`quspect.native.load_core` 检查 C++ 原生核心是否可用。这是检测"
191
- "原生核心的受支持且稳定的公开方式,仅在扩展缺失时不会抛出异常:未构建原生核心时"
192
- "返回 ``None``,否则返回已加载的扩展模块。请仅将返回的模块视为可用性信号;其模块名"
193
- "(``quspect._core_scalar`` 或 ``quspect._core_avx2``)属于实现细节。"
198
+ "使用 :func:`quspect.native.load_core` 检查 C++ "
199
+ "原生核心是否可用。这是检测原生核心的受支持且稳定的公开方式,仅在扩展缺失时不会抛出异常:未构建原生核心时返回 "
200
+ "``None``,否则返回已加载的扩展模块。请仅将返回的模块视为可用性信号;其模块名(``quspect._core_scalar`` 或 "
201
+ "``quspect._core_avx2``)属于实现细节。"
194
202
 
195
- #: ../../source/installation.rst:98
203
+ #: ../../source/installation.rst:101
196
204
  msgid "Development install"
197
205
  msgstr "开发安装"
198
206
 
199
- #: ../../source/installation.rst:107
207
+ #: ../../source/installation.rst:110
200
208
  msgid ""
201
209
  "The editable install is pure Python and does not compile the C++ "
202
210
  "extension. Build it into the local ``quspect/`` package with CMake:"
203
211
  msgstr "可编辑安装是纯 Python 的,不会编译 C++ 扩展。请用 CMake 将扩展构建到本地 ``quspect/`` 包中:"
204
212
 
205
- #: ../../source/installation.rst:117
213
+ #: ../../source/installation.rst:120
206
214
  msgid "Pass ``-DQSPECT_BUILD_AVX2=OFF`` for a scalar-only build."
207
215
  msgstr "如果只需要标量实现,可传入 ``-DQSPECT_BUILD_AVX2=OFF``。"
208
216
 
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: QuSpect \n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2026-10-27 23:39-0700\n"
11
+ "POT-Creation-Date: 2026-10-28 21:20-0700\n"
12
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language: zh_CN\n"
@@ -30,11 +30,11 @@ msgstr "安装"
30
30
  #: ../../source/quickstart.rst:11
31
31
  msgid ""
32
32
  "Binary wheels with the C++ simulation engine are available for Linux "
33
- "x86_64, Windows x86_64 and macOS arm64 (Python 3.10 -- 3.15). See "
34
- ":doc:`installation` for supported platforms, building from source and "
35
- "development installs."
33
+ "x86_64, Linux aarch64, Windows x86_64 and macOS arm64 (Python 3.10 -- "
34
+ "3.15). See :doc:`installation` for supported platforms, building from "
35
+ "source and development installs."
36
36
  msgstr ""
37
- "包含 C++ 模拟引擎的二进制 wheel 支持 Linux x86_64、Windows x86_64 和 macOS arm64(Python"
37
+ "包含 C++ 模拟引擎的二进制 wheel 支持 Linux x86_64、Linux aarch64、Windows x86_64 和 macOS arm64(Python"
38
38
  " 3.10 -- 3.15)。支持的平台、从源码构建以及开发安装请参阅 :doc:`installation`。"
39
39
 
40
40
  #: ../../source/quickstart.rst:17
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: QuSpect \n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2026-10-28 01:56-0700\n"
11
+ "POT-Creation-Date: 2026-10-28 21:20-0700\n"
12
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language: zh_CN\n"
@@ -37,28 +37,48 @@ msgstr "发布流水线的工作方式"
37
37
  #: ../../source/releasing.rst:11
38
38
  msgid ""
39
39
  "``.github/workflows/wheels.yml`` builds wheels with cibuildwheel for "
40
- "CPython 3.10 -- 3.15 on Linux x86_64 (``manylinux_2_28``), Windows AMD64 "
41
- "and macOS arm64 (deployment target 14.0), plus the sdist. Every wheel is"
42
- " installed into a clean environment and tested with "
43
- "``tools/wheel_smoke.py`` and the ``tests/native`` / "
40
+ "CPython 3.10 -- 3.15 on Linux x86_64 and Linux aarch64 "
41
+ "(``manylinux_2_28``), Windows AMD64 and macOS arm64 (deployment target "
42
+ "14.0), plus the sdist. Every wheel is installed into a clean environment "
43
+ "and tested with ``tools/wheel_smoke.py`` and the ``tests/native`` / "
44
44
  "``tests/optimization`` suites, with and without "
45
45
  "``QUSPECT_DISABLE_AVX2=1``. Every (platform, Python version) pair is "
46
46
  "built in its own parallel job; the version list is read from the "
47
47
  "``build`` key of ``[tool.cibuildwheel]`` in ``pyproject.toml``. A "
48
- "separate job runs the newest Python's Linux wheel under the Intel "
48
+ "separate job runs the newest Python's Linux x86_64 wheel under the Intel "
49
49
  "Software Development Emulator on an emulated CPU without AVX to prove the"
50
50
  " AVX2 module is never loaded there."
51
51
  msgstr ""
52
- "``.github/workflows/wheels.yml`` 使用 cibuildwheel 为 Linux "
53
- "x86_64(``manylinux_2_28``)、Windows AMD64 和 macOS arm64(部署目标 14.0)构建 "
52
+ "``.github/workflows/wheels.yml`` 使用 cibuildwheel 为 Linux x86_64 和 Linux "
53
+ "aarch64(``manylinux_2_28``)、Windows AMD64 和 macOS arm64(部署目标 14.0)构建 "
54
54
  "CPython 3.10 -- 3.15 的 wheel,并构建 sdist。每个 wheel 都会安装到干净的环境中,分别在设置与不设置 "
55
55
  "``QUSPECT_DISABLE_AVX2=1`` 的情况下运行 ``tools/wheel_smoke.py`` 以及 "
56
56
  "``tests/native`` / ``tests/optimization`` 测试。每个(平台, Python 版本)组合都在各自独立的并行"
57
57
  " job 中构建;版本列表读取自 ``pyproject.toml`` 中 ``[tool.cibuildwheel]`` 的 ``build``"
58
58
  " 键。另有一个 job 在 Intel Software Development Emulator 模拟的无 AVX CPU 上运行最新 "
59
- "Python 的 Linux wheel,证明这种 CPU 上永远不会加载 AVX2 模块。"
59
+ "Python 的 Linux x86_64 wheel,证明这种 CPU 上永远不会加载 AVX2 模块。"
60
60
 
61
- #: ../../source/releasing.rst:21
61
+ #: ../../source/releasing.rst:22
62
+ msgid ""
63
+ "Linux aarch64 wheels are built natively on GitHub's ``ubuntu-24.04-arm`` "
64
+ "runners, not under QEMU emulation: the workflow sets ``CIBW_ARCHS_LINUX``"
65
+ " from the runner architecture, so each Linux runner builds only its own "
66
+ "architecture. The workflow fails if a Linux wheel's platform tags do not"
67
+ " include ``manylinux_2_28_<arch>`` or contain any tag for another "
68
+ "architecture or a newer glibc (auditwheel may add an older-glibc alias "
69
+ "such as ``manylinux_2_27_x86_64``, which is accepted), if the extension "
70
+ "modules are not built for that architecture, if ``_core_scalar`` is "
71
+ "missing, if ``_core_avx2`` is missing on x86_64 or present on aarch64, or"
72
+ " if libgomp is not bundled in ``quspect.libs/``."
73
+ msgstr ""
74
+ "Linux aarch64 wheel 在 GitHub 原生的 ``ubuntu-24.04-arm`` runner 上直接构建,而不是在 QEMU "
75
+ "模拟下构建:工作流根据 runner 架构设置 ``CIBW_ARCHS_LINUX``,因此每个 Linux runner "
76
+ "只构建本机架构。若 Linux wheel 的平台标签不包含 ``manylinux_2_28_<arch>``,或含有其他架构、更新 "
77
+ "glibc 的标签(auditwheel 可能附加更旧 glibc 的别名,例如 ``manylinux_2_27_x86_64``,这是允许的),"
78
+ "或扩展模块不是为该架构构建的,或缺少 ``_core_scalar``,或 ``_core_avx2`` 在 x86_64 上缺失、在 "
79
+ "aarch64 上存在,或 libgomp 没有打包进 ``quspect.libs/``,工作流即失败。"
80
+
81
+ #: ../../source/releasing.rst:32
62
82
  msgid ""
63
83
  "macOS wheels are built on ``macos-15`` runners but still target macOS 14."
64
84
  " ``tools/build_libomp_macos.sh`` builds libomp from pinned LLVM sources "
@@ -74,41 +94,41 @@ msgstr ""
74
94
  "标签提升为 ``macosx_15_0``);若任何 macOS wheel 的平台标签不是 ``macosx_14_0_arm64``,或打包进"
75
95
  " wheel 的二进制要求更新的 macOS,工作流即失败。"
76
96
 
77
- #: ../../source/releasing.rst:27
97
+ #: ../../source/releasing.rst:38
78
98
  msgid ""
79
99
  "On every pull request to ``main`` the workflow builds only the oldest and"
80
- " newest supported Python (3.10 and 3.15) on all three platforms (6 "
100
+ " newest supported Python (3.10 and 3.15) on all four platforms (8 "
81
101
  "wheels). Releases and manual runs (*Run workflow* in the Actions tab, "
82
- "with the ``full`` input left checked) build all 18 wheels: 6 Python "
83
- "versions x 3 platforms."
102
+ "with the ``full`` input left checked) build all 24 wheels: 6 Python "
103
+ "versions x 4 platforms."
84
104
  msgstr ""
85
- "每个指向 ``main`` 的 pull request 只在全部三个平台上构建最旧和最新的受支持 Python(3.10 和 3.15),共 6"
105
+ "每个指向 ``main`` 的 pull request 只在全部四个平台上构建最旧和最新的受支持 Python(3.10 和 3.15),共 8"
86
106
  " 个 wheel。发布以及手动运行(在 Actions 标签页中点击 *Run workflow*,保持 ``full`` "
87
- "输入为勾选状态)会构建全部 18 个 wheel:6 个 Python 版本 x 3 个平台。"
107
+ "输入为勾选状态)会构建全部 24 个 wheel:6 个 Python 版本 x 4 个平台。"
88
108
 
89
- #: ../../source/releasing.rst:32
109
+ #: ../../source/releasing.rst:43
90
110
  msgid ""
91
111
  "``.github/workflows/release.yml`` runs on tags matching ``v*``. It calls"
92
- " ``wheels.yml`` with ``full: true``, checks that exactly 18 wheels and "
112
+ " ``wheels.yml`` with ``full: true``, checks that exactly 24 wheels and "
93
113
  "one sdist were built and that the tag version matches the version of "
94
114
  "every built artifact, publishes to PyPI with Trusted Publishing, and "
95
115
  "creates a GitHub Release with the artifacts attached."
96
116
  msgstr ""
97
117
  "``.github/workflows/release.yml`` 在匹配 ``v*`` 的 tag 上运行。它以 ``full: true`` "
98
- "调用 ``wheels.yml``,检查恰好构建出 18 个 wheel 和 1 个 sdist,且 tag 版本与每个构建产物的版本一致,通过 "
118
+ "调用 ``wheels.yml``,检查恰好构建出 24 个 wheel 和 1 个 sdist,且 tag 版本与每个构建产物的版本一致,通过 "
99
119
  "Trusted Publishing 发布到 PyPI,并创建附带全部产物的 GitHub Release。"
100
120
 
101
- #: ../../source/releasing.rst:38
121
+ #: ../../source/releasing.rst:49
102
122
  msgid ""
103
123
  "The package version is derived from the git tag by setuptools-scm; there "
104
124
  "is no version number to edit in the source tree."
105
125
  msgstr "包版本号由 setuptools-scm 从 git tag 推导,源码树中没有需要手动修改的版本号。"
106
126
 
107
- #: ../../source/releasing.rst:42
127
+ #: ../../source/releasing.rst:53
108
128
  msgid "One-time setup"
109
129
  msgstr "一次性配置"
110
130
 
111
- #: ../../source/releasing.rst:44
131
+ #: ../../source/releasing.rst:55
112
132
  msgid ""
113
133
  "On PyPI, add a *Trusted Publisher* for the project ``quspect`` (for the "
114
134
  "first release, use \"Add a new pending publisher\" under your account's "
@@ -117,23 +137,23 @@ msgstr ""
117
137
  "在 PyPI 上为项目 ``quspect`` 添加 *Trusted Publisher* (首次发布时,请在账号的 publishing "
118
138
  "设置中使用 \"Add a new pending publisher\"):"
119
139
 
120
- #: ../../source/releasing.rst:48
140
+ #: ../../source/releasing.rst:59
121
141
  msgid "Owner: ``QuSpect``"
122
142
  msgstr "Owner:``QuSpect``"
123
143
 
124
- #: ../../source/releasing.rst:49
144
+ #: ../../source/releasing.rst:60
125
145
  msgid "Repository name: ``quspect``"
126
146
  msgstr "Repository name:``quspect``"
127
147
 
128
- #: ../../source/releasing.rst:50
148
+ #: ../../source/releasing.rst:61
129
149
  msgid "Workflow name: ``release.yml``"
130
150
  msgstr "Workflow name:``release.yml``"
131
151
 
132
- #: ../../source/releasing.rst:51
152
+ #: ../../source/releasing.rst:62
133
153
  msgid "Environment name: ``pypi``"
134
154
  msgstr "Environment name:``pypi``"
135
155
 
136
- #: ../../source/releasing.rst:53
156
+ #: ../../source/releasing.rst:64
137
157
  msgid ""
138
158
  "In the GitHub repository settings, create an environment named ``pypi``. "
139
159
  "Optionally restrict it to tags matching ``v*`` and add required "
@@ -142,23 +162,23 @@ msgstr ""
142
162
  "在 GitHub 仓库设置中创建名为 ``pypi`` 的 environment。可选:将其限制为匹配 ``v*`` 的 "
143
163
  "tag,并添加必需的审核人。"
144
164
 
145
- #: ../../source/releasing.rst:56
165
+ #: ../../source/releasing.rst:67
146
166
  msgid "No API token or repository secret is needed."
147
167
  msgstr "不需要任何 API token 或仓库 secret。"
148
168
 
149
- #: ../../source/releasing.rst:59
169
+ #: ../../source/releasing.rst:70
150
170
  msgid "Cutting a release"
151
171
  msgstr "执行发布"
152
172
 
153
- #: ../../source/releasing.rst:61
173
+ #: ../../source/releasing.rst:72
154
174
  msgid "Make sure ``main`` is green and contains everything for the release."
155
175
  msgstr "确认 ``main`` 的 CI 全部通过,且已包含本次发布的全部内容。"
156
176
 
157
- #: ../../source/releasing.rst:62
177
+ #: ../../source/releasing.rst:73
158
178
  msgid "Tag the commit and push the tag:"
159
179
  msgstr "给该提交打 tag 并推送:"
160
180
 
161
- #: ../../source/releasing.rst:71
181
+ #: ../../source/releasing.rst:82
162
182
  msgid ""
163
183
  "Watch the *Release* workflow in the Actions tab. When it finishes, the "
164
184
  "new version is on https://pypi.org/project/quspect/ and a GitHub Release "
@@ -167,7 +187,7 @@ msgstr ""
167
187
  "在 Actions 页面关注 *Release* 工作流。完成后,新版本会出现在 "
168
188
  "https://pypi.org/project/quspect/ 上,并生成以该 tag 命名的 GitHub Release。"
169
189
 
170
- #: ../../source/releasing.rst:75
190
+ #: ../../source/releasing.rst:86
171
191
  msgid ""
172
192
  "Tags must follow PEP 440 after the leading ``v`` (for example ``v0.2.0`` "
173
193
  "or ``v0.2.0rc1``); pre-release tags create a GitHub pre-release. A PyPI "
@@ -177,11 +197,11 @@ msgstr ""
177
197
  "tag 去掉开头的 ``v`` 后必须符合 PEP 440(例如 ``v0.2.0`` 或 ``v0.2.0rc1``);预发布 tag 会创建 "
178
198
  "GitHub pre-release。PyPI 上的同一版本永远不能重新上传,因此如果发布到 PyPI 之后流程失败,请修复问题并发布一个新版本。"
179
199
 
180
- #: ../../source/releasing.rst:81
200
+ #: ../../source/releasing.rst:92
181
201
  msgid "Publishing the documentation"
182
202
  msgstr "文档发布"
183
203
 
184
- #: ../../source/releasing.rst:83
204
+ #: ../../source/releasing.rst:94
185
205
  msgid ""
186
206
  "The documentation is hosted on Read the Docs at "
187
207
  "https://quspect.readthedocs.io/en/latest/ (Chinese: "
@@ -191,7 +211,7 @@ msgstr ""
191
211
  "Docs:https://quspect.readthedocs.io/en/latest/(中文:https://quspect.readthedocs.io"
192
212
  "/zh-cn/latest/)。"
193
213
 
194
- #: ../../source/releasing.rst:87
214
+ #: ../../source/releasing.rst:98
195
215
  msgid ""
196
216
  "Read the Docs rebuilds the ``latest`` version on every push to ``main`` "
197
217
  "and, once tag versions are activated in the project's *Versions* "
@@ -203,7 +223,7 @@ msgstr ""
203
223
  "tag 版本后,还会为每个 ``v*`` tag 构建一份带版本号的文档(``stable`` 指向最新的发布 "
204
224
  "tag)。发布工作流无需额外触发文档构建。"
205
225
 
206
- #: ../../source/releasing.rst:91
226
+ #: ../../source/releasing.rst:102
207
227
  msgid ""
208
228
  "The build is configured by ``.readthedocs.yaml`` in the repository root."
209
229
  " It installs only ``docs/requirements.txt`` (Sphinx, the theme, NumPy "
@@ -217,7 +237,7 @@ msgstr ""
217
237
  "扩展:``docs/source/conf.py`` 将仓库根目录加入 ``sys.path``,所有 autodoc "
218
238
  "模块无需原生引擎即可导入。新增的文档依赖请添加到 ``docs/requirements.txt``。"
219
239
 
220
- #: ../../source/releasing.rst:97
240
+ #: ../../source/releasing.rst:108
221
241
  msgid ""
222
242
  "The documented version is derived from ``git describe`` in the same way "
223
243
  "as setuptools-scm, so a tag build shows ``X.Y.Z`` and ``main`` shows the "
@@ -226,7 +246,7 @@ msgstr ""
226
246
  "文档中的版本号与 setuptools-scm 一样由 ``git describe`` 推导:tag 构建显示 "
227
247
  "``X.Y.Z``,``main`` 显示下一个开发版本号。"
228
248
 
229
- #: ../../source/releasing.rst:100
249
+ #: ../../source/releasing.rst:111
230
250
  msgid ""
231
251
  "The Chinese documentation is a second Read the Docs project with language"
232
252
  " ``zh_CN``, linked to the main project under *Admin -> Translations*. It"
@@ -238,11 +258,11 @@ msgstr ""
238
258
  "中关联为其翻译。它使用同一个配置文件;Read the Docs 会传入 ``-D language=zh_CN``,Sphinx "
239
259
  "在构建时自动编译 ``docs/source/locale`` 中的 PO 文件,因此仓库中不提交 ``.mo`` 文件。"
240
260
 
241
- #: ../../source/releasing.rst:106
261
+ #: ../../source/releasing.rst:117
242
262
  msgid "One-time setup on readthedocs.org:"
243
263
  msgstr "在 readthedocs.org 上的一次性配置:"
244
264
 
245
- #: ../../source/releasing.rst:108
265
+ #: ../../source/releasing.rst:119
246
266
  msgid ""
247
267
  "Import ``QuSpect/quspect`` (grant Read the Docs access to the ``QuSpect``"
248
268
  " GitHub organization if it is not listed). Keep the project slug "
@@ -251,7 +271,7 @@ msgstr ""
251
271
  "导入 ``QuSpect/quspect``(如果列表中没有,请先授权 Read the Docs 访问 ``QuSpect`` GitHub "
252
272
  "组织)。项目 slug 保持为 ``quspect``,语言为 *English*。"
253
273
 
254
- #: ../../source/releasing.rst:111
274
+ #: ../../source/releasing.rst:122
255
275
  msgid ""
256
276
  "Import the same repository a second time as a separate project (for "
257
277
  "example slug ``quspect-zh-cn``) with language *Simplified Chinese*, then "
@@ -261,13 +281,13 @@ msgstr ""
261
281
  "将同一仓库再导入一次,作为独立项目(例如 slug ``quspect-zh-cn``),语言选择 *Simplified "
262
282
  "Chinese*,然后在主项目的 *Admin -> Translations* 中将其添加为 ``quspect`` 的翻译。"
263
283
 
264
- #: ../../source/releasing.rst:115
284
+ #: ../../source/releasing.rst:126
265
285
  msgid ""
266
286
  "Optionally enable *Build pull requests for this project* in both projects"
267
287
  " to get preview builds on pull requests."
268
288
  msgstr "可选:在两个项目中都启用 *Build pull requests for this project*,为 pull request 生成预览构建。"
269
289
 
270
- #: ../../source/releasing.rst:118
290
+ #: ../../source/releasing.rst:129
271
291
  msgid ""
272
292
  "To preview locally, run ``python -m pip install -r "
273
293
  "docs/requirements.txt`` and then ``sphinx-build -b html docs/source "
@@ -9,7 +9,7 @@ Installation
9
9
  python -m pip install quspect
10
10
 
11
11
  Binary wheels with the C++ simulation engine are available for Linux x86_64,
12
- Windows x86_64 and macOS arm64 (Python 3.10 -- 3.15). See
12
+ Linux aarch64, Windows x86_64 and macOS arm64 (Python 3.10 -- 3.15). See
13
13
  :doc:`installation` for supported platforms, building from source and
14
14
  development installs.
15
15
 
@@ -9,15 +9,26 @@ How the release pipeline works
9
9
  ------------------------------
10
10
 
11
11
  * ``.github/workflows/wheels.yml`` builds wheels with cibuildwheel for
12
- CPython 3.10 -- 3.15 on Linux x86_64 (``manylinux_2_28``), Windows AMD64 and
13
- macOS arm64 (deployment target 14.0), plus the sdist. Every wheel is
14
- installed into a clean environment and tested with ``tools/wheel_smoke.py``
15
- and the ``tests/native`` / ``tests/optimization`` suites, with and without
16
- ``QUSPECT_DISABLE_AVX2=1``. Every (platform, Python version) pair is built
17
- in its own parallel job; the version list is read from the ``build`` key of
18
- ``[tool.cibuildwheel]`` in ``pyproject.toml``. A separate job runs the
19
- newest Python's Linux wheel under the Intel Software Development Emulator on
20
- an emulated CPU without AVX to prove the AVX2 module is never loaded there.
12
+ CPython 3.10 -- 3.15 on Linux x86_64 and Linux aarch64 (``manylinux_2_28``),
13
+ Windows AMD64 and macOS arm64 (deployment target 14.0), plus the sdist.
14
+ Every wheel is installed into a clean environment and tested with
15
+ ``tools/wheel_smoke.py`` and the ``tests/native`` / ``tests/optimization``
16
+ suites, with and without ``QUSPECT_DISABLE_AVX2=1``. Every (platform,
17
+ Python version) pair is built in its own parallel job; the version list is
18
+ read from the ``build`` key of ``[tool.cibuildwheel]`` in
19
+ ``pyproject.toml``. A separate job runs the newest Python's Linux x86_64
20
+ wheel under the Intel Software Development Emulator on an emulated CPU
21
+ without AVX to prove the AVX2 module is never loaded there.
22
+ * Linux aarch64 wheels are built natively on GitHub's ``ubuntu-24.04-arm``
23
+ runners, not under QEMU emulation: the workflow sets ``CIBW_ARCHS_LINUX``
24
+ from the runner architecture, so each Linux runner builds only its own
25
+ architecture. The workflow fails if a Linux wheel's platform tags do not
26
+ include ``manylinux_2_28_<arch>`` or contain any tag for another
27
+ architecture or a newer glibc (auditwheel may add an older-glibc alias such
28
+ as ``manylinux_2_27_x86_64``, which is accepted), if the extension modules
29
+ are not built for that architecture, if ``_core_scalar`` is missing, if
30
+ ``_core_avx2`` is missing on x86_64 or present on aarch64, or if libgomp is
31
+ not bundled in ``quspect.libs/``.
21
32
  * macOS wheels are built on ``macos-15`` runners but still target macOS 14.
22
33
  ``tools/build_libomp_macos.sh`` builds libomp from pinned LLVM sources with
23
34
  deployment target 14.0 (a Homebrew bottle requires the runner's macOS
@@ -25,12 +36,12 @@ How the release pipeline works
25
36
  workflow fails if any macOS wheel's platform tag is not
26
37
  ``macosx_14_0_arm64`` or a bundled binary requires a newer macOS.
27
38
  * On every pull request to ``main`` the workflow builds only the oldest and
28
- newest supported Python (3.10 and 3.15) on all three platforms (6 wheels).
39
+ newest supported Python (3.10 and 3.15) on all four platforms (8 wheels).
29
40
  Releases and manual runs (*Run workflow* in the Actions tab, with the
30
- ``full`` input left checked) build all 18 wheels: 6 Python versions x 3
41
+ ``full`` input left checked) build all 24 wheels: 6 Python versions x 4
31
42
  platforms.
32
43
  * ``.github/workflows/release.yml`` runs on tags matching ``v*``. It calls
33
- ``wheels.yml`` with ``full: true``, checks that exactly 18 wheels and one
44
+ ``wheels.yml`` with ``full: true``, checks that exactly 24 wheels and one
34
45
  sdist were built and that the tag version matches the version of every
35
46
  built artifact, publishes to PyPI with Trusted Publishing, and creates a
36
47
  GitHub Release with the artifacts attached.
@@ -152,8 +152,13 @@ test-command = [
152
152
  ]
153
153
 
154
154
  [tool.cibuildwheel.linux]
155
- archs = ["x86_64"]
155
+ # x86_64 与 aarch64 都在原生 runner 上构建(不走 QEMU 模拟):wheels.yml 按 runner
156
+ # 架构设置 CIBW_ARCHS_LINUX,使 ubuntu-latest 只构建 x86_64、ubuntu-24.04-arm 只构建
157
+ # aarch64。本地运行 cibuildwheel 时请加 --archs native(或 CIBW_ARCHS_LINUX=native),
158
+ # 否则会尝试在 QEMU 中构建另一种架构。
159
+ archs = ["x86_64", "aarch64"]
156
160
  manylinux-x86_64-image = "manylinux_2_28"
161
+ manylinux-aarch64-image = "manylinux_2_28"
157
162
 
158
163
  [tool.cibuildwheel.macos]
159
164
  archs = ["arm64"]
File without changes
File without changes
File without changes
File without changes