Creates a handle that watches either marginal probability or walker entanglement during propagation.
Parameters: |
|
---|---|
Keyword Arguments: | |
: If ``watchtype=’entanglement’``, EigSolver keywords can also be passed; – for more details of the available EigSolver properties, see propagate(). |
|
Returns: | : * if watchtype='prob', creates a handle that can be accessed to retrieve marginal node probabilities for various \(t\) * if watchtype='entanglment', creates a handle that can be accessed to retrieve entanglement values for various \(t\) |
Return type: |
|
Examples
>>> walk.watch(None,watchtype='entanglement')
>>> walk.propagate(5.,method='chebyshev')
>>> timeArray, entArray = walk.entanglementHandle.getEntanglement()
Note
>>> walk.watch([0,1,4])
>>> walk.propagate(2.,method='chebyshev')
>>>timeArray, probXArray, probYArray = self.handle.getLocalNode(0,p=2)
Warning
Note that walk.handle attributes are not collective; if running on multiple nodes, only local values will be returned.