Skip to content

Fix issue #59 pre-defined bosonic channels #109

Open
abhimanyuiitk22 wants to merge 5 commits intoQuantumSavory:mainfrom
abhimanyuiitk22:fix-issue-#59
Open

Fix issue #59 pre-defined bosonic channels #109
abhimanyuiitk22 wants to merge 5 commits intoQuantumSavory:mainfrom
abhimanyuiitk22:fix-issue-#59

Conversation

@abhimanyuiitk22
Copy link
Copy Markdown

Hi,
I have implemented a classical noise channel and a thermal channel from ref https://arxiv.org/pdf/quant-ph/0505151 sec 2.2.

@apkille and @Krastanov, whenever you have time, could you please review it and let me know if any changes are needed?

Thanks

@github-actions
Copy link
Copy Markdown
Contributor

Benchmark Results (Julia v1)

Time benchmarks
main ef05243... main / ef05243...
operations/channel product/10 4.61 ± 0.67 μs 4.48 ± 0.72 μs 1.03 ± 0.22
operations/channel product/100 0.758 ± 0.11 ms 0.772 ± 0.044 ms 0.982 ± 0.15
operations/channel product/2 1.23 ± 0.06 μs 1.11 ± 0.09 μs 1.11 ± 0.1
operations/channel product/200 3.82 ± 1.1 ms 3.82 ± 0.47 ms 1 ± 0.31
operations/channel product/50 0.252 ± 0.016 ms 0.25 ± 0.015 ms 1.01 ± 0.087
operations/partial trace/10 1.25 ± 0.18 μs 1.17 ± 0.19 μs 1.07 ± 0.23
operations/partial trace/100 9.68 ± 1.3 μs 9.72 ± 2.5 μs 0.995 ± 0.29
operations/partial trace/2 0.942 ± 0.061 μs 0.852 ± 0.059 μs 1.11 ± 0.1
operations/partial trace/200 22.1 ± 2.7 μs 30.2 ± 3.3 μs 0.731 ± 0.12
operations/partial trace/50 4.98 ± 1.2 μs 4.45 ± 0.88 μs 1.12 ± 0.35
operations/tensor product/10 1.98 ± 0.61 μs 1.9 ± 0.59 μs 1.04 ± 0.46
operations/tensor product/100 0.127 ± 0.019 ms 0.13 ± 0.015 ms 0.975 ± 0.18
operations/tensor product/2 0.862 ± 0.031 μs 0.781 ± 0.03 μs 1.1 ± 0.058
operations/tensor product/200 0.8 ± 0.25 ms 0.745 ± 0.08 ms 1.07 ± 0.35
operations/tensor product/50 26.2 ± 3.8 μs 25.5 ± 2.6 μs 1.03 ± 0.18
operations/unitary product/10 3.72 ± 0.45 μs 3.79 ± 0.48 μs 0.982 ± 0.17
operations/unitary product/100 0.721 ± 0.03 ms 0.73 ± 0.025 ms 0.987 ± 0.053
operations/unitary product/2 1.14 ± 0.05 μs 1.05 ± 0.05 μs 1.09 ± 0.07
operations/unitary product/200 3.74 ± 0.12 ms 3.73 ± 0.18 ms 1 ± 0.059
operations/unitary product/50 0.232 ± 0.011 ms 0.233 ± 0.011 ms 0.995 ± 0.066
time_to_load 0.216 ± 0.0012 s 0.222 ± 0.0021 s 0.974 ± 0.011
Memory benchmarks
main ef05243... main / ef05243...
operations/channel product/10 17 allocs: 10.2 kB 17 allocs: 10.2 kB 1
operations/channel product/100 17 allocs: 0.919 MB 17 allocs: 0.919 MB 1
operations/channel product/2 14 allocs: 0.891 kB 14 allocs: 0.891 kB 1
operations/channel product/200 19 allocs: 3.67 MB 19 allocs: 3.67 MB 1
operations/channel product/50 17 allocs: 0.231 MB 17 allocs: 0.231 MB 1
operations/partial trace/10 14 allocs: 0.672 kB 14 allocs: 0.672 kB 1
operations/partial trace/100 15 allocs: 2.79 kB 15 allocs: 2.79 kB 1
operations/partial trace/2 14 allocs: 0.672 kB 14 allocs: 0.672 kB 1
operations/partial trace/200 15 allocs: 5.04 kB 15 allocs: 5.04 kB 1
operations/partial trace/50 14 allocs: 1.69 kB 14 allocs: 1.69 kB 1
operations/tensor product/10 9 allocs: 13.1 kB 9 allocs: 13.1 kB 1
operations/tensor product/100 10 allocs: 1.22 MB 10 allocs: 1.22 MB 1
operations/tensor product/2 8 allocs: 0.797 kB 8 allocs: 0.797 kB 1
operations/tensor product/200 10 allocs: 4.89 MB 10 allocs: 4.89 MB 1
operations/tensor product/50 9 allocs: 0.307 MB 9 allocs: 0.307 MB 1
operations/unitary product/10 14 allocs: 6.95 kB 14 allocs: 6.95 kB 1
operations/unitary product/100 14 allocs: 0.614 MB 14 allocs: 0.614 MB 1
operations/unitary product/2 12 allocs: 0.688 kB 12 allocs: 0.688 kB 1
operations/unitary product/200 16 allocs: 2.45 MB 16 allocs: 2.45 MB 1
operations/unitary product/50 14 allocs: 0.155 MB 14 allocs: 0.155 MB 1
time_to_load 0.145 k allocs: 11 kB 0.145 k allocs: 11 kB 1

@apkille apkille self-requested a review March 26, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant