305273: CF1001E. Distinguish Bell states

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

E. Distinguish Bell statestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

You are given two qubits which are guaranteed to be in one of the Bell states:

Your task is to perform necessary operations and measurements to figure out which state it was and to return the index of that state (0 for , 1 for etc.). The state of the qubits after the operations does not matter.

Input

You have to implement an operation which takes an array of two qubits as an input and returns an integer.

Your code should have the following signature:

namespace Solution {
open Microsoft.Quantum.Primitive;
open Microsoft.Quantum.Canon;

operation Solve (qs : Qubit[]) : Int
{
body
{
// your code here
}
}
}

Input

暂时还没有翻译

加入题单

算法标签: