305270: CF1001B. Generate Bell state

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

Description

B. Generate Bell statetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

You are given two qubits in state and an integer index. Your task is to create one of the Bell states on them according to the index:

Input

You have to implement an operation which takes an array of 2 qubits and an integer 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:

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

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

Input

暂时还没有翻译

加入题单

上一题 下一题 算法标签: