Open yaelbh opened 3 years ago
Oh I found alignment is missing in the execute function. We need to update this.
execute
is not updated anymore. Users need to set transpiler options to alignment=16, scheduling_method="alap"
. How do we make every user using delay
know this? Especially considering that no error is triggered, so users may not know that the delay was no performed.
I think now backends report alignment and users don't need to take care of it This is not reported yet. If you execute some circuit with delay on a backend reporting the alignment value, transpiler raises an error to ask one to set scheduling option. The problem here is we cannot pass this option from the execute API. Do we want to update execute @ajavadia ?
Sorry I misunderstood. execute
can take scheduling_method
. Users can get transpiler error and one can set scheduling_method
to execute. I think this issue can be closed.
Backend will report alignment value in few weeks, so please keep this issue open until we get alignment from backend configuration. Then you can get proper error message when you try to run circuits with invalid delay.
Here's a summary of what I understand will be the situation in a few weeks:
scheduling_method
set to something.scheduling_method
is not set, the transpiler triggers an error message, which recommends to set scheduling_method
to alap
.We should consider automatically setting scheduling_method
to alap
(if it's not set by the user), and probably report this behind-the-scenes activity in the screen or log.
Note that, following #6460, we will sometimes see the same behavior also in circuits that don't contain delay instructions.
Regarding #6460, if the delays are multiple of 16 dt then there will probably be no error
Just checking back in, would this issue resolved now on the cloud systems?
Information
What is the current behavior?
I've updated my Terra clone with the latest version, which includes the new pass. Still some circuits don't run correctly. I don't know if it's still related to the delay instruction.
Steps to reproduce the problem
Consider the code:
It works well:
But when I change the delays to
Everything gets stuck in the ground state:
Is there a limitation on the number of circuits?