Skip to content

Version 4.5.0#148

Open
sansiro77 wants to merge 16 commits intoTuringQ:mainfrom
sansiro77:dev-hjj
Open

Version 4.5.0#148
sansiro77 wants to merge 16 commits intoTuringQ:mainfrom
sansiro77:dev-hjj

Conversation

@sansiro77
Copy link
Contributor

Modifications specific to this PR are marked in bold.

Features

  • Optimize get_unitary for QumodeCircuit
  • Add the iSWAP gate
  • Optimize get_unitary for QumodeCircuit on GPUs
  • Wigner function implementation from Fock state tensor
  • Support the expectation value of photon number operator and quadrature operator for Fock backend (basis=False)
  • Support vmap over multiple instances of QumodeCircuit
  • Use block sampling to accelerate measurement for Fock backend

Fix

  • Avoid the calculation of Fock probabilities for Bosonic backend
  • Fix 'photon_number_mean_var' for Bosonic backend on GPUs
  • Fix the post-processing of chain-rule sampling on specific wires for Gaussian backend
  • Fix get_unitary of QumodeCircuit for VMAP
  • Fix numerical instability in higher-order gradients of Hafnian
  • Update dependencies and fix Wigner function
  • Fix the dynamic update of Fock basis states and refactor QumodeCircuit
  • Fix chain-rule sampling with threshold detector for Gaussian backend

Workflow

  • Update docs and configure Ruff/Jupytext/Pre-commit
  • Overhaul project structure, developer workflow, and documentation
  • Exclude symlinks from pre-commit to fix Windows compatibility
  • Add .git-blame-ignore-revs and .readthedocs.yaml
  • Pin setuptools<82.0.0 to fix strawberryfields dependency

Docs

  • Update descriptions of sampling method in photonic_basics.ipynb
  • Update the old API of example notebook for optimizer
  • Add docstrings for the argument loop_gates
  • Update benchmark scripts
  • Update README
  • Update GBS examples
  • Add attribution to Graphix for refactored functions
  • Update legal headers for TensorCircuit and tensorgrad
  • Update docstrings

@sansiro77 sansiro77 requested review from Hugh-888 and Jooyuza March 6, 2026 09:59
@sansiro77 sansiro77 self-assigned this Mar 6, 2026
@sansiro77 sansiro77 added documentation Improvements or additions to documentation bugfix Fix bugs release Release workflow Improvements to developer workflow, project infrastructure, and automation tools. labels Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fix bugs documentation Improvements or additions to documentation release Release workflow Improvements to developer workflow, project infrastructure, and automation tools.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant