bringing back qiskit.transpiler.passes.LightCone (backport #15219)
#15418
+8
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Brings
qiskit.transpiler.passes.optimization.light_cone.LightConetoqiskit.transpiler.passes.LightConeand updates the documentation links so it builds.Details and comments
qiskit.transpiler.passes.LightConewas introduced in 2.0 and it is documented in that release as such. However, the 2.1 documentation does not include it, and since then it has not been possible to import it usingfrom qiskit.transpiler.passes import LightCone. This PR restores that behavior.I haven’t investigated why/how/when this API breakage occurred, and my memory is known to be ... weak. So, there’s a chance I’m missing some context, in which case this PR can be closed as
wontfix.This is an automatic backport of pull request #15219 done by [Mergify](https://mergify.com).