quantvolt 0.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.
- quantvolt-0.1.0/.gitignore +77 -0
- quantvolt-0.1.0/Cargo.lock +324 -0
- quantvolt-0.1.0/Cargo.toml +30 -0
- quantvolt-0.1.0/LICENSE +21 -0
- quantvolt-0.1.0/PKG-INFO +363 -0
- quantvolt-0.1.0/README.md +325 -0
- quantvolt-0.1.0/pyproject.toml +104 -0
- quantvolt-0.1.0/rust/src/asian_mc.rs +255 -0
- quantvolt-0.1.0/rust/src/lib.rs +18 -0
- quantvolt-0.1.0/rust/src/paths.rs +880 -0
- quantvolt-0.1.0/src/quantvolt/__init__.py +354 -0
- quantvolt-0.1.0/src/quantvolt/_core.pyi +89 -0
- quantvolt-0.1.0/src/quantvolt/_validation.py +63 -0
- quantvolt-0.1.0/src/quantvolt/assets/__init__.py +76 -0
- quantvolt-0.1.0/src/quantvolt/assets/_tolerance.py +19 -0
- quantvolt-0.1.0/src/quantvolt/assets/dispatch_approx.py +424 -0
- quantvolt-0.1.0/src/quantvolt/assets/dispatch_deterministic.py +423 -0
- quantvolt-0.1.0/src/quantvolt/assets/dispatch_sdp.py +1252 -0
- quantvolt-0.1.0/src/quantvolt/assets/long_dated.py +351 -0
- quantvolt-0.1.0/src/quantvolt/assets/plant.py +188 -0
- quantvolt-0.1.0/src/quantvolt/assets/storage.py +695 -0
- quantvolt-0.1.0/src/quantvolt/cli.py +61 -0
- quantvolt-0.1.0/src/quantvolt/curvemodels/__init__.py +49 -0
- quantvolt-0.1.0/src/quantvolt/curvemodels/multifactor.py +516 -0
- quantvolt-0.1.0/src/quantvolt/curvemodels/schwartz_smith.py +682 -0
- quantvolt-0.1.0/src/quantvolt/curves/__init__.py +14 -0
- quantvolt-0.1.0/src/quantvolt/curves/arbitrage.py +165 -0
- quantvolt-0.1.0/src/quantvolt/curves/builder.py +208 -0
- quantvolt-0.1.0/src/quantvolt/data/__init__.py +55 -0
- quantvolt-0.1.0/src/quantvolt/data/base.py +294 -0
- quantvolt-0.1.0/src/quantvolt/data/commercial.py +120 -0
- quantvolt-0.1.0/src/quantvolt/data/dataset_catalog.json +15 -0
- quantvolt-0.1.0/src/quantvolt/data/datasets.py +151 -0
- quantvolt-0.1.0/src/quantvolt/data/entsoe.py +448 -0
- quantvolt-0.1.0/src/quantvolt/data/entsog.py +170 -0
- quantvolt-0.1.0/src/quantvolt/data/netztransparenz.py +261 -0
- quantvolt-0.1.0/src/quantvolt/data/open_meteo.py +171 -0
- quantvolt-0.1.0/src/quantvolt/data/smard.py +218 -0
- quantvolt-0.1.0/src/quantvolt/exceptions.py +68 -0
- quantvolt-0.1.0/src/quantvolt/hedging/__init__.py +42 -0
- quantvolt-0.1.0/src/quantvolt/hedging/_conditioning.py +43 -0
- quantvolt-0.1.0/src/quantvolt/hedging/hybrid.py +210 -0
- quantvolt-0.1.0/src/quantvolt/hedging/mean_variance.py +236 -0
- quantvolt-0.1.0/src/quantvolt/hedging/ppa_nomination.py +248 -0
- quantvolt-0.1.0/src/quantvolt/hedging/ppa_walk_forward.py +128 -0
- quantvolt-0.1.0/src/quantvolt/hedging/variance_min.py +245 -0
- quantvolt-0.1.0/src/quantvolt/market/__init__.py +39 -0
- quantvolt-0.1.0/src/quantvolt/market/outages.py +457 -0
- quantvolt-0.1.0/src/quantvolt/market/transmission.py +39 -0
- quantvolt-0.1.0/src/quantvolt/market/weather.py +83 -0
- quantvolt-0.1.0/src/quantvolt/models/__init__.py +66 -0
- quantvolt-0.1.0/src/quantvolt/models/commodity.py +80 -0
- quantvolt-0.1.0/src/quantvolt/models/curve.py +190 -0
- quantvolt-0.1.0/src/quantvolt/models/discount_curve.py +79 -0
- quantvolt-0.1.0/src/quantvolt/models/greeks.py +62 -0
- quantvolt-0.1.0/src/quantvolt/models/instruments.py +221 -0
- quantvolt-0.1.0/src/quantvolt/models/interval.py +55 -0
- quantvolt-0.1.0/src/quantvolt/models/power_hedge.py +75 -0
- quantvolt-0.1.0/src/quantvolt/models/ppa.py +54 -0
- quantvolt-0.1.0/src/quantvolt/models/schedule.py +74 -0
- quantvolt-0.1.0/src/quantvolt/models/vol_surface.py +81 -0
- quantvolt-0.1.0/src/quantvolt/numerics/__init__.py +72 -0
- quantvolt-0.1.0/src/quantvolt/numerics/_normal.py +26 -0
- quantvolt-0.1.0/src/quantvolt/numerics/black76.py +295 -0
- quantvolt-0.1.0/src/quantvolt/numerics/daycount.py +30 -0
- quantvolt-0.1.0/src/quantvolt/numerics/exotic.py +326 -0
- quantvolt-0.1.0/src/quantvolt/numerics/interpolation.py +108 -0
- quantvolt-0.1.0/src/quantvolt/numerics/monte_carlo.py +488 -0
- quantvolt-0.1.0/src/quantvolt/numerics/risk_adjustment.py +143 -0
- quantvolt-0.1.0/src/quantvolt/numerics/rootfind.py +65 -0
- quantvolt-0.1.0/src/quantvolt/numerics/spread_models.py +127 -0
- quantvolt-0.1.0/src/quantvolt/portfolio/__init__.py +29 -0
- quantvolt-0.1.0/src/quantvolt/portfolio/model.py +92 -0
- quantvolt-0.1.0/src/quantvolt/portfolio/settlement.py +129 -0
- quantvolt-0.1.0/src/quantvolt/portfolio/valuation.py +231 -0
- quantvolt-0.1.0/src/quantvolt/pricing/__init__.py +136 -0
- quantvolt-0.1.0/src/quantvolt/pricing/_dates.py +53 -0
- quantvolt-0.1.0/src/quantvolt/pricing/exotic.py +546 -0
- quantvolt-0.1.0/src/quantvolt/pricing/futures.py +150 -0
- quantvolt-0.1.0/src/quantvolt/pricing/implied_vol.py +398 -0
- quantvolt-0.1.0/src/quantvolt/pricing/mark_to_market.py +135 -0
- quantvolt-0.1.0/src/quantvolt/pricing/power_hedge.py +169 -0
- quantvolt-0.1.0/src/quantvolt/pricing/ppa.py +377 -0
- quantvolt-0.1.0/src/quantvolt/pricing/spread_option.py +237 -0
- quantvolt-0.1.0/src/quantvolt/pricing/spreads.py +493 -0
- quantvolt-0.1.0/src/quantvolt/pricing/swap.py +183 -0
- quantvolt-0.1.0/src/quantvolt/pricing/tolling.py +371 -0
- quantvolt-0.1.0/src/quantvolt/pricing/transmission_right.py +464 -0
- quantvolt-0.1.0/src/quantvolt/pricing/vanilla.py +197 -0
- quantvolt-0.1.0/src/quantvolt/py.typed +0 -0
- quantvolt-0.1.0/src/quantvolt/risk/__init__.py +47 -0
- quantvolt-0.1.0/src/quantvolt/risk/_levels.py +97 -0
- quantvolt-0.1.0/src/quantvolt/risk/aggregation.py +79 -0
- quantvolt-0.1.0/src/quantvolt/risk/cashflow_metrics.py +124 -0
- quantvolt-0.1.0/src/quantvolt/risk/cfar.py +197 -0
- quantvolt-0.1.0/src/quantvolt/risk/covariance.py +290 -0
- quantvolt-0.1.0/src/quantvolt/risk/credit_var.py +338 -0
- quantvolt-0.1.0/src/quantvolt/risk/engine.py +323 -0
- quantvolt-0.1.0/src/quantvolt/risk/mc_var.py +496 -0
- quantvolt-0.1.0/src/quantvolt/risk/parametric_var.py +391 -0
- quantvolt-0.1.0/src/quantvolt/risk/scenarios.py +215 -0
- quantvolt-0.1.0/src/quantvolt/stats/__init__.py +24 -0
- quantvolt-0.1.0/src/quantvolt/stats/correlation.py +157 -0
- quantvolt-0.1.0/src/quantvolt/stats/descriptive.py +125 -0
- quantvolt-0.1.0/src/quantvolt/stats/mean_reversion.py +114 -0
- quantvolt-0.1.0/src/quantvolt/stats/normality.py +172 -0
- quantvolt-0.1.0/src/quantvolt/stats/stationarity.py +170 -0
- quantvolt-0.1.0/src/quantvolt/testing.py +88 -0
- quantvolt-0.1.0/src/quantvolt/workflow/__init__.py +33 -0
- quantvolt-0.1.0/src/quantvolt/workflow/criteria.py +39 -0
- quantvolt-0.1.0/src/quantvolt/workflow/modeling.py +395 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
.venv/
|
|
5
|
+
venv/
|
|
6
|
+
env/
|
|
7
|
+
.env/
|
|
8
|
+
.mypy_cache/
|
|
9
|
+
.pytest_cache/
|
|
10
|
+
.ruff_cache/
|
|
11
|
+
.hypothesis/
|
|
12
|
+
.benchmarks/
|
|
13
|
+
.coverage
|
|
14
|
+
.coverage.*
|
|
15
|
+
coverage.xml
|
|
16
|
+
htmlcov/
|
|
17
|
+
.tox/
|
|
18
|
+
.nox/
|
|
19
|
+
dist/
|
|
20
|
+
build/
|
|
21
|
+
*.egg-info/
|
|
22
|
+
|
|
23
|
+
# Local environment and secrets
|
|
24
|
+
.env
|
|
25
|
+
.env.*
|
|
26
|
+
!.env.example
|
|
27
|
+
*.pem
|
|
28
|
+
*.key
|
|
29
|
+
|
|
30
|
+
# AI agents and assistant tooling
|
|
31
|
+
/agents/
|
|
32
|
+
/.agents/
|
|
33
|
+
/.claude/
|
|
34
|
+
/.clouade/
|
|
35
|
+
/.codex/
|
|
36
|
+
/.kiro/
|
|
37
|
+
/.cursor/
|
|
38
|
+
/.continue/
|
|
39
|
+
/.cline/
|
|
40
|
+
/.gemini/
|
|
41
|
+
/.github/copilot/
|
|
42
|
+
/.opencode/
|
|
43
|
+
/.roo/
|
|
44
|
+
/.windsurf/
|
|
45
|
+
.aider*
|
|
46
|
+
CLAUDE.md
|
|
47
|
+
AGENTS.md
|
|
48
|
+
GEMINI.md
|
|
49
|
+
graphify-out/
|
|
50
|
+
|
|
51
|
+
# Disposable local numerical-review scratchpads
|
|
52
|
+
/scratchpad_*.py
|
|
53
|
+
|
|
54
|
+
# Optional datasets are fetched explicitly into a user cache, never committed.
|
|
55
|
+
/data/raw/
|
|
56
|
+
/data/processed/
|
|
57
|
+
/data/experiments/
|
|
58
|
+
/data/SHA256SUMS
|
|
59
|
+
|
|
60
|
+
# Local working and reference documents
|
|
61
|
+
/energy_power_risk_management_ch10_appendices.md
|
|
62
|
+
/polished_continue.md
|
|
63
|
+
/polished_energy_derivatives_modeling_specification.md
|
|
64
|
+
|
|
65
|
+
# Editors and operating systems
|
|
66
|
+
.DS_Store
|
|
67
|
+
.idea/
|
|
68
|
+
.vscode/
|
|
69
|
+
*.swp
|
|
70
|
+
*.swo
|
|
71
|
+
*~
|
|
72
|
+
|
|
73
|
+
# Rust
|
|
74
|
+
/target/
|
|
75
|
+
# maturin build artifacts
|
|
76
|
+
src/quantvolt/_core*.so
|
|
77
|
+
src/quantvolt/_core*.pyd
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "cfg-if"
|
|
13
|
+
version = "1.0.4"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "chacha20"
|
|
19
|
+
version = "0.10.1"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81"
|
|
22
|
+
dependencies = [
|
|
23
|
+
"cfg-if",
|
|
24
|
+
"cpufeatures",
|
|
25
|
+
"rand_core",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
[[package]]
|
|
29
|
+
name = "cpufeatures"
|
|
30
|
+
version = "0.3.0"
|
|
31
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
32
|
+
checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
|
|
33
|
+
dependencies = [
|
|
34
|
+
"libc",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[[package]]
|
|
38
|
+
name = "getrandom"
|
|
39
|
+
version = "0.4.3"
|
|
40
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
41
|
+
checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
|
|
42
|
+
dependencies = [
|
|
43
|
+
"cfg-if",
|
|
44
|
+
"libc",
|
|
45
|
+
"r-efi",
|
|
46
|
+
"rand_core",
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
[[package]]
|
|
50
|
+
name = "heck"
|
|
51
|
+
version = "0.5.0"
|
|
52
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
53
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
54
|
+
|
|
55
|
+
[[package]]
|
|
56
|
+
name = "libc"
|
|
57
|
+
version = "0.2.186"
|
|
58
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
59
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
60
|
+
|
|
61
|
+
[[package]]
|
|
62
|
+
name = "libm"
|
|
63
|
+
version = "0.2.16"
|
|
64
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
65
|
+
checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
|
|
66
|
+
|
|
67
|
+
[[package]]
|
|
68
|
+
name = "matrixmultiply"
|
|
69
|
+
version = "0.3.11"
|
|
70
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
71
|
+
checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"
|
|
72
|
+
dependencies = [
|
|
73
|
+
"autocfg",
|
|
74
|
+
"rawpointer",
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
[[package]]
|
|
78
|
+
name = "ndarray"
|
|
79
|
+
version = "0.16.1"
|
|
80
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
81
|
+
checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
|
|
82
|
+
dependencies = [
|
|
83
|
+
"matrixmultiply",
|
|
84
|
+
"num-complex",
|
|
85
|
+
"num-integer",
|
|
86
|
+
"num-traits",
|
|
87
|
+
"portable-atomic",
|
|
88
|
+
"portable-atomic-util",
|
|
89
|
+
"rawpointer",
|
|
90
|
+
]
|
|
91
|
+
|
|
92
|
+
[[package]]
|
|
93
|
+
name = "ndarray"
|
|
94
|
+
version = "0.17.2"
|
|
95
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
96
|
+
checksum = "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d"
|
|
97
|
+
dependencies = [
|
|
98
|
+
"matrixmultiply",
|
|
99
|
+
"num-complex",
|
|
100
|
+
"num-integer",
|
|
101
|
+
"num-traits",
|
|
102
|
+
"portable-atomic",
|
|
103
|
+
"portable-atomic-util",
|
|
104
|
+
"rawpointer",
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
[[package]]
|
|
108
|
+
name = "num-complex"
|
|
109
|
+
version = "0.4.6"
|
|
110
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
111
|
+
checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
|
|
112
|
+
dependencies = [
|
|
113
|
+
"num-traits",
|
|
114
|
+
]
|
|
115
|
+
|
|
116
|
+
[[package]]
|
|
117
|
+
name = "num-integer"
|
|
118
|
+
version = "0.1.46"
|
|
119
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
120
|
+
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
|
|
121
|
+
dependencies = [
|
|
122
|
+
"num-traits",
|
|
123
|
+
]
|
|
124
|
+
|
|
125
|
+
[[package]]
|
|
126
|
+
name = "num-traits"
|
|
127
|
+
version = "0.2.19"
|
|
128
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
129
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
130
|
+
dependencies = [
|
|
131
|
+
"autocfg",
|
|
132
|
+
"libm",
|
|
133
|
+
]
|
|
134
|
+
|
|
135
|
+
[[package]]
|
|
136
|
+
name = "numpy"
|
|
137
|
+
version = "0.29.0"
|
|
138
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
139
|
+
checksum = "6a5b15d63a5ff39e378daed0e1340d3a5964703ea9712eb09a0dc66fade996f4"
|
|
140
|
+
dependencies = [
|
|
141
|
+
"libc",
|
|
142
|
+
"ndarray 0.16.1",
|
|
143
|
+
"num-complex",
|
|
144
|
+
"num-integer",
|
|
145
|
+
"num-traits",
|
|
146
|
+
"pyo3",
|
|
147
|
+
"pyo3-build-config",
|
|
148
|
+
"rustc-hash",
|
|
149
|
+
]
|
|
150
|
+
|
|
151
|
+
[[package]]
|
|
152
|
+
name = "once_cell"
|
|
153
|
+
version = "1.21.4"
|
|
154
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
155
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
156
|
+
|
|
157
|
+
[[package]]
|
|
158
|
+
name = "portable-atomic"
|
|
159
|
+
version = "1.13.1"
|
|
160
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
162
|
+
|
|
163
|
+
[[package]]
|
|
164
|
+
name = "portable-atomic-util"
|
|
165
|
+
version = "0.2.7"
|
|
166
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
167
|
+
checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618"
|
|
168
|
+
dependencies = [
|
|
169
|
+
"portable-atomic",
|
|
170
|
+
]
|
|
171
|
+
|
|
172
|
+
[[package]]
|
|
173
|
+
name = "proc-macro2"
|
|
174
|
+
version = "1.0.106"
|
|
175
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
176
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
177
|
+
dependencies = [
|
|
178
|
+
"unicode-ident",
|
|
179
|
+
]
|
|
180
|
+
|
|
181
|
+
[[package]]
|
|
182
|
+
name = "pyo3"
|
|
183
|
+
version = "0.29.0"
|
|
184
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
185
|
+
checksum = "cd274650b21d4bfc26a0a47587962c1edb425f69287324355cd040c3ea66071c"
|
|
186
|
+
dependencies = [
|
|
187
|
+
"libc",
|
|
188
|
+
"once_cell",
|
|
189
|
+
"portable-atomic",
|
|
190
|
+
"pyo3-build-config",
|
|
191
|
+
"pyo3-ffi",
|
|
192
|
+
"pyo3-macros",
|
|
193
|
+
]
|
|
194
|
+
|
|
195
|
+
[[package]]
|
|
196
|
+
name = "pyo3-build-config"
|
|
197
|
+
version = "0.29.0"
|
|
198
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
199
|
+
checksum = "c5e2a7d2f0d013342f295c048ad19237add5154a55b1c5a254c0ec93d4109078"
|
|
200
|
+
dependencies = [
|
|
201
|
+
"target-lexicon",
|
|
202
|
+
]
|
|
203
|
+
|
|
204
|
+
[[package]]
|
|
205
|
+
name = "pyo3-ffi"
|
|
206
|
+
version = "0.29.0"
|
|
207
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
208
|
+
checksum = "ca85c467da1bbc8d866eea5deff9cf29ea5f7785054a17da36e65bda9c05845b"
|
|
209
|
+
dependencies = [
|
|
210
|
+
"libc",
|
|
211
|
+
"pyo3-build-config",
|
|
212
|
+
]
|
|
213
|
+
|
|
214
|
+
[[package]]
|
|
215
|
+
name = "pyo3-macros"
|
|
216
|
+
version = "0.29.0"
|
|
217
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
218
|
+
checksum = "9ac53762fd065daa3194dd09337a38bd793a188100fd1a9304c4ab312d901771"
|
|
219
|
+
dependencies = [
|
|
220
|
+
"proc-macro2",
|
|
221
|
+
"pyo3-macros-backend",
|
|
222
|
+
"quote",
|
|
223
|
+
"syn",
|
|
224
|
+
]
|
|
225
|
+
|
|
226
|
+
[[package]]
|
|
227
|
+
name = "pyo3-macros-backend"
|
|
228
|
+
version = "0.29.0"
|
|
229
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
230
|
+
checksum = "4ca3a1557399783172dc5bf39cfca835157732532cba56b71d2292161e53b362"
|
|
231
|
+
dependencies = [
|
|
232
|
+
"heck",
|
|
233
|
+
"proc-macro2",
|
|
234
|
+
"quote",
|
|
235
|
+
"syn",
|
|
236
|
+
]
|
|
237
|
+
|
|
238
|
+
[[package]]
|
|
239
|
+
name = "quantvolt-core"
|
|
240
|
+
version = "0.1.0"
|
|
241
|
+
dependencies = [
|
|
242
|
+
"ndarray 0.17.2",
|
|
243
|
+
"numpy",
|
|
244
|
+
"pyo3",
|
|
245
|
+
"rand",
|
|
246
|
+
"rand_distr",
|
|
247
|
+
]
|
|
248
|
+
|
|
249
|
+
[[package]]
|
|
250
|
+
name = "quote"
|
|
251
|
+
version = "1.0.46"
|
|
252
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
253
|
+
checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
|
|
254
|
+
dependencies = [
|
|
255
|
+
"proc-macro2",
|
|
256
|
+
]
|
|
257
|
+
|
|
258
|
+
[[package]]
|
|
259
|
+
name = "r-efi"
|
|
260
|
+
version = "6.0.0"
|
|
261
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
262
|
+
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
|
263
|
+
|
|
264
|
+
[[package]]
|
|
265
|
+
name = "rand"
|
|
266
|
+
version = "0.10.2"
|
|
267
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
+
checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"
|
|
269
|
+
dependencies = [
|
|
270
|
+
"chacha20",
|
|
271
|
+
"getrandom",
|
|
272
|
+
"rand_core",
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
[[package]]
|
|
276
|
+
name = "rand_core"
|
|
277
|
+
version = "0.10.1"
|
|
278
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
+
checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
|
|
280
|
+
|
|
281
|
+
[[package]]
|
|
282
|
+
name = "rand_distr"
|
|
283
|
+
version = "0.6.0"
|
|
284
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
285
|
+
checksum = "4d431c2703ccf129de4d45253c03f49ebb22b97d6ad79ee3ecfc7e3f4862c1d8"
|
|
286
|
+
dependencies = [
|
|
287
|
+
"num-traits",
|
|
288
|
+
"rand",
|
|
289
|
+
]
|
|
290
|
+
|
|
291
|
+
[[package]]
|
|
292
|
+
name = "rawpointer"
|
|
293
|
+
version = "0.2.1"
|
|
294
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
295
|
+
checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
|
|
296
|
+
|
|
297
|
+
[[package]]
|
|
298
|
+
name = "rustc-hash"
|
|
299
|
+
version = "2.1.3"
|
|
300
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
301
|
+
checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
|
|
302
|
+
|
|
303
|
+
[[package]]
|
|
304
|
+
name = "syn"
|
|
305
|
+
version = "2.0.118"
|
|
306
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
307
|
+
checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
|
|
308
|
+
dependencies = [
|
|
309
|
+
"proc-macro2",
|
|
310
|
+
"quote",
|
|
311
|
+
"unicode-ident",
|
|
312
|
+
]
|
|
313
|
+
|
|
314
|
+
[[package]]
|
|
315
|
+
name = "target-lexicon"
|
|
316
|
+
version = "0.13.5"
|
|
317
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
318
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
319
|
+
|
|
320
|
+
[[package]]
|
|
321
|
+
name = "unicode-ident"
|
|
322
|
+
version = "1.0.24"
|
|
323
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
324
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "quantvolt-core"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
publish = false
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
|
|
8
|
+
[lib]
|
|
9
|
+
name = "_core"
|
|
10
|
+
path = "rust/src/lib.rs"
|
|
11
|
+
crate-type = ["cdylib"]
|
|
12
|
+
|
|
13
|
+
[dependencies]
|
|
14
|
+
# pyo3 and rust-numpy move in lockstep: numpy 0.29 requires pyo3 ^0.29 and ndarray <= 0.17.
|
|
15
|
+
# `extension-module` is deliberately NOT enabled here so `cargo test` can link a test binary
|
|
16
|
+
# against libpython on macOS; pyproject.toml's [tool.maturin] features =
|
|
17
|
+
# ["pyo3/extension-module"] applies it when maturin builds the wheel (standard PyO3 FAQ pattern).
|
|
18
|
+
pyo3 = "0.29"
|
|
19
|
+
numpy = "0.29"
|
|
20
|
+
ndarray = "0.17"
|
|
21
|
+
rand = "0.10"
|
|
22
|
+
rand_distr = "0.6"
|
|
23
|
+
|
|
24
|
+
# `thin` LTO compiles far faster than fat `lto = true` with near-identical
|
|
25
|
+
# runtime performance; leaving codegen-units at the default keeps codegen
|
|
26
|
+
# parallel. This trades a negligible amount of runtime speed for a large
|
|
27
|
+
# reduction in CI wheel-build time.
|
|
28
|
+
[profile.release]
|
|
29
|
+
lto = "thin"
|
|
30
|
+
|
quantvolt-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nima Bahrami
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|