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

Define a __str__ method for the class QuantumModel #649

Open
giovanniminutoNL opened this issue Jan 22, 2025 · 0 comments
Open

Define a __str__ method for the class QuantumModel #649

giovanniminutoNL opened this issue Jan 22, 2025 · 0 comments
Labels
feature New feature or request

Comments

@giovanniminutoNL
Copy link
Collaborator

giovanniminutoNL commented Jan 22, 2025

Describe the feature

The feature addresses the challenge of retrieving key attributes of a QNN(QuantumModel) created using either a standard constructor or config. Currently, there is no straightforward method to extract basic details like the number of qubits (n_qubits), the depth of the ansatz, or more advanced properties like the encoding strategy (referred to as BasisSet in Qadence), the operations used in the feature map or in the ansatz.
Introducing a __str__ method that generates a string representation of a QNN containing the most relevant features of the QNN would resolve this limitation and improve usability.

It should be implemented because

No response

Additional context

No response

Would you like to work on this issue?

None

@giovanniminutoNL giovanniminutoNL added the feature New feature or request label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant