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.32k stars 200 forks source link

[Backlog] Fix Deprecation Warnings #193

Open 01110011011101010110010001101111 opened 1 year ago

01110011011101010110010001101111 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
01110011011101010110010001101111 commented 1 year ago

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