Closed jcmgray closed 1 year ago
@mofeing, this was my attempt to generalize #150 a bit. I.e. provide a standard interface for packing and unpacking Tensor
and TensorNetwork
objects. Let me know if for some reason it doesn't capture the same behavior.
I'm now running into an error within opt_einsum
with these changes. More specifically inside the contract_path
function at https://github.com/dgasmith/opt_einsum/blob/7c8f193f90b6771a6b3065bb5cf6ec2747af8209/opt_einsum/contract.py#L284-L287
Looks like the size of some label changes.
Hmm thanks, do you have a small snippet to reproduce? It's not come from loading/saving a TN across commits e.g.?
I'm gonna merge this as I think it fixes a problem with the previous jax registration (trying to register Tensor
multiple times), and I can't see any obvious way it should break contractions.. but of course let me know if you can come up with a reproducible error.
I don't know what changed but the error is gone, so great!
Could you do me a favour and publish this version as 1.4.1? This way we can properly set the dependency in our code.
Codecov Report
36.58% <36.58%> (ø)
69.62% <59.09%> (+40.31%)
83.93% <71.42%> (+20.52%)
100.00% <100.00%> (ø)
31.46% <100.00%> (+12.03%)
0.00% <0.00%> (ø)
96.92% <0.00%> (+0.02%)
84.83% <0.00%> (+0.36%)
98.42% <0.00%> (+0.52%)
97.86% <0.00%> (+0.97%)
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more