Git Product home page Git Product logo

Comments (3)

denis-bz avatar denis-bz commented on July 28, 2024 1

Hi Miša
looks like a macos 10.10 problem, closing -- mttiw, more trouble than it's worth.

An unrelated question, model.hamiltonian seems to be always np.float32, is that intentional ?
It makes quite a difference, check |AV - VΛ|_max

from pybinding.

MAndelkovic avatar MAndelkovic commented on July 28, 2024

Hey Denis,

This indeed sounds like something that can be related to the scipy issue you pointed to. Do the suggestions in the comments help to resolve this issue?

The latest release was tested on macos 10.11, with different versions of python (3.6, 3.7, and 3.9).
What you could do is to take a look at the test configs on travis, and try to replicate the environment for example from this run. You can find more info about the scipy version bellow line 282.

conda install cmake numpy scipy matplotlib in your good install doc
didn't help -- how does that differ from just
pip install numpy scipy matplotlib pybinding ?

the two would install packages from different repositories, so even if you would specify the same version, you would install a different package.

from pybinding.

MAndelkovic avatar MAndelkovic commented on July 28, 2024

Hi Denis,

By default the precision is float. If there are no modifiers that would require different type of Hamiltonian, it will stay like that (e.g. adding magnetic field will promote to complex).

On the other hand you can choose (force) higher precision by adding some of the predefined modifiers whose only purpose is to promote the precision. You can see more here

import pybinding as pb
from pybinding.repository import graphene

model_float = pb.Model(
    graphene.monolayer_4atom(),
)
print(model_float.hamiltonian.dtype)

model_double = pb.Model(
    graphene.monolayer_4atom(),
    pb.force_double_precision()
)
print(model_double.hamiltonian.dtype)

from pybinding.

Related Issues (20)

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.