Advanced Computing Platform for Theoretical Physics

Commit a0bbcfe7 authored by Pengfei Zhou's avatar Pengfei Zhou
Browse files

bp

parent 1a432438
......@@ -102,6 +102,6 @@ if __name__ =='__main__' :
tensor2=torch.triu(tensor2)+torch.triu(tensor2,diagonal=1).t()
mf=MeanField(G,torch.exp(beta*tensor2),beta,'cpu')
fe_bp=mf.BP()
print("free_energy={:.15g}".format(fe_bp.item))
print("free_energy={:.15g}".format(fe_bp.item()))
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment