Skip to content

Commit

Permalink
codereview suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed Nov 3, 2024
1 parent f17cba0 commit c10ccd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nonclifford.jl
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ struct UnitaryPauliChannel{T,S,P} <: AbstractPauliChannel
end

PauliChannel(p::UnitaryPauliChannel) = p.paulichannel
Base.copy(p::UnitaryPauliChannel) = deepcopy(p)
Base.:(==)(p₁::UnitaryPauliChannel, p₂::UnitaryPauliChannel) = p₁.paulis==p₂.paulis && p₁.weights==p₂.weights && p₁.paulichannel==p₂.paulichannel
Base.copy(p::UnitaryPauliChannel) = UnitaryPauliChannel(p.paulis, p.weights)
Base.:(==)(p₁::UnitaryPauliChannel, p₂::UnitaryPauliChannel) = p₁.paulis==p₂.paulis && p₁.weights==p₂.weights

function Base.show(io::IO, pc::UnitaryPauliChannel)
println(io, "A unitary Pauli channel P = ∑ ϕᵢ Pᵢ with the following branches:")
Expand Down

0 comments on commit c10ccd1

Please sign in to comment.