Skip to content

Conversation

@AFeuerpfeil
Copy link
Contributor

This PR is a follow up some work to make it possible/easier to add custom state or operator types without having to alter their base implementations, and without having to redefine a bunch of functionality that already just works.

This PR defines standard promotion rules for the styles in the form of
GeometryStyle(x, y, zs...) and OperatorStyle(x, y, zs...)
by recursively comparing the styles of the objects.

An example, where this is needed, are environments(below, operator, above).
This PR allows to extract and validate the common GeometryStyle by calling:

GeometryStyle(below, operator, above)

@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2025

Your PR no longer requires formatting changes. Thank you for your contribution!

@codecov
Copy link

codecov bot commented Nov 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/utility/styles.jl 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

AFeuerpfeil and others added 4 commits November 18, 2025 15:48
@lkdvos lkdvos merged commit 8df9de3 into QuantumKitHub:main Nov 19, 2025
27 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.

2 participants