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

Removed unnecessary type parameters and type piracy #80

Merged
merged 4 commits into from
May 18, 2023
Merged

Removed unnecessary type parameters and type piracy #80

merged 4 commits into from
May 18, 2023

Conversation

jlbosse
Copy link
Contributor

@jlbosse jlbosse commented May 16, 2023

I got some warnings for the mentioned type parameters and about type piracy that is fixed now.

But since expect(op::Scale, reg::CuDensityMatrix) implements exactly the same logic as expect(op::Scale, reg::DensityMatrix) in YaoArrayRegister, is it even needed or can it be removed altogether?

@GiggleLiu
Copy link
Member

Sorry, I forgot why I added this patch. If the tests pass locally, I think removing it is better.

@jlbosse
Copy link
Contributor Author

jlbosse commented May 16, 2023

In that case don't merge yet. I will check if the tests pass tomorrow when I am back at work and update the PR if they do.

because it was exactly the same logic as expect(::Scale, ::DensityMatrix)
@jlbosse
Copy link
Contributor Author

jlbosse commented May 17, 2023

Yup, as expected the tests also still pass after removing expect(::Scale, ::CuDensityMatrix)

@GiggleLiu GiggleLiu merged commit e3d9de2 into QuantumBFS:master May 18, 2023
@GiggleLiu
Copy link
Member

Thank you! I will tag a new version.

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