Closed yessenov closed 8 years ago
This is definitely a limitation of the built-in Spin.Test
routine. It decides when to output based on when the little graphic ("...." in your listing) changes (or at least 10 seconds have gone by). The best thing to do is to create your own instance of the Spin
class and then you can single step your way through, dumping any information as you go using Spin.Step
. You can then use Spin.EnergyExpectation
, spin.Ket.Entropy
and Qubit.Prob1
to get various statistics.
Is it possible to get the code of the Spin.Test
function so it will be easier to create another instance of Spin
class?
Thank you in advance!
I've crafted a small stand-alone example just fot this purpose and added it to UserCode/DaveWecker/SpinTest.fsx
. I think it will show you everything you need to do. Here is the entry in the ReadMe.md file
:
We've had a couple of requests to see an example of how Spin.Test() is implemented. This file contains a complete stand-alone version (simply called Test()
) that is called from the command line with Ferro()
. This will run one of the built-in examples (__Ferro()
) with a frustrated ferromagnetic chain (one end up and the other down).
You can compile and run the sample with: \Liquid\bin\Liquid.exe /s SpinTest.fsx Ferro()
Dear LIQUi|> Team, I am working on simulation of Quantum Ising model using LIQUi|>, which has almost the same Hamitonian as a Spin-Glass model given in the Samples. But as a result I have to plot [ versus Λ(t)/Γ(t)] and [Sx versus Λ(t)/Γ(t)] with different configuration of Λ(t)/Γ(t)]. I encountered with the following problem: I can not extract whole data. Output gives only for few time:
1) So how can we get whole data? 2) How can we plot a graph? Thanks for any help!