from classiq import * @qfunc def main(x: Output[QNum], y: Output[QNum]) -> None: x |= 6 y |= ~x qmod = create_model(main)
qprog = synthesize(qmod) result = execute(qprog).result_value() print(result.counts_of_multiple_outputs(["x", "y"]))
{('011', '100'): 1000}
Was this page helpful?