No description
Find a file
qwjyh 01fb5a3b5f Fix CI
- fix make.jl for docs
- drop 1.6 test
2024-05-07 11:17:16 +09:00
.github Fix CI 2024-05-07 11:17:16 +09:00
docs Fix CI 2024-05-07 11:17:16 +09:00
examples init (migrating and renaming) 2024-05-07 11:11:07 +09:00
src init (migrating and renaming) 2024-05-07 11:11:07 +09:00
test init (migrating and renaming) 2024-05-07 11:11:07 +09:00
.gitignore init (migrating and renaming) 2024-05-07 11:11:07 +09:00
LICENSE init (migrating and renaming) 2024-05-07 11:11:07 +09:00
Project.toml init (migrating and renaming) 2024-05-07 11:11:07 +09:00
README.md fix README typo 2024-05-07 11:13:52 +09:00

QuantumLegos

Stable Dev Build Status

Aqua

How-Tos for Julia beginners

How to get Julia

Download binary from https://julialang.org/downloads/. Or use juliaup(recommended).

How to run (for dev.)(init)

  1. clone this repo
  2. cd to here
  3. julia --project
  4. type ] to enter Pkg mode in REPL.
  5. instantiate to download all dependencies
  6. press backspace to exit Pkg mode
  7. using Legos to use (normally starts from here)

Recommended tools for REPL:

  • OhMyREPL: for syntax highlight and interactive history search in REPL
  • Revise: for auto-loading changes to the package

How to build and browse docs locally(init)

  1. cd to docs/
  2. julia --project
  3. ] to enter Pkg mode
  4. Pkg> dev .. to add Legos to available package
  5. Pkg> instantiate
  6. Exit Pkg mode(backspace) and include("make.jl") to build. Now you can exit julia REPL by exit() or Ctrl-D.
  7. Alternatively, run julia --project make.jl from any shell.
  8. To browse file on browser, I recommend either to use LiveServer.jl (from Pkg mode REPL, add LiveServer) and julia -e 'using LiveServer; serve(dir="docs/build")' or cd to docs/build and python -m http.server --bind localhost. Details on Note on Documenter.jl docs
  • You can stop the local server by just stopping LiveServer or python http.server (just Ctrl-C)
  • You can update the docs by julia --project make.jl on docs/ and reload on your browser.

TODO

  • write test for CheckMatrix constructor
    • add Base.== method for CheckMatrix
  • implement checkmatrix constructor from stabilizer generator
  • implement constructor for State
    • implement initial constructor for State with only 1 lego and 0 edge
    • implement action function on State
      • implement tracing function for CheckMatrix
        • test for self-tracing
      • implement map function from LegoLeg to checkmatrix index
  • implement functions to glean stabilizer generator from CheckMatrix
  • test functions with examples on the paper
  • improve perf of ref!
  • implement function to calculate enumerator polynomial

ref! optimization

before

Benchmark of ref! vs AbstractAlgebra.rref

(so many allocs, take profile)

after

Optimized