From 47029251af6d48577c0d488f4ea9622993496cf9 Mon Sep 17 00:00:00 2001 From: AlexanderIvrii Date: Thu, 18 Jan 2024 13:50:55 +0200 Subject: [PATCH] minor --- qiskit/qpy/binary_io/circuits.py | 1 - 1 file changed, 1 deletion(-) diff --git a/qiskit/qpy/binary_io/circuits.py b/qiskit/qpy/binary_io/circuits.py index c8bb91bf162b..ed70ad7c0d38 100644 --- a/qiskit/qpy/binary_io/circuits.py +++ b/qiskit/qpy/binary_io/circuits.py @@ -620,7 +620,6 @@ def _write_instruction(file_obj, instruction, custom_operations, index_map, use_ gate_class_name = instruction.operation.__class__.__name__ custom_operations_list = [] - if ( ( not hasattr(library, gate_class_name)