Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dead code branch from
Optimize1qDecomposition
Python code (#…
…13188) Since 8e5fab6 (gh-12959), this branch has been dead, and the Rust method alluded to in it (`compute_error_one_qubit_sequence`) was removed. This is occasionally - but for some reason not always - detected by `pylint`, and it's a true error so should be removed. In fact, almost all of the Python code in `Optimize1qDecomposition` is dead from the perspective of that transpiler pass. However, `Optimize1qCommutation` has no concept of safe API boundaries, and is in fact still using all of these methods (and the default `UnitarySynthesis` plugin does a little too). A follow-up commit can reorganise the code to fix this, but this commit is intended to be mergeable faster, to unblock a couple of PRs that are triggering the pylint failure.
- Loading branch information