Azzera filtri
Azzera filtri

Quantum toolbox in Matlab

44 visualizzazioni (ultimi 30 giorni)
Xiaodong il 16 Apr 2015
Risposto: idris il 20 Dic 2023
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?

Risposta accettata

Philip Caplan
Philip Caplan il 17 Apr 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:
  2 Commenti
Xiaodong il 18 Apr 2015
You could be right. When I run ver in matlab, I got
Quantum Toolbox Version 0.10
That could be the QOToolbox I have installed by myself many years ago. It may not be from MathWorks. Sorry for the confusing.
Noah Prisament
Noah Prisament il 28 Nov 2023
MathWorks now has a Quantum Computing Support Package! You can check out and download the support package here: (or through Add-On Explorer) and you can look further into its capabilities here:

Accedi per commentare.

Più risposte (2)

Mohammed Al-Mahammedi
Mohammed Al-Mahammedi il 4 Dic 2021
CZ gate in matlab
  3 Commenti
Mohammed Al-Mahammedi
Mohammed Al-Mahammedi il 4 Dic 2021
Spostato: Steven Lord il 29 Nov 2023
these code i like to help
Walter Roberson
Walter Roberson il 4 Dic 2021
Spostato: Steven Lord il 29 Nov 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.

Accedi per commentare.

idris il 20 Dic 2023
I think it appears mathworks is not focused on quantum


Scopri di più su Quantum Mechanics in Help Center e File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by