Skip to content

Comments

PML-179 : merge release/0.3 to main#139

Merged
ben9871 merged 311 commits intomainfrom
release/0.3.0
Feb 12, 2026
Merged

PML-179 : merge release/0.3 to main#139
ben9871 merged 311 commits intomainfrom
release/0.3.0

Conversation

@CassNot
Copy link
Contributor

@CassNot CassNot commented Feb 12, 2026

Release 0.3.0 Perception

New features:

  • MeasurementStrategy.partial(modes=[]) allows partial measurement on a subset of modes returning probs, amplitudes and outputs
  • MerlinProcessor input via Session instantiation allows link to Scaleway and other providers
  • StateVector typed class which stores info and allows advanced manipulation of complex tensors
  • StateVector allows the creation of sparse tensors for complex tensors to optimise memory usage
  • ProbabilityDistribution typed class which stores info and allows advanced manipulation of probabilty outputs
  • QuantumLayer supports typed tensor output containing information about tensor photon and mode count
  • MeasurementStrategy.PROBABILITIES moves to MeasurementStrategy.probs() backwards compatibility + warning maintained
  • MeasurementStrategy.MODE_EXPECTATIONS moves to MeasurementStrategy.mode_expectations()
    Backwards compatibility maintained but warnings for 0.4 applied
  • MeasurementStrategy.AMPLITUDES moves to MeasurementStrategy.amplitudes() backwards compatibility + warning maintained
  • ComputationSpace moves to MeasurementStrategy options from init i.e MeasurementStrategy.probs(ComputationSpace=UNBUNCHED)
    Backwards compatibility maintained but warnings for 0.4 applied
  • MeasurementStrategy can take grouping as an additional argument e.g MeasurementStrategy.probs( grouping=LexGrouping())
  • MeasurementStrategy instead of OutputMapping
  • Support StateVector input into QuantumLayer to replace amplitude_encoding=True Boolean
    Backwards compatibility maintained but warnings for 0.4 applied
  • QuantumLayer.simple() now has interferometers before and after encoding, with a limit to the number of encoded features

Breaking changes:

  • Deprecation: No_bunching boolean is now deprecated in favour of UNBUNCHED computation_space

Related Issue

PML-179

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / Cleanup
  • Breaking change (requires migration notes)

Proposed changes

How to test / How to run

  1. Command lines
Block of code

Screenshots / Logs (optional)

Performance considerations (optional)

Documentation

  • User docs updated (Sphinx)
  • Examples / notebooks updated
  • Docstrings updated

Checklist

  • PR title includes Jira issue key (e.g., PML-126)
  • "Related Jira ticket" section includes the Jira issue key (no URL)
  • Code formatted (ruff format)
  • Lint passes (ruff)
  • Static typing passes (mypy) if applicable
  • Unit tests added/updated (pytest)
  • Tests pass locally (pytest)
  • Tests pass on GPU (pytest)
  • Test coverage not decreased significantly
  • Docs build locally if affected (sphinx)
  • Dependencies updated (if needed) and pinned appropriately
  • PR description explains what changed and how to validate it

CassNot and others added 30 commits January 19, 2026 09:07
…god-class-logic

# Conflicts:
#	merlin/algorithms/layer.py
…id-god-class-logic

PML-133: refactor QuantumLayer.init into composable setup steps
…' of github.com:jsenellart/merlin into PML-120-typed-state-vector-and-probability-distribution
…-probability-distribution

PML-120 typed state vector and probability distribution
PML-147 MeasurementStrategy.partial() factory
PML-140 PartialMeasurement & PartialMeasurementBranch
Still need to implement more tests and change the documentation
CassNot and others added 25 commits February 11, 2026 09:55
removed try/catch of standard imports
defined constants at top of file for retry numbers
# Conflicts:
#	docs/source/api_reference/api/merlin.core.generators.rst
#	docs/source/api_reference/api/merlin.core.rst
#	docs/source/reproduced_papers/reproductions/qllm_finetuning.rst
#	merlin/utils/__init__.py
remove legacy generator helps and uunsed featureencoder + normalize u…
#PML_163 MerlinProcessor docs update
#PML-115 Scaleway session support
fix RemoteProcesser(platform, token) not working
@github-actions
Copy link

github-actions bot commented Feb 12, 2026

⚠️ Coverage Report

Overall Coverage: 78.74%

Coverage Status

  • Target: 80% (warning threshold)
  • Current: 78.74%
  • Status: ⚠️ Below target

Coverage reports are informational and do not block PRs.
Generated using pytest-cov

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 143e3324e4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Update release/0.3.0 so it is up to date with main
@ben9871 ben9871 merged commit 165b05a into main Feb 12, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants