Skip to content

Conversation

1ucian0
Copy link
Member

@1ucian0 1ucian0 commented Sep 21, 2023

Summary

The functions qiskit.scheduler.utils.format_meas_map, qiskit.scheduler.utils.measure, and qiskit.scheduler.utils.measure_all had been moved to qiskit.pulse.utils.format_meas_map, qiskit.pulse.macros.measure, and qiskit.pulse.macros.measure_all respectively. The previous location was deprecated in Qiskit 0.20.0 (Terra 0.15.0, released on 2020-08-10) and it is not longer supported.

@1ucian0 1ucian0 requested review from eggerdj, wshanks and a team as code owners September 21, 2023 19:12
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core
  • @nkanazawa1989

@1ucian0 1ucian0 added the Changelog: Removal Include in the Removed section of the changelog label Sep 21, 2023
@1ucian0
Copy link
Member Author

1ucian0 commented Sep 22, 2023

This partially overlaps with #10779 . However, we can merge this independently, as it will allow us to remove deprecate_function sooner

Comment on lines -18 to -29
format_meas_map = deprecate_function(
'"format_meas_map" has been moved to "qiskit.pulse.utils"',
since="0.15.0",
)(utils.format_meas_map)

measure = deprecate_function('"measure" has been moved to "qiskit.pulse.macros"', since="0.15.0")(
macros.measure
)

measure_all = deprecate_function(
'"measure_all" has been moved to "qiskit.pulse.macros"', since="0.15.0"
)(macros.measure_all)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a good thing that we're getting rid of this, because it will have been breaking the documentation of qiskit.pulse.macros.measure_all (etc) because deprecate_function/deprecate_func mutate their inputs. Fortunately it looks like we don't actually seem to document those inner functions, only the pulse.builder.measure_all wrapper around it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if I understand the question

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's nothing you need to change, it was just a comment about how this deprecation was broken by #9790, but fortunately it won't actually have leaked out to users.

Comment on lines 6 to 8
had been moved to :func:`qiskit.pulse.utils.format_meas_map`, :func:`qiskit.pulse.macros.measure`,
and :func:`qiskit.pulse.macros.measure_all` respectively. The previous location was deprecated
in Qiskit 0.20.0 (Terra 0.15.0, released on 2020-08-10) and it is not longer supported.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not certain that the cross-references here will resolve. It's not clear to me whether those functions are actually meant to be used directly or documented - seems to me a little more that they're only meant to be called via the pulse builder interface, such as the wrapper pulse.builder.measure_all?

(Also, "not longer supported" -> "no longer supported".)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cross reference (and typo) removed in 55b3b7e

@jakelishman jakelishman added this to the 0.45.0 milestone Sep 25, 2023
@jakelishman jakelishman added this pull request to the merge queue Sep 25, 2023
Merged via the queue into Qiskit:main with commit 682eccd Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Removal Include in the Removed section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants