Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix input normalisation of
transpile(initial_layout=...)
(backport #…
…11031) (#11058) * Fix input normalisation of `transpile(initial_layout=...)` (#11031) * Fixed issue10554 by modifying _parse_initial_layout in transpile to normalize input of range to a list * Added test and bugfix note * Handle consumable iterables * Fix release-note cross references --------- Co-authored-by: Jake Lishman <jake.lishman@ibm.com> (cherry picked from commit 6148f90) # Conflicts: # test/python/transpiler/test_transpile_layout.py * Fix backport merge conflicts The backport of this commit from main failed because the test for this bug fix was added to an existing file on the main branch but that didn't exist on the stable/0.25 branch. To fix this the test is moved to a separate standalone file. Arguably, this should be done on main and stable/0.45 too as the file the test was added to was for a different component. --------- Co-authored-by: Henry Zou <87874865+henryzou50@users.noreply.github.com> Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
- Loading branch information