Skip to content

Optmizie PreparePureStateD#3048

Draft
swernli wants to merge 1 commit intomainfrom
swernli/optimize-state-prep
Draft

Optmizie PreparePureStateD#3048
swernli wants to merge 1 commit intomainfrom
swernli/optimize-state-prep

Conversation

@swernli
Copy link
Copy Markdown
Collaborator

@swernli swernli commented Mar 23, 2026

This change introduces different structure for Std.StatePreparation.PreparePureStateD and underlying helper functions, which reduces the compile time by offloading more of the classical compute into static functions run on the full evaluator rather than handled inside the partial-evaluation layer.

In local testing, this improved QIR compilation of a large state preparation on 16 qubits from 14 seconds to 4 seconds.

This change introduces different structure for `Std.StatePreparation.PreparePureStateD` and underlying helper functions, which reduces the compile time by offloading more of the classical compute into static functions run on the full evaluator rather than handled inside the partial-evaluation layer.
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.

1 participant