-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
The TwoQubitWeylDecomposition
says it only accepts ndarray:
qiskit/qiskit/synthesis/two_qubit/two_qubit_decompose.py
Lines 184 to 190 in 713ab38
def __init__( | |
self, | |
unitary_matrix: np.ndarray, | |
fidelity: float | None = 1.0 - 1.0e-9, | |
*, | |
_specialization: two_qubit_decompose.Specialization | None = None, | |
): |
However this line is passing a node op:
decomp = TwoQubitWeylDecomposition(node.op, fidelity=self.requested_fidelity) |
some of my code is now failing in qiskit 1.2.0 because in some of my unit tests, this is an
Instruction
which is, for what it's worth, not a gate in the qiskit library.
My problem goes away if I replace this:
circuit = qiskit.transpile(circuit, basis_gates=basis_gates, optimization_level=2)
in my test with:
circuit = qiskit.transpile(circuit, basis_gates=basis_gates, optimization_level=1)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working