amazon-braket / amazon-braket-examples

Example notebooks that show how to apply quantum computing with Amazon Braket.
https://aws.amazon.com/braket/
Apache License 2.0
463 stars 224 forks source link

infra: bump the dev-dependencies group across 1 directory with 21 updates #614

Closed dependabot[bot] closed 3 weeks ago

dependabot[bot] commented 4 weeks ago

Updates the requirements on botocore, awscli, boto3, amazon-braket-default-simulator, amazon-braket-pennylane-plugin, amazon-braket-sdk, amazon-braket-algorithm-library, cvxpy, ipykernel, jax, jaxlib, matplotlib, numpy, optax, pennylane, pennylane-lightning, qiskit-aer, qiskit-braket-provider, scipy, scs and sympy to permit the latest version. Updates botocore from 1.34.113 to 1.35.0

Changelog

Sourced from botocore's changelog.

1.35.0

  • api-change:batch: Improvements of integration between AWS Batch and EC2.
  • api-change:inspector2: Update the correct format of key and values for resource tags
  • api-change:quicksight: Amazon QuickSight launches Customer Managed Key (CMK) encryption for Data Source metadata
  • api-change:sagemaker: Introduce Endpoint and EndpointConfig Arns in sagemaker:ListPipelineExecutionSteps API response
  • api-change:sesv2: Marking use case description field of account details as deprecated.
  • feature:signing: Adds internal support for the new 'auth' trait to allow a priority list of auth types for a service or operation.

1.34.162

  • api-change:docdb: This release adds Global Cluster Failover capability which enables you to change your global cluster's primary AWS region, the region that serves writes, during a regional outage. Performing a failover action preserves your Global Cluster setup.
  • api-change:ecs: This release introduces a new ContainerDefinition configuration to support the customer-managed keys for ECS container restart feature.
  • api-change:iam: Make the LastUsedDate field in the GetAccessKeyLastUsed response optional. This may break customers who only call the API for access keys with a valid LastUsedDate. This fixes a deserialization issue for access keys without a LastUsedDate, because the field was marked as required but could be null.
  • api-change:s3: Amazon Simple Storage Service / Features : Adds support for pagination in the S3 ListBuckets API.

1.34.161

  • api-change:codebuild: AWS CodeBuild now supports using Secrets Manager to store git credentials and using multiple source credentials in a single project.

1.34.160

  • api-change:amplify: Add a new field "cacheConfig" that enables users to configure the CDN cache settings for an App
  • api-change:appstream: This release includes following new APIs: CreateThemeForStack, DescribeThemeForStack, UpdateThemeForStack, DeleteThemeForStack to support custom branding programmatically.
  • api-change:fis: This release adds support for additional error information on experiment failure. It adds the error code, location, and account id on relevant failures to the GetExperiment and ListExperiment API responses.
  • api-change:glue: Add AttributesToGet parameter support for Glue GetTables
  • api-change:neptune-graph: Amazon Neptune Analytics provides a new option for customers to load data into a graph using the RDF (Resource Description Framework) NTRIPLES format. When loading NTRIPLES files, use the value convertToIri for the blankNodeHandling parameter.

1.34.159

  • api-change:compute-optimizer: Doc only update for Compute Optimizer that fixes several customer-reported issues relating to ECS finding classifications
  • api-change:config: Documentation update for the OrganizationConfigRuleName regex pattern.
  • api-change:ec2: This release adds new capabilities to manage On-Demand Capacity Reservations including the ability to split your reservation, move capacity between reservations, and modify the instance eligibility of your reservation.
  • api-change:eks: Added support for new AL2023 GPU AMIs to the supported AMITypes.
  • api-change:groundstation: Updating documentation for OEMEphemeris to link to AWS Ground Station User Guide
  • api-change:medialive: AWS Elemental MediaLive now supports now supports editing the PID values for a Multiplex.
  • api-change:sagemaker: Releasing large data support as part of CreateAutoMLJobV2 in SageMaker Autopilot and CreateDomain API for SageMaker Canvas.

1.34.158

... (truncated)

Commits


Updates awscli from 1.32.113 to 1.34.0

Commits
  • 2452784 Merge branch 'release-1.34.0'
  • fe1a740 Bumping version to 1.34.0
  • 278c43c Update changelog based on model updates
  • 5d5d0c3 Merge pull request #8870 from hssyoo/codeartifact-v1
  • 8667ec4 Update codeartifact login error message
  • 06a4587 Merge branch 'release-1.33.44'
  • 9c73169 Merge branch 'release-1.33.44' into develop
  • 6fba3ea Bumping version to 1.33.44
  • 7867e3b Update changelog based on model updates
  • 236a7ef Merge customizations for S3
  • Additional commits viewable in compare view


Updates boto3 from 1.34.113 to 1.35.0

Commits
  • f38acbb Merge branch 'release-1.35.0'
  • d0a872d Bumping version to 1.35.0
  • eaae319 Add changelog entries from botocore
  • 59518e4 Merge branch 'release-1.34.162'
  • a791aa7 Merge branch 'release-1.34.162' into develop
  • add8a63 Bumping version to 1.34.162
  • 2ec9480 Add changelog entries from botocore
  • 2f927ce Merge branch 'release-1.34.161'
  • 8268877 Merge branch 'release-1.34.161' into develop
  • c36a3f2 Bumping version to 1.34.161
  • Additional commits viewable in compare view


Updates amazon-braket-default-simulator from 1.23.2 to 1.26.0

Release notes

Sourced from amazon-braket-default-simulator's releases.

v1.26.0

Features

  • Introduce run_multiple method

Bug Fixes and Other Changes

  • Ignore qubit_count parameter for JAQCD

v1.25.0

Features

  • Track classical register indices for measurements

Bug Fixes and Other Changes

  • Include measured in noncontiguous qubit map

v1.24.1

Bug Fixes and Other Changes

  • Use csr_matrix.getH() instead of H

v1.24.0

Features

  • support non-contiguous qubit indices local simulator

v1.23.4

Bug Fixes and Other Changes

  • use numpy for float comparison

v1.23.3

Bug Fixes and Other Changes

  • fix signed integer casting
Changelog

Sourced from amazon-braket-default-simulator's changelog.

v1.26.0 (2024-06-27)

Features

  • Introduce run_multiple method

Bug Fixes and Other Changes

  • Ignore qubit_count parameter for JAQCD

v1.25.0 (2024-06-26)

Features

  • Track classical register indices for measurements

Bug Fixes and Other Changes

  • Include measured in noncontiguous qubit map

v1.24.1 (2024-06-26)

Bug Fixes and Other Changes

  • Use csr_matrix.getH() instead of H

v1.24.0 (2024-06-24)

Features

  • support non-contiguous qubit indices local simulator

v1.23.4 (2024-06-20)

Bug Fixes and Other Changes

  • use numpy for float comparison

v1.23.3 (2024-06-19)

Bug Fixes and Other Changes

  • fix signed integer casting
Commits
  • 7b52b78 prepare release v1.26.0
  • e93e551 feat: Introduce run_multiple method (#264)
  • dc68323 change: Ignore qubit_count parameter for JAQCD (#269)
  • 3378eaa update development version to v1.25.1.dev0
  • bc5df7b prepare release v1.25.0
  • d663479 fix: Include measured in noncontiguous qubit map (#267)
  • c9730d2 feat: Track classical register indices for measurements (#266)
  • 7e717a2 update development version to v1.24.2.dev0
  • 3f17237 prepare release v1.24.1
  • 1454fb9 fix: Use csr_matrix.getH() instead of H (#268)
  • Additional commits viewable in compare view


Updates amazon-braket-pennylane-plugin from 1.27.3 to 1.28.0

Release notes

Sourced from amazon-braket-pennylane-plugin's releases.

v1.28.0

Features

  • Support batch_execute for BraketLocalQubitDevice

v1.27.6

Bug Fixes and Other Changes

  • Support qml.counts for circuits

v1.27.5

Bug Fixes and Other Changes

  • Replace FreeParameter("b") with FreeParameter("d") in unittests

v1.27.4

Bug Fixes and Other Changes

  • Update autoray to >= 0.6.11
Changelog

Sourced from amazon-braket-pennylane-plugin's changelog.

v1.28.0 (2024-07-01)

Features

  • Support batch_execute for BraketLocalQubitDevice

v1.27.6 (2024-06-18)

Bug Fixes and Other Changes

  • Support qml.counts for circuits

v1.27.5 (2024-06-13)

Bug Fixes and Other Changes

  • Replace FreeParameter("b") with FreeParameter("d") in unittests

v1.27.4 (2024-06-03)

Bug Fixes and Other Changes

  • Update autoray to >= 0.6.11
Commits
  • 9c9e27e prepare release v1.28.0
  • 388dd74 test: Delete OQC integ test (#272)
  • 1377abd feat: Support batch_execute for BraketLocalQubitDevice (#269)
  • dfff7a6 update development version to v1.27.7.dev0
  • eabf16d prepare release v1.27.6
  • 0d5c883 infra: add pr_title_check workflow (#265)
  • d7c232f Support qml.counts for circuits (#267)
  • 7b9f700 update development version to v1.27.6.dev0
  • 2e8e130 prepare release v1.27.5
  • ad9237c change: Replace FreeParameter("b") with FreeParameter("d") in unittests (...
  • Additional commits viewable in compare view


Updates amazon-braket-sdk from 1.80.0 to 1.84.0

Release notes

Sourced from amazon-braket-sdk's releases.

v1.84.0

Features

  • support erf_square and swap_phases

v1.83.0

Deprecations and Removals

  • Remove OQC

Features

  • Use run_multiple for local batches

Documentation Changes

  • update PR title instructions

v1.82.0

Features

  • Track classical target indices for measurements

Bug Fixes and Other Changes

  • Add test to check classical indices used in measurement are preserved between Circuit and OpenQASM Translations.

v1.81.1

Bug Fixes and Other Changes

  • Error when FreeParameters are named QASM types

v1.81.0

Features

  • Add IQM to get compiled program convenience method

v1.80.1

Bug Fixes and Other Changes

  • docs: add stack exchange badge to the readme
  • Implement braket.ahs.AnalogHamiltonianSimulation.from_ir()
Changelog

Sourced from amazon-braket-sdk's changelog.

v1.84.0 (2024-07-30)

Features

  • support erf_square and swap_phases

v1.83.0 (2024-06-28)

Deprecations and Removals

  • Remove OQC

Features

  • Use run_multiple for local batches

Documentation Changes

  • update PR title instructions

v1.82.0 (2024-06-27)

Features

  • Track classical target indices for measurements

Bug Fixes and Other Changes

  • Add test to check classical indices used in measurement are preserved between Circuit and OpenQASM Translations.

v1.81.1 (2024-06-17)

Bug Fixes and Other Changes

  • Error when FreeParameters are named QASM types

v1.81.0 (2024-06-13)

Features

  • Add IQM to get compiled program convenience method

v1.80.1 (2024-06-10)

Bug Fixes and Other Changes

  • docs: add stack exchange badge to the readme
  • Implement braket.ahs.AnalogHamiltonianSimulation.from_ir()
Commits


Updates amazon-braket-algorithm-library from 1.4.11 to 1.4.13

Release notes

Sourced from amazon-braket-algorithm-library's releases.

v1.4.13

Bug Fixes and Other Changes

  • Pin sympy<1.13

v1.4.12

Bug Fixes and Other Changes

  • Remove oqc
Changelog

Sourced from amazon-braket-algorithm-library's changelog.

v1.4.13 (2024-07-22)

Bug Fixes and Other Changes

  • Pin sympy<1.13

v1.4.12 (2024-06-28)

Bug Fixes and Other Changes

  • Remove oqc
Commits


Updates cvxpy from 1.5.1 to 1.5.3

Release notes

Sourced from cvxpy's releases.

v1.5.3

@​rluce Fixing compatibility between NumPy 2.0 and the Gurobi interface #2484 @​Transurgeon Numerous bug fixes @​GaetanLepage Improved scipy compatibility #2508

v1.5.2

What's Changed

This release is the first one compatible with NumPy 2.0. It is backward compatible, i.e., NumPy versions < 2.0 will continue to work.

Full Changelog: https://github.com/cvxpy/cvxpy/compare/v1.5.1...v1.5.2

Commits


Updates ipykernel from 6.29.4 to 6.29.5

Release notes

Sourced from ipykernel's releases.

v6.29.5

6.29.5

(Full Changelog)

Bugs fixed

Maintenance and upkeep improvements

Contributors to this release

(GitHub contributors page for this release)

@​blink1073 | @​ianthomas23

Changelog

Sourced from ipykernel's changelog.

6.29.5

(Full Changelog)

Bugs fixed

Maintenance and upkeep improvements

Contributors to this release

(GitHub contributors page for this release)

@​blink1073 | @​ianthomas23

Commits


Updates jax from 0.4.28 to 0.4.31

Release notes

Sourced from jax's releases.

JAX release v0.4.31

No release notes provided.

Jaxlib release v0.4.31

No release notes provided.

Jax release v0.4.30

No release notes provided.

Jaxlib release v0.4.30

No release notes provided.

JAX v0.4.29

  • Changes

    • We anticipate that this will be the last release of JAX and jaxlib supporting a monolithic CUDA jaxlib. Future releases will use the CUDA plugin jaxlib (e.g. pip install jax[cuda12]).
    • JAX now requires ml_dtypes version 0.4.0 or newer.
    • Removed backwards-compatibility support for old usage of the jax.experimental.export API. It is not possible anymore to use from jax.experimental.export import export, and instead you should use from jax.experimental import export. The removed functionality has been deprecated since 0.4.24.
  • Deprecations

    • jax.sharding.XLACompatibleSharding is deprecated. Please use jax.sharding.Sharding.
    • jax.experimental.Exported.in_shardings has been renamed as jax.experimental.Exported.in_shardings_hlo. Same for out_shardings. The old names will be removed after 3 months.
    • Removed a number of previously-deprecated APIs:
      • from {mod}jax.core: non_negative_dim, DimSize, Shape
      • from {mod}jax.lax: tie_in
      • from {mod}jax.nn: normalize
      • from {mod}jax.interpreters.xla: backend_specific_translations, translations, register_translation, xla_destructure, TranslationRule, TranslationContext, XlaOp.
    • The tol argument of {func}jax.numpy.linalg.matrix_rank is being deprecated and will soon be removed. Use rtol instead.
    • The rcond argument of {func}jax.numpy.linalg.pinv is being deprecated and will soon be removed. Use rtol instead.
    • The deprecated jax.config submodule has been removed. To configure JAX use import jax and then reference the config object via jax.config.
    • {mod}jax.random APIs no longer accept batched keys, where previously some did unintentionally. Going forward, we recommend explicit use of {func}jax.vmap in such cases.
  • New Functionality

    • Added {func}jax.experimental.Exported.in_shardings_jax to construct shardings that can be used with the JAX APIs from the HloShardings

... (truncated)

Changelog

Sourced from jax's changelog.

jax 0.4.31 (July 29, 2024)

  • Deletion

    • xmap has been deleted. Please use {func}shard_map as the replacement.
  • Changes

    • The minimum CuDNN version is v9.1. This was true in previous releases also, but we now declare this version constraint formally.
    • The minimum Python version is now 3.10. 3.10 will remain the minimum supported version until July 2025.
    • The minimum NumPy version is now 1.24. NumPy 1.24 will remain the minimum supported version until December 2024.
    • The minimum SciPy version is now 1.10. SciPy 1.10 will remain the minimum supported version until January 2025.
    • {func}jax.numpy.ceil, {func}jax.numpy.floor and {func}jax.numpy.trunc now return the output of the same dtype as the input, i.e. no longer upcast integer or boolean inputs to floating point.
    • libdevice.10.bc is no longer bundled with CUDA wheels. It must be installed either as a part of local CUDA installation, or via NVIDIA's CUDA pip wheels.
    • {class}jax.experimental.pallas.BlockSpec now expects block_shape to be passed before index_map. The old argument order is deprecated and will be removed in a future release.
    • Updated the repr of gpu devices to be more consistent with TPUs/CPUs. For example, cuda(id=0) will now be CudaDevice(id=0).
    • Added the device property and to_device method to {class}jax.Array, as part of JAX's Array API support.
  • Deprecations

    • Removed a number of previously-deprecated internal APIs related to polymorphic shapes. From {mod}jax.core: removed canonicalize_shape, dimension_as_value, definitely_equal, and symbolic_equal_dim.
    • HLO lowering rules should no longer wrap singleton ir.Values in tuples. Instead, return singleton ir.Values unwrapped. Support for wrapped values will be removed in a future version of JAX.
    • {func}jax.experimental.jax2tf.convert with native_serialization=False or enable_xla=False is now deprecated and this support will be removed in a future version. Native serialization has been the default since JAX 0.4.16 (September 2023).
    • The previously-deprecated function jax.random.shuffle has been removed; instead use jax.random.permutation with independent=True.

jaxlib 0.4.31 (July 29, 2024)

  • Bug fixes
    • Fixed a bug that meant that negative static_argnums to a jit were mishandled by the jit dispatch fast path.
    • Fixed a bug that meant triangular solves of batches of singular matrices produce nonsensical finite values, instead of inf or nan (#3589, #15429).

jax 0.4.30 (June 18, 2024)

... (truncated)

Commits
  • 7fd9302 Start JAX and jaxlib 0.4.31 release
  • f070c06 Merge pull request #22703 from Rifur13:plugin-fix
  • 9beb4f1 Merge pull request #19760 from Blair-Johnson:fix-pytree-grads-sparse
  • 802a14c Re-pack gradients of jax.experimental.sparse.grad() to match original pytrees...
  • 85e83b5 Merge pull request #22690 from jakevdp:inplace-doc
  • d1c0d99 Bump the minimum CUDNN version to v9.1.
  • 6127baa Ignore the Deprecation warning produced about native_serialization=False.
  • fd23b87 Bump minimum SciPy version to 1.10.
  • cfa1e78 Improve documentation for jnp.put, jnp.place, jnp.fill_diagonal
  • 0224235 Skip cuda backend initialization if no nvidia GPUs are visible.
  • Additional commits viewable in compare view


Updates jaxlib from 0.4.28 to 0.4.31

Release notes

Sourced from jaxlib's releases.

Jaxlib release v0.4.31

No release notes provided.

Jaxlib release v0.4.30

No release notes provided.

Jaxlib release v0.4.29

  • Bug fixes

    • Fixed a bug where XLA sharded some concatenation operations incorrectly, which manifested as an incorrect output for cumulative reductions (#21403).
    • Fixed a bug where XLA:CPU miscompiled certain matmul fusions (openxla/xla#13301).
    • Fixes a compiler crash on GPU (google/jax#21396).
  • Deprecations

    • jax.tree.map(f, None, non-None) now emits a DeprecationWarning, and will raise an error in a future version of jax. None is only a tree-prefix of itself. To preserve the current behavior, you can ask jax.tree.map to treat None as a leaf value by writing: jax.tree.map(lambda x, y: None if x is None else f(x, y), a, b, is_leaf=lambda x: x is None).
Changelog

Sourced from jaxlib's changelog.

jax 0.4.31 (July 29, 2024)

  • Deletion

    • xmap has been deleted. Please use {func}shard_map as the replacement.
  • Changes

    • The minimum CuDNN version is v9.1. This was true in previous releases also, but we now declare this version constraint formally.
    • The minimum Python version is now 3.10. 3.10 will remain the minimum supported version until July 2025.
    • The minimum NumPy version is now 1.24. NumPy 1.24 will remain the minimum supported version until December 2024.
    • The minimum SciPy version is now 1.10. SciPy 1.10 will remain the minimum supported version until January 2025.
    • {func}jax.numpy.ceil, {func}jax.numpy.floor and {func}jax.numpy.trunc now return the output of the same dtype as the input, i.e. no longer upcast integer or boolean inputs to floating point.
    • libdevice.10.bc is no longer bundled with CUDA wheels. It must be installed either as a part of local CUDA installation, or via NVIDIA's CUDA pip wheels.
    • {class}jax.experimental.pallas.BlockSpec now expects block_shape to be passed before index_map. The old argument order is deprecated and will be removed in a future release.
    • Updated the repr of gpu devices to be more consistent with TPUs/CPUs. For example, cuda(id=0) will now be CudaDevice(id=0).
    • Added the device property and to_device method to {class}jax.Array, as part of JAX's Array API support.
  • Deprecations

    • Removed a number of previously-deprecated internal APIs related to polymorphic shapes. From {mod}jax.core: removed canonicalize_shape, dimension_as_value, definitely_equal, and symbolic_equal_dim.
    • HLO lowering rules should no longer wrap singleton ir.Values in tuples. Instead, return singleton ir.Values unwrapped. Support for wrapped values will be removed in a future version of JAX.
    • {func}jax.experimental.jax2tf.convert with native_serialization=False or enable_xla=False is now deprecated and this support will be removed in a future version. Native serialization has been the default since JAX 0.4.16 (September 2023).
    • The previously-deprecated function jax.random.shuffle has been removed; instead use jax.random.permutation with independent=True.

jaxlib 0.4.31 (July 29, 2024)

  • Bug fixes
    • Fixed a bug that meant that negative static_argnums to a jit were mishandled by the jit dispatch fast path.
    • Fixed a bug that meant triangular solves of batches of singular matrices produce nonsensical finite values, instead of inf or nan (#3589, #15429).

jax 0.4.30 (June 18, 2024)

... (truncated)

Commits
  • 7fd9302 Start JAX and jaxlib 0.4.31 release
  • f070c06 Merge pull request #22703 from Rifur13:plugin-fix
  • 9beb4f1 Merge pull request #19760 from Blair-Johnson:fix-pytree-grads-sparse
  • 802a14c Re-pack gradients of jax.experimental.sparse.grad() to match original pytrees...
  • 85e83b5 Merge pull request #22690 from jakevdp:inplace-doc
  • d1c0d99 Bump the minimum CUDNN version to v9.1.
  • 6127baa Ignore the Deprecation warning produced about native_serialization=False.
  • fd23b87 Bump minimum SciPy version to 1.10.
  • cfa1e78 Improve documentation for jnp.put, jnp.place, jnp.fill_diagonal
  • 0224235 Skip cuda backend initialization if no nvidia GPUs are visible.
  • Additional commits viewable in compare view


Updates matplotlib from 3.9.0 to 3.9.2

Release notes

Sourced from matplotlib's releases.

REL: 3.9.2

This is the second bugfix release of the 3.9.x series.

This release contains several bug-fixes and adjustments:

  • Be more resilient to I/O failures when writing font cache
  • Fix nondeterministic behavior with subplot spacing and constrained layout
  • Fix sticky edge tolerance relative to data range
  • Improve formatting of image values in cases of singular norms

Windows wheels now bundle the MSVC runtime DLL statically to avoid inconsistencies with other wheels and random crashes depending on import order.

REL: 3.9.1

This is the first bugfix release of the 3.9.x series.

This release contains several bug-fixes and adjustments:

  • Add GitHub artifact attestations for sdist and wheels
  • Re-add matplotlib.cm.get_cmap; note this function will still be removed at a later date
  • Allow duplicate backend entry points
  • Fix Axes autoscaling of thin bars at large locations
  • Fix Axes autoscaling with axhspan / axvspan
  • Fix Axes3D autoscaling of Line3DCollection / Poly3DCollection
  • Fix Axes3D mouse interactivity with non-default roll angle
  • Fix box aspect ratios in Axes3D with alternate vertical axis
  • Fix case handling of backends specified as module://...
  • Fix crash with TkAgg on Windows with tk.window_focus: True
  • Fix interactive update of SubFigures
  • Fix interactivity when using the IPython console
  • Fix pickling of AxesWidgets and SubFigures
  • Fix scaling on GTK3Cairo / GTK4Cairo backends
  • Fix text wrapping within SubFigures
  • Promote mpltype Sphinx role to a public extension; note this is only intended for development reasons
Commits
  • a254b68 REL: 3.9.2
  • 056f307 DOC: Create release notes for 3.9.2
  • 8d867ce Merge branch 'v3.9.1-doc' into v3.9.x
  • 7be8675 Merge pull request #28687 from QuLogic/static-msvc
  • 3ed3d7b Merge pull request #28695 from meeseeksmachine/auto-backport-of-pr-27797-on-v...
  • 8a62afa BLD: Include MSVCP140 runtime statically
  • 81be26f Merge pull request #28688 from QuLogic/auto-backport-of-pr-28668-on-v3.9.x
  • d88a582 Backport PR #27797: DOC: Use video files for saving animations
  • e3159ba Merge pull request #28692 from meeseeksmachine/auto-backport-of-pr-28632-on-v...
  • 465401e Backport PR #28632: DOC: Tell sphinx-gallery to link mpl_toolkits from our build
  • Additional commits viewable in compare view


Updates numpy from 1.26.4 to 2.1.0

Release notes

Sourced from numpy's releases.

2.1.0 (Aug 18, 2024)

NumPy 2.1.0 Release Notes

NumPy 2.1.0 provides support for the upcoming Python 3.13 release and drops support for Python 3.9. In addition to the usual bug fixes and updated Python support, it helps get us back into our usual release cycle after the extended development of 2.0. The highlights for this release are:

  • Support for the array-api 2023.12 standard.
  • Support for Python 3.13.
  • Preliminary support for free threaded Python 3.13.

Python versions 3.10-3.13 are supported in this release.

New functions

New function numpy.unstack

A new function np.unstack(array, axis=...) was added, which splits an array into a tuple of arrays along an axis. It serves as the inverse of [numpy.stack]{.title-ref}.

(gh-26579)

Deprecations

  • The fix_imports keyword argument in numpy.save is deprecated. Since NumPy 1.17, numpy.save uses a pickle protocol that no longer supports Python 2, and ignored fix_imports keyword. This keyword is kept only for backward compatibility. It is now deprecated.

    (gh-26452)

  • Passing non-integer inputs as the first argument of [bincount]{.title-ref} is now deprecated, because such inputs are silently cast to integers with no warning about loss of precision.

    (gh-27076)

Expired deprecations

  • Scalars and 0D arrays are disallowed for numpy.nonzero and numpy.ndarray.nonzero.

    (gh-26268)

  • set_string_function internal function was removed and PyArray_SetStringFunction was stubbed out.

... (truncated)

Commits
  • 2f7fe64 Merge pull request #27236 from charris/prepare-2.1.0
  • b6f434f REL: Prepare for the NumPy 2.1.0 release [wheel build]
  • 3cf9394 Merge pull request #27234 from charris/backport-25984
  • 7443dcc Merge pull request #27233 from charris/backport-27223
  • 85b1cab BUG: Allow fitting of degree zero polynomials with Polynomial.fit
  • 395a81d DOC: reword discussion about shared arrays to hopefully be clearer
  • 5af2e96 Move NUMUSERTYPES thread safety discussion to legacy DType API docs
  • d902c24 DOC: add docs on thread safety in NumPy
  • c080180 Merge pull request #27229 from charris/backport-27226
  • 44ce7e8 BUG: Fix PyArray_ZeroContiguousBuffer (resize) with struct dtypes
  • Additional commits viewable in compare view


Updates optax from 0.2.2 to 0.2.3

Release notes

Sourced from optax's releases.

Optax 0.2.3

What's Changed