API Response (JSON)
{
"problem": {
"name": "A1. Generate superposition of all basis states",
"description": {
"content": "You are given _N_ qubits (1 ≤ _N_ ≤ 8) in zero state . Your task is to generate an equal superposition of all 2_N_ basis vectors on _N_ qubits: For example, * for _N_ = 1, the required state is s",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF1002A1"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given _N_ qubits (1 ≤ _N_ ≤ 8) in zero state .\n\nYour task is to generate an equal superposition of all 2_N_ basis vectors on _N_ qubits:\n\nFor example,\n\n* for _N_ = 1, the required state is s...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定 #cf_span[N] 个量子比特(#cf_span[1 ≤ N ≤ 8]),初始处于零态。\n\n你的任务是生成在 #cf_span[N] 个量子比特上所有 #cf_span[2N] 个基矢的等权叠加态:\n\n例如,\n\n你需要实现一个操作,该操作以一个包含 #cf_span[N] 个量子比特的数组作为输入,且无输出。该操作的“输出”是其作用后量子比特所处的状态。\n\n你的代码应具有如下签名:\n\n[...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ N \\in \\mathbb{Z} $ with $ 1 \\leq N \\leq 8 $. \nLet $ \\mathcal{H} = (\\mathbb{C}^2)^{\\otimes N} $ be the Hilbert space of $ N $ qubits. \nLet $ \\{|x\\rangle \\mid x \\in \\{0,1\\}^N\\}...",
"is_translate": false,
"language": "Formal"
}
]
}