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.0.tar.gz (6.0 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.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quantumwalksimulation-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 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.0.tar.gz
Algorithm Hash digest
SHA256 9f45bdfdb1333cba5c97e70bad27704f59a727607e2a6293d62a693f5be010c2
MD5 f323160629c0c2b727ac5b3140910b56
BLAKE2b-256 7892b12a209306e18466e44fde7b8f05534d1b59ced32484ed9354c2d149cf3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quantumwalksimulation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6a2abc1eb221e32e7cec8f431e60002dab7c045b4cd94470c3f394cfea9fa16
MD5 2de17df3951164c82b87a2524bc077a1
BLAKE2b-256 6d4191dd4a13a006f35d420560a09d92f6ed5a4fbadb55f7cf8ed72dd1822f68

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