Skip to content

Track PartialEq support for quanticsgrids::DiscretizedGrid #404

@shinaoka

Description

@shinaoka

Summary

quanticsgrids::DiscretizedGrid does not implement PartialEq, which forces downstream crates to write handwritten structural equality wrappers.

Why this matters

In BubbleTeaCI-rs, we currently wrap quanticsgrids::DiscretizedGrid and had to add a manual PartialEq implementation just to compare grids in tests and helper logic. That workaround is easy to get out of sync with the real grid semantics.

Requested change

Please add structural PartialEq support for quanticsgrids::DiscretizedGrid at the defining crate level (likely quanticsgrids-rs), then let downstream users rely on that instead of reimplementing equality locally.

Suggested equality fields

A strict structural comparison seems appropriate here, for example comparing:

  • rs
  • variable_names
  • lower_bound
  • upper_bound
  • base
  • any other stored fields that affect grid semantics such as endpoint inclusion / index table

I do not think approximate float equality belongs in PartialEq; approximate checks can stay in tests or separate helper APIs.

Notes

This may need to be fixed in the quanticsgrids-rs dependency first and then pulled into tensor4all-rs. I'm opening the issue here because this is where the missing trait becomes visible in downstream integration work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions