Skip to content

adding FakePerth#8344

Merged
mergify[bot] merged 8 commits into
Qiskit:mainfrom
1ucian0:ibm_perth/fakebackend
Sep 16, 2022
Merged

adding FakePerth#8344
mergify[bot] merged 8 commits into
Qiskit:mainfrom
1ucian0:ibm_perth/fakebackend

Conversation

@1ucian0
Copy link
Copy Markdown
Member

@1ucian0 1ucian0 commented Jul 14, 2022

This PRs adds FakePerth based on ibm_perth.

@1ucian0 1ucian0 requested review from a team and jyu00 as code owners July 14, 2022 11:08
@qiskit-bot
Copy link
Copy Markdown
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
Copy Markdown

coveralls commented Jul 14, 2022

Pull Request Test Coverage Report for Build 3070775131

  • 12 of 12 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 84.389%

Totals Coverage Status
Change from base Build 3070773075: 0.05%
Covered Lines: 59235
Relevant Lines: 70193

💛 - Coveralls

@1ucian0 1ucian0 force-pushed the ibm_perth/fakebackend branch from bdb45f1 to dc7df1e Compare July 15, 2022 08:45
@HuangJunye HuangJunye self-assigned this Aug 5, 2022
Comment thread releasenotes/notes/ibm_perth-5b1e9308dc302e2e.yaml Outdated
@1ucian0 1ucian0 added this to the 0.22 milestone Aug 8, 2022
Copy link
Copy Markdown
Collaborator

@HuangJunye HuangJunye left a comment

Choose a reason for hiding this comment

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

Overall LGTM. Just one small comment.

Comment thread qiskit/providers/fake_provider/backends/perth/__init__.py Outdated
@HuangJunye HuangJunye mentioned this pull request Aug 9, 2022
from qiskit.providers.fake_provider import fake_backend


class FakePerthV2(fake_backend.FakeBackendV2):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If there is no V1 variant we don't need to mark this as V2

Suggested change
class FakePerthV2(fake_backend.FakeBackendV2):
class FakePerth(fake_backend.FakeBackendV2):

Copy link
Copy Markdown
Member Author

@1ucian0 1ucian0 Sep 16, 2022

Choose a reason for hiding this comment

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

sounds good. Done in 06a0517 . So, the type is the way to check the version?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can either type check, or there is a .version class attribute set in the base abstract class. So you can do something like: backend.version >= 2 or something like that.

Copy link
Copy Markdown
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.

LGTM, thanks for the updates

@1ucian0
Copy link
Copy Markdown
Member Author

1ucian0 commented Sep 16, 2022

Awesome. Ill update the rest.

@mergify mergify Bot merged commit cdfd66e into Qiskit:main Sep 16, 2022
@1ucian0 1ucian0 deleted the ibm_perth/fakebackend branch September 17, 2022 18:31
@mtreinish mtreinish added the Changelog: Added Add an "Added" entry in the GitHub Release changelog. label Oct 5, 2022
ElePT pushed a commit to ElePT/qiskit-ibm-provider that referenced this pull request Oct 4, 2023
* adding FakePerth

* Update releasenotes/notes/ibm_perth-5b1e9308dc302e2e.yaml

* Mock over Fake

* remove V1

* removing v2

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
ElePT pushed a commit to ElePT/qiskit-ibm-runtime that referenced this pull request Oct 10, 2023
* adding FakePerth

* Update releasenotes/notes/ibm_perth-5b1e9308dc302e2e.yaml

* Mock over Fake

* remove V1

* removing v2

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
ElePT pushed a commit to ElePT/qiskit that referenced this pull request Oct 12, 2023
* adding FakePerth

* Update releasenotes/notes/ibm_perth-5b1e9308dc302e2e.yaml

* Mock over Fake

* remove V1

* removing v2

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
ElePT pushed a commit to ElePT/qiskit-ibm-runtime that referenced this pull request Dec 8, 2023
* adding FakePerth

* Update releasenotes/notes/ibm_perth-5b1e9308dc302e2e.yaml

* Mock over Fake

* remove V1

* removing v2

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: Added Add an "Added" entry in the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants