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

Call none #439

Merged
merged 143 commits into from
Aug 13, 2024
Merged

Call none #439

merged 143 commits into from
Aug 13, 2024

Conversation

kaspernielsen96
Copy link
Collaborator

Context:
Adding a method where one can call the ansatz with None for some arguments. This will return a an updated ansatz with on fewer variables (wires).
Description of the Change:
Adding a method to the DiffOpPolyExpAnsatz where one can evaluate only some of the wires, and thus returning a new updated ansatz.
Benefits:
Allows for reduction in the size of the ansatz. Can also be used with BtoQ to do a Homodyne measurement.

mrmustard/physics/ansatze.py Outdated Show resolved Hide resolved
mrmustard/physics/ansatze.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@ziofil ziofil left a comment

Choose a reason for hiding this comment

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

👍

@kaspernielsen96 kaspernielsen96 merged commit 3a6a35b into develop Aug 13, 2024
7 checks passed
@kaspernielsen96 kaspernielsen96 deleted the call_none branch August 13, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Pull request does not require a CHANGELOG entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants