Closed ax3l closed 2 years ago
Classic problem: https://github.com/quantumlib/Cirq/issues/1511#issuecomment-481427402
We should use use the named types over the fixed byte ones: https://en.cppreference.com/w/cpp/language/types
On Windows, long double
is not 128 bit but usually something like 80 bit.
Fix via #65
Thanks for the quick fix! I also quickly checked online and an alternative approach might be to use isinstance(value, np.floating)
for a generic approach. See examples in:
However this would require a refactor of test_attr
and seems more complicated than your fix.
Thanks!
That's good to know in case we start to support more exotic floating point numbers that are not part of the fundamental C language types.
On Windows:
Probably Windows numpy calls
long double
s differently.First seen by @ldoyle :+1: