This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Test your knowledge of the concepts covered in this module. Choose the right response for each question.
Which of these statements is true about the random number generator that you built in this module?
The quantum random number generator takes the current time from the CPU's clock as a seed to generate random numbers.
The quantum random number generator creates one qubit, measures it, and the result of the measurement is a random decimal number.
The quantum random number generator creates a bit string from the repetition of measurements of a qubit in superposition. Then, it takes the bit string and converts it to a decimal number.
Which of the following structures are required for a Q# program to run successfully?
To run successfully, a Q# program must have a function.
To run successfully, a Q# program must have an entry point, which is the Main operation.
Main
To run successfully, a Q# program must have an entry point and at least one allocated qubit.
Consider a quantum operation A that acts on a single qubit. If you want to write a Q# program that applies A to a qubit q, which of the following statements is true?
A
q
You allocate a qubit using q = Qubit(); and then apply A to q using A(q);.
q = Qubit();
A(q);
You allocate a qubit using use q = Qubit(); and then apply A to q using A(q);.
use q = Qubit();
You allocate a qubit using use q = Qubit(); and then apply A to q using A[q];.
A[q];
You must answer all questions before checking your work.
Was this page helpful?