We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 701b257 commit 92bac04Copy full SHA for 92bac04
1 file changed
src/MPIOperator/mpioperator.jl
@@ -58,8 +58,12 @@ end
58
@forward_astype MPIOperator.parent MPSKit.remove_orphans!
59
@forward_1 MPIOperator.parent MPSKit._fuse_mpo_mpo
60
61
-MPSKit.OperatorStyle(::MPIOperator{O}) where {O} = MPSKit.OperatorStyle(O)
62
-MPSKit.GeometryStyle(::MPIOperator{O}) where {O} = MPSKit.GeometryStyle(O)
+if isdefined(MPSKit, :OperatorStyle)
+ MPSKit.OperatorStyle(::MPIOperator{O}) where {O} = MPSKit.OperatorStyle(O)
63
+end
64
+if isdefined(MPSKit, :GeometryStyle)
65
+ MPSKit.GeometryStyle(::MPIOperator{O}) where {O} = MPSKit.GeometryStyle(O)
66
67
68
# ---------------------- MPSKit MPO constructor ------------------------
69
function MPIOperator(
0 commit comments