Skip to content

Commit

Permalink
JET fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
apkille committed Jun 27, 2024
1 parent 871b1c3 commit 343108b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/QSymbolicsBase/predefined_CPTP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ julia> K*ρ
end
isexpr(::KrausRepr) = true
iscall(::KrausRepr) = true
arguments(x::KrausRepr) = [sop, x.krausops]
arguments(x::KrausRepr) = [x.sop, x.krausops]
operation(x::KrausRepr) = kraus
head(x::KrausRepr) = :kraus
children(x::KrausRepr) = [:kraus, sop, x.krausops]
children(x::KrausRepr) = [:kraus, x.sop, x.krausops]

Check warning on line 79 in src/QSymbolicsBase/predefined_CPTP.jl

View check run for this annotation

Codecov / codecov/patch

src/QSymbolicsBase/predefined_CPTP.jl#L74-L79

Added lines #L74 - L79 were not covered by tests
kraus(s::Symbolic{AbstractSuperOperator}, xs::Symbolic{AbstractOperator}...) = KrausRepr(s,collect(xs))
symbollabel(x::KrausRepr) = symbollabel(x.sop)
basis(x::KrausRepr) = basis(x.sop)

Check warning on line 82 in src/QSymbolicsBase/predefined_CPTP.jl

View check run for this annotation

Codecov / codecov/patch

src/QSymbolicsBase/predefined_CPTP.jl#L81-L82

Added lines #L81 - L82 were not covered by tests
Expand Down
2 changes: 1 addition & 1 deletion src/QSymbolicsBase/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ end
# Flattening expressions
RULES_FLATTEN = [
@rule(~x::isnotflat_precheck() => flatten_term(, ~x)),
@rule (~~xs::hasscalings) => prefactorscalings_rule(xs)
@rule (~~xs::hasscalings) => prefactorscalings_rule(~~xs)
]

# Pauli identities
Expand Down

0 comments on commit 343108b

Please sign in to comment.