Skip to content

[Feature Request] Add Typed Transform Wrappers for FICO and ZRH Gate Inputs #46

@k8ika0s

Description

@k8ika0s

Proposed PR branch: qe/issue-07-transform-typed-wrappers

Category: Feature Request (usability + safer integration surface)

Problem

  • Transform entry points are easy to misuse from integrations.
  • Typed wrappers reduce caller mistakes and simplify language bindings.

Justification / why this is needed

  • Many consumers call zDNN from C++ and higher-level runtimes (Python, Rust,
    Java, etc). Varargs/loosely-typed inputs complicate safe bindings.
  • Typed wrappers reduce the chance of mixing up descriptor/format parameters
    and make call sites self-documenting.
  • This is purely additive/opt-in and does not remove existing APIs.

Proposed change

  • Add typed wrappers for FICO and ZRH gate inputs.
  • Add dedicated tests.
  • (Optional follow-up) Add README examples once the code changes are merged upstream.

Acceptance criteria

  • New typed wrapper APIs are exported.
  • Existing APIs remain supported.
  • Tests cover expected behavior and invalid input handling.

Test plan

  • make test (expects tests/testDriver_transform_typed_wrappers.c to pass).

References

  • Key files: zdnn/stickify.c, zdnn/zdnn.h, zdnn/zdnn.map,
    tests/testDriver_transform_typed_wrappers.c.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions