Open aborgna-q opened 2 weeks ago
A related problem is when different instances are equivalent in internal representation. I.e. if a user specified a Result<T, ()>
should a roundtrip happily turn that in to Option<T>
? Not ideal.
Not ideal, but it's unavoidable unless we want to encode every different specialisation as serialisation variants.
Convert Sums into
UnitSum
/Tuple
/Option
/Result
as appropriate.Originally posted by @ss2165 in https://github.com/CQCL/hugr/issues/1481#issuecomment-2317520884