Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose apply to allow arbitrary unitary application #208

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Dec 3, 2024

This updates the sparse simulator to make public the apply function used in tests that allows for (slow but stable) application of arbitrary unitaries to the current sparse state.

This updates the sparse simulator to make public the `apply` function used in tests that allows for (slow but stable) application of arbitrary unitaries to the current sparse state.
@swernli swernli requested review from idavis and billti as code owners December 3, 2024 23:57
@swernli swernli merged commit 562e2c1 into main Dec 4, 2024
12 checks passed
@swernli swernli deleted the swernli/apply-unitary branch December 4, 2024 22:08
github-merge-queue bot pushed a commit to microsoft/qsharp that referenced this pull request Dec 5, 2024
This adds a new library function `ApplyUnitary` that given a matrix of
complex numbers will apply that matrix to the given qubits. This
requires a new version of the simulator that exposes the functionality
publicly.

Starting as draft to wait for
qir-alliance/qir-runner#208
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