Skip to content

Commit e5c0856

Browse files
committed
Remove ChainRulesCore for now
1 parent 4a11ce8 commit e5c0856

File tree

5 files changed

+6
-15
lines changed

5 files changed

+6
-15
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ authors = ["ITensor developers <[email protected]> and contributors"]
44
version = "0.1.2"
55

66
[deps]
7-
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
87
ITensorBase = "4795dd04-0d67-49bb-8f44-b89c448a1dc7"
98
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
109

1110
[compat]
12-
ChainRulesCore = "1.25.1"
1311
ITensorBase = "0.1.8"
1412
LinearAlgebra = "1.10"
1513
julia = "1.10"

src/ITensorQuantumOperatorDefinitions.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ include("sitetypes/tj.jl")
1616
include("sitetypes/qudit.jl")
1717
include("sitetypes/boson.jl")
1818

19-
include("ITensorQuantumOperatorDefinitionsChainRulesCoreExt.jl")
20-
2119
include("itensor/siteinds.jl")
2220
include("itensor/val.jl")
2321
include("itensor/state.jl")

src/ITensorQuantumOperatorDefinitionsChainRulesCoreExt.jl

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/itensor/op.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using ChainRulesCore: @ignore_derivatives
21
using ITensorBase: Index, ITensor, dag, prime, tags
32

43
op(::OpName, ::SiteType, ::Index...; kwargs...) = nothing

src/op.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ alias(::OpName"a†a†") = OpName("a†") ⊗ OpName("a†")
149149

150150
δ(x, y) = (x == y) ? 1 : 0
151151

152+
# See:
153+
# https://en.wikipedia.org/wiki/Spin_(physics)#Higher_spins
154+
# https://en.wikipedia.org/wiki/Pauli_matrices
155+
# https://en.wikipedia.org/wiki/Generalizations_of_Pauli_matrices
156+
# https://en.wikipedia.org/wiki/Generalized_Clifford_algebra
157+
# https://github.com/QuantumKitHub/MPSKitModels.jl/blob/v0.4.0/src/operators/spinoperators.jl
152158
function Base.AbstractArray(n::OpName"σ⁺", domain_size::Tuple{Int})
153159
d = only(domain_size)
154160
s = (d - 1) / 2

0 commit comments

Comments
 (0)