Method and device for encoding original data to quantum circuit, and storage medium

The invention discloses a method and device for encoding original data to a quantum circuit and a storage medium. The method for encoding the original data to the quantum circuit comprises the following steps: acquiring the original data and constructing an angle tree corresponding to the original d...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WANG JING, FANG YUAN, DOU MENGHAN, ZOU TIANRUI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a method and device for encoding original data to a quantum circuit and a storage medium. The method for encoding the original data to the quantum circuit comprises the following steps: acquiring the original data and constructing an angle tree corresponding to the original data; dividing the angle tree into an upper layer sub-tree and a lower layer sub-tree according to a pre-selected target level; coding nodes on the upper-layer sub-tree and the lower-layer sub-tree into a quantum circuit by using a bottom-to-top coding mode and a top-to-bottom coding mode respectively, and outputting a final quantum state of the coded quantum circuit; wherein the amplitude of the last quantum state of the coded quantum circuit is in one-to-one correspondence with the original data. The method can effectively balance the depth and width of the quantum circuit, and improves the coding efficiency. 本发明公开了一种将原始数据编码到量子线路的方法、装置及存储介质。所述将原始数据编码到量子线路的方法,包括:获取原始数据并构造所述原始数据对应的角度树;根据预先选定的目标层级将所述角度树分割成上层子树和下层子树;利