Comments (5)
@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.
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.
I also found some other tests which have similar behavior. I can send them, if you are interested! Thanks!
from tensornetwork.
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.
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)
- Flaky test (always fails) when seeds are removed HOT 1
- Test `test_gmres_on_larger_random_problem` fails without seeds
- symmetric backend very slow for PEPS tensors HOT 4
- Home Network
- lack sqrt operation in tensornetwork/matrixproductstates/infinite_mps.py
- TensorNetwork backend for QuTiP. HOT 2
- Bug for numpy backend ``sum`` method HOT 3
- SVD on jax backend and thus ``split_node`` cannot be jitted when ``max_truncation_err`` is set
- Bug of setting `center_position` in `apply_two_site_gate` when there's no truncation
- Quantum hardware system integration with TensorNetwork
- Missing code for TensorNetwork Machine Learning HOT 1
- `backend.item` in MPS calculation is incompatible with autograd in jax HOT 2
- The lack of tensor-train RNNs for latest tf/keras HOT 1
- Parallelism Contractors HOT 1
- Question: Vector to FiniteMPS?
- Is there a simple way to multiply a scalar to the tensor values of a node that is part of a network of tensors? HOT 2
- Maintenance of this repository HOT 3
- Tensor
- Pf
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensornetwork.