Skip to content

Fix Circuitbuilder autocompletion - #617

Merged
elenbaasc merged 8 commits into
developfrom
circuitbuilder
Sep 30, 2025
Merged

elenbaasc merged 8 commits into
developfrom
circuitbuilder

Conversation

@eendebakpt

Copy link
Copy Markdown
Contributor
  • Autocompletion is not working for commands like builder.CNOT. Can be fixed by creating a __dir__ for the dynamic attributes
  • Calling commands by typing builder.CNOT(0, 1) in the interactive prompt fails, because the __getattr__ returns also attributes that do not exist. In particular the attribute __custom_documentations__ using by IPython intro inspection methods.

@elenbaasc
elenbaasc merged commit dcb219d into develop Sep 30, 2025
16 checks passed
@elenbaasc
elenbaasc deleted the circuitbuilder branch March 10, 2026 09:46
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

Successfully merging this pull request may close these issues.

2 participants