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

feat: Use FullyConnected architecture #143

Merged
merged 7 commits into from
Apr 4, 2024

Conversation

johnchildren
Copy link
Contributor

@johnchildren johnchildren commented Apr 4, 2024

Description

Braket has a field to indicate that a device is fully connected that maps well onto the pytket FullyConnected architecture. This commit changes the utility function that converts between the two models to make use of this. This will change the BackendInfo returned by simulators or devices with full connectivity.

Related issues

N/A

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.

Braket has a field to indicate that a device is fully connected that
maps well onto the pytket FullyConnected architecture. This commit
changes the utility function that converts between the two models to
make use of this. This will change the BackendInfo returned by
simulators or devices with full connectivity.
@@ -494,6 +494,8 @@ def _get_arch_info(
connectivity = paradigm["connectivity"]
if connectivity["fullyConnected"]:
all_qubits: List = list(range(n_qubits))
arch = FullyConnected(len(all_qubits))
return arch, all_qubits
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like there is another place (l.516 below) where we could make this change?

@cqc-alec
Copy link
Collaborator

cqc-alec commented Apr 4, 2024

Hmm, looks like some tests are failing. Maybe this is a bit more complicated.

@johnchildren johnchildren merged commit 14d8525 into develop Apr 4, 2024
7 checks passed
@johnchildren johnchildren deleted the feat/use-fully-connected-arch-class branch April 4, 2024 13:30
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