python-qis 1.0.0__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.
- {python_qis-1.0.0 → python_qis-1.1.0}/PKG-INFO +8 -3
- {python_qis-1.0.0 → python_qis-1.1.0}/README.md +7 -2
- {python_qis-1.0.0 → python_qis-1.1.0}/pyproject.toml +1 -1
- {python_qis-1.0.0 → python_qis-1.1.0}/pyproject.toml.orig +1 -1
- python_qis-1.1.0/src/python_qis/physics_tools.py +20 -0
- python_qis-1.0.0/src/python_qis/physics_tools.py +0 -8
- {python_qis-1.0.0 → python_qis-1.1.0}/src/python_qis/__init__.py +0 -0
- {python_qis-1.0.0 → python_qis-1.1.0}/src/python_qis/cryptography_tools.py +0 -0
- {python_qis-1.0.0 → python_qis-1.1.0}/src/python_qis/math_tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: python-qis
|
|
3
|
-
Version: 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>
|
|
@@ -10,7 +10,12 @@ Description-Content-Type: text/markdown
|
|
|
10
10
|
# python-qis
|
|
11
11
|
QIS Library for Python. (QIS is Quantum Information Science)
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## What do I get?
|
|
14
14
|
- Math Utilities
|
|
15
15
|
- Cryptography Utilities (SHA, SHA_3, BLAKE, MD5 and such)
|
|
16
|
-
- Basic Physics Utilities (I'm working on this, please don't get mad if I mess up something here, we just started 7th grade, Physics is new to me)
|
|
16
|
+
- Basic Physics Utilities (I'm working on this, please don't get mad if I mess up something here, we just started 7th grade, Physics is new to me)
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
`pip install python-qis`
|
|
20
|
+
OR if using `uv`:
|
|
21
|
+
`uv install python-qis`
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
# python-qis
|
|
2
2
|
QIS Library for Python. (QIS is Quantum Information Science)
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
## What do I get?
|
|
5
5
|
- Math Utilities
|
|
6
6
|
- Cryptography Utilities (SHA, SHA_3, BLAKE, MD5 and such)
|
|
7
|
-
- Basic Physics Utilities (I'm working on this, please don't get mad if I mess up something here, we just started 7th grade, Physics is new to me)
|
|
7
|
+
- Basic Physics Utilities (I'm working on this, please don't get mad if I mess up something here, we just started 7th grade, Physics is new to me)
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
`pip install python-qis`
|
|
11
|
+
OR if using `uv`:
|
|
12
|
+
`uv install python-qis`
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|