qctrl-commons 26.2.0__tar.gz → 27.0.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 (22) hide show
  1. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/PKG-INFO +3 -4
  2. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/pyproject.toml +3 -4
  3. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/__init__.py +1 -1
  4. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/core_exceptions.py +3 -3
  5. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/data_types.py +5 -0
  6. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/LICENSE +0 -0
  7. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/README.md +0 -0
  8. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/constants.py +0 -0
  9. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/exceptions.py +0 -0
  10. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/graph.py +0 -0
  11. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/montecarlo.py +0 -0
  12. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/node/__init__.py +0 -0
  13. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/node/base.py +0 -0
  14. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/node/wrapper.py +0 -0
  15. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/pauli_operations.py +0 -0
  16. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/preconditions.py +0 -0
  17. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/pytest_plugin.py +0 -0
  18. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/run_options.py +0 -0
  19. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/serializers.py +0 -0
  20. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/simulation_types.py +0 -0
  21. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/sparse_occ_op.py +0 -0
  22. {qctrl_commons-26.2.0 → qctrl_commons-27.0.0}/qctrlcommons/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qctrl-commons
3
- Version: 26.2.0
3
+ Version: 27.0.0
4
4
  Summary: Q-CTRL Commons
5
5
  License-File: LICENSE
6
6
  Keywords: black opal,boulder opal,fire opal,nisq,open controls,q control,q ctrl,q-control,q-ctrl,qcontrol,qctrl,quantum,quantum algorithms,quantum circuits,quantum coding,quantum coding software,quantum computing,quantum control,quantum control software,quantum control theory,quantum engineering,quantum error correction,quantum firmware,quantum fundamentals,quantum sensing,qubit,qudit
@@ -8,7 +8,7 @@ Author: Q-CTRL
8
8
  Author-email: support@q-ctrl.com
9
9
  Maintainer: Q-CTRL
10
10
  Maintainer-email: support@q-ctrl.com
11
- Requires-Python: >=3.11, <3.15
11
+ Requires-Python: >=3.12, <3.15
12
12
  Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Environment :: Console
14
14
  Classifier: Intended Audience :: Developers
@@ -16,7 +16,6 @@ Classifier: Intended Audience :: Education
16
16
  Classifier: Intended Audience :: Science/Research
17
17
  Classifier: Natural Language :: English
18
18
  Classifier: Operating System :: OS Independent
19
- Classifier: Programming Language :: Python :: 3.11
20
19
  Classifier: Programming Language :: Python :: 3.12
21
20
  Classifier: Programming Language :: Python :: 3.13
22
21
  Classifier: Programming Language :: Python :: 3.14
@@ -27,7 +26,7 @@ Classifier: Topic :: Software Development :: Embedded Systems
27
26
  Classifier: Topic :: System :: Distributed Computing
28
27
  Requires-Dist: graphql-core (>=3.2.12,<3.3.0)
29
28
  Requires-Dist: networkx (>=3.0.0,<4.0.0)
30
- Requires-Dist: numpy (>=2.4.5,<3.0.0)
29
+ Requires-Dist: numpy (>=2.5.3,<3.0.0)
31
30
  Requires-Dist: scipy (>=1.12.0,<2.0.0)
32
31
  Requires-Dist: sympy (>=1.11.1,<2.0.0)
33
32
  Project-URL: Facebook, https://www.facebook.com/qctrl
@@ -1,9 +1,9 @@
1
1
  [project]
2
2
  name = "qctrl-commons"
3
- version = "26.2.0"
3
+ version = "27.0.0"
4
4
  description = "Q-CTRL Commons"
5
5
  license-files = ["LICENSE"]
6
- requires-python = ">=3.11, <3.15"
6
+ requires-python = ">=3.12, <3.15"
7
7
  authors = [{name = "Q-CTRL", email = "support@q-ctrl.com"}]
8
8
  maintainers = [{name = "Q-CTRL", email = "support@q-ctrl.com"}]
9
9
  readme = "README.md"
@@ -45,7 +45,6 @@ classifiers = [
45
45
  "Intended Audience :: Science/Research",
46
46
  "Natural Language :: English",
47
47
  "Operating System :: OS Independent",
48
- "Programming Language :: Python :: 3.11",
49
48
  "Programming Language :: Python :: 3.12",
50
49
  "Programming Language :: Python :: 3.13",
51
50
  "Programming Language :: Python :: 3.14",
@@ -63,7 +62,7 @@ packages = [
63
62
 
64
63
  [tool.poetry.dependencies]
65
64
  networkx = ">=3.0.0,<4.0.0"
66
- numpy = "^2.4.5"
65
+ numpy = "^2.5.3"
67
66
  scipy = "^1.12.0"
68
67
  sympy = "^1.11.1"
69
68
  graphql-core = "~3.2.12"
@@ -13,5 +13,5 @@
13
13
 
14
14
  """qctrlcommons - a collection of common libraries for the Python language"""
15
15
 
16
- __version__ = "26.2.0"
16
+ __version__ = "27.0.0"
17
17
  __author__ = "Q-CTRL <support@q-ctrl.com>"
@@ -14,7 +14,7 @@
14
14
  Exceptions raised in Core packages.
15
15
  """
16
16
 
17
- from enum import Enum
17
+ from enum import Enum, member
18
18
  from functools import partial
19
19
  from typing import Any
20
20
 
@@ -76,8 +76,8 @@ class CoreValidator(Enum):
76
76
  Validators for raising exceptions.
77
77
  """
78
78
 
79
- INTERNAL = partial(_check_argument, exception=QctrlCoreInternalError)
80
- PUBLIC = partial(_check_argument, exception=QctrlCorePublicError)
79
+ INTERNAL = member(partial(_check_argument, exception=QctrlCoreInternalError))
80
+ PUBLIC = member(partial(_check_argument, exception=QctrlCorePublicError))
81
81
 
82
82
  def __call__(self, *args, **kwargs):
83
83
  return self.value(*args, **kwargs)
@@ -647,3 +647,8 @@ class SparseOccupationOperatorsDataType(DataclassType):
647
647
 
648
648
  _type = SparseOccupationOperators
649
649
  object_key = "fire_opal_sparse_occ_op"
650
+
651
+ def decode(self, obj):
652
+ obj.pop(self.object_key)
653
+ # JSON turns the (spin, site) tuples into lists, which `from_dict` restores.
654
+ return SparseOccupationOperators.from_dict(obj)
File without changes
File without changes