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

Getting name of self #53

Open
JacobHast opened this issue Jul 8, 2024 · 3 comments
Open

Getting name of self #53

JacobHast opened this issue Jul 8, 2024 · 3 comments

Comments

@JacobHast
Copy link
Collaborator

Sometimes I need to get the name of the component I'm working with w.r.t. it's parent, i.e. self.parent.get_attr_name(self). Maybe this could be standard method or property for QuamComponents so one doesn't have to remember the above syntax?

@nulinspiratie
Copy link
Contributor

Good idea, I was thinking of calling it QuamComponent.inferred_name, what do you think?

@JacobHast
Copy link
Collaborator Author

Sounds good!

@nulinspiratie
Copy link
Contributor

I've started implementing this for a related PR on gates in QUAM (see branch feat/gate-operations). We can discuss if this is a good solution for your use case, in which case I'll also port it to other QUAM components such as channels

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

2 participants