From e8a63dd5f8a7639dce5a48f1c0a55b8b297b84a6 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 19 Jul 2022 21:47:43 +0000 Subject: [PATCH] Fix lint failure in qiskit/extensions/unitary.py (#8366) (#8380) Recently the pylint CI runs have all started failing because of an unused OrderedDict import failure in qiskit/extensions/unitary.py. The OrderedDict usage was removed in #8234 but the import was left in accidently. This should have been caught by the lint job on that PR but for some reason it was not caught and has sat there until relatively recently when pylint started erroring because of the error. Normally for failures like this they can be attributed to environment differences, typically a release of pylint or astroid. However, we pin those package versions because of their tendancy to change behavior, and also a diff between the installed python packages in CI doesn't show any differences. Regardless of the underlying cause to unblock CI this commit is necessary to fix the unused import error. (cherry picked from commit 007a74610d9e19c47b1e701479fdd86fa2fb8f1f) Co-authored-by: Matthew Treinish --- qiskit/extensions/unitary.py | 1 - 1 file changed, 1 deletion(-) diff --git a/qiskit/extensions/unitary.py b/qiskit/extensions/unitary.py index 5d9364805ded..a1bd2d2551aa 100644 --- a/qiskit/extensions/unitary.py +++ b/qiskit/extensions/unitary.py @@ -14,7 +14,6 @@ Arbitrary unitary circuit instruction. """ -from collections import OrderedDict import numpy from qiskit.circuit import Gate, ControlledGate