Traceback (most recent call last):
File "/home/kevinsung/projects/documentation/scratch/repro.py", line 22, in <module>
pass_manager.run(circuit)
File "/home/kevinsung/.local/share/virtualenvs/env-documentation/lib64/python3.12/site-packages/qiskit/transpiler/passmanager.py", line 397, in run
return super().run(circuits, output_name, callback, num_processes=num_processes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kevinsung/.local/share/virtualenvs/env-documentation/lib64/python3.12/site-packages/qiskit/transpiler/passmanager.py", line 420, in wrapper
return meth(*meth_args, **meth_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kevinsung/.local/share/virtualenvs/env-documentation/lib64/python3.12/site-packages/qiskit/transpiler/passmanager.py", line 182, in run
return super().run(
^^^^^^^^^^^^
File "/home/kevinsung/.local/share/virtualenvs/env-documentation/lib64/python3.12/site-packages/qiskit/passmanager/passmanager.py", line 229, in run
out_program = _run_workflow(
^^^^^^^^^^^^^^
File "/home/kevinsung/.local/share/virtualenvs/env-documentation/lib64/python3.12/site-packages/qiskit/passmanager/passmanager.py", line 292, in _run_workflow
passmanager_ir, final_state = flow_controller.execute(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kevinsung/.local/share/virtualenvs/env-documentation/lib64/python3.12/site-packages/qiskit/passmanager/base_tasks.py", line 218, in execute
passmanager_ir, state = next_task.execute(
^^^^^^^^^^^^^^^^^^
File "/home/kevinsung/.local/share/virtualenvs/env-documentation/lib64/python3.12/site-packages/qiskit/passmanager/base_tasks.py", line 218, in execute
passmanager_ir, state = next_task.execute(
^^^^^^^^^^^^^^^^^^
File "/home/kevinsung/.local/share/virtualenvs/env-documentation/lib64/python3.12/site-packages/qiskit/passmanager/base_tasks.py", line 98, in execute
ret = self.run(passmanager_ir)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kevinsung/.local/share/virtualenvs/env-documentation/lib64/python3.12/site-packages/qiskit/transpiler/passes/layout/vf2_layout.py", line 149, in run
has_operations = set(itertools.chain.from_iterable(self.target.qargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
I guess it is due to convert_to_target. I made a patch in the past, but it is not accepted https://github.com/Qiskit/qiskit/pull/11333.
We might need to update the transpiler side.
Environment
What is happening?
If the coupling map is not passed, it transpiles with no issue.
How can we reproduce the issue?
What should happen?
Should work.
Any suggestions?
No response