Simon Burton
Simon Burton
``` Number = Forward("Number") class Number(Class, Final): value = Member(int) def __init__(self, val): self.value = val def __str__(self): return str(self.value) def __add__(self, other:Number): value = self.value + other.value return Number(value)...
How does str.format work? ``` class Number(Class, Final): value = Member(int) def __init__(self, val): self.value = val def __str__(self): return "Number({})".format(str(self.value)) ``` gives error: ``` File "./test_typed_python.py", line 16, in...
Here is the beginnings of an arbitrary length integer type: ``` Int64 = int # for those of us that don't think like a C compiler Long = Forward("Long") @Long.define...
What is the recommended python version to use?
Overriding `_create_surface` does not seem to work: ``` File "/home/simon/site-packages/cairosvg/surface.py", line 213, in __init__ self.context = cairo.Context(self.cairo) File "/usr/lib/python3/dist-packages/cairocffi/context.py", line 101, in __init__ self._init_pointer(cairo.cairo_create(target._pointer)) AttributeError: 'cairo.PDFSurface' object has no attribute...
Thankyou John. The use case is to generate and/or compute efficiently products and equality within the Clifford group. (The tablaux methods can only do this up to global phase.) As...
I'm interested in the Clifford group: these are unitary operators, but they should have efficient (in qubit number) representations. It sounds like you are telling me this is an open...