QuantumWalkSimulation
Simulacao generica de caminhadas quanticas discretas (MSLQW-PPI —
Multi-self-loop Lackadaisical Quantum Walk com Inversao Parcial de Fase,
Souza et al., arXiv:2305.19614) via uma unica funcao qw(), parametrizada
por base, degree e structure. A moeda lackadaisical e o oraculo de
inversao parcial sao os mesmos independente da estrutura; apenas o
deslocamento (shift) muda, escolhido internamente por dispatcher:
structure="hypercube"-> shift por distancia de Hamming (bit flip)structure="grid"-> shift por distancia de Manhattan (grade periodica)
Instalacao
pip install QuantumWalkSimulation
Uso
from QuantumWalkSimulation import qw
# Hipercubo Q_3 (N = 2**3 = 8 vertices)
r = qw(
base=2, degree=3, num_selfloop=3, t_f=100,
weight_value=1/8, marked_vertices=[0],
inverted_self_loops=2, structure="hypercube",
)
# Grade 4x4 (N = 4**2 = 16 vertices; degree = 2*n_dims)
r = qw(
base=4, degree=4, num_selfloop=3, t_f=100,
weight_value=1/16, marked_vertices=[0],
inverted_self_loops=2, structure="grid",
)
r.probs # (t_f, N)
r.det_times # (t_f,)
r.peak_detection
r.peak_step
Parametros
| Parametro | Tipo | Descricao |
|---|---|---|
base |
int |
N = base ** n_dims. Hipercubo exige base=2. |
degree |
int |
Grau do vertice. Hipercubo: degree = n_dims. Grade: degree = 2 * n_dims (par). |
num_selfloop |
int |
m self-loops por vertice. |
t_f |
int |
Passos de simulacao. |
weight_value |
float |
Peso l do self-loop. |
marked_vertices |
list[int] |
Vertices marcados. |
inverted_self_loops |
int |
s: quantos dos m self-loops tem fase invertida (1 <= s <= m). |
structure |
str |
"hypercube" ou "grid". |
Licenca
MIT
Metadata
Release files for QuantumWalkSimulation 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quantumwalksimulation-0.1.2.tar.gz | 6.1 kB | Without provenance | Details for quantumwalksimulation-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quantumwalksimulation-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for quantumwalksimulation-0.1.2-py3-none-any.whl |
Total release size: 8.5 kB
Release files / quantumwalksimulation-0.1.2.tar.gz
| Download URL | quantumwalksimulation-0.1.2.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75892a5fc602cf6db9613f5285334f36b916d27500bcce44c6a7643123a33e95
|
|
BLAKE2b-256 checksum How to use checksums |
1d3533f514ff94597402cee8b4f89cb453843baf130d9f8b80edb2ce87b6fc64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / quantumwalksimulation-0.1.2-py3-none-any.whl
| Download URL | quantumwalksimulation-0.1.2-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72809fbd5458b63a34d80ac3c94e2ebea417c3c72d43dfddeb6311a500b10376
|
|
BLAKE2b-256 checksum How to use checksums |
2d07aac843b06441f7ade9ce2c7fc4ed81c11ae4fce81f54e2352bd4f3997c76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for QuantumWalkSimulation 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.