dwavesystems / dwave-gate

dwave-gate is a software package for constructing, modifying and running quantum circuits on the provided state-vector simulator.
Apache License 2.0
12 stars 7 forks source link

make dev build process work with code generation #28

Open juansebastianl opened 1 year ago

juansebastianl commented 1 year ago

At the moment building locally inplace doesn't work unless you first run dwave/gate/simulator/operation_generation.py, this makes it so that the documentation is right and python setup.py build_ext --inplace should work. I don't think it's the most clean solution, but I couldn't get a solution with a custom build_py class as a command python setup.py generate_gates to work because of the cythonize() causing a build failure before the gates could be generated.