• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

iitis / QuantumInformation.jl / 4861562192

pending completion
4861562192

Pull #103

github

GitHub
Merge c09ac658c into 7644f36f9
Pull Request #103: Bloch vector

6 of 6 new or added lines in 1 file covered. (100.0%)

546 of 723 relevant lines covered (75.52%)

64.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/channels/io.jl
1
################################################################################
2
# Channels printing
3
################################################################################
4
function Base.show(io::IO, Φ::AbstractQuantumOperation{<:Matrix{<:Number}})
×
5
    println(io, typeof(Φ))
×
6
    println(io, "    dimensions: ($(Φ.idim), $(Φ.odim))")
×
7
    if :matrix in fieldnames(typeof(Φ))
×
8
        print(io, "    ")
×
9
        print(io, Φ.matrix)
×
10
    end
11
    if :matrices in fieldnames(typeof(Φ))
×
12
        for (i,m) in enumerate(Φ.matrices)
×
13
            print(io, "    ")
×
14
            print(io, m)
×
15
            if i < length(Φ.matrices) println(io, "") end
×
16
        end
×
17
    end
18
end
19
# Base.show(io::IO, m::MIME"text/plain", Φ::AbstractQuantumOperation{<:Matrix{<:Number}}) = show(io, m, Φ)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc