65c6252f8b- Update to 1.10.0: * Breaking Changes + renamed MatrixProductState.partial_trace and MatrixProductState.ptr to MatrixProductState.partial_trace_to_mpo to avoid confusion with other partial_trace methods that usually produce a dense matrix. * Enhancements: + tensor network fitting: add method="tree" for when ansatz is a tree - tensor_network_fit_tree + tensor network fitting: fix method="als" for complex networks + tensor network fitting: allow method="als" to use a iterative solver suited to much larger tensors, by default a custom conjugate gradient implementation. + tensor_network_distance and fitting: support hyper indices explicitly via output_inds kwarg + add tn.make_overlap and tn.overlap for computing the overlap between two tensor networks, ⟨ O | T ⟩ , with explicit handling of outer indices to address hyper networks. Add output_inds to tn.norm and tn.make_norm also, as well as the squared kwarg. + replace all numba based paralellism (prange and parallel vectorize) with explicit thread pool based parallelism. Should be more reliable and no need to set NUMBA_NUM_THREADS anymore. Remove env var QUIMB_NUMBA_PAR. + Circuit: add dtype and convert_eager options. dtype specifies what the computation should be performed in. convert_eager specifies whether to apply this (and any to_backend calls) as soon as gates are applied (the default for MPS circuit simulation) or just prior to contraction (the default for exact contraction simulation). + tn.full_simplify: add check_zero (by default set of "auto") option which explicitly checks for zero tensor norms when equalizing norms to avoid log10(norm) resulting in -inf or nan. Since it creates a data
devel
Steve Kowalik
2025-02-26 03:56:17 +00:00
0510d55fbeAccepting request 1202831 from devel:languages:python:numeric
Ana Guerrero
2024-09-24 15:33:58 +00:00
3bb2fa5cfd- Switch to testing in multibuild: The obs runtime requirement resolver deals with numba/numpy blockage more gracefully than trying to resolve a BuildRequires on them. Numba 0.60 is restricted to Numpy < 2.1 right now. * Update requirementsMarkéta Machová2024-09-24 08:46:49 +00:00
7665e27f2eAccepting request 1198064 from devel:languages:python:numeric
Dominique Leuenberger
2024-09-02 11:14:35 +00:00
332349d070- update to 1.8.4: * support for numpy v2.0 and scipy v1.14 * add MPS sampling: MatrixProductState.sample_configuration and MatrixProductState.sample (generating multiple samples) and use these for CircuitMPS.sample and CircuitPermMPS.sample. * add basic .plot() method for SimpleUpdate classes * add edges_1d_chain for generating 1D chain edges * operatorbuilder: better coefficient placement for long range MPO building * TNOptimizer can now accept an arbitrary pytree (nested combination of dicts, lists, tuples, etc. with TensorNetwork, Tensor or raw array_like objects as the leaves) as the target object to optimize. * TNOptimizer can now directly optimize Circuit objects, returning a new optimized circuit with updated parameters. * Circuit: add .copy(), .get_params() and .set_params() interface methods. * Update generic TN optimizer docs. * add tn.gen_inds_loops for generating all loops of indices in a TN. * add tn.gen_inds_connected for generating all connected sets of indices in a TN. * make SVD fallback error catching more generic ({pull}#238) * fix some windows + numba CI issues. * approx_spectral_function add plotting and tracking * add dispatching to various tensor primitives to allow overriding * CircuitMPS now supports multi qubit gates, including arbitrary multi-controls (which are treated in a low-rankDirk Mueller2024-08-31 12:22:30 +00:00
be6860b4fcAccepting request 1153130 from devel:languages:python:numeric
Dominique Leuenberger
2024-03-01 22:36:15 +00:00
af919b099eAccepting request 1152767 from home:bnavigator:branches:devel:languages:python:numericMatej Cepl2024-02-29 09:04:24 +00:00
5010a2e251Accepting request 1090173 from devel:languages:python:numeric
Dominique Leuenberger
2023-06-07 21:06:35 +00:00
4b5806f089- Numba now exists for Python 3.11, stop skipping it.
Steve Kowalik
2023-06-01 07:31:53 +00:00
6029913884Accepting request 1074164 from devel:languages:python:numeric
Dominique Leuenberger
2023-03-25 17:55:29 +00:00
782a131be7Accepting request 1073907 from home:bnavigator:branches:devel:languages:python:numericDirk Mueller2023-03-24 12:18:01 +00:00
b4222e0c96Accepting request 1062607 from devel:languages:python:numeric
Dominique Leuenberger
2023-02-02 17:08:59 +00:00
122d3195d4- upgrade opt-einsum to requires as it is imported by tensor/ unconditionallyDirk Mueller2023-02-02 09:37:36 +00:00
012e2b1738Accepting request 1061576 from devel:languages:python:numeric
Dominique Leuenberger
2023-01-28 17:44:13 +00:00
8cca3f8a82Accepting request 1061175 from home:bnavigator:branches:devel:languages:python:numericMatej Cepl2023-01-27 15:01:00 +00:00
10f3ad8796Accepting request 869859 from devel:languages:python:numeric
Dominique Leuenberger
2021-02-07 14:20:50 +00:00
79ace239e5Accepting request 869846 from home:bnavigator:branches:devel:languages:python:numericMatej Cepl2021-02-05 23:10:51 +00:00
28d968f4efAccepting request 869587 from home:bnavigator:branches:devel:languages:python:numericMatej Cepl2021-02-04 23:42:25 +00:00
444093210bAccepting request 864286 from devel:languages:python:numeric
Dominique Leuenberger
2021-01-19 15:03:25 +00:00
b0555a2c10Accepting request 864278 from home:andythe_greatMatej Cepl2021-01-19 10:48:45 +00:00
8013de7818Accepting request 839729 from devel:languages:python:numeric
Dominique Leuenberger
2020-10-06 15:13:03 +00:00
a1b45cbc37Accepting request 828642 from home:andythe_greatMatej Cepl2020-08-22 07:31:08 +00:00
52f8ca7606Accepting request 828337 from home:andythe_greatMatej Cepl2020-08-21 14:37:43 +00:00