26
26
DriveChannel ,
27
27
MeasureChannel ,
28
28
)
29
+ from qiskit .utils import deprecate_func
29
30
30
31
31
32
class GateConfig :
@@ -38,6 +39,15 @@ class GateConfig:
38
39
and CX.
39
40
"""
40
41
42
+ @deprecate_func (
43
+ since = "1.2" ,
44
+ removal_timeline = "in the 2.0 release" ,
45
+ additional_msg = "The models in ``qiskit.providers.models`` are part "
46
+ "of the deprecated `BackendV1` workflow and no longer necessary for `BackendV2`. If a user "
47
+ "workflow requires these representations it likely relies on deprecated functionality and "
48
+ "should be updated to use `BackendV2`." ,
49
+ stacklevel = 3 ,
50
+ )
41
51
def __init__ (
42
52
self ,
43
53
name ,
@@ -141,6 +151,14 @@ class UchannelLO:
141
151
scale: Scale factor for qubit frequency.
142
152
"""
143
153
154
+ @deprecate_func (
155
+ since = "1.2" ,
156
+ removal_timeline = "in the 2.0 release" ,
157
+ additional_msg = "The models in ``qiskit.providers.models`` are part "
158
+ "of the deprecated `BackendV1` workflow and no longer necessary for `BackendV2`. If a user "
159
+ "workflow requires these representations it likely relies on deprecated functionality and "
160
+ "should be updated to use `BackendV2`." ,
161
+ )
144
162
def __init__ (self , q , scale ):
145
163
"""Initialize a UchannelLOSchema object
146
164
@@ -211,6 +229,15 @@ class QasmBackendConfiguration:
211
229
212
230
_data = {}
213
231
232
+ @deprecate_func (
233
+ since = "1.2" ,
234
+ removal_timeline = "in the 2.0 release" ,
235
+ additional_msg = "The models in ``qiskit.providers.models`` are part "
236
+ "of the deprecated `BackendV1` workflow and no longer necessary for `BackendV2`. If a user "
237
+ "workflow requires these representations it likely relies on deprecated functionality and "
238
+ "should be updated to use `BackendV2`." ,
239
+ stacklevel = 3 ,
240
+ )
214
241
def __init__ (
215
242
self ,
216
243
backend_name ,
@@ -491,16 +518,35 @@ def __contains__(self, item):
491
518
492
519
493
520
class BackendConfiguration (QasmBackendConfiguration ):
494
- """Backwards compat shim representing an abstract backend configuration."""
521
+ """Backwards compatibility shim representing an abstract backend configuration."""
495
522
496
- pass
523
+ @deprecate_func (
524
+ since = "1.2" ,
525
+ removal_timeline = "in the 2.0 release" ,
526
+ additional_msg = "The models in ``qiskit.providers.models`` are part "
527
+ "of the deprecated `BackendV1` workflow and no longer necessary for `BackendV2`. If a user "
528
+ "workflow requires these representations it likely relies on deprecated functionality and "
529
+ "should be updated to use `BackendV2`." ,
530
+ stacklevel = 3 ,
531
+ )
532
+ def __init__ (self , * args , ** kwargs ):
533
+ super ().__init__ (* args , ** kwargs )
497
534
498
535
499
536
class PulseBackendConfiguration (QasmBackendConfiguration ):
500
537
"""Static configuration state for an OpenPulse enabled backend. This contains information
501
538
about the set up of the device which can be useful for building Pulse programs.
502
539
"""
503
540
541
+ @deprecate_func (
542
+ since = "1.2" ,
543
+ removal_timeline = "in the 2.0 release" ,
544
+ additional_msg = "The models in ``qiskit.providers.models`` are part "
545
+ "of the deprecated `BackendV1` workflow and no longer necessary for `BackendV2`. If a user "
546
+ "workflow requires these representations it likely relies on deprecated functionality and "
547
+ "should be updated to use `BackendV2`." ,
548
+ stacklevel = 3 ,
549
+ )
504
550
def __init__ (
505
551
self ,
506
552
backend_name : str ,
0 commit comments