Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Oct 23, 2024
1 parent b690184 commit ca8a23c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 15 deletions.
8 changes: 8 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@ TupleTools = "9d95972d-f1c8-5527-a6e0-b4b365fa01f6"

[weakdeps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f"
Observers = "338f10d5-c7f1-4033-a7d1-f9dec39bcaa0"
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"
ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"

[extensions]
ITensorMPSChainRulesCoreExt = "ChainRulesCore"
ITensorMPSHDF5Ext = "HDF5"
ITensorMPSObserversExt = "Observers"
ITensorMPSPackageCompilerExt = "PackageCompiler"
ITensorMPSZygoteRulesExt = ["ChainRulesCore", "ZygoteRules"]

[compat]
Adapt = "4.1.0"
Expand Down
2 changes: 1 addition & 1 deletion ext/ITensorMPSHDF5Ext/ITensorMPSHDF5Ext.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module ITensorsHDF5Ext
module ITensorMPSHDF5Ext
include("mps.jl")
include("mpo.jl")
end
2 changes: 1 addition & 1 deletion ext/ITensorMPSHDF5Ext/mpo.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using HDF5: HDF5, attributes, create_group, open_group, read, write
using ITensors: ITensor
using ITensors.ITensorMPS: MPO
using ITensorMPS: MPO

function HDF5.write(parent::Union{HDF5.File,HDF5.Group}, name::AbstractString, M::MPO)
g = create_group(parent, name)
Expand Down
2 changes: 1 addition & 1 deletion ext/ITensorMPSHDF5Ext/mps.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using HDF5: HDF5, attributes, create_group, open_group, read, write
using ITensors: ITensor
using ITensors.ITensorMPS: MPS
using ITensorMPS: MPS

function HDF5.write(parent::Union{HDF5.File,HDF5.Group}, name::AbstractString, M::MPS)
g = create_group(parent, name)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ITensorsPackageCompilerExt
module ITensorMPSPackageCompilerExt
include("compile.jl")
end
2 changes: 1 addition & 1 deletion ext/ITensorMPSZygoteRulesExt/ITensorMPSZygoteRulesExt.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ITensorMPSZygoteRulesExt
using ChainRulesCore: ChainRulesCore
using ITensors.ITensorMPS: MPO, MPS
using ITensorMPS: MPO, MPS
using ZygoteRules: @adjoint

# Needed for defining the rule for `adjoint(A::ITensor)`
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ KrylovKit = "0b1a1467-8014-51b9-945f-bf0ae24f4b77"
NDTensors = "23ae76d9-e61a-49c4-8f12-3f1a16adf9cf"
Observers = "338f10d5-c7f1-4033-a7d1-f9dec39bcaa0"
OptimKit = "77e91f04-9b3b-57a6-a776-40b61faaebe0"
OrdinaryDiffEqTsit5 = "b1df2697-797e-41e3-8120-5422d3b24e4a"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
10 changes: 0 additions & 10 deletions test/base/test_solvers/test_exports.jl

This file was deleted.

0 comments on commit ca8a23c

Please sign in to comment.