microsoft / QuantumLibraries

Q# libraries for the Quantum Development Kit
https://docs.microsoft.com/quantum
MIT License
543 stars 179 forks source link

The operation matrix is not correct for PauliY gate #649

Closed hiroyha1 closed 1 year ago

hiroyha1 commented 1 year ago

The operation corresponding to the PauliY should be SH not HS.

https://github.com/microsoft/QuantumLibraries/blob/5cb1f4323e8e81196fdd2a6e07867597c62a9ef2/Standard/src/Preparation/Mixed.qs#L92

        } elif (basis == PauliY) {
            H(qubit);
            S(qubit);
        }

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

msoeken commented 1 year ago

Thanks for filing this, @hirayha1. You are suggesting to change the documentation, right? If you like, you can create a PR to solve this issue. Please let me know if I can help with that.

hiroyha1 commented 1 year ago

@msoeken I created a PR.