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

QuAM state gets prepended "q", even for string naming #246

Open
maxzanner opened this issue Nov 8, 2024 · 0 comments
Open

QuAM state gets prepended "q", even for string naming #246

maxzanner opened this issue Nov 8, 2024 · 0 comments

Comments

@maxzanner
Copy link

When creating a QuAM state or wiring the qubit names have a prepended "q". The naming is created in element.py in the QubitReference and QubitPairReference classes. It is probably useful to prepend a "q" when someone uses a list of integers to create qubit names but in case of strings it should not be prependend.

Suggested fix:
return f"q{self.index}" --> return self.index if isinstance(self.index, str) else f"q{self.index}"

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

No branches or pull requests

1 participant