A discrete variable oriented physical constraint diffusion quantum data encoding method
By constructing a physically consistent diffusion model and a CPTP-constrained inverse denoising network in a discrete variable quantum system, the problems of noise model decoupling from real physics and error accumulation in existing technologies are solved, achieving high-fidelity reconstruction of quantum encoded states and improving the accuracy and reliability of quantum information processing.
Patent Information
- Application Number
- CN202611655109.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-24
AI Technical Summary
Existing quantum diffusion models lack a clear correspondence with real physical noise mechanisms in discrete variable quantum systems. The inverse denoising mapping lacks physical realizability, and errors are prone to accumulate during multi-step inverse denoising, resulting in low fidelity of encoded states and affecting the accuracy and reliability of downstream quantum information processing tasks.
A physical constraint diffusion quantum data encoding method oriented towards discrete variables is adopted. By constructing a forward diffusion process based on open quantum system dynamics and a reverse denoising reconstruction network that satisfies the CPTP condition, high-fidelity and noise-resistant reconstruction of classical feature data is achieved by utilizing the Kraus operator set and Stiefel manifold constraints.
It significantly improves the fidelity of the encoded state, ensures the physical realizability of the reverse denoising process, suppresses error accumulation, and enhances the information accuracy and reliability of downstream quantum information processing tasks. It is suitable for different noise types and hardware configurations.
Smart Images

Figure CN123159573A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of quantum computing and quantum machine learning technology, specifically relating to a physical constraint diffusion quantum data encoding method for discrete variables. Background Technology
[0002] Quantum machine learning is one of the most promising research directions in the field of quantum computing. Its core objective is to leverage the computational advantages of quantum systems to efficiently process and analyze classical data. In a typical quantum machine learning process, the first and fundamental step is to map classical feature data from the real physical world (such as medical image tensors, speech spectrum feature vectors, and financial time-series data) into quantum states through specific encoding methods. This allows subsequent tasks such as classification, regression, clustering, or generation to be performed on a quantum processor. Commonly used quantum encoding methods include, but are not limited to, amplitude encoding, angle encoding, and tensor network-based encoding methods. For example, in medical image processing, matrix product states (MPS) or tree tensor networks can be used to compress and encode high-dimensional medical image data into entangled pure states of multiple qubits, thereby directly mapping the spatial feature distribution of classical images to the associated structure of a quantum many-body system. In this encoding process, the feature information of the classical data is loaded into parameters such as the amplitude or phase of the quantum state, thus forming a quantum state carrying specific data semantics (hereinafter referred to as the target data state, denoted as ). The fidelity of the target data state in representing classical data features directly determines the information foundation and performance ceiling of the entire quantum machine learning model.
[0003] However, current physical quantum processors (such as superconducting quantum chips and ion trap quantum systems) inevitably couple with their external environment during operation. This interaction between the system and the environment can induce decoherence, relaxation, and various dissipative noise effects. Under the influence of these noises, the target data state prepared by the quantum coding circuit... Instead of maintaining its ideal state stably, the quantum state undergoes distortion over time, gradually losing quantum coherence and monotonically increasing system entropy, ultimately evolving from a high-purity data-carrying state into a highly mixed, noisy state. This degradation process directly leads to the classical data features encoded in the quantum state being masked or distorted by noise, causing biases and errors in the input information received by downstream quantum algorithms (such as variable quantum classifiers and quantum neural networks), severely reducing classification accuracy, model generalization ability, and the reliability of overall computational results. The fidelity of the encoded state is particularly pronounced in high-dimensional feature data (e.g., high-resolution medical images) and highly noisy environments, becoming one of the key bottlenecks restricting the practical application of quantum machine learning.
[0004] To address noise interference in quantum systems, academia and industry have proposed various technical approaches, primarily categorized into quantum error-correcting codes and quantum error mitigation. Quantum error-correcting codes, by introducing a large number of auxiliary qubits and redundant coding logic, can theoretically achieve fault-tolerant protection for arbitrary quantum information. However, this method places extremely high demands on the number of qubits and the fidelity of gate operations, making practical deployment difficult on current noisy medium-scale quantum (NISQ) hardware. Quantum error mitigation methods attempt to reduce the impact of noise on computational results without adding extra qubits through post-processing statistical correction, extrapolation, or probabilistic error cancellation techniques. While these methods can suppress noise to some extent, they are typically based on simplified assumptions about the noise model or one-time statistical corrections. When the noise intensity is high, the noise type is complex, or the target data state has a high dimension and complex structure, the fidelity recovery effect of error mitigation is often limited, and they lack adaptive matching capabilities for specific data state coding structures and specific hardware noise characteristics.
[0005] In recent years, inspired by the successful application of diffusion models in classical machine learning, some research has begun to explore the introduction of the progressive noise addition and reverse denoising ideas of diffusion models into the field of quantum state generation and recovery. Diffusion models, by constructing a multi-step forward noise addition process and learning its inverse process—the reverse denoising process—possess the ability to stably model complex high-dimensional distributions and perform high-quality sampling. This provides a promising technical path for reconstructing high-fidelity quantum states in noisy environments. However, current research on quantum diffusion models mainly focuses on continuous-variable (CV) quantum systems, which use the orthogonal amplitude and phase components of the light field as information carriers, and the Hilbert space in which the quantum state resides is infinite-dimensional. The noise models, diffusion kernels, and network architectures relied upon by this type of continuous-variable quantum diffusion scheme are fundamentally different from discrete-variable systems based on physical qubits (such as superconducting qubits and ion trap qubits). Their technical solutions cannot be directly transferred to discrete density matrix evolution scenarios in finite-dimensional Hilbert spaces. However, directly applying the random perturbation mechanism of the classical diffusion model to the discrete variable density matrix faces a more serious obstacle to physical consistency. Simple random matrix perturbations cannot guarantee fundamental quantum mechanical constraints such as the positive semidefiniteness and trace conservation of the density matrix, and are prone to producing physically unrealizable non-quantum state intermediate results. These differences in system architecture and physical consistency requirements constitute the core technical challenges that distinguish the discrete variable quantum diffusion model from continuous variable schemes and classical diffusion schemes, specifically in the following three aspects:
[0006] First, there is the issue of physical consistency in the forward diffusion process. Some existing quantum diffusion methods, when constructing the forward noise-adding step, often simplify the noise to abstract random perturbations or purely mathematical transformations, failing to physically model the actual decoherence and dissipation processes occurring on the quantum processor from the perspective of open quantum system dynamics. This results in a lack of clear correspondence between the noise introduced during diffusion and real physical noise mechanisms (such as amplitude damping and phase damping), thus weakening the model's applicability, interpretability, and the targeted nature of denoising and reconstruction under different noise types and intensities.
[0007] Secondly, there is the issue of the physical realizability of inverse denoising mapping. In quantum state inverse denoising, the model needs to learn a series of quantum operations to gradually restore the highly mixed state, corrupted by noise, to the target data state carrying the characteristics of the original data. However, some existing methods for inverse denoising mapping often lack strict constraints on their physical realizability. According to the fundamental principles of quantum mechanics, any physically permissible quantum state evolution or operation must satisfy the complete positive and trace-preserving (CPTP) condition. If intermediate mappings that do not satisfy this condition are generated during training and inference, the resulting quantum state may not be legitimate (e.g., negative probability or probability non-conservation), which severely affects the usability and reliability of the reconstructed result on real quantum hardware.
[0008] Third, there is the problem of error accumulation in the multi-step reverse denoising process. Diffusion-based denoising typically involves multiple consecutive time-step reverse operations, with strong sequential dependencies between these time steps. In scenarios involving multi-qubit data state reconstruction or high-dimensional quantum system modeling, if the reverse denoising process employs stepwise independent optimization or staged training, small deviations generated in previous time steps are easily amplified and accumulated in subsequent updates. This leads to a significant decrease in the fidelity between the final reconstructed state and the target data state as the system size and the number of diffusion steps increase. This error accumulation effect severely limits the application effectiveness and scalability of diffusion models in complex quantum state reconstruction tasks.
[0009] In summary, how to introduce the diffusion model into the quantum encoding process of classical data in a physically consistent, constraint-complete, and training-stable manner on noisy physical quantum processors, and achieve high-fidelity, noise-resistant reconstruction of the target data state, has become a core technical problem that urgently needs to be solved in this field. This invention is proposed precisely to address the aforementioned technical problem. Summary of the Invention
[0010] This invention aims to address the technical problem in existing noisy physical quantum processors where the target data state obtained by quantum encoding classical feature data is distorted due to environmental noise, resulting in low fidelity of the encoded state and a severe decline in the performance of downstream quantum information processing tasks. Specifically, in existing quantum diffusion denoising schemes, the forward diffusion process lacks a clear correspondence with the real physical noise mechanism, the reverse denoising mapping lacks strict constraints on the physical realizability of quantum operations (i.e., the completely positive and trace-preserving condition), and errors gradually accumulate with the number of steps in multi-step reverse denoising, leading to the inability of the reconstructed target data state to meet practical requirements.
[0011] To address the aforementioned technical problems, this invention provides a physically constrained diffusion quantum data encoding method for discrete variables. On a noisy physical quantum processor, a physically consistent diffusion model is used to perform high-fidelity, noise-resistant reconstruction of the quantum states obtained from classical feature data encoding. Specifically, the method includes the following steps:
[0012] Step S1: Obtain classical feature data and map the classical feature data into a target data state using a preset quantum encoding method. The target data state is a density matrix that carries classical data feature information.
[0013] Step S2: Obtain the calibration noise parameters of each physical qubit in the target superconducting quantum processor. Based on the dynamic model of the open quantum system, construct a forward diffusion process composed of fixed quantum channels in sequence at multiple time steps. The target data state is gradually evolved into a highly mixed state through the forward diffusion process. Each fixed quantum channel is defined by a set of first Kraus operators that satisfy the completely positive and trace-preserving CPTP condition.
[0014] Step S3: Construct an inverse denoising and reconstruction network composed of multiple time-step learnable quantum channels in sequence. Taking the high-mixing state as input, after multiple steps of inverse denoising, output the reconstructed state estimate of the target data state; wherein, each learnable quantum channel is parameterized by a set of second Kraus operators that satisfy the CPTP condition, and the matrix elements of each Kraus operator in the set of second Kraus operators are learnable parameters to be optimized;
[0015] Step S4: During the training phase, under the condition of satisfying the CPTP constraints, with the optimization objective of minimizing the difference between the target data state and the reconstructed state estimate, the learnable parameters in all Kraus operator sets in the inverse denoising and reconstruction network are jointly optimized to obtain the trained inverse denoising and reconstruction network.
[0016] Step S5: In the application phase, the trained inverse denoising and reconstruction network is deployed in a noisy quantum processor environment to reconstruct the actual degraded encoded state and output the reconstruction result to the downstream quantum information processing task.
[0017] Furthermore, step S1 is specifically as follows:
[0018] Step S1.1: Acquisition and preprocessing of classical feature data; acquire medical image tensor data as classical feature data, the data structure is represented as follows. ,in These represent the number of sampling points in the three spatial dimensions. Representing the real number field; the classical feature data is preprocessed into high-dimensional feature vectors matching the number of qubits. ,in The number of qubits contained in the system satisfies , The dimension of the original tensor data after flattening;
[0019] Step S1.2: Map the data to the target data state using tensor network encoding; use matrix multiplication state (MPS) as the basic structure of tensor network encoding to map the feature vectors... Each component serves as a coefficient of the physical indices of the MPS. Through variational optimization or direct construction, the dimensions of each virtual bond and the element values of each core tensor in the MPS are determined, represented as a... The state vector of a quantum bit system The corresponding density matrix represents the target data state:
[0020]
[0021] in, The Dirac right vector representation of the target data state; for Hermitian conjugate; The outer product operation yields a A density matrix with rank 1 represents a pure state; For dimension The density matrix is a complex matrix space; the density matrix satisfies the three fundamental quantum mechanical constraints of Hermitianness, positive semidefiniteness, and trace normalization.
[0022] Furthermore, step S2 is specifically as follows:
[0023] Step S2.1: Obtain the calibration noise parameters of each physical qubit in the target superconducting quantum processor, including relaxation time. Decoherence time Jump operators corresponding to each noise channel Form and intensity;
[0024] Step S2.2: Under the Markov approximation, use the Lindblad master equation to describe the continuous-time evolution of the open quantum system under environmental noise;
[0025] Step S2.3: Perform continuous evolution at each time step The inner approximation is a discrete mapping, such that within a sufficiently small time step... Internally, system evolution is a quantum superposition of two mutually exclusive cases: in most cases, no noise jumps occur, and the system evolves continuously only under the action of an effective non-Hermi Hamiltonian; and with A certain type of noise jump occurs with a proportionally low probability.
[0026] Step S2.4: Based on the single-step discrete channel, construct a channel containing... The forward diffusion process of the first step, wherein the forward vector sub-channel satisfies the trace preservation constraint; The forward vector subchannels are sequentially combined to generate a complete forward diffusion sequence, thus obtaining a highly mixed state.
[0027] Furthermore, step S3 is specifically as follows:
[0028] Step S3.1: The inverse denoising and reconstruction network is composed of... The reverse denoising channel layers are sequentially connected in series, and the reverse denoising process is expanded as follows: Each step corresponds to a learnable inverse denoising channel layer. ,Will The output results of each inverse denoising channel layer are compositely mapped to obtain the reconstructed state of the network output, where the mapping direction corresponds to the reverse order of the time steps;
[0029] Step S3.2: Parameterize the second Kraus operator set of the single-step reverse denoising channel layer;
[0030] For any layer of inverse denoising channel This is modeled as a learnable quantum channel, represented using the Kraus operator summation form:
[0031]
[0032] in, For the first step in the reverse denoising process The density matrix of intermediate quantum states, where For network input; For the first One inverse denoising channel layer The quantum state density matrix output after processing; For the first The first inverse denoising channel layer A learnable Kraus operator matrix, whose elements are the parameters to be optimized; The number of Kraus operators contained in the reverse single-step quantum channel; for The complex conjugate transpose; and additional trace-preserving constraints are applied;
[0033] Step S3.3: Stiefel manifold parameterization: The Kraus operators of each inverse denoising channel layer are structurally concatenated to construct a unified parameter matrix;
[0034] Specifically, for the first A reverse denoising channel layer, which... A concatenation of Kraus operators along the column direction forms a block matrix Then the first Layer trace preservation constraints are equivalent to ,in for The identity matrix;
[0035] All The parameter matrices of each inverse denoising channel layer are concatenated in the same way to form a unified parameter matrix. The trace-preserving constraints of each layer are aggregated into global Stiefel manifold constraints: ,in for The complex conjugate transpose It is an identity matrix.
[0036] Furthermore, during the training phase, a loss function is used. The difference between the reconstructed state and the target data state is measured, and constraints are imposed on the intermediate trajectory of the inverse denoising, as shown in the following formula:
[0037]
[0038] in, For global weight hyperparameters, These are time-dependent weighting coefficients. For the target data state, The reconstructed state output by the network. for The quantum state density matrix at time t; Quantum state fidelity, which measures the similarity between two quantum states, is calculated using the following formula:
[0039]
[0040] in Represents the density matrix The square root of the matrix, Represents the trace of a matrix;
[0041] During training, the loss function with respect to the parameter matrix is computed on the Stiefel manifold. The Riemann gradient is calculated, and the parameter matrix is updated along the direction of the Riemann gradient, while ensuring that the parameter update is performed after each parameter update. It still satisfies the Stiefel manifold constraint;
[0042] Employing an end-to-end joint training strategy, all The inverse denoising channel layers are connected in series to form a complete inverse denoising reconstruction network.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] (1) By embedding the physical consistency diffusion model into the quantum coding process of classical data, the fidelity of the coded state in noisy environments is significantly improved.
[0045] This invention organically integrates the quantum encoding process of classical feature data with a physical consistency diffusion model. Based on the quantum processor's calibration of noise parameters, it constructs a forward diffusion process that precisely matches the real physical noise mechanism, enabling the inverse denoising and reconstruction network to specifically recover quantum coherence damaged by specific noise types. Compared to the problem of noise models being disconnected from real physics in existing technologies, the encoded states generated by this invention have significantly improved fidelity, thereby ensuring the accuracy of information in downstream quantum information processing tasks.
[0046] (2) By constructing a learnable quantum channel in the space of discrete variable density matrix, the problem that the diffusion scheme of continuous variables cannot be directly transferred is solved.
[0047] This invention is specifically designed for discrete-variable quantum systems, directly evolving the density matrix in a finite-dimensional Hilbert space. All Kraus operators are finite-dimensional matrices, and the physical constraints have an exact finite-dimensional form. It differs fundamentally from continuous-variable quantum diffusion schemes in mathematical structure and physical implementation, and can be directly deployed on discrete-variable quantum computing platforms such as superconducting qubits and ion trap qubits.
[0048] (3) By performing hard physical constraint optimization on the Stiefel manifold, it is mathematically ensured that the inverse denoising process always satisfies the CPTP condition.
[0049] This invention concatenates all learnable Kraus operators into a unified parameter matrix. And perform parameter updates on the Stiefel manifold so that the parameter matrix exactly satisfies the condition after each iteration. This fundamentally guarantees the physical realizability of the inverse denoising mapping, avoids the non-physical intermediate state problem that may be generated by the "train first, then correct" or soft constraint methods in the existing technology, and ensures that the generated result is always a legitimate quantum state and the training process is numerically stable.
[0050] (4) By using a stepwise reverse denoising structure, the difficulty of single-step reconstruction is effectively reduced and error accumulation is suppressed.
[0051] This invention decomposes the complex reverse reconstruction task into Each local denoising step only needs to restore a limited degree of quantum coherence, structurally reducing the reconstruction difficulty. Simultaneously, a joint training strategy enables all inverse denoising channel layers to be collaboratively optimized under the same global loss function, and optionally, a path consistency supervision term is introduced, effectively suppressing the gradual amplification effect of errors in the multi-step generation process. Compared to one-time inversion mapping or staged independent training methods, this invention maintains high-fidelity reconstruction capability even in high-dimensional data states and long diffusion step scenarios.
[0052] (5) Through learnable quantum channel parameterization, adaptive matching for different data types and noise models is achieved.
[0053] This invention directly parameterizes the quantum operations in the reverse denoising process as Kraus operator matrices, enabling the reverse generation mapping to adaptively adjust according to the structural characteristics and diffusion path of the target data state. Compared to quantum operations with fixed structures or hand-designed methods, this invention offers greater flexibility, achieving efficient and high-fidelity reconstruction of encoded states under classical feature data of different dimensions, different types of quantum encoding methods, and different hardware noise parameter configurations. It has broad applicability and good scalability. Attached Figure Description
[0054] Figure 1 The overall flowchart of the physically constrained diffusion quantum data encoding method for discrete variables provided in the embodiments of the present invention is shown.
[0055] Figure 2 This is a schematic diagram comparing the physical consistency forward diffusion and the learnable reverse denoising reconstruction trajectory in this invention. Detailed Implementation
[0056] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The following embodiments use medical image tensor data as classical feature data and a superconducting quantum processor as the target quantum hardware platform for illustration. It is understood that this invention is also applicable to other types of classical feature data (such as speech spectrum feature vectors, financial time-series data, natural language embedding vectors, etc.) and other discrete variable quantum computing platforms (such as ion trap quantum processors, neutral atom quantum processors, etc.), and the following embodiments do not constitute a limitation of this invention.
[0057] Example 1: Noise-resistant quantum coding and high-fidelity reconstruction for medical image data.
[0058] This embodiment provides a physically constrained diffusion quantum data encoding method for discrete variables. After classical medical image data is encoded into target data states through a tensor network, a physically consistent diffusion model and a CPTP-constrained inverse denoising reconstruction network are used to achieve high-fidelity recovery of the encoded states on a noisy superconducting quantum processor. The reconstruction results are then output to a downstream quantum neural network classifier to perform disease classification tasks.
[0059] like Figure 1 As shown, the method in this embodiment generally includes the following steps: image data acquisition and target data state definition (step S1), physical consistency forward diffusion modeling based on hardware calibration parameters (step S2), construction of a learnable reverse denoising and reconstruction network (step S3), joint optimization training of network parameters under CPTP constraints (step S4), and application inference and downstream task output (step S5).
[0060] The following is combined with Figure 1 and Figure 2 The specific implementation methods of each step are described in detail.
[0061] Step S1: Obtain classical feature data and determine the target data state through tensor network encoding; transform the classical multidimensional feature data from the real physical world into a target data state density matrix that can be processed by the quantum system, providing a standardized input for subsequent diffusion modeling and denoising reconstruction.
[0062] S1.1 Acquisition and preprocessing of classic feature data;
[0063] First, authentic classic multidimensional feature data is obtained. In this embodiment, the classic feature data is medical image tensor data, such as a three-dimensional pixel / voxel matrix generated by three-dimensional magnetic resonance imaging (MRI) scans or computed tomography (CT) scans, whose data structure can be represented as a real-valued tensor. ,in These represent the number of sampling points in the three spatial dimensions. Representing the real number field. The medical image tensor data is preprocessed into a high-dimensional feature vector matching the number of qubits. ,in The number of qubits contained in the system satisfies , The dimension is the flattened dimension of the original tensor data.
[0064] S1.2 is mapped to the target data state through tensor network encoding;
[0065] Using the tensor network coding method, the high-dimensional feature vector is... Physical mapping to the target data density of states matrix In this embodiment, the matrix product state (MPS) is used as the basic structure for tensor network encoding. The encoding process is as follows: feature vectors... Each component serves as a coefficient of the physical indices of the MPS. Through variational optimization or direct construction, the dimensions (i.e., bond dimensions) of each virtual bond and the element values of each core tensor in the MPS are determined, thus forming a multi-qubit entangled pure state. This MPS state can be equivalently represented as a... The state vector of a quantum bit system The corresponding density matrix represents the target data state:
[0066]
[0067] in, Let the Dirac right vector of the target data state be represented as follows: 3D complex column vector, ; for Hermetic conjugate (complex conjugate transpose) is 3D complex row vector; The outer product operation yields a A density matrix with rank 1 represents a pure state; For dimension The complex matrix space.
[0068] The density matrix must strictly satisfy the following fundamental quantum mechanical constraints:
[0069] Hermitianness: superscript The complex conjugate transpose operation of a matrix is represented by the Hermitian property, which guarantees that the expected value of all observables is a real number.
[0070] semi-positive definiteness: That is, all eigenvalues of the density matrix are greater than or equal to zero, which guarantees the non-negativity of the probabilistic interpretation;
[0071] Trace normalization: ,in The trace operation of a matrix is represented as the sum of the diagonal elements of the matrix, which guarantees that the total probability is always equal to 1.
[0072] Through the MPS encoding described above, the spatial feature distribution of classical medical image data is mapped onto the correlation structure of a quantum many-body system. It becomes a physical quantum state carrying specific image semantic information. It is understood that other tensor network structures (such as tree tensor networks, projected entangled pairs (PEPS)) or other quantum encoding methods (such as amplitude encoding, angle encoding) can also be used to realize the mapping from classical data to quantum states, and these variations all fall within the protection scope of this invention.
[0073] S1.3 Global parameter definition;
[0074] After completing the target data state After defining the parameters, the core hyperparameters of the diffusion and generation processes are established:
[0075] The number of qubits in the system is determined by both the data dimension of the encoding task and the size of the quantum processor. For Hilbert space dimensions; The total number of forward diffusion steps is used to define the depth of the evolution of the target data state into a highly mixed state, and the value is a positive integer. This represents the total number of steps in the reverse denoising process, used to define the number of iterations required to reconstruct the target data state. It takes a positive integer value and can be used with... Equal or unequal; The single-step discretization time step for forward diffusion is a positive real number that is much smaller than the system's characteristic evolution time. The number of Kraus operators included in a single-step forward vector subchannel, taking a positive integer value; The number of learnable Kraus operators contained in a single-step reverse quantum channel, and its value is a positive integer.
[0076] Step S2: Physical consistency forward diffusion modeling based on processor calibration parameters; construct a forward diffusion process that precisely matches the noise characteristics of a real quantum processor, generate a highly mixed state, and provide training data and optional intermediate supervision sequences for the inverse denoising and reconstruction network.
[0077] S2.1 Obtains the calibration noise parameters of the quantum processor;
[0078] First, the calibration noise parameters of each physical qubit in the target superconducting quantum processor are obtained. Typical calibration parameters include:
[0079] Relaxation time Characterizing the quantum bit from the excited state Relaxation to ground state The characteristic timescale is in microseconds (μs); decoherence time The characteristic timescale characterizing the loss of coherence of qubits satisfies Jump operators corresponding to each noise channel The form and intensity, such as the operator expressions for amplitude-damped channels and phase-damped channels.
[0080] S2.2 Continuous-time noise dynamics modeling based on the Lindblad master equation;
[0081] Under the Markov approximation, the continuous-time evolution of an open quantum system under ambient noise is described by the Lindblad master equation:
[0082]
[0083] in, For continuous evolution time variables; for The quantum state density matrix at time t; The imaginary unit, ; Let be the system Hamiltonian, and let be The Hermitian matrix describes the coherent evolution of a qubit under noise-free conditions (including the eigenenergy of the qubit and the applied control impulse). For commutation operations, variables A and B satisfy... , The term describes the unitary evolution part of the system; For the first The jump operator corresponding to noise or dissipation mechanisms is: The specific form of the matrix is determined by the hardware calibration parameters. For example, for an amplitude-damped channel, the single-bit jump operator is... ,in This is the projection operator from the excited state to the ground state; for The complex conjugate transpose; The total number of independent dissipation channels in the system depends on the specific noise type and number of bits of the quantum processor.
[0084] S2.3 Discretization of continuous dynamics and construction of Kraus operator;
[0085] To embed continuous-time evolution into the multi-step noise-adding framework of the diffusion model, a time step is introduced. , will continue to evolve in each The inner approximation is a discrete mapping:
[0086]
[0087] in For the first A Kraus operator, for The matrix. The physical meaning of the above mapping is: in a sufficiently small time step Internally, system evolution is a quantum superposition of two mutually exclusive cases—in most cases, no noise jumps occur, and the system evolves continuously only under the influence of the effective non-Hermi Hamiltonian (corresponding to...). ); with A certain type of noise jump occurs with a proportionally low probability (corresponding to) , ).
[0088] The specific construction is as follows:
[0089]
[0090] in, for The identity matrix; For an effective non-Hermi Hamiltonian; where The term is the anti-Hermitian component, which describes the probability decay of a no-jump evolutionary path due to the possibility of noise hopping. The introduction of this ensures the conservation of probability between jump-free evolution and jump events. square root Make the jump probability and It is proportional to the probability amplitude rule of quantum mechanics.
[0091] The above-constructed set of Kraus operators It can be verified that the completeness relation is satisfied under the first-order approximation:
[0092]
[0093] in Indicates the order of magnitude as Higher-order minor quantities. Therefore, in In the limit, this discrete mapping strictly satisfies the trace preservation condition and is a physically legitimate CPTP quantum channel. Understandably, higher-order approximations or symplectic integral methods can also be used to construct it. and These variations all fall within the protection scope of this invention.
[0094] S2.4 Construction of multi-step forward diffusion sequences;
[0095] Based on the above single-step discrete channel, construct a channel containing... The forward diffusion process of the first step. For the first... Forward diffusion ( ), define the pre-vector sub-channel :
[0096]
[0097] And it satisfies the trace preservation constraint:
[0098]
[0099] The meanings of each symbol are as follows: : No. The quantum state density matrix of the step, The target data state defined in step S1; : through the first The quantum state density matrix after the effect of a step noise channel; : No. Pre-step vector sub-channel mapping; The Kraus operator actually used in the forward diffusion time step is: The matrix. Since the forward diffusion process of this invention is based on fixed physical calibration noise parameters, the discrete mapping operator at each time step maintains time translation invariance, therefore, in the first... The noise operation applied in step S2.3 can directly use the Kraus operator set constructed by discretization in step S2.3. There is no need to redefine new operator symbols; : The complex conjugate transpose; : The identity matrix.
[0100] By The forward vector sub-channels are sequentially combined to generate a complete forward diffusion sequence:
[0101]
[0102] Recorded as:
[0103]
[0104] Among the symbols Represents the sequential compound operator for mapping operations. This is the highly mixed state obtained by forward diffusion. Figure 2 The upper part schematically illustrates the aforementioned forward diffusion evolution trajectory: from the target data state Initially, each step passes through a fixed CPTP noise channel. As a result, quantum coherence is gradually lost, the system entropy increases monotonically, and eventually a highly mixed state is reached. When the diffusion steps When large enough, Approaching the maximum mixing state This highly mixed state It will be used as input to the subsequent inverse denoising and reconstruction network.
[0105] Step S3: Construct a CPTP-constrained inverse denoising and reconstruction network; construct a learnable inverse denoising and reconstruction network, take a high-mixing state as input, and recover the classical data feature information encoded in the quantum state through multi-layer progressive denoising.
[0106] S3.1 Network Overall Structure;
[0107] The inverse denoising and reconstruction network is composed of The reverse denoising channel layers are sequentially connected in series, and the reverse denoising process is expanded as follows: Step. Each step corresponds to a learnable inverse denoising channel layer. ( The composite mapping of the entire network is represented as:
[0108] in, The reconstructed state output by the network, i.e., the state of the target data. The estimate; For the first A reverse denoising channel layer, with the mapping direction corresponding to the reverse order of time steps: It's the final step of noise reduction (from) Recover ), The first step is noise reduction (from) Recover ).
[0109] By decomposing the complex reverse reconstruction process into Each local denoising step only needs to restore a limited degree of quantum coherence, which structurally reduces the difficulty of single-step reconstruction and avoids the problems of error concentration and instability in one-time inversion mapping.
[0110] S3.2 Kraus operator parameterization for single-step inverse denoising channel layer;
[0111] For any number One inverse denoising channel layer ( This can be modeled as a learnable quantum channel, represented using the Kraus operator summation form:
[0112]
[0113] in, For the first step in the reverse denoising process The density matrix of intermediate quantum states, where For network input; For the first One inverse denoising channel layer The quantum state density matrix output after processing has a higher coherence than... Some recovery has occurred; For the first The first inverse denoising channel layer A learnable Kraus operator matrix, whose matrix elements (i.e., the real and imaginary parts of each matrix element) are parameters to be optimized; The number of Kraus operators contained in the reverse single-step quantum channel is a pre-defined positive integer that can be adjusted according to model complexity and task requirements. for The complex conjugate transpose of .
[0114] The above Krauss summation form naturally guarantees the mapping. The perfect positivity (CP) is due to the fact that for any positive semi-definite input... Output It remains positive semidefinite. However, trace preservation (TP) requires additional constraints, specifically:
[0115]
[0116] The physical significance of this constraint lies in ensuring the probability conservation of the quantum channel: when the trace of the input density matrix is 1, the trace of the output density matrix is also always 1.
[0117] In this invention, each inverse denoising channel layer Each has an independent set of Kraus operator parameters. Parameters are not shared between layers. This parameter organization method enables the network to have sufficient expressive power, and the inverse denoising channel layers at different time steps can learn specific operating strategies for different noise levels and coherent recovery stages.
[0118] S3.3 Stiefel manifold parameterization;
[0119] In order to uniformly apply trace-preserving constraints during training, the Kraus operators of each inverse denoising channel layer are structurally spliced together to construct a unified parameter matrix.
[0120] Specifically, for the first A reverse denoising channel layer, which... A concatenation of Kraus operators along the column direction forms a Block matrix:
[0121]
[0122] Then the first Layer trace preservation constraints Equivalent to:
[0123]
[0124] in for The identity matrix. Furthermore, all... The parameter matrices of each inverse denoising channel layer are concatenated in the same way to form a unified parameter matrix. :
[0125]
[0126] Regardless of the stitching method used, the trace-preserving constraints of each layer are aggregated into global Stiefel manifold constraints:
[0127]
[0128] in for The complex conjugate transpose Let be the identity matrix of appropriate dimensions. All matrices satisfying this constraint. Constructing a Stiefel manifold ,in and For matrix The number of rows and columns. This manifold is embedded in Euclidean space. A compact Riemannian submanifold in which each point corresponds to a set of Kraus operators satisfying CPTP constraints.
[0129] Step S4: Joint optimization training of network parameters under CPTP constraints; under the Stiefel manifold constraint, perform end-to-end joint optimization training of all learnable Kraus operator parameters of the inverse denoising and reconstruction network.
[0130] S4.1 Construction of training data;
[0131] Training data consists of The training set is constructed from a set of classic medical image samples. For each classic feature data sample (i.e., each medical image) in the training set, its corresponding target data state is obtained through tensor network encoding (MPS encoding) in step S1, denoted as . ( Subsequently, through the forward diffusion process in step S2, each target data state is processed. Apply Step CPTP noise channel action, generating corresponding high mixed state And optional intermediate diffused state sequences The training dataset constructed in this way is denoted as:
[0132]
[0133] in The superscript represents the total number of training samples (i.e., the number of samples in the classic medical image training set). Indicates the first One sample, The optional intermediate diffusion state sequence is used for path consistency supervision. The above construction process establishes a clear correspondence between the classical machine learning training set and the quantum state training set: each classical image sample corresponds to a target data state generated by MPS encoding, and thus corresponds to a forward diffusion trajectory generated by the physical noise model.
[0134] S4.2 Definition of loss function;
[0135] Define the combination loss function This is used to measure the difference between the reconstructed state and the target data state, and optionally imposes constraints on the intermediate trajectory of the inverse denoising:
[0136]
[0137] in, Quantum state fidelity, used to measure the similarity between two quantum states, is defined as follows:
[0138]
[0139] in, Represents the density matrix The square root of the matrix (i.e., satisfying) (positive semidefinite matrix) Represents the trace of a matrix. The range of values is If and only if The maximum value is 1. The target data state (i.e., training labels); This represents the final reconstructed state output by the inverse denoising and reconstruction network. For the first step in the forward diffusion process The quantum state of the step (as an intermediate supervision label); For the first step in the reverse denoising and reconstruction process An intermediate reconstructed state. In this invention, fidelity loss... The range of values is The smaller the value, the closer the two states are; The final state loss term is used to constrain the difference between the final generated result and the target data state, and is the main driving term for achieving high-fidelity reconstruction. This is a global weight hyperparameter, taking the value of a non-negative real number. When When the loss function degenerates into a simple form containing only the final state loss term, when At that time, the loss function includes path constraint terms; These are time-dependent (network layer number) weight coefficients, taking non-negative real numbers, used to adjust the relative strength of path consistency constraints at different diffusion stages. For example, a larger weight can be assigned to later denoising steps closer to the target state. Values are used to enhance oversight of fine structure recovery; The path constraint term is used to constrain the reverse denoising trajectory and the forward diffusion trajectory to maintain high fidelity at intermediate discrete time steps, so that the reverse updates of each step are constrained to the vicinity of a reasonable trajectory, and the propagation and accumulation of errors in the multi-step generation process are suppressed.
[0140] S4.3 Constrained gradient update on the Stiefel manifold;
[0141] During training, it is necessary to adjust the loss function. Regarding the parameter matrix Optimize while ensuring that after each parameter update Still satisfies Stiefel manifold constraints .
[0142] First, calculate the loss function in the Euclidean space sense. Regarding the parameter matrix The partial derivatives of are used to obtain the Euclidean gradient, denoted as . The dimension of the gradient matrix is the same as... Similarly, its matrix elements are loss function pairs. The partial derivatives of each element can be efficiently calculated using automatic differentiation frameworks (such as PyTorch, TensorFlow, etc.).
[0143] Secondly, the Euclidean gradient Projecting onto the tangent space of the Stiefel manifold, we obtain the Riemann gradient. :
[0144]
[0145] in Representation matrix Symmetry operations. It is a loss function The Riemann gradient on the Stiefel manifold points in the direction of the fastest growth of the loss function on the manifold.
[0146] Subsequently, constraint updates are performed on the Stiefel manifold along the negative direction of the Riemann gradient. Let the parameter matrix of the current iteration step be... The learning rate is (Values are positive real numbers), using an update formula based on the Cayley transform:
[0147]
[0148] in, The parameter matrix of the current iteration step, satisfying... ; The updated parameter matrix also strictly satisfies ; : Learning rate, which takes the value of a positive real number and controls the step size of parameter updates; Invert a matrix. and Indicated based on Riemann gradient and the current parameter matrix The constructed auxiliary matrix is defined as:
[0149]
[0150] in This means concatenating two matrices horizontally, therefore and The number of columns is and The sum of the numbers in the sequence;
[0151] The Cayley transformation update formula described above has the following key properties: (a) Constraint-preserving: if satisfy Then the updated Precisely meet (a) No post-processing correction steps are required; (b) Smoothness: Updating the mapping is A smooth function, when (c) Reversibility: The update is reversible on the Stiefel manifold, which is beneficial to the numerical stability of the optimization process.
[0152] Understandably, other Riemannian optimization methods, such as those based on QR decomposition contraction, polar decomposition contraction, or geodesic descent, can also be used to optimize the parameter matrix on the Stiefel manifold. Updates can be performed as long as the constraints are met. It is sufficient that the condition remains true after each parameter update. These variations all fall within the protection scope of this invention.
[0153] S4.4 end-to-end joint training strategy;
[0154] This embodiment employs an end-to-end joint training strategy, which will train all... The inverse denoising channel layers are connected in series to form a complete inverse denoising and reconstruction network. Each training iteration is as follows:
[0155] (a) Forward propagation: Sample a batch of target data states from the training dataset. The corresponding highly mixed state is generated through the forward diffusion process in step S2. and optional intermediate states ;
[0156] (b) Inverse denoising: denoising high-mixing states The input is processed by the inverse denoising and reconstruction network, and then... Denoising is performed layer by layer to obtain the reconstructed state. and intermediate reconfiguration state ;
[0157] (c) Loss calculation: based on the combined loss function defined in step S4.2. Calculate the average loss value for the current batch;
[0158] (d) Backpropagation: Calculate the loss function with respect to the parameter matrix Euclidean gradient Converted to Riemann gradient ;
[0159] (e) Parameter Update: On the Stiefel manifold, the Cayley transform update formula from step S4.3 is applied to update the parameters. Perform a constraint update.
[0160] The above process is executed iteratively until convergence. The Kraus operator parameters at each time step are co-optimized under the same global loss function, which effectively reduces the accumulation of errors in the multi-step generation process compared to staged independent training or stepwise greedy optimization.
[0161] Step S5: Apply inference and output to downstream tasks; Deploy the trained inverse denoising and reconstruction network in a noisy quantum processor environment, perform high-fidelity reconstruction on the actual degraded encoded state, and output the reconstruction result to the downstream quantum information processing task.
[0162] S5.1 Acquisition of the actual noisy coded state;
[0163] For a new set of classical medical image data to be processed, the target data state is first obtained by MPS encoding according to step S1. Due to the unavoidable decoherence and dissipation noise in superconducting quantum processors, the quantum states actually loaded onto physical qubits via quantum coding circuits are not ideal. Instead, it is a degraded quantum state to be processed that has partially degraded after being subjected to a real noise channel, denoted as... This degenerate quantum state It can be obtained in one of the following two ways:
[0164] Physical measurement method: After executing the encoding circuit on the actual quantum processor, the actual density matrix on the physical qubit is reconstructed by measurement techniques such as quantum state tomography or shadow tomography.
[0165] Simulated degradation method: Based on the processor's calibration noise parameters, the ideal state is simulated using the forward diffusion model in step S2. Apply By applying the noise channel, a simulated high-mixing state is obtained. As Approximate to .
[0166] S5.2 high-fidelity reconstruction;
[0167] The above noise state (or its approximation) Input the trained inverse denoising and reconstruction network, and then... Step-by-step noise reduction:
[0168]
[0169] Obtain high-fidelity reconstructed state This reconstructed state is a reconstruction of the original target data state. The estimate, and its relationship fidelity Significantly higher than the noise state fidelity obtained by direct measurement . Figure 2 The lower half schematically illustrates the aforementioned inverse denoising reconstruction trajectory: from the high mixture state Initially, each step involves learning the CPTP denoising channel. The quantum coherence is gradually restored, the system entropy decreases monotonically, and finally a high-fidelity reconstructed state is obtained. .
[0170] S5.3 output to downstream quantum tasks
[0171] Reconstruct the state with high fidelity The noise-resistant encoding result of classical medical image data is output to the downstream quantum information processing task. In this embodiment, the downstream task is a quantum neural network classifier (VQC) used to perform disease classification of medical images (e.g., benign / malignant lesion discrimination).
[0172] Specifically, the reconstructed state As the initial quantum state of VQC, it passes through a set of parameterized variable quantum gate sequences. After application, the expected value of the specific Pauli operator is measured to obtain the classification prediction output:
[0173]
[0174] in The unitary matrix corresponding to the parameterized quantum circuit. These are trainable classical parameter vectors. For observables used in classification (e.g., Pauli-Z operators). Comparative experiments verify that using the method reconstructed in this invention... As a VQC input, its classification accuracy is significantly higher than that of directly using noisy states. The baseline scheme is used as input.
[0175] Figure 2 The overall schematic representation illustrates the complete quantum state evolution trajectory of this invention: the upper part is a physically consistent forward diffusion trajectory, consisting of a fixed CPTP channel based on hardware-calibrated noise parameters, representing a physical degradation process of gradual loss of quantum coherence and monotonically increasing system entropy; the lower part is a learnable reverse denoising and reconstruction trajectory, consisting of a learnable CPTP channel constrained by the Stiefel manifold, representing a generation process of gradual entropy reduction and coherence recovery through multi-layer parameterized denoising operations. The coupling of the two trajectories in the physical operation space together constitutes a complete quantum diffusion encoding and reconstruction link.
[0176] Based on the above-described physically constrained diffuse quantum data encoding method for discrete variables, this embodiment also provides a physically constrained diffuse quantum data encoding device for discrete variables. The device includes:
[0177] The data acquisition and mapping module is used to acquire classical feature data and map the classical feature data into a target data state using a preset quantum encoding method. The target data state is a density matrix carrying classical data feature information.
[0178] The forward diffusion module is used to construct a forward diffusion process based on the dynamic model of an open quantum system, which is composed of fixed quantum channels in sequence over multiple time steps, and to gradually evolve the target data state into a highly mixed state through the forward diffusion process; wherein, each of the fixed quantum channels is defined by a set of first Kraus operators that satisfy the complete positive and trace-preserving (CPTP) condition;
[0179] The inverse denoising and reconstruction network construction module is used to construct an inverse denoising and reconstruction network composed of learnable quantum channels sequentially combined at multiple time steps. Taking the high-mixing state as input, it performs multi-step inverse denoising and outputs a reconstructed state estimate of the target data state. Each learnable quantum channel is parameterized by a set of second Kraus operators that satisfy the CPTP condition, and the matrix elements of each operator in the second Kraus operator set are learnable parameters to be optimized.
[0180] A joint optimization training module, during the training phase, optimizes the parameters of all learnable quantum channels in the inverse denoising and reconstruction network by minimizing the difference between the estimated target data state and the reconstructed state, under the condition of satisfying CPTP constraints, to obtain the trained inverse denoising and reconstruction network. The joint optimization training module may further include a Stiefel manifold constraint unit, used to concatenate the second Kraus operator sets of each inverse denoising channel layer into a unified parameter matrix and apply constraints. The parameter matrix is then constrained and updated on the Stiefel manifold to ensure that each inverse denoising channel layer still satisfies the CPTP condition after the parameter update.
[0181] The application output module is used to acquire the classical feature data to be encoded during the application phase, map it into a new target data state, and degenerate the new target data state into a degenerate quantum state to be processed after being subjected to a real noise channel on the target physical quantum processor. The degenerate quantum state to be processed is input into the trained inverse denoising reconstruction network to obtain a high-fidelity reconstruction state, and the high-fidelity reconstruction state is used as the noise-resistant encoding result of the classical feature data and output to the downstream quantum information processing task.
[0182] The specific functions and processing flow of each of the above modules correspond one-to-one with steps S1 to S5 of the aforementioned method embodiment, and will not be elaborated on one by one here.
Claims
1. A discrete variable oriented physical constraint diffusion quantum data encoding method, characterized by, The method, on a noisy physical quantum processor, uses a physical uniformity diffusion model to perform noise-resistant reconstruction of quantum states encoded from classical feature data, including the following steps: Step S1: Obtain classical feature data and map the classical feature data into a target data state using a preset quantum encoding method. The target data state is a density matrix that carries classical data feature information. Step S2: Obtain the calibration noise parameters of each physical qubit in the target superconducting quantum processor. Based on the dynamic model of the open quantum system, construct a forward diffusion process composed of fixed quantum channels in sequence at multiple time steps. The target data state is gradually evolved into a highly mixed state through the forward diffusion process. Each fixed quantum channel is defined by a set of first Kraus operators that satisfy the completely positive and trace-preserving CPTP condition. Step S3: Construct an inverse denoising and reconstruction network composed of multiple time-step learnable quantum channels in sequence. Taking the high-mixing state as input, after multiple steps of inverse denoising, output the reconstructed state estimate of the target data state; wherein, each learnable quantum channel is parameterized by a set of second Kraus operators that satisfy the CPTP condition, and the matrix elements of each Kraus operator in the set of second Kraus operators are learnable parameters to be optimized; Step S4: During the training phase, under the condition of satisfying the CPTP constraints, with the optimization objective of minimizing the difference between the target data state and the reconstructed state estimate, the learnable parameters in all Kraus operator sets in the inverse denoising and reconstruction network are jointly optimized to obtain the trained inverse denoising and reconstruction network. Step S5: In the application phase, the trained inverse denoising and reconstruction network is deployed in a noisy quantum processor environment to reconstruct the actual degraded encoded state and output the reconstruction result to the downstream quantum information processing task.
2. The discrete variable oriented physical constraint diffusion quantum data encoding method according to claim 1, wherein, The specific steps of S1 are as follows: Step S1.1: Acquisition and preprocessing of classical feature data; acquiring medical image tensor data as classical feature data, the data structure is represented as wherein are the sampling point numbers of three spatial dimensions respectively, denotes the real number field; the classical feature data is preprocessed into a high-dimensional feature vector matching the number of qubits wherein is the number of qubits contained in the system, satisfying , is the dimension after the original tensor data is flattened; Step S1.2: mapping to the target data state by tensor network encoding; taking the matrix product state (MPS) as the basic structure of the tensor network encoding, taking each component of the eigenvector as the coefficient of each physical index of the MPS, determining the dimension of each virtual key of the MPS and the element value of each core tensor by means of variational optimization or direct construction, and representing it as a state vector of a quantum bit system , and the corresponding density matrix is the target data state: wherein, is a Dirac right vector representation of the target data state; is the Hermitian conjugate of is an outer product operation, resulting in a density matrix of rank 1, representing a pure state; is a complex matrix space of dimension The density matrix satisfies three fundamental quantum mechanical constraints: Hermiticity, positive semi-definiteness, and trace normalization.
3. The discrete variable oriented physical constraint diffusion quantum data encoding method according to claim 2, characterized in that, Step S2 is as follows: Step S2.1: Obtain the calibrated noise parameters of each physical qubit in the target superconducting quantum processor, including the relaxation time , the decoherence time , the form and strength of the corresponding jump operator of each noise channel ; Step S2.2: Under the Markov approximation, use the Lindblad master equation to describe the continuous-time evolution of the open quantum system under environmental noise; Step S2.3: The continuous evolution at each time step is approximated as a discrete map, such that at sufficiently small time steps the system evolution is a quantum superposition of two mutually exclusive scenarios: with overwhelming probability no noise jump occurs and the system evolves continuously under the action of the effective non-Hermitian Hamiltonian; with a probability proportional to a certain type of noise jump occurs; Step S2.4: Based on the single-step discrete channel, construct a channel containing... The forward diffusion process of the first step, wherein the forward vector sub-channel satisfies the trace preservation constraint; The forward vector subchannels are sequentially combined to generate a complete forward diffusion sequence, thus obtaining a highly mixed state.
4. The physically constrained diffusion quantum data encoding method for discrete variables according to claim 3, characterized in that, Step S3 is as follows: Step S3.1: The inverse denoising and reconstruction network is composed of... The reverse denoising channel layers are sequentially connected in series, and the reverse denoising process is expanded as follows: Each step corresponds to a learnable inverse denoising channel layer. The output results of each inverse denoising channel layer are compositely mapped to obtain the reconstructed state of the network output, where the mapping direction corresponds to the reverse order of the time steps; Step S3.2: Parameterize the second Kraus operator set of the single-step reverse denoising channel layer; For any number One inverse denoising channel layer ( This can be modeled as a learnable quantum channel, represented using the Kraus operator summation form: in, For the first step in the reverse denoising process The density matrix of intermediate quantum states, where For network input; For the first One inverse denoising channel layer The quantum state density matrix output after processing; For the first The first inverse denoising channel layer A learnable Kraus operator matrix, whose elements are the parameters to be optimized; The number of Kraus operators contained in the reverse single-step quantum channel; for The complex conjugate transpose; Step S3.3: Stiefel manifold parameterization: The Kraus operators of each inverse denoising channel layer are structurally concatenated to construct a unified parameter matrix; for the ... A reverse denoising channel layer, which... A concatenation of Kraus operators along the column direction forms a Block matrix: Then the first Layer trace preservation constraints Equivalent to: ,in for The identity matrix; all The parameter matrices of each inverse denoising channel layer are concatenated in the same way to form a unified parameter matrix. The trace-preserving constraints of each layer are aggregated into global Stiefel manifold constraints: ,in for The complex conjugate transpose It is an identity matrix.
5. The physically constrained diffusion quantum data encoding method for discrete variables according to claim 4, characterized in that, During the training phase, a loss function is used. The difference between the reconstructed state and the target data state is measured, and constraints are imposed on the intermediate trajectory of the inverse denoising, as shown in the following formula: in, For global weight hyperparameters, These are time-dependent weighting coefficients. For the target data state, The reconstructed state output by the network. For the first step in the forward diffusion process The quantum state density matrix of the step, For the first step in the reverse denoising and reconstruction process An intermediate reconfiguration state; Quantum state fidelity, which measures the similarity between two quantum states, is calculated using the following formula: in Represents the density matrix The square root of the matrix, Represents the trace of a matrix; During training, the loss function with respect to the parameter matrix is computed on the Stiefel manifold. The Riemann gradient is calculated, and the parameter matrix is updated along the direction of the Riemann gradient, while ensuring that the parameter update is performed after each parameter update. It still satisfies the Stiefel manifold constraint; Employing an end-to-end joint training strategy, all The inverse denoising channel layers are connected in series to form a complete inverse denoising reconstruction network.
6. The physically constrained diffusion quantum data encoding method for discrete variables according to claim 5, characterized in that, The formula for the Lindblad master equation is as follows: in, For continuous evolution time variables; for The quantum state density matrix at time t; The imaginary unit, ; For the system Hamiltonian; For commutation operations; For the first The jump operator corresponding to noise or dissipation mechanisms is determined by hardware calibration parameters. for The complex conjugate transpose; The total number of independent dissipation channels in the system depends on the specific noise type and number of bits of the quantum processor. Then, the continuous evolution is performed at each time step. The inner approximation is a discrete mapping: in For the first The Kraus operators are specifically constructed as follows: in, It is the identity matrix; , is an effective non-Hermitian Hamiltonian; the first set of Kraus operators is constructed. It satisfies the completeness relation under the first-order approximation.
7. The physically constrained diffusion quantum data encoding method for discrete variables according to claim 6, characterized in that, During the forward diffusion process, for the first Step forward diffusion, define forward vector sub-channel: And it satisfies the trace preservation constraint: in, For the first The quantum state density matrix of the step; For the first The quantum state density matrix after the effect of a step noise channel; For the first Pre-step vector sub-channel mapping; The Kraus operators actually used in the forward diffusion time step are directly adopted from the first set of Kraus operators constructed. ; for The complex conjugate transpose; by... The forward vector sub-channels are sequentially combined to generate a complete forward diffusion sequence: By The forward vector sub-channels are sequentially combined to generate a complete forward diffusion sequence: Recorded as: Among the symbols Represents the sequential compound operator for mapping operations; This is the highly mixed state obtained by forward diffusion.
8. The physically constrained diffusion quantum data encoding method for discrete variables according to claim 7, characterized in that, The composite mapping of the inverse denoising and reconstruction network is represented as: in, The reconstructed state output by the network, i.e., the state of the target data. The estimate; For the first A reverse denoising channel layer, with the mapping direction corresponding to the reverse order of time steps: It's the final step of noise reduction, from Recover ; The first step is noise reduction, from Recover .
9. A physically constrained diffusion quantum data encoding method for discrete variables according to claim 8, characterized in that, The parameter matrix is then constrained and updated along the Riemann gradient direction, and the update formula is as follows: in, Let be the parameter matrix of the current iteration step, satisfying ; The learning rate is a positive real number that controls the step size for parameter updates. Invert a matrix; and Indicated based on Riemann gradient and the current parameter matrix The constructed auxiliary matrix is defined as: in This means concatenating two matrices horizontally. This is the Riemann gradient.
