python-qis 1.0.1__tar.gz → 1.1.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: python-qis
3
- Version: 1.0.1
3
+ Version: 1.1.0
4
4
  Summary: QIS Library for Python. (QIS is Quantum Information Science)
5
5
  Author: Vedansh Shetti
6
6
  Author-email: Vedansh Shetti <vedansh.shetti@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "python-qis"
3
- version = "1.0.1"
3
+ version = "1.1.0"
4
4
  description = "QIS Library for Python. (QIS is Quantum Information Science)"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "python-qis"
3
- version = "1.0.1"
3
+ version = "1.1.0"
4
4
  description = "QIS Library for Python. (QIS is Quantum Information Science)"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -0,0 +1,20 @@
1
+ import math
2
+
3
+ def buildVector(*args: complex)-> list[list[complex]]:
4
+ v: list[list[complex]] = []
5
+ for i in args:
6
+ v.append([i])
7
+ return v
8
+
9
+ # Fundamental Constants (SI Units)
10
+ H_JOULE_SEC = 6.62607015e-34 # Planck constant
11
+ HBAR_JOULE_SEC = H_JOULE_SEC / (2 * math.pi) # Reduced Planck constant
12
+ SPEED_OF_LIGHT = 299_792_458 # m/s
13
+ BOLTZMANN_CONSTANT = 1.380649e-23 # Joules per Kelvin (J/K)
14
+ ELEMENTARY_CHARGE = 1.602176634e-19 # Coulombs (C)
15
+
16
+ # Standard States (Qubits)
17
+ KET_0 = buildVector(1, 0)
18
+ KET_1 = buildVector(0, 1)
19
+ KET_PLUS = buildVector(1/math.sqrt(2), 1/math.sqrt(2))
20
+ BELL_PHI_PLUS = buildVector(1/math.sqrt(2), 0, 0, 1/math.sqrt(2))
@@ -1,8 +0,0 @@
1
- import math
2
-
3
- # Fundamental Constants (SI Units)
4
- H_JOULE_SEC = 6.62607015e-34 # Planck constant
5
- HBAR_JOULE_SEC = H_JOULE_SEC / (2 * math.pi) # Reduced Planck constant
6
- SPEED_OF_LIGHT = 299_792_458 # m/s
7
- BOLTZMANN_CONSTANT = 1.380649e-23 # Joules per Kelvin (J/K)
8
- ELEMENTARY_CHARGE = 1.602176634e-19 # Coulombs (C)
File without changes