prototype-quantum-kernel-training icon indicating copy to clipboard operation
prototype-quantum-kernel-training copied to clipboard

issue for import packag

Open soosoo9988 opened this issue 9 months ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Give some steps that show the bug. A minimal working example of code with output is best. If you are copying in code, please remember to enclose it in triple backticks, [multiline code goes here], so that it displays correctly.

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

Any suggestions? Not required, but if you have suggestions for how a contributor should fix this, or any problems we should be aware of, let us know.

soosoo9988 avatar May 02 '25 19:05 soosoo9988

I am creating a virtual environment and I set up Qiskit, but I have some packages l can't import like this

from qiskit_algorithms.optimizers import SPSA This error cannot import the name 'BaseSampler' from 'qiskit.primitives'

from qiskit_machine_learning.kernels import QuantumKernel this is error cannot import name 'Sampler' from 'qiskit.primitives'

from qiskit.utils import algorithm_globals, QuantumInstance cannot import name 'algorithm_globals' from 'qiskit.utils'

soosoo9988 avatar May 02 '25 19:05 soosoo9988