How to Write a Good Question

To get a good answer quickly, it is expected that you provide a good question. For doing so, follow. these tips:

  1. State what you’re trying to do
  • Write your goal in one sentence

  • What you expected to happen

  • What actually happened

  1. Reproduction
  • Always provide a minimal code snippet, for example:
from classiq import *

@qfunc
def my_problematic_function(q:QBit):
  wrong_call(q)
  • Provide a full error/traceback in a code block when possible

  • Any relevant logs (sanitized)

  1. What you already tried
  • Links to docs you followed

  • Steps you attempted

  • Ideas you might have but don’t know how to implement