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
( 632 ) A1 Figure out direction of CNOT PROGRAMMING

B'You are given an operation that implements a two-qubit unitary transformation: either the CNOT gate with the first qubit as control and the second qubit as target (CNOT _{12} ), or the CNOT gate with the second qubit as control and the first qubit as target (CNOT _{21} ). 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 CNOT _{12} gate or 1 if it was the CNOT _{21} 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 two-qubit operation unitary as an input and returns an integer. The operation unitary will accept an array of qubits as input, but it will fail if the array is empty or has one or more than two 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
84368659 realhype A1 June 19, 2020, 10:16 p.m. OK Q# TESTS 1 92 0
84596194 peyha A1 June 21, 2020, 3:19 p.m. OK Q# TESTS 1 108 0
84552195 thinkingbird A1 June 21, 2020, 5:49 a.m. OK Q# TESTS 1 108 0
84521580 anpfeife A1 June 20, 2020, 6:49 p.m. OK Q# TESTS 1 108 0
84517039 romd A1 June 20, 2020, 6:12 p.m. OK Q# TESTS 1 108 0
84394335 aabzac A1 June 20, 2020, 8:16 a.m. OK Q# TESTS 1 108 0
84363169 gigawhiz A1 June 19, 2020, 8:05 p.m. OK Q# TESTS 1 108 0
84351707 davi_bart A1 June 19, 2020, 5:31 p.m. OK Q# TESTS 1 108 0
84351082 palmangh A1 June 19, 2020, 5:24 p.m. OK Q# TESTS 1 108 0
84350553 rasengans A1 June 19, 2020, 5:18 p.m. OK Q# TESTS 1 108 0

remove filters

Back to search problems