| Definately a good start! But I am not sure it is accessible for a person that had no prior knowledge in the field. It appears the target audience is not assumed to have any. So it is still too complicated. The concept of qubit, gates and circuit (and other concepts) should be explained with a help of some appealing images. Plain text will not cut it. https://demo.quantumlab.cc/courses/1/2 I don't think this is a good description of the expected output: The function applies a Hadamard quantum gate to the supplied qubit and measures it. Returns: A tuple of two objects representing an application of Hadamard and measurement gates on each qubits. The description refers to the "supplied qubit", but there are no parameters. The expected return description mentions "each qubits", but there is only one qubit to be processed. Last, the expected return is described as "a tuple of two objects", but actually it expects the returned object be of MeasurementGate type. This code was considered valid: q = GridQubit(0, 0)
q = H(q)
result = measure(q)
return result
|