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

QubitUnitary accepts sparse matrices as inputs #6889

Open
wants to merge 84 commits into
base: master
Choose a base branch
from

Update pennylane/ops/qubit/matrix_ops.py

306bd8c
Select commit
Loading
Failed to load commit list.
Open

QubitUnitary accepts sparse matrices as inputs #6889

Update pennylane/ops/qubit/matrix_ops.py
306bd8c
Select commit
Loading
Failed to load commit list.
codefactor.io / CodeFactor succeeded Feb 12, 2025 in 3s

2 minor issues found.

Annotations

Check notice on line 643 in pennylane/ops/op_math/decompositions/two_qubit_unitary.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/ops/op_math/decompositions/two_qubit_unitary.py#L643

Possibly using variable 'num_cnots' before assignment (possibly-used-before-assignment)

Check notice on line 215 in pennylane/ops/op_math/decompositions/two_qubit_unitary.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/ops/op_math/decompositions/two_qubit_unitary.py#L215

Possibly using variable 'B' before assignment (possibly-used-before-assignment)