We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Pyquil currently contains a definition for the U gate. However, there is an alternative parameterization that is often used.
U
def U2(θ, ϕ, λ): return np.array([ [np.cos(θ/2) * np.exp(-1j* (ϕ + λ)/2), -1j* np.sin(θ/2) *np.exp(-1j*(ϕ - λ)/2)], [-1j* np.sin(θ/2) * np.exp(+1j* (ϕ-λ)/2), np.cos(θ/2)* np.exp(+1j*(ϕ+λ)/2)] ])
I suggest adding this the gates module.
The text was updated successfully, but these errors were encountered:
Hello!
if this issue is open to outside contribution, I would like to work on it.
Sorry, something went wrong.
Hello! if this issue is open to outside contribution, I would like to work on it.
👋 Hi @Adittya. Yes, contributions are welcome!
No branches or pull requests
Pyquil currently contains a definition for the
U
gate. However, there is an alternative parameterization that is often used.I suggest adding this the gates module.
The text was updated successfully, but these errors were encountered: