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

[Bug] Fix GPSR differentiation mode #616

Merged
merged 1 commit into from
Nov 19, 2024
Merged

[Bug] Fix GPSR differentiation mode #616

merged 1 commit into from
Nov 19, 2024

Conversation

vytautas-a
Copy link
Collaborator

Currently GPSR differentiation mode with pyqtorch backend is not used even when it is selected. Also h_norm factor is used when parsing analog gates that is not correct. This PR fixes these issues.

@chMoussa chMoussa added the bug Something isn't working label Nov 19, 2024
@vytautas-a vytautas-a merged commit 66219fb into main Nov 19, 2024
8 checks passed
@vytautas-a vytautas-a deleted the va/gpsr-fix branch November 19, 2024 12:47
chMoussa added a commit to pasqal-io/pyqtorch that referenced this pull request Nov 19, 2024
Following this [Qadence
MR](pasqal-io/qadence#616), where I quote
@vytautas-a :

`I suspect that due to some symmetries in matrices computed during GPSR
calculations, results with some generators are not correct. Breaking
this symmetry of shifts around pi/2 helps in this regard.`

Changing the interval for multigap GPSR to not be symmetric.

---------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants