shotweave 0.1.0__py3-none-any.whl
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.
- shotweave/__init__.py +32 -0
- shotweave/__main__.py +24 -0
- shotweave/experiment.py +99 -0
- shotweave/qiskit.py +42 -0
- shotweave-0.1.0.dist-info/METADATA +141 -0
- shotweave-0.1.0.dist-info/RECORD +10 -0
- shotweave-0.1.0.dist-info/WHEEL +5 -0
- shotweave-0.1.0.dist-info/entry_points.txt +2 -0
- shotweave-0.1.0.dist-info/licenses/LICENSE +73 -0
- shotweave-0.1.0.dist-info/top_level.txt +1 -0
shotweave/__init__.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Integer shot allocation for independent binary measurements."""
|
|
2
|
+
from fractions import Fraction
|
|
3
|
+
from math import isfinite, sqrt
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def allocate(budget, weights):
|
|
7
|
+
"""Reserve one shot per circuit, then apportion by largest remainder."""
|
|
8
|
+
weights = tuple(weights)
|
|
9
|
+
if type(budget) is not int or not weights or budget < len(weights):
|
|
10
|
+
raise ValueError("Provide an integer budget covering every circuit")
|
|
11
|
+
if any(not isfinite(w) or w < 0 for w in weights) or not max(weights):
|
|
12
|
+
raise ValueError("Weights must be finite, nonnegative and include a positive value")
|
|
13
|
+
exact = [Fraction(w) for w in weights]
|
|
14
|
+
total = sum(exact)
|
|
15
|
+
quotas = [(budget - len(weights)) * w / total for w in exact]
|
|
16
|
+
counts = [1 + int(q) for q in quotas]
|
|
17
|
+
order = sorted(range(len(weights)), key=lambda i: quotas[i] % 1, reverse=True)
|
|
18
|
+
for i in order[:budget - sum(counts)]:
|
|
19
|
+
counts[i] += 1
|
|
20
|
+
return counts
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def adaptive_allocation(budget, coefficients, successes, pilot_size):
|
|
24
|
+
"""Allocate the remaining shots after an equal-size pilot per circuit."""
|
|
25
|
+
coefficients, successes = tuple(coefficients), tuple(successes)
|
|
26
|
+
if type(pilot_size) is not int or pilot_size < 1 or len(successes) != len(coefficients):
|
|
27
|
+
raise ValueError("Provide one pilot count per coefficient")
|
|
28
|
+
if any(type(k) is not int or not 0 <= k <= pilot_size for k in successes):
|
|
29
|
+
raise ValueError("Invalid pilot success count")
|
|
30
|
+
probabilities = [(k + 0.5) / (pilot_size + 1) for k in successes]
|
|
31
|
+
weights = [abs(c) * sqrt(p * (1 - p)) for c, p in zip(coefficients, probabilities)]
|
|
32
|
+
return allocate(budget - pilot_size * len(weights), weights)
|
shotweave/__main__.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Estimate a weighted sum from JSON measurement data."""
|
|
2
|
+
import argparse
|
|
3
|
+
import json
|
|
4
|
+
import sys
|
|
5
|
+
from dataclasses import asdict
|
|
6
|
+
|
|
7
|
+
from .experiment import summarize
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def main():
|
|
11
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
12
|
+
parser.add_argument("file", nargs="?", type=argparse.FileType("r"), default=sys.stdin,
|
|
13
|
+
help="JSON file with coefficients, shots and successes (default: stdin)")
|
|
14
|
+
args = parser.parse_args()
|
|
15
|
+
try:
|
|
16
|
+
data = json.load(args.file)
|
|
17
|
+
result = summarize(data["coefficients"], data["shots"], data["successes"])
|
|
18
|
+
print(json.dumps(asdict(result), allow_nan=False))
|
|
19
|
+
except (ValueError, TypeError, KeyError, OverflowError) as exc:
|
|
20
|
+
parser.exit(2, f"Invalid measurement data: {exc}\n")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
if __name__ == "__main__":
|
|
24
|
+
main()
|
shotweave/experiment.py
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"""Execution of independent binary measurement batches."""
|
|
2
|
+
from dataclasses import dataclass
|
|
3
|
+
from math import fsum, isfinite, isqrt, log, sqrt
|
|
4
|
+
from typing import Optional, Tuple
|
|
5
|
+
|
|
6
|
+
from . import adaptive_allocation, allocate
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@dataclass(frozen=True)
|
|
10
|
+
class Estimate:
|
|
11
|
+
value: float
|
|
12
|
+
standard_error: Optional[float]
|
|
13
|
+
final_shots: Tuple[int, ...]
|
|
14
|
+
successes: Tuple[int, ...]
|
|
15
|
+
pilot_shots: Tuple[int, ...] = ()
|
|
16
|
+
pilot_successes: Tuple[int, ...] = ()
|
|
17
|
+
|
|
18
|
+
@property
|
|
19
|
+
def total_shots(self):
|
|
20
|
+
return sum(self.final_shots) + sum(self.pilot_shots)
|
|
21
|
+
|
|
22
|
+
@property
|
|
23
|
+
def batches(self):
|
|
24
|
+
return 2 if self.pilot_shots else 1
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _check_counts(shots, successes):
|
|
28
|
+
if len(shots) != len(successes) or any(
|
|
29
|
+
type(k) is not int or not 0 <= k <= n for n, k in zip(shots, successes)
|
|
30
|
+
):
|
|
31
|
+
raise ValueError("Expected one integer success count in [0, shots] per circuit")
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def summarize(coefficients, shots, successes):
|
|
35
|
+
"""Estimate a weighted sum of probabilities from independent final counts."""
|
|
36
|
+
coefficients, shots, successes = map(tuple, (coefficients, shots, successes))
|
|
37
|
+
if not shots or len(coefficients) != len(shots) or any(
|
|
38
|
+
type(n) is not int or n < 1 for n in shots
|
|
39
|
+
):
|
|
40
|
+
raise ValueError("Expected one positive shot count per coefficient")
|
|
41
|
+
if not all(map(isfinite, coefficients)):
|
|
42
|
+
raise ValueError("Coefficients must be finite")
|
|
43
|
+
_check_counts(shots, successes)
|
|
44
|
+
value = fsum(c * (k / n) for c, k, n in zip(coefficients, successes, shots))
|
|
45
|
+
standard_error = None
|
|
46
|
+
if all(n > 1 or c == 0 for c, n in zip(coefficients, shots)):
|
|
47
|
+
variance = fsum(
|
|
48
|
+
c*c * (k/n) * ((n-k)/n) / (n-1)
|
|
49
|
+
for c, k, n in zip(coefficients, successes, shots) if c
|
|
50
|
+
)
|
|
51
|
+
standard_error = sqrt(variance)
|
|
52
|
+
return Estimate(value, standard_error, shots, successes)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def confidence_interval(result, coefficients, level=0.95):
|
|
56
|
+
"""Two-sided Hoeffding interval conditional on the independent final allocation."""
|
|
57
|
+
coefficients = tuple(coefficients)
|
|
58
|
+
if not 0 < level < 1 or len(coefficients) != len(result.final_shots):
|
|
59
|
+
raise ValueError("Invalid confidence level or coefficient count")
|
|
60
|
+
estimate = summarize(coefficients, result.final_shots, result.successes)
|
|
61
|
+
scale = fsum(c*c/n for c, n in zip(coefficients, result.final_shots))
|
|
62
|
+
radius = sqrt(0.5 * log(2 / (1 - level)) * scale)
|
|
63
|
+
return (max(fsum(min(0, c) for c in coefficients), estimate.value - radius),
|
|
64
|
+
min(fsum(max(0, c) for c in coefficients), estimate.value + radius))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def automatic_pilot(budget, circuits):
|
|
68
|
+
"""Square-root pilot per circuit, capped at 10% except for the one-shot floor."""
|
|
69
|
+
if type(circuits) is not int or circuits < 1 or type(budget) is not int or budget < 2 * circuits:
|
|
70
|
+
raise ValueError("Adaptive sampling needs two shots per circuit")
|
|
71
|
+
per_circuit = budget // circuits
|
|
72
|
+
return max(1, min(isqrt(per_circuit), per_circuit // 10))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def run_experiment(budget, coefficients, submit, strategy="adaptive", pilot_size=64):
|
|
76
|
+
"""Call submit(shots) in circuit order and return the estimate and both batches."""
|
|
77
|
+
coefficients = tuple(coefficients)
|
|
78
|
+
if strategy not in ("uniform", "weighted", "adaptive"):
|
|
79
|
+
raise ValueError("Unknown allocation strategy")
|
|
80
|
+
if not coefficients or not all(map(isfinite, coefficients)) or not any(coefficients):
|
|
81
|
+
raise ValueError("Provide finite coefficients with a nonzero term")
|
|
82
|
+
if type(budget) is not int or budget < len(coefficients):
|
|
83
|
+
raise ValueError("Budget must cover every circuit")
|
|
84
|
+
pilot = pilot_counts = ()
|
|
85
|
+
if strategy == "adaptive":
|
|
86
|
+
if pilot_size == "auto":
|
|
87
|
+
pilot_size = automatic_pilot(budget, len(coefficients))
|
|
88
|
+
if type(pilot_size) is not int or not 1 <= pilot_size <= budget // len(coefficients) - 1:
|
|
89
|
+
raise ValueError("Budget must cover the pilot and at least one final shot per circuit")
|
|
90
|
+
pilot = (pilot_size,) * len(coefficients)
|
|
91
|
+
pilot_counts = tuple(submit(pilot))
|
|
92
|
+
_check_counts(pilot, pilot_counts)
|
|
93
|
+
final = adaptive_allocation(budget, coefficients, pilot_counts, pilot_size)
|
|
94
|
+
else:
|
|
95
|
+
weights = [1] * len(coefficients) if strategy == "uniform" else map(abs, coefficients)
|
|
96
|
+
final = allocate(budget, weights)
|
|
97
|
+
result = summarize(coefficients, final, submit(tuple(final)))
|
|
98
|
+
return Estimate(result.value, result.standard_error, result.final_shots,
|
|
99
|
+
result.successes, pilot, pilot_counts)
|
shotweave/qiskit.py
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Adapter for unparameterized circuits and Qiskit V2 samplers."""
|
|
2
|
+
from dataclasses import dataclass
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@dataclass(frozen=True)
|
|
6
|
+
class Submission:
|
|
7
|
+
job_id: str
|
|
8
|
+
shots: tuple
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class SamplerAdapter:
|
|
12
|
+
"""Read a single named one-bit classical register per circuit."""
|
|
13
|
+
def __init__(self, sampler, circuits, register="meas"):
|
|
14
|
+
self.sampler = sampler
|
|
15
|
+
self.circuits = tuple(circuits)
|
|
16
|
+
self.register = register
|
|
17
|
+
self.jobs = []
|
|
18
|
+
if not self.circuits:
|
|
19
|
+
raise ValueError("Provide at least one circuit")
|
|
20
|
+
for circuit in self.circuits:
|
|
21
|
+
if circuit.num_parameters or not any(
|
|
22
|
+
reg.name == register and reg.size == 1 for reg in circuit.cregs
|
|
23
|
+
):
|
|
24
|
+
raise ValueError("Bind parameters and provide a one-bit output register")
|
|
25
|
+
|
|
26
|
+
def __call__(self, shots):
|
|
27
|
+
shots = tuple(shots)
|
|
28
|
+
if len(shots) != len(self.circuits) or any(type(n) is not int or n < 1 for n in shots):
|
|
29
|
+
raise ValueError("Expected one positive shot count per circuit")
|
|
30
|
+
pubs = [(circuit, None, n) for circuit, n in zip(self.circuits, shots)]
|
|
31
|
+
job = self.sampler.run(pubs)
|
|
32
|
+
self.jobs.append(Submission(job.job_id(), shots))
|
|
33
|
+
results = list(job.result())
|
|
34
|
+
if len(results) != len(shots):
|
|
35
|
+
raise ValueError("Sampler returned a different number of circuit results")
|
|
36
|
+
successes = []
|
|
37
|
+
for result, expected in zip(results, shots):
|
|
38
|
+
counts = result.data[self.register].get_counts()
|
|
39
|
+
if set(counts) - {"0", "1"} or sum(counts.values()) != expected:
|
|
40
|
+
raise ValueError("Sampler returned unexpected outcomes or shot total")
|
|
41
|
+
successes.append(counts.get("1", 0))
|
|
42
|
+
return successes
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: shotweave
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Integer shot allocation for independent quantum measurement experiments
|
|
5
|
+
Home-page: https://github.com/Phasetensor/ShotWeave
|
|
6
|
+
Author: PhaseTensor
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Requires-Python: >=3.9
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Provides-Extra: qiskit
|
|
12
|
+
Requires-Dist: qiskit<3,>=2; extra == "qiskit"
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# ShotWeave
|
|
16
|
+
|
|
17
|
+
ShotWeave is a PhaseTensor Python library for allocating a fixed measurement budget across circuits. The first experiment estimates a signed weighted sum of independent binary outcome probabilities.
|
|
18
|
+
|
|
19
|
+
## Quick start
|
|
20
|
+
|
|
21
|
+
From the repository root, run with Python 3.9 or later. The library and benchmark use the standard library.
|
|
22
|
+
|
|
23
|
+
```python
|
|
24
|
+
from shotweave import allocate, adaptive_allocation
|
|
25
|
+
|
|
26
|
+
counts = allocate(10_000, [1, 2, 4, 1])
|
|
27
|
+
# After 64 pilot shots per circuit, allocate the remaining 9,744 shots.
|
|
28
|
+
remaining = adaptive_allocation(10_000, [1, -2, 4, 1], [32, 16, 63, 45], 64)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Installation and measurement data
|
|
32
|
+
|
|
33
|
+
Install from the repository root with `python -m pip install .`. No runtime dependencies are required.
|
|
34
|
+
|
|
35
|
+
A backend receives a tuple of requested shot counts and returns one integer count of outcome 1 per circuit in the same order. This example uses a seeded local sampler. Replace the callback with your own batch submission function to use other measurement data.
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from random import Random
|
|
39
|
+
from shotweave.experiment import run_experiment
|
|
40
|
+
|
|
41
|
+
rng = Random(42)
|
|
42
|
+
probabilities = (0.3, 0.8)
|
|
43
|
+
|
|
44
|
+
def submit(shots):
|
|
45
|
+
return [sum(rng.random() < p for _ in range(n))
|
|
46
|
+
for p, n in zip(probabilities, shots)]
|
|
47
|
+
|
|
48
|
+
result = run_experiment(10_000, [1, -2], submit, strategy="adaptive")
|
|
49
|
+
print(result.value, result.standard_error, result.total_shots)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
For previously collected independent final counts, use the CLI:
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
echo '{"coefficients":[1,-2],"shots":[100,100],"successes":[30,80]}' | shotweave
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The target is the weighted sum of probabilities of outcome 1. For a Pauli measurement with outcome 0 mapped to +1, the expectation is 1 − 2p. Each circuit must supply independent shots with a stable probability. The reported standard error uses sample variances, can be zero for boundary counts, and is unavailable when a nonzero term has only one final shot. It excludes systematic device error. A backend exception propagates to the caller without an automatic retry.
|
|
59
|
+
|
|
60
|
+
## Reproduce the benchmarks
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
python -m unittest -v
|
|
64
|
+
python benchmark.py
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Each of 200 seeded trials spends 10,000 shots on four simulated Bernoulli circuits. Uniform allocation splits shots equally. Weighted allocation uses absolute observable coefficients. Adaptive allocation spends 256 shots in a pilot batch and allocates its second batch in proportion to each absolute coefficient times its estimated standard deviation. Half-count smoothing keeps the estimate positive at both boundaries. Only the independent second batch contributes to the adaptive point estimate.
|
|
68
|
+
|
|
69
|
+
The script reports root mean squared error against the exact weighted sum, simulated batch calls per trial, and elapsed local time across all trials. A batch can contain different shot counts per circuit. Hardware support for this batching assumption and queue latency require separate evaluation.
|
|
70
|
+
|
|
71
|
+
### Reference error by scenario
|
|
72
|
+
|
|
73
|
+
The simulator knows the true probabilities. For a fixed allocation, the exact mean squared error is the sum of c_i² p_i (1 − p_i) / n_i over circuits. For adaptive allocation, we average this conditional variance across the 200 pilot allocations before taking the square root. Independent final measurements make the conditional estimate unbiased.
|
|
74
|
+
|
|
75
|
+
| Scenario | Uniform | Weighted | Adaptive |
|
|
76
|
+
| --- | ---: | ---: | ---: |
|
|
77
|
+
| Original | 0.023396 | 0.026449 | 0.022751 |
|
|
78
|
+
| Equal variance | 0.046904 | 0.040000 | 0.040523 |
|
|
79
|
+
| Rare outcomes | 0.020721 | 0.021192 | 0.015505 |
|
|
80
|
+
|
|
81
|
+
With equal circuit variances, coefficient weighting gives the lowest reference error. Empirical rankings from 200 trials can differ from the reference ranking.
|
|
82
|
+
|
|
83
|
+
## Status
|
|
84
|
+
|
|
85
|
+
Version 0.1.0, licensed under Apache 2.0. The benchmarks cover three synthetic scenarios. No hardware or PyPI release has been validated.
|
|
86
|
+
|
|
87
|
+
## Qiskit V2 sampler
|
|
88
|
+
|
|
89
|
+
On Python 3.12 install with `python -m pip install '.[qiskit]'` and run
|
|
90
|
+
`python qiskit_example.py`. Pass bound circuits with final measurements into a
|
|
91
|
+
one-bit classical register (default `meas`) to `SamplerAdapter(sampler, circuits)`.
|
|
92
|
+
The adapter sends a single list of (circuit, bindings, shots) tuples per call.
|
|
93
|
+
Its jobs list records the sampler job IDs and requested circuit shots. The
|
|
94
|
+
example uses StatevectorSampler locally and a seeded NumPy generator shared
|
|
95
|
+
across calls. Provider-side scheduling and hardware execution are outside this example.
|
|
96
|
+
|
|
97
|
+
## Pilot policy and confidence intervals
|
|
98
|
+
|
|
99
|
+
Pass `pilot_size="auto"` to run_experiment for a budget-aware heuristic.
|
|
100
|
+
Given b = floor(budget / circuits), the pilot per circuit is
|
|
101
|
+
max(1, min(floor(sqrt(b)), floor(b / 10))). Adaptive mode needs at least two
|
|
102
|
+
shots per circuit. The fixed default of 64 preserves existing calls.
|
|
103
|
+
|
|
104
|
+
Use `confidence_interval(result, coefficients, level=0.95)` from
|
|
105
|
+
shotweave.experiment with the original coefficients. The interval uses the
|
|
106
|
+
two-sided Hoeffding bound with radius sqrt(log(2 / alpha) sum(c_i²/n_i) / 2),
|
|
107
|
+
clipped to the attainable range. The final outcomes are independent
|
|
108
|
+
conditional on the pilot. This gives at least the requested coverage under
|
|
109
|
+
the independent, stationary Bernoulli model, including boundary outcomes.
|
|
110
|
+
Intervals can be conservative. The normal standard error remains available.
|
|
111
|
+
|
|
112
|
+
## Extended benchmark
|
|
113
|
+
|
|
114
|
+
Run `python3.12 benchmark_grid.py > results.csv` to reproduce
|
|
115
|
+
[the reference table](benchmark_grid.csv). It includes 300 seeded trials per
|
|
116
|
+
feasible cell, two budgets, three circuit counts, two probability profiles and
|
|
117
|
+
four policies. Reference errors average the conditional variance over pilots.
|
|
118
|
+
Coverage is the observed fraction of intervals containing the exact target.
|
|
119
|
+
Time columns model 10 microseconds per shot plus either zero or one second per
|
|
120
|
+
job. The original benchmark separately measures local wall-clock time.
|
|
121
|
+
|
|
122
|
+
With 10,000 shots across 100 circuits in the rare-outcome scenario, automatic
|
|
123
|
+
allocation leaves 9,000 final shots and gives reference RMSE 0.0045562.
|
|
124
|
+
A 64-shot pilot leaves 3,600 and gives 0.0063765. Uniform allocation gives
|
|
125
|
+
0.0051802 with one job. For equal variances at the same budget and size,
|
|
126
|
+
coefficient weighting gives 0.0100003 with one job, versus 0.0105714 for auto.
|
|
127
|
+
|
|
128
|
+
## IBM Quantum hardware and public distribution
|
|
129
|
+
|
|
130
|
+
Install the Qiskit extra and qiskit-ibm-runtime in Python 3.12. With an
|
|
131
|
+
authenticated IBM Quantum account run
|
|
132
|
+
`python hardware_example.py --instance YOUR_INSTANCE_CRN --output hardware-run.jsonl`.
|
|
133
|
+
This submits jobs on the selected instance. The new JSON Lines file records
|
|
134
|
+
backend, UTC start, job IDs, per-circuit shot counts, observed successes and
|
|
135
|
+
wall time including queueing. Keep the report when diagnosing a failed run.
|
|
136
|
+
|
|
137
|
+
For the first PyPI publication, configure a pending Trusted Publisher for
|
|
138
|
+
project `shotweave`, owner `Phasetensor`, repository `ShotWeave`, workflow
|
|
139
|
+
`publish.yml`, environment `pypi`. Dispatch the Publish ShotWeave to PyPI
|
|
140
|
+
workflow from main. It builds and validates both distributions, uploads them
|
|
141
|
+
using GitHub OIDC and checks installation from the public index.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
shotweave/__init__.py,sha256=xbNKo0rxpSJ211aDj7pTQuxaCWBE5ciTqvTmVrxygjs,1664
|
|
2
|
+
shotweave/__main__.py,sha256=6SUgJk2MMnL5FlEOyAjjUsi871RUl1TlZ2rpgGx9wJQ,811
|
|
3
|
+
shotweave/experiment.py,sha256=f97gjyt2ufN5z9mOKEfgpWUR8irTq2Sb_Hmoxmq9dzI,4526
|
|
4
|
+
shotweave/qiskit.py,sha256=nIMPzMHYsK4WzBN6b78Nw2cMY_cDgTjGk-aQEI7-6Zo,1770
|
|
5
|
+
shotweave-0.1.0.dist-info/licenses/LICENSE,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
|
|
6
|
+
shotweave-0.1.0.dist-info/METADATA,sha256=OcJNzQYW6S-phsiuJXLZ7NDvl3Nzu7mlUo4_69XWVyY,7401
|
|
7
|
+
shotweave-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
8
|
+
shotweave-0.1.0.dist-info/entry_points.txt,sha256=NXVsvVpB85pUIba8QFsxT73rNwrjsDCZY8Gdz8aDJRk,54
|
|
9
|
+
shotweave-0.1.0.dist-info/top_level.txt,sha256=CnHKe2P7up7DkB1o5aboT0z30oxofdKWo9EBk6rdFGE,10
|
|
10
|
+
shotweave-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
10
|
+
|
|
11
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
12
|
+
|
|
13
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
14
|
+
|
|
15
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
16
|
+
|
|
17
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
18
|
+
|
|
19
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
20
|
+
|
|
21
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
22
|
+
|
|
23
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
24
|
+
|
|
25
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
26
|
+
|
|
27
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
28
|
+
|
|
29
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
30
|
+
|
|
31
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
32
|
+
|
|
33
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
34
|
+
|
|
35
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
36
|
+
|
|
37
|
+
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
38
|
+
|
|
39
|
+
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
40
|
+
|
|
41
|
+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
|
42
|
+
|
|
43
|
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
44
|
+
|
|
45
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
46
|
+
|
|
47
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
48
|
+
|
|
49
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
50
|
+
|
|
51
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
52
|
+
|
|
53
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
54
|
+
|
|
55
|
+
END OF TERMS AND CONDITIONS
|
|
56
|
+
|
|
57
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
58
|
+
|
|
59
|
+
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
|
60
|
+
|
|
61
|
+
Copyright [yyyy] [name of copyright owner]
|
|
62
|
+
|
|
63
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
64
|
+
you may not use this file except in compliance with the License.
|
|
65
|
+
You may obtain a copy of the License at
|
|
66
|
+
|
|
67
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
68
|
+
|
|
69
|
+
Unless required by applicable law or agreed to in writing, software
|
|
70
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
71
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
72
|
+
See the License for the specific language governing permissions and
|
|
73
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
shotweave
|