Quantum toolbox in Matlab
29 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Xiaodong
el 16 de Abr. de 2015
Respondida: idris
el 20 de Dic. de 2023
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
0 comentarios
Respuesta aceptada
Philip Caplan
el 17 de Abr. de 2015
Which Quantum Toolbox are you referring to? MathWorks is not currently developing a Quantum Toolbox. Perhaps you are referring to a third-party package such as: http://qo.phy.auckland.ac.nz/toolbox/
2 comentarios
Noah Prisament
el 28 de Nov. de 2023
MathWorks now has a Quantum Computing Support Package! You can check out and download the support package here: https://www.mathworks.com/matlabcentral/fileexchange/125425-matlab-support-package-for-quantum-computing (or through Add-On Explorer) and you can look further into its capabilities here: https://www.mathworks.com/help/matlab/quantum-computing.html.
Más respuestas (2)
Mohammed Al-Mahammedi
el 4 de Dic. de 2021
CZ gate in matlab
3 comentarios
Mohammed Al-Mahammedi
el 4 de Dic. de 2021
Movida: Steven Lord
el 29 de Nov. de 2023
Walter Roberson
el 4 de Dic. de 2021
Movida: Steven Lord
el 29 de Nov. de 2023
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.
Ver también
Categorías
Más información sobre Quantum Mechanics en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!