Caution
The functions available in this submodule have been designed to work with classes in the pyCTQW.MPI module; that is, they are being called implicitly by the above classes, invisible to the user.
It is not recommended that they be used by themselves, however it is possible to do so.
getGraphNodes(adj[, layout]) | Returns arrays containing cartesian coordinates of the nodes/connections contained in the input adjacency matrix. |
plot(x, prob, savefile, t, init_state, d, ...) | Creates a plot of probability vs graph node for a specified time. |
plot2P(x, psiX, psiY, savefile, t, ...) | Creates a plot of probability vs graph node for two probability distributions at a specified time. |
plot3P(x, psiX, psiY, psiZ, savefile, t, ...) | Creates a plot of probability vs graph node for three probability distributions at a specified time. |
plotEntanglement(t, entArray, savefile, ...) | Creates a plot of entanglement vs time. |
plotGraph(ax, pos, lineX, lineY[, prob, ...]) | Creates a plot of probability vs node superimposed on a 3D visualisation of the graph vertices. |
plotNodes(time, nodes, probArray, savefile) | Creates a plot of probability vs time for specified nodes. |
plotNodes2P(time, node, probXArray, ...) | Creates a 2 particle plot of probability vs time for specified nodes. |
plotNodes3P(time, node, probXArray, ...) | Creates a 3 particle plot of probability vs time for specified nodes. |
Returns arrays containing cartesian coordinates of the nodes/connections contained in the input adjacency matrix.
Parameters: |
|
---|---|
Return type: | tuple of arrays |
Important
Requires NetworkX
Example
>>> nodePos, lineX, lineY = pyCTQW.MPI.plots.getGraphNodes(adj,layout='spring')
Creates a plot of probability vs graph node for a specified time.
Parameters: |
|
---|
Warning
Creates a plot of probability vs graph node for two probability distributions at a specified time.
Parameters: |
|
---|
Warning
Creates a plot of probability vs graph node for three probability distributions at a specified time.
Parameters: |
|
---|
Warning
Creates a plot of entanglement vs time.
Parameters: |
|
---|
Warning
Creates a plot of probability vs node superimposed on a 3D visualisation of the graph vertices.
Parameters: |
|
---|---|
Keyword Arguments: | |
|
Important
Creates a plot of probability vs time for specified nodes.
Parameters: |
|
---|
Warning
Creates a 2 particle plot of probability vs time for specified nodes.
Parameters: |
|
---|
Warning
Creates a 3 particle plot of probability vs time for specified nodes.
Parameters: |
|
---|
Warning