Compare commits

...

23 Commits

Author SHA256 Message Date
Dominique Leuenberger
48395f89a9 Accepting request 1248539 from devel:languages:python:numeric
- 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

OBS-URL: https://build.opensuse.org/request/show/1248539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-quimb?expand=0&rev=11
2025-02-26 16:22:53 +00:00
Ana Guerrero
0510d55fbe Accepting request 1202831 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1202831
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-quimb?expand=0&rev=10
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 requirements

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=21
2024-09-24 08:46:49 +00:00
Dominique Leuenberger
7665e27f2e Accepting request 1198064 from devel:languages:python:numeric
- 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-rank

OBS-URL: https://build.opensuse.org/request/show/1198064
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-quimb?expand=0&rev=9
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-rank

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=19
2024-08-31 12:22:30 +00:00
Dominique Leuenberger
be6860b4fc Accepting request 1153130 from devel:languages:python:numeric
Forwarded request #1152767 from bnavigator

- Update to 1.7.3
   ## Enhancements:
    * qu.randn: support dist="rademacher".
    * support dist and other randn options in various TN builders.
    ## Bug fixes:
    * restore fallback (to scipy.linalg.svd with driver='gesvd')
      behavior for truncated SVD with numpy backend.
  - Release 1.7.2
    ## Bug fixes:
    * removed import of deprecated numba.generated_jit decorator.
    ## Enhancements:
    * add normalized=True option to tensor_network_distance for
      computing the normalized distance between tensor networks,
      which is useful for convergence checks.
      Tensor.distance_normalized and
      TensorNetwork.distance_normalized added as aliases.
    * add TensorNetwork.cut_bond for cutting a bond index
  - Release v1.7.1
    ## Enhancements:
    * add TensorNetwork.visualize_tensors for visualizing the actual
      data entries of an entire tensor network.
    * add ham.build_mpo_propagator_trotterized for building a
      trotterized propagator from a local 1D hamiltonian. This also
      includes updates for creating 'empty' tensor networks using
      TensorNetwork.new, and building up gates from empty tensor
      networks using TensorNetwork.gate_inds_with_tn.
    * add more options to Tensor.expand_ind and Tensor.new_ind:
      repeat tiling mode and random padding mode.
    * tensor decomposition: make eigh_truncated backend agnostic.
    * tensor_compress_bond: add reduced="left" and reduced="right"

OBS-URL: https://build.opensuse.org/request/show/1153130
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-quimb?expand=0&rev=8
2024-03-01 22:36:15 +00:00
af919b099e Accepting request 1152767 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.7.3
 ## Enhancements:
  * qu.randn: support dist="rademacher".
  * support dist and other randn options in various TN builders.
  ## Bug fixes:
  * restore fallback (to scipy.linalg.svd with driver='gesvd')
    behavior for truncated SVD with numpy backend.
- Release 1.7.2
  ## Bug fixes:
  * removed import of deprecated numba.generated_jit decorator.
  ## Enhancements:
  * add normalized=True option to tensor_network_distance for
    computing the normalized distance between tensor networks,
    which is useful for convergence checks.
    Tensor.distance_normalized and
    TensorNetwork.distance_normalized added as aliases.
  * add TensorNetwork.cut_bond for cutting a bond index
- Release v1.7.1
  ## Enhancements:
  * add TensorNetwork.visualize_tensors for visualizing the actual
    data entries of an entire tensor network.
  * add ham.build_mpo_propagator_trotterized for building a
    trotterized propagator from a local 1D hamiltonian. This also
    includes updates for creating 'empty' tensor networks using
    TensorNetwork.new, and building up gates from empty tensor
    networks using TensorNetwork.gate_inds_with_tn.
  * add more options to Tensor.expand_ind and Tensor.new_ind:
    repeat tiling mode and random padding mode.
  * tensor decomposition: make eigh_truncated backend agnostic.
  * tensor_compress_bond: add reduced="left" and reduced="right"

OBS-URL: https://build.opensuse.org/request/show/1152767
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=17
2024-02-29 09:04:24 +00:00
Dominique Leuenberger
5010a2e251 Accepting request 1090173 from devel:languages:python:numeric
- Numba now exists for Python 3.11, stop skipping it.

OBS-URL: https://build.opensuse.org/request/show/1090173
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-quimb?expand=0&rev=7
2023-06-07 21:06:35 +00:00
Steve Kowalik
4b5806f089 - Numba now exists for Python 3.11, stop skipping it.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=15
2023-06-01 07:31:53 +00:00
Dominique Leuenberger
6029913884 Accepting request 1074164 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1074164
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-quimb?expand=0&rev=6
2023-03-25 17:55:29 +00:00
782a131be7 Accepting request 1073907 from home:bnavigator:branches:devel:languages:python:numeric
- Skip python311: no numba yet

OBS-URL: https://build.opensuse.org/request/show/1073907
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=13
2023-03-24 12:18:01 +00:00
Dominique Leuenberger
b4222e0c96 Accepting request 1062607 from devel:languages:python:numeric
- upgrade opt-einsum to requires as it is imported by tensor/
  unconditionally

OBS-URL: https://build.opensuse.org/request/show/1062607
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-quimb?expand=0&rev=5
2023-02-02 17:08:59 +00:00
122d3195d4 - upgrade opt-einsum to requires as it is imported by tensor/
unconditionally

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=11
2023-02-02 09:37:36 +00:00
Dominique Leuenberger
012e2b1738 Accepting request 1061576 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1061576
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-quimb?expand=0&rev=4
2023-01-28 17:44:13 +00:00
8cca3f8a82 Accepting request 1061175 from home:bnavigator:branches:devel:languages:python:numeric
- Update to v1.4.2
  * no relevant code changes for openSUSE users
- Release v1.4.1
  ## Enhancements
  * unify much functionality from 1D, 2D and 3D into general
    arbitrary geometry class
    quimb.tensor.tensor_arbgeom.TensorNetworkGen
  * refactor contraction, allowing using cotengra directly
  * add visualize() for visualizing the actual data entries of an
    arbitrarily high dimensional tensor
  * add Gate class for more robust tracking and manipulation of
    gates in quantum Circuit simulation
  * tweak TN drawing style and layout
  * tweak default gauging options of compressed contraction
  * add compute_hierarchical_grouping()
  * add as_network()
  * add inds_size()
  * add get_hyperinds()
  * add outer_size()
  * improve group_inds()
  * refactor tensor decompositiona and ‘isometrization’ methods
  * begin supporting pytree specifications in TNOptimizer, e.g. for
    constants
  * add experimental submodule for new sharing features
  * register tensor and tensor network objects with jax pytree
    interface (PR150)
  * update CI infrastructure
  ## Bug fixes:
  * fix force atlas 2 and weight_attr bug (GH126)
  * allow unpickling of PTensor objects (GH128, PR131)

OBS-URL: https://build.opensuse.org/request/show/1061175
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=9
2023-01-27 15:01:00 +00:00
Dominique Leuenberger
10f3ad8796 Accepting request 869859 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/869859
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-quimb?expand=0&rev=3
2021-02-07 14:20:50 +00:00
79ace239e5 Accepting request 869846 from home:bnavigator:branches:devel:languages:python:numeric
- Generalize the ExcludeArch into %ix64 %arm ppc s390x

OBS-URL: https://build.opensuse.org/request/show/869846
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=7
2021-02-05 23:10:51 +00:00
28d968f4ef Accepting request 869587 from home:bnavigator:branches:devel:languages:python:numeric
- Disable build for armv7l and s390x

OBS-URL: https://build.opensuse.org/request/show/869587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=6
2021-02-04 23:42:25 +00:00
Dominique Leuenberger
444093210b Accepting request 864286 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/864286
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-quimb?expand=0&rev=2
2021-01-19 15:03:25 +00:00
b0555a2c10 Accepting request 864278 from home:andythe_great
Disable build for python36

OBS-URL: https://build.opensuse.org/request/show/864278
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=4
2021-01-19 10:48:45 +00:00
Dominique Leuenberger
8013de7818 Accepting request 839729 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/839729
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-quimb?expand=0&rev=1
2020-10-06 15:13:03 +00:00
a1b45cbc37 Accepting request 828642 from home:andythe_great
Clean up python alternative macros, was it done correctly? Thanks.

OBS-URL: https://build.opensuse.org/request/show/828642
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=2
2020-08-22 07:31:08 +00:00
52f8ca7606 Accepting request 828337 from home:andythe_great
Add python alternative.

OBS-URL: https://build.opensuse.org/request/show/828337
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quimb?expand=0&rev=1
2020-08-21 14:37:43 +00:00
2 changed files with 0 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9f021b549a82b225f1beadcdd26e89ce8c9c9c6af21d0a6f45e0b3bb778b3d3a
size 12202705

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b12e3c4741f21435a2c530f8ee963d2d6d935eb6138cf26a2c0db7867e3b3bde
size 11566853