API Response (JSON)
{
"problem": {
"name": "A2. Generate superposition of zero state and a basis state",
"description": {
"content": "You are given _N_ qubits (1 ≤ _N_ ≤ 8) in zero state . You are also given a bitstring _bits_ which describes a non-zero basis state on _N_ qubits . Your task is to generate a state which is an equal ",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF1002A2"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given _N_ qubits (1 ≤ _N_ ≤ 8) in zero state . You are also given a bitstring _bits_ which describes a non-zero basis state on _N_ qubits .\n\nYour task is to generate a state which is an equal ...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定 #cf_span[N] 个量子比特(#cf_span[1 ≤ N ≤ 8]),初始处于零态。同时给定一个比特串 #cf_span[bits],它描述了 #cf_span[N] 个量子比特上的一个非零基态。\n\n你的任务是生成一个状态,该状态是 和给定基态的等权叠加:\n\n你需要实现一个操作,它接收以下输入:\n\n该操作没有输出;其“输出”是它作用后量子比特所处的状态。\n\n一个布尔值数组表示一个基...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ N \\in \\mathbb{Z} $, $ 1 \\leq N \\leq 8 $, be the number of qubits. \nLet $ \\mathbf{b} = (b_1, b_2, \\dots, b_N) \\in \\{0,1\\}^N $ be a non-zero bitstring representing a computation...",
"is_translate": false,
"language": "Formal"
}
]
}