Skip to content

Bump numpy from 0.16.1 to 0.16.2#3

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/numpy-0.16.2
Closed

Bump numpy from 0.16.1 to 0.16.2#3
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/numpy-0.16.2

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Mar 18, 2022

Bumps numpy from 0.16.1 to 0.16.2.

Release notes

Sourced from numpy's releases.

rust-numpy version 0.16.2

This release fixes builds on platforms where c_char is unsigned, for example Linux/AArch64.

Changelog

Sourced from numpy's changelog.

Changelog

  • Unreleased

    • Deprecate PyArray::from_exact_iter after optimizing PyArray::from_iter. (#292)
  • v0.16.2

    • Fix build on platforms where c_char is u8 like Linux/AArch64. (#296)
  • v0.16.1

    • Fix build when PyO3's multiple-pymethods feature is used. (#288)
  • v0.16.0

    • Bump PyO3 version to 0.16 (#259)
    • Support object arrays (#216)
    • Support borrowing arrays that are part of other Python objects via PyArray::borrow_from_array (#230)
    • Fixed downcasting ignoring element type and dimensionality (#265)
    • PyArray::new is now unsafe, as it produces uninitialized arrays (#220)
    • PyArray::iter, NpySingleIterBuilder::readwrite and NpyMultiIterBuilder::add_readwrite are now unsafe, as they allow aliasing mutable references to be created (#278/)
    • The npyiter module is deprecated as rust-ndarray's facilities for iteration are more flexible and performant (#280)
    • PyArray::from_exact_iter does not unsoundly trust ExactSizeIterator::len any more (#262)
    • PyArray::as_cell_slice was removed as it unsoundly interacts with PyReadonlyArray allowing safe code to violate aliasing rules (#260)
    • rayon feature is now removed, and directly specifying the feature via ndarray dependency is recommended (#250)
    • Element trait and PyArrayDescr changes (#256):
      • Element trait has been simplified to get_dtype() and IS_COPY
      • New PyArrayDescr methods: of, into_dtype_ptr, is_equiv_to
      • Added numpy::dtype function
      • Element is now implemented for isize
      • c32 / c64 have been renamed with Complex32 / Complex64
      • ShapeError has been split into TypeError and DimensionalityError
      • i32, i64, u32, u64 are now guaranteed to map to np.u?int{32,64}.
      • Removed cfg_if dependency
      • Removed DataType enum
    • Added PyArrayDescr::new constructor (#266)
    • New PyArrayDescr methods (#266):
      • num, base, ndim, shape, byteorder, char, kind, itemsize, alignment, flags, has_object, is_aligned_struct, names, get_field, has_subarray, has_fields, is_native_byteorder
      • Renamed get_type to typeobj
  • v0.15.1

    • Make arrays produced via IntoPyArray, i.e. those owning Rust data, writeable (#235)
    • Fix thread-safety in internal API globals (#222)
  • v0.15.0

  • v0.14.1

... (truncated)

Commits
  • 9ec102d Merge pull request #297 from PyO3/prepare-0.16.2
  • 294c317 Prepare to maintenance release 0.16.2
  • bdf9d53 Merge pull request #296 from PyO3/fix-npy-aligned-struct
  • 996d4bc Since npy_char is c_char which can be u8 or i8, we cannot unconditionally use...
  • a556d79 Merge pull request #293 from PyO3/cancel-redundant-jobs
  • 601d493 Automatically cancel stale CI jobs when PR content changes.
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [numpy](https://github.com/PyO3/rust-numpy) from 0.16.1 to 0.16.2.
- [Release notes](https://github.com/PyO3/rust-numpy/releases)
- [Changelog](https://github.com/PyO3/rust-numpy/blob/main/CHANGELOG.md)
- [Commits](PyO3/rust-numpy@v0.16.1...v0.16.2)

---
updated-dependencies:
- dependency-name: numpy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Mar 18, 2022
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 2006035016

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 83.468%

Totals Coverage Status
Change from base Build 1962397035: 0.02%
Covered Lines: 52432
Relevant Lines: 62817

💛 - Coveralls

@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github Mar 22, 2022

Looks like numpy is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Mar 22, 2022
@dependabot dependabot Bot deleted the dependabot/cargo/numpy-0.16.2 branch March 22, 2022 07:39
alexanderivrii pushed a commit that referenced this pull request Apr 12, 2026
Qiskit#15943)

* fix(transpiler): TemplateOptimization drops circuit global_phase on substitution

circuit_to_dagdependency did not copy global_phase when converting a
template QuantumCircuit to DAGDependency, so template phases were lost
before matching. TemplateSubstitution.run_dag_opt also constructed a
new DAGDependency for the optimised output without inheriting the
original circuit's global_phase, resetting it to zero whenever at
least one substitution was applied.

Fixed by copying global_phase in circuit_to_dagdependency and seeding
dag_dep_opt.global_phase from the circuit DAG at construction time.
Also added the per-match phase subtraction (Fix 3) for when templates
with nonzero global_phase become accepted via the identity check fix
in Qiskit#14538.

Fixes Qiskit#14537.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(transpiler): TemplateOptimization drops circuit global_phase on substitution

circuit_to_dagdependency did not copy global_phase when converting a
template QuantumCircuit to DAGDependency, so template phases were lost
before matching. TemplateSubstitution.run_dag_opt also constructed a
new DAGDependency for the optimised output without inheriting the
original circuit's global_phase, resetting it to zero whenever at
least one substitution was applied. Additionally, when a template
carries a nonzero global_phase phi_T (gate content implements
e^{-i*phi_T} * I while the full operator is I), the per-match phase
contribution was not being subtracted from the output circuit.

Fixes Qiskit#14537.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* style: black reformat test_template_matching.py

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs: use RST hyperlink for issue reference in release note

The :issue: role is not available in this project's Sphinx config.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test(transpiler): add combined circuit+template global_phase regression test

Covers the case where both the circuit and the template carry a nonzero
global_phase simultaneously, confirming that fixes #2 (circuit phase
preserved across substitution) and #3 (per-match template phase subtracted)
compose correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test(transpiler): use assertEqual for Operator comparisons in template tests

Replace assertTrue(Operator(x) == Operator(y)) with assertEqual(Operator(x), Operator(y))
so that assertion failures show the actual vs expected values rather than just "False is not
True". Also shorten multi-line test docstrings to concise one-liners.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Address review feedback on template optimization global phase fix

- Simplify comment on global phase update in template_substitution.py
- Split release note into per-bug files; add fix-circuit-to-dagdependency-global-phase-14537.yaml
- Update tests: use issue reproducer (4-gate circuit) in test_template_nonzero_global_phase_applied_to_circuit, merge single/multiple match tests, drop modulo from assertAlmostEqual

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Fix test assertions and remove duplicate test

- Fix test_circuit_and_template_both_have_nonzero_global_phase expected
  value from np.pi/4 to 7*np.pi/12 (pi/3 + pi/4)
- Remove duplicate test_circuit_global_phase_preserved_with_multiple_template_matches
- Update test_template_nonzero_global_phase_applied_to_circuit to use
  Operator equivalence instead of phase/count assertions since partial
  template match does occur

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Update releasenotes/notes/fix-circuit-to-dagdependency-global-phase-14537.yaml

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update releasenotes/notes/fix-template-optimization-global-phase-14537.yaml

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update test/python/transpiler/test_template_matching.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update test/python/transpiler/test_template_matching.py

Actually I removed all reference to "Regression test" in the test descriptions based on this comment
Qiskit#15943 (comment)

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Remove 'Regression test' from docstring per review feedback

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Julien Gacon <gaconju@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant