Traceback (most recent call last):


 "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/resource_variable_ops.py", line 293, in __del__

self._handle, ignore_lookup_error=True)


 "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/gen_resource_variable_ops.py", line 252, in destroy_resource_op

_ops.raise_from_not_ok_status(e, name)


 "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py", line 6843, in raise_from_not_ok_status

six.raise_from(core._status_to_exception(e.code, message), None)


 "<string>", line 3, in raise_from
tensorflow.python.framework.errors_impl.InvalidArgumentError: stream is uninitialized or in an error state [Op:DestroyResourceOp]

Traceback (most recent call last):


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/pool.py", line 119, in worker

result = (True, func(*args, **kwds))


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/qiskit/transpiler/_transpiler.py", line 109, in _transpilation

pass_manager=pass_manager)


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/qiskit/transpiler/_transpiler.py", line 188, in transpile_dag

dag, coupling, initial_layout, trials=20, seed=seed_mapper)


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/qiskit/mapper/_mapping.py", line 397, in swap_mapper

for k, v in initial_layout.items()}


 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/qiskit/mapper/_mapping.py", line 397, in <dictcomp>

for k, v in initial_layout.items()}
TypeError: 'int' object is not subscriptable
