qua-platform / quam

The Quantum Abstract Machine (QuAM) is a comprehensive framework designed to abstract and manage quantum programming environments, providing robust tools for configuring and running quantum operations effectively. It is built over the QUA programming language, offering an organized structure for handling complex quantum components and operations.
http://qua-platform.github.io/quam/
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Getting name of self #53

Open JacobHast opened 2 months ago

JacobHast commented 2 months ago

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 commented 1 month ago

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

JacobHast commented 1 month ago

Sounds good!