Traceback (most recent call last):


 "d:\program files (x86)\python36\lib\runpy.py", line 193, in _run_module_as_main

"__main__", mod_spec)


 "d:\program files (x86)\python36\lib\runpy.py", line 85, in _run_code

exec(code, run_globals)


 "D:\Program 
s (x86)\Python36\Scripts\hug.exe\__main__.py", line 9, in <module>


 "d:\program files (x86)\python36\lib\site-packages\hug\interface.py", line 454, in __call__

result = self.interface(**pass_to_function)


 "d:\program files (x86)\python36\lib\site-packages\hug\interface.py", line 99, in __call__

return __hug_internal_self._function(*args, **kwargs)


 "d:\program files (x86)\python36\lib\site-packages\hug\development_runner.py", line 82, in hug

running.start()


 "d:\program files (x86)\python36\lib\multiprocessing\process.py", line 105, in start

self._popen = self._Popen(self)


 "d:\program files (x86)\python36\lib\multiprocessing\context.py", line 223, in _Popen

return _default_context.get_context().Process._Popen(process_obj)


 "d:\program files (x86)\python36\lib\multiprocessing\context.py", line 322, in _Popen

return Popen(process_obj)


 "d:\program files (x86)\python36\lib\multiprocessing\popen_spawn_win32.py", line 65, in __init__

reduction.dump(process_obj, to_child)


 "d:\program files (x86)\python36\lib\multiprocessing\reduction.py", line 60, in dump

ForkingPickler(file, protocol).dump(obj)
TypeError: can't pickle module objects

Traceback (most recent call last):


 "/Users/rbhatia/PycharmProjects/Quantum/rigetti_grover.py", line 25, in <module>

ret_string = algo.find_bitstring(qc, bitstring_map=mapping)


 "/Users/rbhatia/PycharmProjects/Quantum/venv/lib/python3.7/site-packages/grove/amplification/grover.py", line 102, in find_bitstring

sampled_bitstring = cxn.run_and_measure(self.grover_circuit, self.qubits)[0]


 "/Users/rbhatia/PycharmProjects/Quantum/venv/lib/python3.7/site-packages/pyquil/api/_error_reporting.py", line 238, in wrapper

val = func(*args, **kwargs)


 "/Users/rbhatia/PycharmProjects/Quantum/venv/lib/python3.7/site-packages/pyquil/api/_quantum_computer.py", line 227, in run_and_measure

bitstring_array = self.run(executable=executable)


 "/Users/rbhatia/PycharmProjects/Quantum/venv/lib/python3.7/site-packages/pyquil/api/_error_reporting.py", line 238, in wrapper

val = func(*args, **kwargs)


 "/Users/rbhatia/PycharmProjects/Quantum/venv/lib/python3.7/site-packages/pyquil/api/_quantum_computer.py", line 152, in run

return self.qam.run() \


 "/Users/rbhatia/PycharmProjects/Quantum/venv/lib/python3.7/site-packages/pyquil/api/_error_reporting.py", line 238, in wrapper

val = func(*args, **kwargs)


 "/Users/rbhatia/PycharmProjects/Quantum/venv/lib/python3.7/site-packages/pyquil/api/_qvm.py", line 519, in run

random_seed=self.random_seed)['ro']


 "/Users/rbhatia/PycharmProjects/Quantum/venv/lib/python3.7/site-packages/pyquil/api/_error_reporting.py", line 238, in wrapper

val = func(*args, **kwargs)


 "/Users/rbhatia/PycharmProjects/Quantum/venv/lib/python3.7/site-packages/pyquil/api/_base_connection.py", line 361, in _qvm_run

measurement_noise, gate_noise, random_seed)


 "/Users/rbhatia/PycharmProjects/Quantum/venv/lib/python3.7/site-packages/pyquil/api/_base_connection.py", line 248, in qvm_run_payload

raise TypeError("trials must be an integer")
TypeError: trials must be an integer
