qctrl-commons 26.2.0__tar.gz → 26.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 (22) hide show
  1. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/PKG-INFO +1 -1
  2. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/pyproject.toml +1 -1
  3. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/__init__.py +1 -1
  4. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/data_types.py +5 -0
  5. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/LICENSE +0 -0
  6. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/README.md +0 -0
  7. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/constants.py +0 -0
  8. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/core_exceptions.py +0 -0
  9. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/exceptions.py +0 -0
  10. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/graph.py +0 -0
  11. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/montecarlo.py +0 -0
  12. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/node/__init__.py +0 -0
  13. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/node/base.py +0 -0
  14. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/node/wrapper.py +0 -0
  15. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/pauli_operations.py +0 -0
  16. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/preconditions.py +0 -0
  17. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/pytest_plugin.py +0 -0
  18. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/run_options.py +0 -0
  19. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/serializers.py +0 -0
  20. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/simulation_types.py +0 -0
  21. {qctrl_commons-26.2.0 → qctrl_commons-26.3.0}/qctrlcommons/sparse_occ_op.py +0 -0
  22. {qctrl_commons-26.2.0 → qctrl_commons-26.3.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: 26.3.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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "qctrl-commons"
3
- version = "26.2.0"
3
+ version = "26.3.0"
4
4
  description = "Q-CTRL Commons"
5
5
  license-files = ["LICENSE"]
6
6
  requires-python = ">=3.11, <3.15"
@@ -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__ = "26.3.0"
17
17
  __author__ = "Q-CTRL <support@q-ctrl.com>"
@@ -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