Skip to content

[Bug] CUDA tensor validation rejects iqp/iqp-z despite core encoder support #1083

@SuyashParmar

Description

@SuyashParmar

QdpEngine.encode() supports iqp and iqp-z in qdp-core, but the CUDA tensor validation path in pytorch.rs currently rejects these methods and only allows amplitude, angle, and basis.

This creates inconsistent behavior:

  • CPU/list/NumPy paths can use iqp/iqp-z
  • CUDA tensor path fails early with an unsupported-method error

Expected behavior
CUDA tensor inputs should allow iqp and iqp-z when dtype/shape/device constraints are satisfied (same style as other supported encodings).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions