Skip to content

Conversation

pavoljuhas
Copy link
Collaborator

Resolves #7053

@pavoljuhas pavoljuhas requested review from vtomole and a team as code owners April 2, 2025 18:28
@pavoljuhas pavoljuhas requested review from dstrain115, daxfohl and mhucka and removed request for daxfohl April 2, 2025 18:28
Copy link

codecov bot commented Apr 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.14%. Comparing base (c34989b) to head (5009c1d).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7215      +/-   ##
==========================================
- Coverage   98.14%   98.14%   -0.01%     
==========================================
  Files        1104     1104              
  Lines       96352    96352              
==========================================
- Hits        94569    94565       -4     
- Misses       1783     1787       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pavoljuhas pavoljuhas enabled auto-merge April 2, 2025 21:19
Copy link
Contributor

@mhucka mhucka left a comment

Choose a reason for hiding this comment

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

LGTM. Tiny optional nit.

@@ -67,7 +67,7 @@ def is_parameterized(val: Any) -> bool:

A value is parameterized when it has an `_is_parameterized_` method and
that method returns a truthy value, or if the value is an instance of
sympy.Basic.
sympy.Basic. Note this covers sympy constants such as `sympy.pi`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Tiny nit that can be ignored: I would perhaps change that line to

`sympy.Basic`. Note this covers SymPy constants such as `sympy.pi`.

but really, looking at the rest of the file, it has other places where capitalization and backticks are inconsistent, so it could be left to some later sweep to deal with such nonessential things.

@pavoljuhas pavoljuhas added this pull request to the merge queue Apr 2, 2025
Merged via the queue into quantumlib:main with commit 11f0f51 Apr 2, 2025
40 checks passed
@pavoljuhas pavoljuhas deleted the doc-tweak-is_parameterized branch April 2, 2025 23:45
BichengYing pushed a commit to BichengYing/Cirq that referenced this pull request Jun 20, 2025
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.

protocols.is_parameterized(sympy.pi) currently returns True
3 participants