From 64919c2490e063fd593f4a4ceb9d9171540528b4 Mon Sep 17 00:00:00 2001 From: Kazuki Tsuoka Date: Wed, 12 Jun 2024 23:55:21 +0900 Subject: [PATCH] fix: fix test --- torchquantum/plugin/qiskit/qiskit_plugin.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/torchquantum/plugin/qiskit/qiskit_plugin.py b/torchquantum/plugin/qiskit/qiskit_plugin.py index 9177d5bd..b018f2ec 100644 --- a/torchquantum/plugin/qiskit/qiskit_plugin.py +++ b/torchquantum/plugin/qiskit/qiskit_plugin.py @@ -22,15 +22,18 @@ SOFTWARE. """ - from typing import Iterable import numpy as np import qiskit import qiskit.circuit.library.standard_gates as qiskit_gate +import symengine +import sympy import torch from qiskit import ClassicalRegister, QuantumCircuit, transpile -from qiskit.circuit import Parameter +from qiskit.circuit import CircuitInstruction, Parameter +from qiskit.circuit.parameter import ParameterExpression +from qiskit.circuit.parametervector import ParameterVectorElement from qiskit_aer import AerSimulator from torchpack.utils.logging import logger