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
( 264 ) C1 Alternating bits oracle PROGRAMMING

B'Implement a quantum oracle on N qubits which checks whether the bits in the input vector vec{x} alternate (i.e., implements the function f( vec{x}) = 1 if vec{x} does not have a pair of adjacent bits in state 00 or 11). 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 Definitions. 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
50702505 ekzhang C1 March 2, 2019, 11:28 p.m. OK Q# TESTS 7 186 4403200
50652343 sirknightingfail C1 March 1, 2019, 6:07 p.m. OK Q# TESTS 7 187 4403200
50665199 tteu.ingog C1 March 2, 2019, 3:31 a.m. OK Q# TESTS 7 187 4505600
50677159 low_kii_savage C1 March 2, 2019, 9:45 a.m. OK Q# TESTS 7 202 1536000
50649603 ania C1 March 1, 2019, 5:06 p.m. OK Q# TESTS 7 202 2048000
50680938 ARegularCoder C1 March 2, 2019, 11:26 a.m. OK Q# TESTS 7 202 2150400
50663417 Cothrax C1 March 2, 2019, 1:52 a.m. OK Q# TESTS 7 202 2150400
50652175 pwild C1 March 1, 2019, 6:03 p.m. OK Q# TESTS 7 202 2150400
50650669 FLDutchman C1 March 1, 2019, 5:28 p.m. OK Q# TESTS 7 202 4198400
50658255 Cams C1 March 1, 2019, 8:52 p.m. OK Q# TESTS 7 202 4300800

remove filters

Back to search problems