Tensorkrowch

Latest version: v1.1.6

Safety actively analyzes 701215 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.1.6

This relase fixes some minor bugs, and adds:

1. Embedding `fourier`.
2. Decomposition `tt_rss`: Tensor Train via Recursive Sketching from Samples.

1.1.5

This release fixes several bugs:

1. Bug in `set_tensor_from`: When inheriting the dict of a `node_ref`, the dict wasn’t copied but rather referenced, which caused some misbehaviors.
2. `norm` of `MPS` with the `log_scale` option: The norm wasn’t accumulated in log-scale as intended.
3. `partial_density` renamed to `reduced_density`: This name change reflects the intended terminology from the beginning.

1.1.4

This release adds support for complex dtype:

1. `dtype` can now be specified in most functions involving creation of nodes.
2. New operation `conj` is added to conjugate complex nodes.
3. When contracting `MPS` marginalizing output, the copied `MPS` nodes are conjugated if these have complex type. The same happens when computing the `norm`.
4. Methods `is_conj`, `is_complex` and `is_floating_point` are added.
5. Error when `splitting` a complex node has been fixed.

1.1.3

This release fixes a bug regarding saving and loading MPS/MPO models:

1. `update_bond_dim` now updates also the bond dimension of `left_node` and `right_node`.
2. `update_bond_dim` is called from `canonicalize`, `canonicalize_univocal` and `entropy`.
3. `change_size` of edges now extends or crops tensors at the beggining, instead of at the end of each dimension.

With this, if one saves the `state_dict` of `MPS/MPO` models after calling `update_bond_dim` (or methods like `canonicalize`), the model can be re-load by instantiating a model with the bond dimension equal to the bond dimension of the saved model, and loading its `state_dict`.

1.1.2

This release fixes some things regarding the new features added in releases v1.1.0 and v1.1.1:

1. Add `log_scale` argument to `norm` of `MPS`, to return the norm in logarithmic scale.
2. Allow to apply `renormalize` to `StackNodes`, returning also `StackNodes`.
3. Add `tensors` method to `MPS` and `MPO`, to recover the list of all their tensors.
4. Add `update_bond_dim` to update the bond dim of `MPS` and `MPO` when this is changed.
5. Remove the need to set `rank` in `canonicalize` of `MPS` and `MPO` when one wants to set as rank the previous `bond_dim`.
6. Fix renormalization factors in `canonicalize` and `entropy`.

Also, we have added a new section with example notebooks, and an automated test workflow.

1.1.1

This release solves many bugs of release v1.1.0, and adds some new features that should have been in v1.1.0:

1. Change `unit` initialization of `MPS` by `canonical`, and add a new `unit` initialization.
2. Add operation `div`.
3. Add operation `renormalize`.
4. Add argument `renormalize` in `contract` and `partial_density` of `MPS`. Also in `contract` of `MPO`.
5. Change `mi` by `entropy` in `MPS`.
6. Add `canonicalize` to MPO.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.