Skip to content

docs: Clarify how classical operations behave in dagger blocks - #242

Merged
nicolaassolini-qntm merged 6 commits into
mainfrom
na/194-explain-classic-computation-dagger
Sep 15, 2026
Merged

nicolaassolini-qntm merged 6 commits into
mainfrom
na/194-explain-classic-computation-dagger

Conversation

@nicolaassolini-qntm

@nicolaassolini-qntm nicolaassolini-qntm commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

closes #194

image

Note: Quantinuum/guppylang#2078 is still open, but after Quantinuum/guppylang#2176 and Quantinuum/guppylang#2140 we can do some classical computation.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The documentation is accurate and scoped, with only a minor grammatical correction suggested.

Pull request overview

Documents supported classical computation within dagger blocks.

Changes:

  • Explains classical-operation ordering.
  • Adds a checked rotation example and its inverted sequence.
File summaries
File Description
sphinx/language_guide/modifiers/dagger.md Documents classical operations in dagger blocks.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread sphinx/language_guide/modifiers/dagger.md Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The documentation incorrectly guarantees source-order execution despite Guppy allowing some listed operations to be reordered.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (1)

sphinx/language_guide/modifiers/dagger.md:32

  • angles definition is grammatically incorrect and makes this list nonparallel. Use consistent verb phrases for the examples.
Some simple classical operations, such as array indexing, angle construction, or arithmetic operations, are allowed inside dagger blocks.
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread sphinx/language_guide/modifiers/dagger.md Outdated

@CalMacCQ CalMacCQ left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks. Just one suggested rewording.

Comment thread sphinx/language_guide/modifiers/dagger.md Outdated
Comment thread sphinx/language_guide/modifiers/dagger.md Outdated
nicolaassolini-qntm and others added 2 commits September 15, 2026 14:39
Co-authored-by: Callum Macpherson <93673602+CalMacCQ@users.noreply.github.com>
Co-authored-by: Callum Macpherson <93673602+CalMacCQ@users.noreply.github.com>
@nicolaassolini-qntm
nicolaassolini-qntm merged commit e8c09da into main Sep 15, 2026
3 checks passed
@nicolaassolini-qntm
nicolaassolini-qntm deleted the na/194-explain-classic-computation-dagger branch September 15, 2026 13:50
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.

Explain how we treat classic computation inside the dagger modifier

3 participants