All Questions
52
questions
1
vote
0
answers
97
views
Computing eigenvalues and eigenvectors of large matrix and scaling of data
I am trying to plot graphs 1(a1,b1,c1) from https://arxiv.org/pdf/2404.14971 by solving Eq.1. This gives a matrix. For the energy plot, we have to find the lowest 2 eigenvalues and find the difference ...
2
votes
2
answers
141
views
How to solve a matrix differential equation $\frac{d X}{dt} = i(X Y- Y^\dagger X)$?
In eq (21) on page-5 of this article, we have matrix
HEP = (\[Omega]/2)*{{-2*I, 1}, {1, 0}};
and I am interested in finding matrix ...
1
vote
0
answers
83
views
How to decrease the computation timing while using NIntegrate?
I'm trying to calculate the $A$ and $F$ values by using this code,
...
4
votes
1
answer
109
views
Building projection operators efficiently
The projection operator $P$ is defined in quantum mechanics as $$
P=\sum_i^n \vert\psi_i\rangle \langle \psi_i\vert, $$
where $\vert\psi_i\rangle$ is a column vector and $(\langle
\psi_i\vert=(\...
1
vote
1
answer
110
views
Linearizing equations of motion
I am given the equations of motion:
$$\dot{r} = f(r)p_r,$$
$$\dot{p_r} = -\frac{V'(r)}{2f(r)}-\frac{f'(r){p_r}^2}{2}+\frac{V(r)-E^2}{2f^2(r)}f'(r)$$
Along with the conditions that $$E^2-V(r_0)=V'(r_0)=...
6
votes
1
answer
129
views
"Information about the undocumented function Internal`DiracGammaMatrix"
Searching for information on undocumented functions here, I found that there are no references about the use of the undocumented function Internal`DiracGammaMatrix.
Does anyone in the community have ...
2
votes
0
answers
37
views
Simulation of Quantum pseudo-telepathy
I would like to mathematically simulate Quantum pseudo-telepathy on The magic square game from Wikipedia.
In section Pseudo-telepathic strategies we can read:
The trick is for Alice and Bob to share ...
2
votes
1
answer
371
views
Decomposing Hamiltonian in terms of Pauli strings
Does anyone know of a native Mathematica function or a package that allows one to decompose an arbitrary Hamiltonian into Pauli strings? There are a few packages for Python that do this (e.g., one ...
1
vote
1
answer
92
views
How can I expand this code to track two particles instead of one?
I'm attempting to track the position of two particles by recording a .tiff file of their visual movement under a microscope. I use Mathematica to Binarize with a high enough threshold so that only ...
1
vote
1
answer
106
views
Plot The Magnetization
I have a problem with plotting a function M(T).
The matrix is the following:
...
-4
votes
1
answer
117
views
Constructing NxN tridiagonal block diagonal matrix with N is a variable [closed]
Hi please can someone help me writing a program of generating a tridiagonal block matrix with dimension of NxN where N is a variable can be 50, 100, 200, 300...etc , Well I don't know how I'm a ...
3
votes
1
answer
157
views
Calculating power series of quantum operators on kets
I am using the "Quantum" add-on package to perform some quantum mechanical calculations using SU(1,1) generators. The code that I've developed reads
...
1
vote
1
answer
456
views
How to create a matrix with multiple variables defining the elements?
I am a learner start using Mathematica to study quantum mechanics. In many cases, I am try to construct matrix with functions like this:
For example, let f be a function taking 4 variables x1,x2,x3,x4,...
2
votes
1
answer
283
views
How to find the characteristic vibration frequencies of a system with any number of masses and springs using eigendecomposition?
I have created a program to solve any system of three springs and two masses using Mathematica's Eigendecomposition functions.
My goal is to solve a generalization of the spring system presented in ...
0
votes
1
answer
100
views
Define Matrix Function in a For loop
Let $g\in\mathcal R^{3\times 3}$ be a given known rank 2 tensor function, $gInv$ its inverse, and $dg\in\mathcal R^{3\times 3\times 3}$ its gradiant:
...