Skip to content

fix(examples): correct backend_name in quantum_teleportation.py#1367

Merged
rich7420 merged 2 commits into
apache:mainfrom
ryankert01:fix/qumat-teleportation-backend-name
Jun 3, 2026
Merged

fix(examples): correct backend_name in quantum_teleportation.py#1367
rich7420 merged 2 commits into
apache:mainfrom
ryankert01:fix/qumat-teleportation-backend-name

Conversation

@ryankert01

Copy link
Copy Markdown
Member

Summary

  • examples/qumat/quantum_teleportation.py:22 used "qiskit_simulator" which is not a registered Qumat backend module, causing an immediate ModuleNotFoundError when running the example.
  • Changed to "qiskit", the valid backend name used by simple_example.py and documented in QuMat.__init__.

Fixes #1317.

Test plan

  • python examples/qumat/quantum_teleportation.py runs without ModuleNotFoundError
  • CI green

'qiskit_simulator' is not a registered Qumat backend module; the valid
name is 'qiskit' (matches simple_example.py and QuMat.__init__ docs).
Fixes apache#1317.
@ryankert01 ryankert01 force-pushed the fix/qumat-teleportation-backend-name branch from d4167bd to 0781b48 Compare June 1, 2026 08:20

@rich7420 rich7420 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryankert01 thanks for the patch!

@viiccwen viiccwen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rich7420 rich7420 merged commit 83bb94e into apache:main Jun 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] quantum_teleportation.py example uses invalid backend_name "qiskit_simulator"

3 participants