错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

A novel quantum algorithm for converting between one-hot and binary encodings

  • Bingren Chen,
  • Hanqing Wu,
  • Haomu Yuan,
  • Lei Wu,
  • Xin Li

摘要

In the domain of quantum computing, two widely employed techniques for encoding a normalized vector of length N, denoted as \(\{ \alpha _i \}\) { α i } , are one-hot encoding and binary encoding. The one-hot encoding state is represented as \(\vert \psi _{OH}^{(N)} \rangle \) | ψ OH ( N ) and can be expressed as: \(\vert \psi _{OH}^{(N)} \rangle =\sum _{i=0}^{N-1} \alpha _i \vert 0 \rangle ^{\otimes N-i-1} \vert 1 \rangle \vert 0 \rangle ^{\otimes i}\) | ψ OH ( N ) = i = 0 N - 1 α i | 0 N - i - 1 | 1 | 0 i . On the other hand, the binary encoding state is symbolized as \(\vert \psi _{BI}^{(N)} \rangle \) | ψ BI ( N ) and is defined as: \(\vert \psi _{BI}^{(N)} \rangle =\sum _{i=0}^{N-1} \alpha _i \vert b_i \rangle \) | ψ BI ( N ) = i = 0 N - 1 α i | b i , where \(b_i\) b i corresponds to the binary representation of i. In this paper, we introduce a method for converting between the one-hot encoding state and the binary encoding state, utilizing the Domain Wall state as an intermediary. The Domain Wall state, denoted as \(\vert \psi _{DW}^{(N)} \rangle \) | ψ DW ( N ) , is defined as: \(\vert \psi _{DW}^{(N)} \rangle =\sum _{i=0}^{N-1} \alpha _i \vert 0 \rangle ^{\otimes N-i-1} \vert 1 \rangle ^{\otimes i}\) | ψ DW ( N ) = i = 0 N - 1 α i | 0 N - i - 1 | 1 i . Our proposed circuit achieves a depth of \(O(\log ^2 N)\) O ( log 2 N ) and a size of O(N).Kindly check and confirm that the corresponding author mail id is correctly identified.