2 karma · joined Oct 2, 2018 (8y ago) · 1 submissions
comment 8y ago · link · parent
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