Skip to main content

Simulacao generica de caminhadas quanticas discretas (MSLQW-PPI) por dispatcher de estrutura (hipercubo, grade, ...)

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantumwalksimulation-0.1.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantumwalksimulation-0.1.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file quantumwalksimulation-0.1.2.tar.gz.

File metadata

  • Download URL: quantumwalksimulation-0.1.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for quantumwalksimulation-0.1.2.tar.gz
Algorithm Hash digest
SHA256 75892a5fc602cf6db9613f5285334f36b916d27500bcce44c6a7643123a33e95
MD5 e9f2d1e6cf852c7ea4bc87fa5e3308c5
BLAKE2b-256 1d3533f514ff94597402cee8b4f89cb453843baf130d9f8b80edb2ce87b6fc64

See more details on using hashes here.

File details

Details for the file quantumwalksimulation-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for quantumwalksimulation-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 72809fbd5458b63a34d80ac3c94e2ebea417c3c72d43dfddeb6311a500b10376
MD5 8e235a278d1ddc95bbc3f947fb92f7d7
BLAKE2b-256 2d07aac843b06441f7ade9ce2c7fc4ed81c11ae4fce81f54e2352bd4f3997c76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page