-
Notifications
You must be signed in to change notification settings - Fork 2
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
CQT-141-Qubit-declaration-added-to-simplest-circuit #349
CQT-141-Qubit-declaration-added-to-simplest-circuit #349
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work Guy!
Can we add some tests for this code? Circuits:
- With qubits and bits.
- Only with qubits.
- Only with bits.
- Without qubits and bits.
Thanks!
Update simplest circuit string representation according to feedback Co-authored-by: Roberto Turrado Camblor <rturrado@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's refine those tests, Guy!
Remember to run the linters before committing as indicated in the CONTRIBUTING guide, Guy. |
Co-authored-by: Roberto Turrado Camblor <rturrado@gmail.com>
…into CQT-141-Qubit-declaration-added-to-simplest-circuit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes Guy.
Just a question and a comment:
- Question: have we agreed on adding the
ruff format
to tox.ini? - Comment: can you try to write the circuit strings and the expected outputs in a single line? Just to make the test simpler. You could even put a circuit string and an expected output in the same line.
Thanks!
Adapts the Writer class such that empty circuit declarations (which are the default for a qubit register in the backend) are not printed to console to avoid confusion.