Microsoft Q# Coding Contest - Winter 2019

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
1116 Microsoft Q# Coding Contest - Winter 2019 FINISHED False 259200 180363599 March 1, 2019, 5 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 184 ) C3 "Is the number of ones divisible by 3?" oracle PROGRAMMING

B'Implement a quantum oracle on N qubits which checks whether the number of bits equal to 1 in the input vector vec{x} is divisible by 3 (i.e., implements the function f( vec{x}) = 1 if the number of x_i = 1 in vec{x} is divisible by 3, and 0 otherwise). You have to implement an operation which takes the following inputs: and performs a transformation |x rangle|y rangle rightarrow |x rangle|y oplus f(x) rangle . The operation doesn 't have an output; its "output" is the state in which it leaves the qubits. Note that the input register x has to remain unchanged after applying the operation. Your code should have the following signature: Note: the operation has to have an adjoint specified for it; adjoint auto means that the adjoint will be generated automatically. For details on adjoint, see Operation Declarations. You are not allowed to use measurements in your operation. '...

Tutorials

Contest editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
50718245 Jacob C3 March 3, 2019, 8:07 a.m. OK Q# TESTS 9 1497 100249600
50692710 asvasil C3 March 2, 2019, 4:28 p.m. OK Q# TESTS 9 1637 100249600
50662242 tmwilliamlin168 C3 March 2, 2019, 12:42 a.m. OK Q# TESTS 9 1653 100352000
50736351 meteor C3 March 3, 2019, 1:05 p.m. OK Q# TESTS 9 1668 100352000
50703418 verngutz C3 March 3, 2019, 1:06 a.m. OK Q# TESTS 9 1684 100249600
50657374 mathda1 C3 March 1, 2019, 8:18 p.m. OK Q# TESTS 9 1684 100249600
50656517 eatmore C3 March 1, 2019, 7:50 p.m. OK Q# TESTS 9 1715 100147200
50667026 sirknightingfail C3 March 2, 2019, 4:53 a.m. OK Q# TESTS 9 1731 100249600
50659400 1021839 C3 March 1, 2019, 9:43 p.m. OK Q# TESTS 9 1731 100352000
50755722 christopherkang C3 March 3, 2019, 5:19 p.m. OK Q# TESTS 9 1731 100556800

remove filters

Back to search problems