Skip to content

Sanity checks on SparseGate operations #335

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

Closed
Krastanov opened this issue Aug 5, 2024 · 1 comment · Fixed by #341
Closed

Sanity checks on SparseGate operations #335

Krastanov opened this issue Aug 5, 2024 · 1 comment · Fixed by #341
Labels
bug Something isn't working code quality Code that should be refactored good first issue Good for newcomers

Comments

@Krastanov
Copy link
Member

This does not make sense because we can not apply a 2-qibit operator on 3 target qubits.

julia> SparseGate(random_clifford(2), [1,2,3])
SparseGate{QuantumClifford.Tableau{Vector{UInt8}, Matrix{UInt64}}}(CliffordOperator on 2 qubits, [1, 2, 3])

This does not make sense because we can not apply a 3-qubit operator on a 2 qubit state

julia> apply!(random_stabilizer(2), SparseGate(random_clifford(3), [1,2,3]))
+ YX
+ YY
@Krastanov Krastanov added bug Something isn't working good first issue Good for newcomers code quality Code that should be refactored labels Aug 5, 2024
@Fe-r-oz
Copy link
Collaborator

Fe-r-oz commented Aug 12, 2024

This is interesting! I will submit patch to this today!

Fe-r-oz added a commit to Fe-r-oz/QuantumClifford.jl that referenced this issue Aug 12, 2024
Fe-r-oz added a commit to Fe-r-oz/QuantumClifford.jl that referenced this issue Aug 12, 2024
Fe-r-oz added a commit to Fe-r-oz/QuantumClifford.jl that referenced this issue Aug 12, 2024
Krastanov added a commit that referenced this issue Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code quality Code that should be refactored good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants