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

fix directed ECR gate #318

Merged
merged 5 commits into from
Apr 11, 2024
Merged

fix directed ECR gate #318

merged 5 commits into from
Apr 11, 2024

Conversation

cqc-melf
Copy link
Collaborator

Description

Fixing #312

Related issues

Please mention any github issues addressed by this PR.

Checklist

  • I have performed a self-review of my code.
  • I have commented hard-to-understand parts of my code.
  • I have made corresponding changes to the public API documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the changelog with any user-facing changes.

@cqc-melf cqc-melf marked this pull request as ready for review April 10, 2024 15:25
@cqc-melf cqc-melf requested a review from cqc-alec April 10, 2024 15:25
docs/changelog.rst Outdated Show resolved Hide resolved
pytket/extensions/qiskit/backends/ibm.py Outdated Show resolved Hide resolved
@@ -346,6 +347,11 @@ def required_predicates(self) -> List[Predicate]:
)
),
]
if type(self.backend_info.architecture) == Architecture:
predicates = [
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not append it to the end (saves constructing a new list).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done in 0dac35a

I have updated that for the lines below as well.

cqc-melf and others added 4 commits April 11, 2024 09:54
Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
@cqc-melf cqc-melf merged commit 8b85a3f into develop Apr 11, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants