Giter VIP home page Giter VIP logo

fermionxymodels.jl's Introduction

FermionXYModel.jl

Build status (Github Actions) codecov.io

Quantum XY Model by projecting the spins to spinless fermions.

Reference: Stéphan, J., Misguich, G., & Pasquier, V. (2010). Rényi entropy of a line in two-dimensional Ising models. Physical Review B, 82(12). doi:10.1103/physrevb.82.125455

Installation

using Pkg
Pkg.add("FermionXYModels.jl")

Models

  • FermionXYChain: The quantum XY model as a chain of fermions.

    Arguments:

    • L::Int: The chain length.
    • J::Real: The coupling constant.
    • h::Real: The magnetic field.
    • gamma::Real: The anisotropy constant.
    • start::Symbol: The initial state. Can be one of :rand, :vacuum, :filled
    • parity::Int=-1: Can be -1 or 1.
  • FermionXXChain: The quantum XY model for $\gamma=0$.

  • FermionIsingChain: The quantum XY model for $\gamma=1$.

Iterators

  • FermionBasis: An Iterator over the binary basis of fermion chains. It accepts the following arguments:

    Arguments:

    • n_sites::Int: The number of sites in fermion chain.
    • states::Tuple=(-1, 1): A keyword argument taking the integer representation of filled and unfilled sites.

Correlations and Probabilities

  • correlation_matrix: Calculates the correlation matrix of the chain given by $G_{ij} = \langle a_i^\dagger a_j\rangle$. Has two methods, one takes a FermionXYChain as argument. Other takes the agruments:

    • L::Int: The chain length.
    • J::Real: The coupling constant.
    • h::Real: The magnetic field.
    • gamma::Real: The anisotropy constant.
    • parity::Int=-1: Can be -1 or 1.
    • float_type::Type=Float64: The floating point type (default is Float64, can be BigFloat for greater precision).
  • probability_matrix: Calculates the probability matrix of the chain. The probability of the particular configuration is then given by $\det(P)$ where $P$ is the said matrix. Has two methods, one takes a FermionXYChain as argument. Other takes the agruments:

    • sites::Vector{Int}: The sites of the chain having value -1 for no fermion and 1 for a fermion.
    • L::Int: The chain length.
    • J::Real: The coupling constant.
    • h::Real: The magnetic field.
    • gamma::Real: The anisotropy constant.
    • parity::Int=-1: Can be -1 or 1.
    • float_type::Type=Float64: The floating point type (default is Float64, can be BigFloat for greater precision).

Monte-Carlo Simulation

  • metropolis_update!(model::FermionXYChain): Generates a new configuration for the chain by performing single site updates using acceptance rate $A(P'|P) = \cfrac{P'}{P}$, where $P'$ is the probability of new configuration and $P$ is that of old configuration..
  • equilibrate!(model::FermionXYChain, steps::Int): Equilibrates the chain by performing $N$ updates.

Note: The above methods for monte-carlo sampling are useless from my experience this is probably because single site updates can not capture the transformation from quantum spins to spinless fermions. If anyone knows more about this please inform me by opening an issue

fermionxymodels.jl's People

Contributors

jaydevsr avatar

Stargazers

 avatar

Watchers

 avatar

fermionxymodels.jl's Issues

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.