View on GitHub
Open this notebook in GitHub to run it yourself
Example
Output:
Output:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
from classiq import *
@qfunc
def main(x: Output[QNum], y: Output[QNum]) -> None:
x |= 6
y |= ~x
qprog = synthesize(main)
result = sample(qprog)
print(result)
Submitting job to simulator
Job: https://platform.classiq.io/jobs/f2435d5f-9b13-4e05-b681-5909b3423c57
x y counts probability bitstring
0 6 1 2048 1.0 001110
Was this page helpful?