mit-han-lab / torchquantum

A PyTorch-based framework for Quantum Classical Simulation, Quantum Machine Learning, Quantum Neural Networks, Parameterized Quantum Circuits with support for easy deployments on real quantum computers.
https://torchquantum.org
MIT License
1.3k stars 197 forks source link

[Backlog] Fix Deprecation Warnings #193

Open GenericP3rson opened 1 year ago

GenericP3rson commented 1 year ago

Task for some point: fix the deprecation warnings when running.

torchquantum/torchquantum/plugin/qiskit/qiskit_pulse.py:29: DeprecationWarning: The module 'qiskit.test.mock' is deprecated since Qiskit Terra 0.21.0, and will be removed 3 months or more later. Instead, you should import the desired object directly 'qiskit.providers.fake_provider'.
    from qiskit.test.mock import FakeQuito, FakeArmonk, FakeBogota
GenericP3rson commented 11 months ago

Adding to this, we should eventually migrate from opflow: https://qiskit.org/documentation/migration_guides/opflow_migration.html