Microsoft Q# Coding Contest - Summer 2020 - Warmup

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
1356 Microsoft Q# Coding Contest - Summer 2020 - Warmup FINISHED False 259200 139845599 June 12, 2020, 4 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 331 ) A5 Distinguish Z from -Z PROGRAMMING *special

B'You are given an operation that implements a single-qubit unitary transformation: either the Z gate or the -Z gate (i.e., the -|0 rangle langle0| + |1 rangle langle1| gate: (-Z)( alpha|0 rangle + beta|1 rangle) = - alpha|0 rangle + beta|1 rangle ). The operation will have Adjoint and Controlled variants defined. Your task is to perform necessary operations and measurements to figure out which unitary it was and to return 0 if it was the Z gate or 1 if it was the -Z gate. You are allowed to apply the given operation and its adjoint/controlled variants exactly once. You have to implement an operation which takes a single-qubit operation as an input and returns an integer. Your code should have the following signature: '...

Tutorials

Microsoft Q# Coding Contest – Summer 2020 — Warmup: editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
83845477 Tinkidinki A5 June 15, 2020, 1:33 p.m. OK Q# TESTS 1 124 0
83754488 djartoux A5 June 14, 2020, 2:05 p.m. OK Q# TESTS 1 124 0
83747816 KhaledKEE A5 June 14, 2020, 12:31 p.m. OK Q# TESTS 1 124 0
83699812 cfalas A5 June 13, 2020, 8:54 p.m. OK Q# TESTS 1 124 0
83575286 rsnytsar A5 June 13, 2020, 4:07 a.m. OK Q# TESTS 1 124 0
83556041 fedimser A5 June 12, 2020, 6:42 p.m. OK Q# TESTS 1 124 0
83888371 lightseba A5 June 16, 2020, 4:01 a.m. OK Q# TESTS 1 139 0
83855207 magula A5 June 15, 2020, 3:23 p.m. OK Q# TESTS 1 139 0
83844838 pgrudra A5 June 15, 2020, 1:25 p.m. OK Q# TESTS 1 139 0
83837665 box_of_donuts A5 June 15, 2020, 11:51 a.m. OK Q# TESTS 1 139 0

remove filters

Back to search problems