You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that this issue comes up because of the lack of input-handling logic in generate_preset_pass_manager, all of the transpiler constraint resolution logic takes place in transpile. In principle, #12185 should fix this problem (tested it locally and it works).
Environment
What is happening?
gives
File ~/mambaforge/envs/qiskit/lib/python3.11/site-packages/qiskit/transpiler/preset_passmanagers/common.py:573, in generate_scheduling(instruction_durations, scheduling_method, timing_constraints, inst_map, target)
566 scheduling.append(ContainsInstruction("delay"))
567 scheduling.append(
568 ConditionalController(
569 TimeUnitConversion(instruction_durations, target=target), condition=_contains_delay
570 )
571 )
572 if (
--> 573 timing_constraints.granularity != 1
574 or timing_constraints.min_length != 1
575 or timing_constraints.acquire_alignment != 1
576 or timing_constraints.pulse_alignment != 1
577 ):
578 # Run alignment analysis regardless of scheduling.
580 def _require_alignment(property_set):
581 return property_set["reschedule_required"]
AttributeError: 'NoneType' object has no attribute 'granularity'
How can we reproduce the issue?
run above
What should happen?
it should work
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: