Skip to content

Allow string aliases for CompilerProfile - #456

Merged
sgrava merged 3 commits into
mainfrom
sg/allow_compiler_profile_string_alias
Aug 18, 2026
Merged

sgrava merged 3 commits into
mainfrom
sg/allow_compiler_profile_string_alias

Conversation

@sgrava

@sgrava sgrava commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • QuantumProgram.compile_to now accepts profile as either a CompilerProfile enum member or its string alias (e.g. "max_energy", "working_point"), converting via CompilerProfile(profile) before compilation.
  • Updated the compile_to docstring for accuracy (correct string values, complete Raises section) and clarity.
  • Added test coverage for string-alias equivalence and invalid-string rejection in test_compile_to.py.

Progresses #455 by addressing its first sub-task ("Allow string aliases in CompilerProfile").

@sgrava sgrava added this to the v1.4 milestone Aug 18, 2026
@sgrava
sgrava requested a review from abussy-pasqal August 18, 2026 12:41
@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-18 13:53 UTC

Comment thread qoolqit/program.py Outdated
Comment thread qoolqit/program.py Outdated
@sgrava
sgrava requested a review from abussy-pasqal August 18, 2026 13:20
@sgrava
sgrava merged commit f864ab0 into main Aug 18, 2026
16 checks passed
@sgrava
sgrava deleted the sg/allow_compiler_profile_string_alias branch August 18, 2026 13:53
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