Quantum toolbox in Matlab
이전 댓글 표시
Hi,
I noticed that there is a fresh Quantum Toolbox since Matlab 2014b. Is there any introduction or manual to this toolbox? I am a quantum physics theorist, have developed some packages for simulating quantum systems, and would like to know what Mathworks is doing on this toolbox. Could it be an open-source project from Mathworks?
Thanks,
Qi
채택된 답변
추가 답변 (2개)
Mohammed Al-Mahammedi
2021년 12월 4일
0 개 추천
CZ gate in matlab
댓글 수: 3
Mohammed Al-Mahammedi
2021년 12월 4일
swap gate in matlab
Thanks for help
Mohammed Al-Mahammedi
2021년 12월 4일
이동: Steven Lord
2023년 11월 29일
Walter Roberson
2021년 12월 4일
이동: Steven Lord
2023년 11월 29일
Your code has an infinite loop.
Your swap.m has
function [] = swap(i, j)
and then some logic that does not include a return statement. Then it has
% operate on the state vector with V
qc_v = V * qc_v;
swap (0,1);
measure (0,0);
measure (1,1);
but you are inside of swap() already, so that call to swap(0,1) would be a recursive call. That would lead to infinite recursion. You can only have a function call itself if the function does not always call itself: it must be able to detect that it has finished the work and return without having called itself.
idris
2023년 12월 20일
0 개 추천
I think it appears mathworks is not focused on quantum
카테고리
도움말 센터 및 File Exchange에서 Quantum Mechanics에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!