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

Q# New Lints Ideas/Proposals #1333

Open
orpuente-MS opened this issue Mar 28, 2024 · 1 comment
Open

Q# New Lints Ideas/Proposals #1333

orpuente-MS opened this issue Mar 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@orpuente-MS
Copy link
Contributor

orpuente-MS commented Mar 28, 2024

This issue is a place to gather ideas/proposals for new lints.

Future lints:

  • Dead Code
  • Shadowing a mutable variable with an immutable variable of the same type

Quantum Specific Lints:

  • Gates that are identities if they are squared.
  • Measure a qubit that hasn't had gates applied to it.
  • Don't reset qubits when it is not needed.
  • Operations that don't manipulate qubits can be functions instead of operations.
  • When qubit reuse is not supported, prefer MResetZ over M
  • Operations with implemented specializations that are missing from the signature.
  • RCA lints.

Current Lints:

  • DivisionByZero
  • NeedlessParens
  • RedundantSemicolons
@orpuente-MS orpuente-MS added the enhancement New feature or request label Mar 28, 2024
@orpuente-MS orpuente-MS changed the title Q# Lints Q# New Lints Ideas/Proposals Mar 28, 2024
@saram-aman
Copy link

@orpuente-MS please assign the task to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants