Skip to content

Recursive HOF specialization remaps self call to specialization#3458

Open
idavis wants to merge 4 commits into
mainfrom
iadavis/recursive-defunc
Open

Recursive HOF specialization remaps self call to specialization#3458
idavis wants to merge 4 commits into
mainfrom
iadavis/recursive-defunc

Conversation

@idavis

@idavis idavis commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Fixes #3438

@idavis idavis self-assigned this Jul 13, 2026
@idavis
idavis requested review from amcasey and swernli as code owners July 13, 2026 15:49
#[test]
fn recursive_hof_specialization_remaps_self_call_to_specialization() {
let source = r#"
operation Repeat(op : Qubit => Unit, n : Int, q : Qubit) : Unit {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would there be any value in writing a similar test with a function or is the code path the same?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It should be the same, but I can add one for verification.

@idavis
idavis force-pushed the iadavis/recursive-defunc branch from 3a63547 to 1ba5cfb Compare July 14, 2026 18:16
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.

Wasm panic during QIR generation: uniqueness violation

2 participants