Coder Social home page Coder Social logo

Comments (5)

mganahl avatar mganahl commented on May 25, 2024

@crawlingcub thanks for the message!

The reason the tests fail is because thesymmetric svd decomposition behaves a bit strangely: if max_truncation_error is chosen so large that all singular values would be truncated then instead of truncating all of them it leaves the largest one.

I'll change it to actually perform the full truncation.

You are mentioning that this happens for test-parameters [3-float64] and [4-complex128]. The first number here is the number of distinct charge-types. Out of curiosity, did you change the pytest parameters for the tests? In our test we are only going up to 3 distinct charge types.

from tensornetwork.

crawlingcub avatar crawlingcub commented on May 25, 2024

Hi, @mganahl ,thanks for the response!

The reason the tests fail is because thesymmetric svd decomposition behaves a bit strangely: if max_truncation_error is chosen so large that all singular values would be truncated then instead of truncating all of them it leaves the largest one.

I see. Would you then call this a bug in the implementation?

You are mentioning that this happens for test-parameters [3-float64] and [4-complex128]. The first number here is the number of distinct charge-types.

My bad, it should be [3-float64] and [3-complex128].

Also, do you think that the seed setting can now be removed?

from tensornetwork.

crawlingcub avatar crawlingcub commented on May 25, 2024

I also found some other tests which have similar behavior. I can send them, if you are interested! Thanks!

from tensornetwork.

mganahl avatar mganahl commented on May 25, 2024

I wouldn't call it a bug, since this was intentional behaviour.
In general we prefer to seed tests for ease of reproducability. I changed the test though to run a bunch of different seed values, just to make sure

from tensornetwork.

mganahl avatar mganahl commented on May 25, 2024

Feel free to post any other tests or use-cases with similar issues. We can look at them and decide if they need to be updated.

from tensornetwork.

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.