Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate qiskit.providers.models #12788

Closed
wants to merge 172 commits into from

Merge branch 'deprecate/backendv1' into deprecate/providers/models/1

74e9e70
Select commit
Loading
Failed to load commit list.
Closed

Deprecate qiskit.providers.models #12788

Merge branch 'deprecate/backendv1' into deprecate/providers/models/1
74e9e70
Select commit
Loading
Failed to load commit list.
Azure Pipelines / Qiskit.qiskit failed Jul 29, 2024 in 36m 1s

Build #20240729.24 had test failures

Details

Tests

  • Failed: 181 (1.03%)
  • Passed: 17,414 (98.86%)
  • Other: 19 (0.11%)
  • Total: 17,614

Annotations

Check failure on line 29407 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Qiskit.qiskit

Build log #L29407

Bash exited with code '1'.

Check failure on line 1 in test_backend_props_constraints

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Qiskit.qiskit

test_backend_props_constraints

Test failed
Raw output
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/tmp/terra-tests/test/python/compiler/test_transpiler.py", line 1669, in test_backend_props_constraints
    result = transpile(
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/unittest/case.py", line 294, in __exit__
    self._raiseFailure("{} not triggered".format(exc_name))
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/unittest/case.py", line 164, in _raiseFailure
    raise self.test_case.failureException(msg)
AssertionError: DeprecationWarning not triggered

Check failure on line 1 in test_scheduling_dt_constraints

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Qiskit.qiskit

test_scheduling_dt_constraints

Test failed
Raw output
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/tmp/terra-tests/test/python/compiler/test_transpiler.py", line 1616, in test_scheduling_dt_constraints
    self.assertEqual(scheduled.duration, original_duration * 2)
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/unittest/case.py", line 294, in __exit__
    self._raiseFailure("{} not triggered".format(exc_name))
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/unittest/case.py", line 164, in _raiseFailure
    raise self.test_case.failureException(msg)
AssertionError: DeprecationWarning not triggered

Check failure on line 1 in test_parallel_dispatch_1_0

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Qiskit.qiskit

test_parallel_dispatch_1_0

Test failed
Raw output
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/vsts/work/1/s/test-job/lib/python3.8/site-packages/ddt.py", line 221, in wrapper
    return func(self, *args, **kwargs)
  File "/tmp/terra-tests/test/python/compiler/test_transpiler.py", line 2728, in test_parallel_dispatch
    result = backend.run(tqc, seed_simulator=4242424242, shots=1000).result()
  File "/home/vsts/work/1/s/qiskit/providers/fake_provider/generic_backend_v2.py", line 549, in run
    self._setup_sim()
  File "/home/vsts/work/1/s/qiskit/providers/fake_provider/generic_backend_v2.py", line 559, in _setup_sim
    self._sim = AerSimulator()
  File "/home/vsts/work/1/s/test-job/lib/python3.8/site-packages/qiskit_aer/backends/aer_simulator.py", line 728, in __init__
    configuration = QasmBackendConfiguration.from_dict(AerSimulator._DEFAULT_CONFIGURATION)
  File "/home/vsts/work/1/s/qiskit/providers/models/backendconfiguration.py", line 424, in from_dict
    return cls(**in_data)
  File "/home/vsts/work/1/s/qiskit/utils/deprecation.py", line 96, in wrapper
    warnings.warn(msg, category=category, stacklevel=stacklevel)
DeprecationWarning: The class ``qiskit.providers.models.backendconfiguration.QasmBackendConfiguration`` is deprecated as of qiskit 1.2. It will be removed in the 2.0 release. This class is not necessary for BackendV2. If user still need Qobj, that probably means that they are using a backend based on the deprecated BackendV1 class.

Check failure on line 1 in test_scheduling_instruction_constraints

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Qiskit.qiskit

test_scheduling_instruction_constraints

Test failed
Raw output
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/tmp/terra-tests/test/python/compiler/test_transpiler.py", line 1587, in test_scheduling_instruction_constraints
    self.assertEqual(scheduled.duration, 1500)
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/unittest/case.py", line 294, in __exit__
    self._raiseFailure("{} not triggered".format(exc_name))
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/unittest/case.py", line 164, in _raiseFailure
    raise self.test_case.failureException(msg)
AssertionError: DeprecationWarning not triggered