Microsoft Q# Coding Contest - Summer 2020

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
1357 Microsoft Q# Coding Contest - Summer 2020 FINISHED False 259200 139240799 June 19, 2020, 4 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 348 ) C1 Prepare superposition of basis states with 0s PROGRAMMING

B'You are given N qubits in the state |0...0 rangle . Your task is to prepare an equal superposition of all basis states that have one or more 0 in them. For example, for N = 2 the required state would be frac{1}{ sqrt{3}} big( |00 rangle + |01 rangle + |10 rangle) . You are not allowed to use any gates except the Pauli gates (X, Y and Z), the Hadamard gate and the controlled versions of those (you are allowed to use multiple qubits as controls in the controlled versions of gates). However, you are allowed to use measurements. You have to implement an operation which takes an array of N qubits as an input and has no output. The "output" of your solution is the state in which it left the input qubits. Your code should have the following signature: '...

Tutorials

Microsoft Q# Coding Contest – Summer 2020: editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
84518379 realhype C1 June 20, 2020, 6:21 p.m. OK Q# TESTS 1 327 5836800
84344446 TLE C1 June 19, 2020, 4:18 p.m. OK Q# TESTS 1 342 5222400
84369853 kimworrall C1 June 19, 2020, 10:58 p.m. OK Q# TESTS 1 342 5324800
84361149 Russell_Emerine C1 June 19, 2020, 7:33 p.m. OK Q# TESTS 1 342 5427200
84639108 trifire C1 June 22, 2020, 7:25 a.m. OK Q# TESTS 1 342 5734400
84365988 aasthan4 C1 June 19, 2020, 9:03 p.m. OK Q# TESTS 1 342 5734400
84357941 Victorkras2008 C1 June 19, 2020, 6:46 p.m. OK Q# TESTS 1 343 5632000
84367080 PavelKunyavskiy C1 June 19, 2020, 9:29 p.m. OK Q# TESTS 1 343 5836800
84348909 kamer C1 June 19, 2020, 5 p.m. OK Q# TESTS 1 358 5120000
84355600 mees C1 June 19, 2020, 6:17 p.m. OK Q# TESTS 1 358 5222400

remove filters

Back to search problems