Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 55171

Questions on the manipulation of List objects in Mathematica, and the functions used for these manipulations.

0 votes
0 answers
62 views

Normalising parts in a list

I have a list of lists of coordinates that I'm using to make a density plot. A simplified version of this list would be something like list={{{0,1},{1,2},{2,3},{3,4}},{{3,2},{2,3},{1,4},{0,5}},{{3,1} …
JJH's user avatar
  • 197
5 votes
7 answers
436 views

How to count elements of lists within lists

If I have some list of lists of coordinates, i.e. list={{{0,1},{1,2},{2,3},{3,4}},{{3,2},{2,3},{1,4},{0,5}},{{3,1},{2,2},{2,4},{3,5}}} how can I count how many of the y coordinates in each of the l …
JJH's user avatar
  • 197
1 vote
2 answers
2k views

How to apply a partial transpose to a list of matrices

If I start with some 4x4 input matrix $\rho= \begin{pmatrix} 0&0&0&0\\ 0&1&0&0\\ 0&0&0&0\\ 0&0&0&0 \end{pmatrix} $ and evolve this according to the unitary evolution operator $U=e^{-iHt}$ where $H …
JJH's user avatar
  • 197
1 vote
2 answers
54 views

Storing one of two outputs of For loop

I have a set of data: Rawdata={-0.462475, -0.477504, -0.393686, -0.217328, 0.105685, 0.443379, 0.627285, 0.534236, 0.165977, -0.296604, -0.432765, 0.0851257, 0.136757, 0.0293745, -0.411645, -0.322851 …
JJH's user avatar
  • 197
0 votes
1 answer
59 views

How can I apply a matrix manipulation operation to each matrix in a list? [closed]

I have a list of matrices generated by the code HZ = (0.03/4)*(KroneckerProduct[PauliMatrix[1], PauliMatrix[1]] + KroneckerProduct[PauliMatrix[2], PauliMatrix[2]] + KroneckerProduct[PauliMatrix[3 …
JJH's user avatar
  • 197