Fix mutation behavior of position
#275
Annotations
1 error and 9 warnings
|
src/treetensornetworks/projttns/abstractprojttn.jl#L137
[JuliaFormatter] reported by reviewdog 🐶
Raw Output:
src/treetensornetworks/projttns/abstractprojttn.jl:137:- ie=internal_edges(P)
src/treetensornetworks/projttns/abstractprojttn.jl:138:- newenvskeys=filter(!in(ie),keys(P.environments))
src/treetensornetworks/projttns/abstractprojttn.jl:139:- P=ProjTTN(pos,P.H,getindices(P.environments,newenvskeys))
src/treetensornetworks/projttns/abstractprojttn.jl:137:+ ie = internal_edges(P)
src/treetensornetworks/projttns/abstractprojttn.jl:138:+ newenvskeys = filter(!in(ie), keys(P.environments))
src/treetensornetworks/projttns/abstractprojttn.jl:139:+ P = ProjTTN(pos, P.H, getindices(P.environments, newenvskeys))
|
test/test_treetensornetworks/test_position.jl#L7
[JuliaFormatter] reported by reviewdog 🐶
Raw Output:
test/test_treetensornetworks/test_position.jl:7:- # make a nontrivial TTN state and TTN operator
test/test_treetensornetworks/test_position.jl:8:-
test/test_treetensornetworks/test_position.jl:9:- auto_fermion_enabled = ITensors.using_auto_fermion()
test/test_treetensornetworks/test_position.jl:10:- use_qns = true
test/test_treetensornetworks/test_position.jl:11:- cutoff = 1e-12
test/test_treetensornetworks/test_position.jl:7:+ # make a nontrivial TTN state and TTN operator
|
test/test_treetensornetworks/test_position.jl#L13
[JuliaFormatter] reported by reviewdog 🐶
Raw Output:
test/test_treetensornetworks/test_position.jl:13:- tooth_lengths = fill(2, 3)
test/test_treetensornetworks/test_position.jl:14:- c = named_comb_tree(tooth_lengths)
test/test_treetensornetworks/test_position.jl:15:- if use_qns # test whether autofermion breaks things when using non-fermionic QNs
test/test_treetensornetworks/test_position.jl:16:- ITensors.enable_auto_fermion()
test/test_treetensornetworks/test_position.jl:17:- else # when using no QNs, autofermion breaks # ToDo reference Issue in ITensors
test/test_treetensornetworks/test_position.jl:18:- ITensors.disable_auto_fermion()
test/test_treetensornetworks/test_position.jl:19:- end
test/test_treetensornetworks/test_position.jl:20:- s = siteinds("S=1/2", c; conserve_qns=use_qns)
test/test_treetensornetworks/test_position.jl:9:+ auto_fermion_enabled = ITensors.using_auto_fermion()
test/test_treetensornetworks/test_position.jl:10:+ use_qns = true
test/test_treetensornetworks/test_position.jl:11:+ cutoff = 1e-12
|
test/test_treetensornetworks/test_position.jl#L22
[JuliaFormatter] reported by reviewdog 🐶
Raw Output:
test/test_treetensornetworks/test_position.jl:22:- os = ITensorNetworks.heisenberg(c)
test/test_treetensornetworks/test_position.jl:13:+ tooth_lengths = fill(2, 3)
test/test_treetensornetworks/test_position.jl:14:+ c = named_comb_tree(tooth_lengths)
test/test_treetensornetworks/test_position.jl:15:+ if use_qns # test whether autofermion breaks things when using non-fermionic QNs
test/test_treetensornetworks/test_position.jl:16:+ ITensors.enable_auto_fermion()
test/test_treetensornetworks/test_position.jl:17:+ else # when using no QNs, autofermion breaks # ToDo reference Issue in ITensors
test/test_treetensornetworks/test_position.jl:18:+ ITensors.disable_auto_fermion()
test/test_treetensornetworks/test_position.jl:19:+ end
test/test_treetensornetworks/test_position.jl:20:+ s = siteinds("S=1/2", c; conserve_qns=use_qns)
|
test/test_treetensornetworks/test_position.jl#L24
[JuliaFormatter] reported by reviewdog 🐶
Raw Output:
test/test_treetensornetworks/test_position.jl:24:- H = TTN(os, s)
test/test_treetensornetworks/test_position.jl:22:+ os = ITensorNetworks.heisenberg(c)
|
test/test_treetensornetworks/test_position.jl#L26
[JuliaFormatter] reported by reviewdog 🐶
Raw Output:
test/test_treetensornetworks/test_position.jl:26:- d = Dict()
test/test_treetensornetworks/test_position.jl:27:- for (i, v) in enumerate(vertices(s))
test/test_treetensornetworks/test_position.jl:28:- d[v] = isodd(i) ? "Up" : "Dn"
test/test_treetensornetworks/test_position.jl:29:- end
test/test_treetensornetworks/test_position.jl:30:- states = v -> d[v]
test/test_treetensornetworks/test_position.jl:31:- psi = TTN(s, states)
test/test_treetensornetworks/test_position.jl:24:+ H = TTN(os, s)
|
test/test_treetensornetworks/test_position.jl#L33
[JuliaFormatter] reported by reviewdog 🐶
Raw Output:
test/test_treetensornetworks/test_position.jl:33:- # actual test, verifies that position is copy safe
test/test_treetensornetworks/test_position.jl:34:- vs= vertices(s)
test/test_treetensornetworks/test_position.jl:35:- PH0 = ProjTTN(H)
test/test_treetensornetworks/test_position.jl:36:- PH0 = position(PH0, psi, [vs[2],])
test/test_treetensornetworks/test_position.jl:37:- PH=copy(PH0)
test/test_treetensornetworks/test_position.jl:38:- PH=position(PH,psi,[vs[2],vs[5]])
test/test_treetensornetworks/test_position.jl:39:- @test keys(PH.environments)!=keys(PH0.environments)
test/test_treetensornetworks/test_position.jl:40:- if !auto_fermion_enabled
test/test_treetensornetworks/test_position.jl:41:- ITensors.disable_auto_fermion()
test/test_treetensornetworks/test_position.jl:42:- end
test/test_treetensornetworks/test_position.jl:43:-end
test/test_treetensornetworks/test_position.jl:26:+ d = Dict()
test/test_treetensornetworks/test_position.jl:27:+ for (i, v) in enumerate(vertices(s))
test/test_treetensornetworks/test_position.jl:28:+ d[v] = isodd(i) ? "Up" : "Dn"
test/test_treetensornetworks/test_position.jl:29:+ end
test/test_treetensornetworks/test_position.jl:30:+ states = v -> d[v]
test/test_treetensornetworks/test_position.jl:31:+ psi = TTN(s, states)
test/test_treetensornetworks/test_position.jl:32:+
test/test_treetensornetworks/test_position.jl:33:+ # actual test, verifies that position is copy safe
test/test_treetensornetworks/test_position.jl:34:+ vs = vertices(s)
test/test_treetensornetworks/test_position.jl:35:+ PH0 = ProjTTN(H)
test/test_treetensornetworks/test_position.jl:36:+ PH0 = position(PH0, psi, [vs[2]])
test/test_treetensornetworks/test_position.jl:37:+ PH = copy(PH0)
test/test_treetensornetworks/test_position.jl:38:+ PH = position(PH, psi, [vs[2], vs[5]])
test/test_treetensornetworks/test_position.jl:39:+ @test keys(PH.environments) != keys(PH0.environments)
test/test_treetensornetworks/test_position.jl:40:+ if !auto_fermion_enabled
test/test_treetensornetworks/test_position.jl:41:+ ITensors.disable_auto_fermion()
test/test_treetensornetworks/test_position.jl:42:+ end
test/test_treetensornetworks/test_position.jl:43:+end
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, julia-actions/setup-julia@latest. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The logs for this run have expired and are no longer available.
Loading