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

Add get_feedback_groups #162

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add get_feedback_groups #162

wants to merge 2 commits into from

Conversation

Jajiko
Copy link
Contributor

@Jajiko Jajiko commented Jan 28, 2025

Adds a method to get groups of fast feedback. The method is not used by any client adapter yet, it should be called manually.
It only works with API variant V2.

self._check_authentication_errors(result)
result.raise_for_status()
try:
channel_properties = result.json()
Copy link
Member

Choose a reason for hiding this comment

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

No model for channel properties like we have e.g. for DynamicQuantumArchitecture?

Comment on lines +928 to +931
for source in properties.get("fast_feedback_sources", ()):
groups.setdefault(source, set()).add(qubit)
# Merge identical groups
unique_groups: set[frozenset[str]] = {frozenset(group) for group in groups.values()}
Copy link
Member

Choose a reason for hiding this comment

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

What's in the fast_feedback_sources? Why do we get identical groups?

Copy link
Member

Choose a reason for hiding this comment

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

Multiple probe lines per group?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants