qctrl-commons 26.3.0__tar.gz → 27.0.1__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.3.0 → qctrl_commons-27.0.1}/PKG-INFO +3 -5
  2. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/pyproject.toml +3 -5
  3. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/__init__.py +1 -1
  4. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/core_exceptions.py +3 -3
  5. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/data_types.py +0 -32
  6. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/serializers.py +0 -4
  7. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/LICENSE +0 -0
  8. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/README.md +0 -0
  9. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/constants.py +0 -0
  10. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/exceptions.py +0 -0
  11. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/graph.py +0 -0
  12. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/montecarlo.py +0 -0
  13. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/node/__init__.py +0 -0
  14. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/node/base.py +0 -0
  15. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/node/wrapper.py +0 -0
  16. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/pauli_operations.py +0 -0
  17. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/preconditions.py +0 -0
  18. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/pytest_plugin.py +0 -0
  19. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/run_options.py +0 -0
  20. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/simulation_types.py +0 -0
  21. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/sparse_occ_op.py +0 -0
  22. {qctrl_commons-26.3.0 → qctrl_commons-27.0.1}/qctrlcommons/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qctrl-commons
3
- Version: 26.3.0
3
+ Version: 27.0.1
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,9 +26,8 @@ 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
- Requires-Dist: sympy (>=1.11.1,<2.0.0)
33
31
  Project-URL: Facebook, https://www.facebook.com/qctrl
34
32
  Project-URL: GitHub, https://github.com/qctrl
35
33
  Project-URL: LinkedIn, https://www.linkedin.com/company/q-ctrl/
@@ -1,9 +1,9 @@
1
1
  [project]
2
2
  name = "qctrl-commons"
3
- version = "26.3.0"
3
+ version = "27.0.1"
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,9 +62,8 @@ 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
- sympy = "^1.11.1"
69
67
  graphql-core = "~3.2.12"
70
68
 
71
69
  [tool.poetry.group.dev.dependencies]
@@ -13,5 +13,5 @@
13
13
 
14
14
  """qctrlcommons - a collection of common libraries for the Python language"""
15
15
 
16
- __version__ = "26.3.0"
16
+ __version__ = "27.0.1"
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)
@@ -26,12 +26,6 @@ from scipy.sparse import (
26
26
  dok_matrix,
27
27
  spmatrix,
28
28
  )
29
- from sympy import (
30
- Expr,
31
- Poly,
32
- parse_expr,
33
- srepr,
34
- )
35
29
 
36
30
  from qctrlcommons.graph import Graph
37
31
  from qctrlcommons.node.base import Node
@@ -505,32 +499,6 @@ class FloatConstant(DataType):
505
499
  return ValueError(f"{obj} is not a valid json float constant")
506
500
 
507
501
 
508
- class SympyExprDataType(DataType):
509
- """Handle sympy `Expr` serialization."""
510
-
511
- _type = Expr
512
- object_key = "sympy_expr"
513
-
514
- def encode(self, obj: Expr) -> dict:
515
- return {self.object_key: True, "expr": srepr(obj)}
516
-
517
- def decode(self, obj: dict) -> Expr:
518
- return parse_expr(obj["expr"])
519
-
520
-
521
- class SympyPolyDataType(DataType):
522
- """Handle sympy `Poly` serialization."""
523
-
524
- _type = Poly
525
- object_key = "sympy_poly"
526
-
527
- def encode(self, obj: Poly) -> dict:
528
- return {self.object_key: True, "poly": srepr(obj)}
529
-
530
- def decode(self, obj: dict) -> Poly:
531
- return parse_expr(obj["poly"])
532
-
533
-
534
502
  class NxGraphDataType(DataType):
535
503
  """Handle networkx `Graph` serialization."""
536
504
 
@@ -42,8 +42,6 @@ from .data_types import (
42
42
  SliceDataType,
43
43
  SparseMatrix,
44
44
  SparseOccupationOperatorsDataType,
45
- SympyExprDataType,
46
- SympyPolyDataType,
47
45
  )
48
46
 
49
47
 
@@ -64,8 +62,6 @@ class DataTypeMixin:
64
62
  SparseMatrix(),
65
63
  FloatConstant(),
66
64
  QuantumObject(),
67
- SympyExprDataType(),
68
- SympyPolyDataType(),
69
65
  NxGraphDataType(),
70
66
  IbmRunOptionsDataType(),
71
67
  RunOptionsDataType(),
File without changes
File without changes