No description
Find a file
dependabot[bot] 0a9a1a9356 Bump julia-actions/cache from 1 to 2
Bumps [julia-actions/cache](https://github.com/julia-actions/cache) from 1 to 2.
- [Release notes](https://github.com/julia-actions/cache/releases)
- [Commits](https://github.com/julia-actions/cache/compare/v1...v2)

---
updated-dependencies:
- dependency-name: julia-actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-07 11:30:18 +09:00
.github Bump julia-actions/cache from 1 to 2 2024-05-07 11:30:18 +09:00
docs fixup! Fix CI 2024-05-07 11:19:50 +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