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

CQT-141-Qubit-declaration-added-to-simplest-circuit #349

Merged
merged 12 commits into from
Oct 25, 2024

Conversation

GuyPuts
Copy link
Contributor

@GuyPuts GuyPuts commented Oct 3, 2024

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.

Copy link
Contributor

@rturrado rturrado left a 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!

GuyPuts and others added 4 commits October 16, 2024 11:49
Update simplest circuit string representation according to feedback

Co-authored-by: Roberto Turrado Camblor <rturrado@gmail.com>
Copy link
Contributor

@rturrado rturrado left a 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!

@rturrado
Copy link
Contributor

Remember to run the linters before committing as indicated in the CONTRIBUTING guide, Guy.

GuyPuts and others added 3 commits October 17, 2024 10:51
Co-authored-by: Roberto Turrado Camblor <rturrado@gmail.com>
…into CQT-141-Qubit-declaration-added-to-simplest-circuit
Copy link
Contributor

@rturrado rturrado left a 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!

rturrado
rturrado previously approved these changes Oct 23, 2024
@GuyPuts GuyPuts merged commit cb0e705 into develop Oct 25, 2024
15 checks passed
@rturrado rturrado deleted the CQT-141-Qubit-declaration-added-to-simplest-circuit branch November 4, 2024 11:51
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