Building the Documentation
julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
julia --project=docs docs/make.jlthen start a http python server
python3 -m http.server 8000 -d docs/build/and view the documentation page at http://localhost:8000.
Testing and Code Coverage
- When testing no packages other than
MagicTensorsis included in the name space throughusing. However,LinearAlgebra,ITensorMPS, andQuantumCliffordare imported throughimport. These names are abbreviated withMT,LA,IT, andQC, respectively.
julia --project=@. -e 'using Pkg; Pkg.instantiate()'
julia --project=dev -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'julia --project=@. -e 'using Pkg; Pkg.test(coverage=true)'
julia --project=dev -e 'using Coverage; c=process_folder(); open("lcov.info","w") do io; LCOV.write(io,c); end'
find . -name '*.cov' -deleteJulia Style Guide
- Word-wrap in source files at 92 characters.
- Use 4 spaces for indentation, no tabs.
- Use snake_case for function and variable names, use UpperCamelCase for type names.
- Prefix names with
_for private functions, variables, and types.
Julia File Template
# -- Constants -----------------------------------------------------------------------------
# -- Abstract Functions --------------------------------------------------------------------
# -- Abstract Types ------------------------------------------------------------------------
# -- Concrete Structs ----------------------------------------------------------------------
# -- Constructors --------------------------------------------------------------------------
# -- Base Methods --------------------------------------------------------------------------
# -- Interface Methods ---------------------------------------------------------------------
# -- Additional Functions ------------------------------------------------------------------
# -- Extensions ----------------------------------------------------------------------------
# -- Private Functions ---------------------------------------------------------------------
# -- List Entries --------------------------------------------------------------------------
# ------------------------------------------------------------------------------------------