Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tweedledum from macOS arm64 immediately #8849

Merged
merged 2 commits into from
Oct 7, 2022

Conversation

jakelishman
Copy link
Member

Summary

In gh-8818 we prevented macOS arm64 from attempting to use tweedledum 1.1.1 as no arm64 wheels are supplied for that version. In fact, the "arm64" and "universal2" wheels supplied for 1.1.0 are actually mislabelled x86_64 wheels as well, and so there is no working binary version of tweedledum for arm64, and the sdist build process works only rarely for most people.

Since the work of gh-8738 makes tweedledum effectively optional for import qiskit with immediate effect, and the only way to have a working installation on M1 mac is essentially to have already manually built tweedledum from source, the effects of immediately removing the requirement from arm64 macs only should be very slight at worst, and a good quality of life improvement for normal M1 users.

Details and comments

See also #8716 (comment) and next reply.

In Qiskitgh-8818 we prevented macOS arm64 from attempting to use tweedledum
1.1.1 as no arm64 wheels are supplied for that version.  In fact, the
"arm64" and "universal2" wheels supplied for 1.1.0 are actually
mislabelled x86_64 wheels as well, and so there is no working binary
version of tweedledum for arm64, and the sdist build process works only
rarely for most people.

Since the work of Qiskitgh-8738 makes `tweedledum` _effectively_ optional for
`import qiskit` with immediate effect, and the only way to have a
working installation on M1 mac is essentially to have already manually
built `tweedledum` from source, the effects of immediately removing the
requirement from arm64 macs only should be very slight at worst, and a
good quality of life improvement for normal M1 users.
@jakelishman jakelishman added the Changelog: API Change Include in the "Changed" section of the changelog label Oct 6, 2022
@jakelishman jakelishman added this to the 0.22 milestone Oct 6, 2022
@jakelishman jakelishman requested a review from a team as a code owner October 6, 2022 22:47
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

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

  • @Qiskit/terra-core

@coveralls
Copy link

coveralls commented Oct 6, 2022

Pull Request Test Coverage Report for Build 3205145905

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 10 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.004%) to 84.678%

Files with Coverage Reduction New Missed Lines %
qiskit/extensions/quantum_initializer/squ.py 2 79.78%
src/sabre_swap/mod.rs 2 95.05%
src/results/marginalization.rs 6 60.92%
Totals Coverage Status
Change from base Build 3205137493: 0.004%
Covered Lines: 61841
Relevant Lines: 73031

💛 - Coveralls

Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

Yeah, after checking the wheels on pypi myself it looks like they're all x86_64 binaries. I think at this point this is the right call. So let's just remove the requirement for m1 mac in 0.22.0 and for 0.23.0 we remove it for everyone.

@mergify mergify bot merged commit b5a3747 into Qiskit:main Oct 7, 2022
@jakelishman jakelishman deleted the remove-tweedledum-m1 branch October 7, 2022 15:00
mtreinish added a commit to mtreinish/qiskit-core that referenced this pull request Oct 11, 2022
This commit fixes an oversight in Qiskit#8849 and Qiskit#8818 which made tweedledum
optional for arm64 macOS systems which was the unittest suite still
unconditionally depends on tweedledum being installed to run the
classical function compiler tests. This commit fixes this by making the
tests skip if tweedledum isn't installed so that M1 mac users are able
to run the full test suite again.
mergify bot pushed a commit that referenced this pull request Oct 12, 2022
* Skip classical function tests if tweedledum isn't present

This commit fixes an oversight in #8849 and #8818 which made tweedledum
optional for arm64 macOS systems which was the unittest suite still
unconditionally depends on tweedledum being installed to run the
classical function compiler tests. This commit fixes this by making the
tests skip if tweedledum isn't installed so that M1 mac users are able
to run the full test suite again.

* Skip other tests requiring tweedledum
mergify bot pushed a commit that referenced this pull request Oct 12, 2022
* Skip classical function tests if tweedledum isn't present

This commit fixes an oversight in #8849 and #8818 which made tweedledum
optional for arm64 macOS systems which was the unittest suite still
unconditionally depends on tweedledum being installed to run the
classical function compiler tests. This commit fixes this by making the
tests skip if tweedledum isn't installed so that M1 mac users are able
to run the full test suite again.

* Skip other tests requiring tweedledum

(cherry picked from commit 75fe9bb)
mergify bot added a commit that referenced this pull request Oct 12, 2022
)

* Skip classical function tests if tweedledum isn't present

This commit fixes an oversight in #8849 and #8818 which made tweedledum
optional for arm64 macOS systems which was the unittest suite still
unconditionally depends on tweedledum being installed to run the
classical function compiler tests. This commit fixes this by making the
tests skip if tweedledum isn't installed so that M1 mac users are able
to run the full test suite again.

* Skip other tests requiring tweedledum

(cherry picked from commit 75fe9bb)

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
ElePT pushed a commit to ElePT/qiskit that referenced this pull request Jun 27, 2023
* Skip classical function tests if tweedledum isn't present

This commit fixes an oversight in Qiskit#8849 and Qiskit#8818 which made tweedledum
optional for arm64 macOS systems which was the unittest suite still
unconditionally depends on tweedledum being installed to run the
classical function compiler tests. This commit fixes this by making the
tests skip if tweedledum isn't installed so that M1 mac users are able
to run the full test suite again.

* Skip other tests requiring tweedledum
ElePT pushed a commit to ElePT/qiskit-algorithms-test that referenced this pull request Jul 17, 2023
…kit#8876)

* Skip classical function tests if tweedledum isn't present

This commit fixes an oversight in Qiskit/qiskit#8849 and Qiskit/qiskit#8818 which made tweedledum
optional for arm64 macOS systems which was the unittest suite still
unconditionally depends on tweedledum being installed to run the
classical function compiler tests. This commit fixes this by making the
tests skip if tweedledum isn't installed so that M1 mac users are able
to run the full test suite again.

* Skip other tests requiring tweedledum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: API Change Include in the "Changed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants