Skip to content

[QDP] DLPack shape/strides: Support batch 2D tensor #746

@rich7420

Description

@rich7420

Summary

Currently, GpuStateVector::to_dlpack() always returns ndim=1 with shape [total_elements], even for batch operations. Users must manually view() to get [num_samples, 2^n], which is error-prone.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions