Skip to content

[BUG] TestGateFusion cases fails #2394

@Ghjk94522

Description

@Ghjk94522

Informations

  • Qiskit Aer version: 0.17.2
  • Python version: 3.11.10
  • Operating system: ubuntu 22.04
  • Nvidia Driver Version: 535.274.02
  • CUDA Version: 12.2
  • GPU: NVIDIA RTX A6000

What is the current behavior?

When running the command:

test.terra.backends.aer_simulator.test_fusion.TestGateFusion.test_non_kraus_noise_fusion_3___statevector____GPU_batch__

the test case fails and the error msg is:

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/workspace/qis-env/lib/python3.11/site-packages/ddt.py", line 221, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/workspace/qiskit-aer/test/terra/backends/aer_simulator/test_fusion.py", line 264, in test_non_kraus_noise_fusion
    self.assertTrue(meta.get("applied", False), msg="fusion should have been applied.")

      File "/opt/conda/lib/python3.11/unittest/case.py", line 715, in assertTrue
    raise self.failureException(msg)

    AssertionError: False is not true : fusion should have been applied.

which means the applied attribute should be set in meta but it didn't.Could you help investigate whether this is a backend bug, an expected limitation, or an issue in the test logic?

Let me know if more logs or debugging information are needed.

Steps to reproduce the problem

Install qiskit-aer from src.
Run command after installation.

What is the expected behavior?

Test cases pass.

Suggested solutions

NA.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions