Skip to content

Bump pyzx from 0.10.2 to 0.10.3#208

Merged
masa10-f merged 1 commit into
masterfrom
dependabot/uv/pyzx-0.10.3
Jun 5, 2026
Merged

Bump pyzx from 0.10.2 to 0.10.3#208
masa10-f merged 1 commit into
masterfrom
dependabot/uv/pyzx-0.10.3

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jun 4, 2026

Bumps pyzx from 0.10.2 to 0.10.3.

Release notes

Sourced from pyzx's releases.

v0.10.3

Added

  • The circuit generation functions in pyzx.generate now accept an additional optional argument, sigma, allowing a CNOT spread based on a Gaussian distribution rather than a uniform distribution for control over how localised the CNOTs should be. (by @​mjsutcliffe99).

Deprecated

  • Deprecated pyzx.simulate.py as it is starting to get bloated with all the new decompositions and strategies that have been added in recent years. All the functions in this file should still work (with deprecation warnings) but are rerouted to their new homes under the pyzx.simulation folder. (by @​mjsutcliffe99).

Changed

  • Refactored the simulation API to make it more formulaic and extensible. Individual decompositions are no longer included as distinct functions inside pyzx.simulate.py but now are provided their own individual files under pyzx.simulation.decompositions and share a common caller function. For example, pyzx.simulate.apply_cat3(g,v) is instead now pyzx.simulation.apply_decomp(Decomp.CAT_3,g,v), etc. (by @​mjsutcliffe99).
  • Likewise, decomposition strategies are separated into individual files under pyzx.simulation.strategies and called similarly through e.g. zx.simulation.full_decompose(Strategy.BSS,g). (by @​mjsutcliffe99).

Added

  • pyzx.simplify.drop_orphan_reset_discards: opt-in cleanup pass that removes the disconnected boundary -- Z(0) -- X(_rN) components left behind by Circuit.to_graph(elide_initial_resets=False) on circuits with leading resets, matching the elided graph with |0⟩ applied to those inputs (by @​dlyongemallo).

Fixed

  • Multigraph handling of parallel mixed simple/Hadamard edges in tensor contraction, several rewrite rules, and PauliWeb (by @​dlyongemallo).
  • Reset gate representation changed from ground-based to symbolic boolean paradigm, avoiding paradigm-mixing issues that destroyed measurement phases during simplification of circuits with mid-circuit resets. As a side effect, graph_to_circuit now recovers conditional X-type rotations (NOT, XPhase, SX), since X-type vertices on the qubit wire are unambiguous now that measurement outcomes are represented as leaves. Circuit.to_graph gains an opt-in elide_initial_resets flag (default False) that skips the discard chain for a Reset on an unmodified input wire, useful for circuits with OpenQASM-style implicit |0⟩ inputs. Each _rN reset variable is allocated to the lowest name not already in the graph's variable registry to avoid aliasing user-supplied phases, and graph_to_circuit excludes vertices on classical-bit wires (e.g. the Z/X pair from DiscardBit) so hybrid graphs round-trip without extra phantom qubits (by @​dlyongemallo).
Changelog

Sourced from pyzx's changelog.

[0.10.3] - 2026-06-01

Added

  • The circuit generation functions in pyzx.generate now accept an additional optional argument, sigma, allowing a CNOT spread based on a Gaussian distribution rather than a uniform distribution for control over how localised the CNOTs should be. (by @​mjsutcliffe99).

Deprecated

  • Deprecated pyzx.simulate.py as it is starting to get bloated with all the new decompositions and strategies that have been added in recent years. All the functions in this file should still work (with deprecation warnings) but are rerouted to their new homes under the pyzx.simulation folder. (by @​mjsutcliffe99).

Changed

  • Refactored the simulation API to make it more formulaic and extensible. Individual decompositions are no longer included as distinct functions inside pyzx.simulate.py but now are provided their own individual files under pyzx.simulation.decompositions and share a common caller function. For example, pyzx.simulate.apply_cat3(g,v) is instead now pyzx.simulation.apply_decomp(Decomp.CAT_3,g,v), etc. (by @​mjsutcliffe99).
  • Likewise, decomposition strategies are separated into individual files under pyzx.simulation.strategies and called similarly through e.g. zx.simulation.full_decompose(Strategy.BSS,g). (by @​mjsutcliffe99).

Added

  • pyzx.simplify.drop_orphan_reset_discards: opt-in cleanup pass that removes the disconnected boundary -- Z(0) -- X(_rN) components left behind by Circuit.to_graph(elide_initial_resets=False) on circuits with leading resets, matching the elided graph with |0⟩ applied to those inputs (by @​dlyongemallo).

Fixed

  • Multigraph handling of parallel mixed simple/Hadamard edges in tensor contraction, several rewrite rules, and PauliWeb (by @​dlyongemallo).
  • Reset gate representation changed from ground-based to symbolic boolean paradigm, avoiding paradigm-mixing issues that destroyed measurement phases during simplification of circuits with mid-circuit resets. As a side effect, graph_to_circuit now recovers conditional X-type rotations (NOT, XPhase, SX), since X-type vertices on the qubit wire are unambiguous now that measurement outcomes are represented as leaves. Circuit.to_graph gains an opt-in elide_initial_resets flag (default False) that skips the discard chain for a Reset on an unmodified input wire, useful for circuits with OpenQASM-style implicit |0⟩ inputs. Each _rN reset variable is allocated to the lowest name not already in the graph's variable registry to avoid aliasing user-supplied phases, and graph_to_circuit excludes vertices on classical-bit wires (e.g. the Z/X pair from DiscardBit) so hybrid graphs round-trip without extra phantom qubits (by @​dlyongemallo).
Commits
  • 8f61268 Bump version: 0.10.2 → 0.10.3
  • ad802d4 Merge pull request #430 from dlyongemallo/check_copy_steane_circuit
  • 23e8ff3 replace ground-based Reset with symbolic boolean paradigm
  • d2361cd Merge pull request #454 from dlyongemallo/reduce_scalar_docstring
  • decd9e7 Note in reduce_scalar docstring that input required to be in graph-like form
  • 4b02cfd Merge pull request #452 from Hope-Alemayehu/master
  • dc69a62 Fix phase negation in push_pauli_rule for Poly phases
  • 88c3aa1 Merge branch 'zxcalc:master' into master
  • 4fc21f6 Fix scalar correction in pivot_rule for Poly phases
  • 88bee86 Merge pull request #451 from Hope-Alemayehu/master
  • Additional commits viewable 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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 [pyzx](https://github.com/zxcalc/pyzx) from 0.10.2 to 0.10.3.
- [Release notes](https://github.com/zxcalc/pyzx/releases)
- [Changelog](https://github.com/zxcalc/pyzx/blob/master/CHANGELOG.md)
- [Commits](zxcalc/pyzx@v0.10.2...v0.10.3)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Jun 4, 2026
@masa10-f masa10-f merged commit c110a18 into master Jun 5, 2026
22 checks passed
@dependabot dependabot Bot deleted the dependabot/uv/pyzx-0.10.3 branch June 5, 2026 01:16
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 python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant