Skip to content

Define SectorUnitRange and refactor GradedUnitRange #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a1e5a18
define sectorunitrange
ogauthe Apr 11, 2025
56f3107
basics of GradedUnitRange
ogauthe Apr 14, 2025
b636fef
WIP
ogauthe Apr 15, 2025
d754b11
refactor tests
ogauthe Apr 15, 2025
80c6cc9
refactor type parameters and accessors
ogauthe Apr 16, 2025
3c6b76f
refactor package structure
ogauthe Apr 17, 2025
514c3d3
pass most tests
ogauthe Apr 18, 2025
b9b51c5
drop labels in combine_blockaxes
ogauthe Apr 18, 2025
f614922
test range cast convention
ogauthe Apr 18, 2025
f3b8c52
abelian slicing for SectorUnitRange
ogauthe Apr 18, 2025
5ca9d6f
remove unused methods
ogauthe Apr 18, 2025
1d6e8cb
more extensive tests
ogauthe Apr 21, 2025
53d94cf
working GradedUnitRange
ogauthe Apr 23, 2025
36a3526
remove unused methods
ogauthe Apr 23, 2025
a68b460
bump version
ogauthe Apr 23, 2025
aa323a7
bump doc and test versions
ogauthe Apr 23, 2025
fa89dfa
update doc references
ogauthe Apr 23, 2025
15583c9
fix getindex BlockIndexRange
ogauthe Apr 23, 2025
ccbfe1f
reorder methods, remove unneeded
ogauthe Apr 23, 2025
f1252c0
use macro to avoid code dupplication
ogauthe Apr 23, 2025
4ba41af
use ungrade and sectors
ogauthe Apr 24, 2025
08ce630
use mortar_axis and eachblockaxis
ogauthe Apr 24, 2025
db322db
fix dag
ogauthe Apr 24, 2025
ea8fa7e
fix matricize
ogauthe Apr 24, 2025
2ea6291
define multiplicity slicing
ogauthe Apr 25, 2025
db0f0e8
simpler mult slicing
ogauthe Apr 25, 2025
3015674
gradedrange with first
ogauthe Apr 25, 2025
7564cda
better test filenames
ogauthe Apr 25, 2025
04cbfa0
update exports
ogauthe Apr 25, 2025
7d0b2b3
more tests
ogauthe Apr 25, 2025
7081f8f
clean imports
ogauthe Apr 25, 2025
d876202
fix ×(SectorUnitRange)
ogauthe Apr 25, 2025
2663089
restrict × to OneTo
ogauthe Apr 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GradedArrays"
uuid = "bc96ca6e-b7c8-4bb6-888e-c93f838762c2"
authors = ["ITensor developers <[email protected]> and contributors"]
version = "0.3.1"
version = "0.4.0"

[deps]
BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"

[compat]
Documenter = "1"
GradedArrays = "0.3"
GradedArrays = "0.4"
Literate = "2"
2 changes: 1 addition & 1 deletion docs/src/reference.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Reference

```@autodocs
Modules = [GradedArrays, GradedArrays.LabelledNumbers, GradedArrays.GradedUnitRanges, GradedArrays.SymmetrySectors]
Modules = [GradedArrays]
```
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ module GradedArraysTensorAlgebraExt

using BlockArrays: blocks
using BlockSparseArrays: BlockSparseArray, blockreshape
using GradedArrays: GradedArray
using GradedArrays.GradedUnitRanges:
using GradedArrays:
AbstractGradedUnitRange,
GradedArray,
flip,
invblockperm,
sectormergesortperm,
sectorsortperm,
trivial,
unmerged_tensor_product
using GradedArrays.SymmetrySectors: trivial
using TensorAlgebra:
TensorAlgebra,
AbstractBlockPermutation,
Expand Down
54 changes: 30 additions & 24 deletions src/GradedArrays.jl
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
module GradedArrays

include("LabelledNumbers/LabelledNumbers.jl")
using .LabelledNumbers: LabelledNumbers
include("GradedUnitRanges/GradedUnitRanges.jl")
# This makes the following names accessible
# as `GradedArrays.x`.
using .GradedUnitRanges:
GradedUnitRanges,
GradedOneTo,
GradedUnitRange,
GradedUnitRangeDual,
LabelledUnitRangeDual,
blocklabels,
include("gradedunitrange_interface.jl")
include("symmetry_style.jl")

include("sectorunitrange.jl")
include("gradedunitrange.jl")

include("abstractsector.jl")
include("sector_definitions/fib.jl")
include("sector_definitions/ising.jl")
include("sector_definitions/o2.jl")
include("sector_definitions/trivial.jl")
include("sector_definitions/su.jl")
include("sector_definitions/su2k.jl")
include("sector_definitions/u1.jl")
include("sector_definitions/zn.jl")
include("namedtuple_operations.jl")
include("sector_product.jl")

include("fusion.jl")
include("gradedarray.jl")

export SU2,
U1,
Z,
dag,
dual,
dual_type,
flip,
gradedrange,
isdual,
map_blocklabels,
nondual,
nondual_type,
sector,
sector_multiplicities,
sector_multiplicity,
sectorrange,
sectors,
sector_type,
sectormergesort,
sectormergesortperm,
sectorsortperm,
space_isequal,
unmerged_tensor_product
include("SymmetrySectors/SymmetrySectors.jl")
using .SymmetrySectors: SymmetrySectors
include("gradedarray.jl")

ungrade
end
11 changes: 0 additions & 11 deletions src/GradedUnitRanges/GradedUnitRanges.jl

This file was deleted.

39 changes: 0 additions & 39 deletions src/GradedUnitRanges/dual.jl

This file was deleted.

81 changes: 0 additions & 81 deletions src/GradedUnitRanges/fusion.jl

This file was deleted.

Loading
Loading