GithubHelp home page GithubHelp logo

Comments (5)

jarrodmcc avatar jarrodmcc commented on July 20, 2024

This particular example seems to converge relatively fast (and correctly) in both cases for me. To get to the root of this problem, can you tell me if eigsh work for you in other circumstances? For example on just a simple 4x4 matrix? If you watch your resources, are you running out of memory when you get the SIGSEGV error?

from openfermion.

babbush avatar babbush commented on July 20, 2024

This example runs just fine for me as well. Which version of OpenFermion are you running? What about your scipy version?

from openfermion.

Konjkov avatar Konjkov commented on July 20, 2024

Hello Jarrod, Ryan
I have scipy version 1.0.0 and eigsh never work fine for me even in _hydrogen_integration_test.py or _lih_integration_test.py where eigsh is used in get_ground_state() function
Openfermion is latest from master (2 march commit)

best vladimir

from openfermion.

jarrodmcc avatar jarrodmcc commented on July 20, 2024

Hi Vladimir
It sounds like the test is failing at the level of ARPACK. If your python distribution was self-contained you may want to reinstall scipy and/or numpy. If it's linking to existing linear algebra packages or ARPACK, you may need to reinstall those and ensure they are working.

from openfermion.

Konjkov avatar Konjkov commented on July 20, 2024

Hi Jarrod
I created a simpler test that reproduces an issue on my computer

#!/usr/bin/env python3
import numpy as np
from scipy.sparse.linalg import eigsh

m = np.matrix(
[[-2.77555756e-17+0.j,  0.00000000e+00+0.j,  0.00000000e+00+0.j,   0.00000000e+00+0.j],
 [ 0.00000000e+00+0.j, -4.66581850e-01+0.j,  0.00000000e+00+0.j,   0.00000000e+00+0.j],
 [ 0.00000000e+00+0.j,  0.00000000e+00+0.j, -1.58557755e-01+0.j,   0.00000000e+00+0.j],
 [ 0.00000000e+00+0.j,  0.00000000e+00+0.j,  0.00000000e+00+0.j,  -4.66581850e-01+0.j]]
)
energy, state = eigsh(m, 2, which='SA', maxiter=1e7)

I think I need to write to scipy tech support, sorry.

from openfermion.

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.