2

I have been using pickle (and also tried dill) to save and load Clifford gates coming from the Stim library. The following code: cliff_list = dill.load(filename) gives the error ImportError: generic_type: type "CompiledDemSampler" is already registered!.

The code is running fine on my laptop but not on a remote computer, where this error occurs. I am using other methods from Stim in the script where I try to load the above file. How should I try to fix this?

mbejan
  • 21
  • 1

0 Answers0