Phase coding method and apparatus, and communication device
By generating first-order and higher-order terms to construct a bit matrix and calculating the coding coefficients, the redundant coding problem in phase coding is solved, achieving efficient phase coding and improving the speed and quality of weight optimization.
Patent Information
- Application Number
- CN202511553018.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2026-02-13
AI Technical Summary
In existing technologies, phase encoding generates a large amount of redundant encoding, which seriously affects the speed and quality of weight optimization.
A phase coding method is adopted, which constructs a bit matrix by generating first-order and higher-order terms of multiple bits and calculates coding coefficients to achieve one-to-one coding from N bits to each phase, thus avoiding redundant coding.
It reduces the number of bits required for encoding, improves the speed and quality of the optimization algorithm, ensures that the encoding process is free of redundancy, and supports rapid optimization of subsequent optimization algorithms.
Smart Images

Figure CN121530429A_ABST
Abstract
Description
[0001] This application is a divisional application. The original application has the application number 202310184040.5 and the original application date is February 20, 2023. The entire contents of the original application are incorporated herein by reference. Technical Field
[0002] This application relates to the field of communication technology, and in particular to a phase encoding method, apparatus and communication device. Background Technology
[0003] The rapid development of wireless communication technology has led to increasingly scarce spectrum resources. As a key technology for current fifth-generation mobile communication (5G) and next-generation mobile communication, massive multiple-in multiple-out (MIMO) systems can significantly improve spectrum utilization by utilizing spatial division technology.
[0004] Massive MIMO antenna arrays can achieve beamforming by arranging multiple antenna elements in an array and then using weight optimization. In a multi-antenna scenario, the spatial electric field is obtained by coherently superimposing the radiation fields of each antenna according to their phases. Due to the interference and diffraction characteristics of waves, signals with different amplitudes and phases emitted by different antennas will have increased energy in some directions and decreased energy in others after superposition. In multi-antenna communication, the characteristic that electromagnetic waves radiate into a narrow beam oriented in a certain direction can be utilized to intervene in the beamforming process. This means that the transmitted signals of each antenna can be weighted as needed, and the amplitude or phase of the transmitted signals of each antenna can be intentionally changed so that the final beam has exactly the width and orientation required for actual communication. This process is called beamforming.
[0005] The key to beamforming is weight optimization using optimization algorithms. When applying partial optimization algorithms, phase encoding is required, and the encoding method directly affects the solution quality. As antenna sizes increase from hundreds to thousands, applying existing phase encoding methods will generate a large amount of redundant encoding, severely impacting the speed and quality of weight optimization. Summary of the Invention
[0006] This application provides a phase encoding method, apparatus, and communication device to solve the problem that phase encoding in the prior art generates a large amount of redundant encoding, which seriously affects the speed and quality of weight optimization.
[0007] To achieve the above objectives, this application adopts the following technical solution: A first aspect of this application provides a phase encoding method, including: Based on the multiple phases to be encoded, determine the number of bits required to encode the multiple phases; Generate first-order and higher-order terms for the plurality of bits; Based on the multiple phases, the first-order term, and the higher-order term, a bit matrix is constructed, wherein the bit matrix is composed of multiple combinations of values of the multiple bits; Calculate multiple coding coefficients based on the bit matrix and the multiple phases; The multiple phases are encoded using the multiple coding coefficients.
[0008] Compared with the prior art, the beneficial effects of the phase encoding method provided in this application embodiment include: by introducing higher-order terms to construct the encoding, this application embodiment can make the coefficient matrix of the linear equation system to be solved a full-rank square matrix, thereby achieving... N bits to One-to-one encoding of each phase. Applying this method avoids generating a large amount of redundant encoding during the encoding process, which is beneficial for subsequent optimization algorithms. Secondly, the phase encoding method provided in this application can minimize the number of bits required for encoding; compared to the existing technology using QAM encoding for pure phase encoding, it can reduce the number of bits by at least half.
[0009] It should be understood that the phase encoding method provided in this application can be applied to various scenarios. These scenarios may include communication scenarios or non-communication scenarios. For example, in a communication scenario, this method can be applied to encode the phase of a discrete signal; in a non-communication scenario, if the object to be encoded is a discrete value, this method can also be used for encoding.
[0010] In one example of the first aspect, when the number of the plurality of phases is At this time, the encoding is described The number of bits required for each phase is N indivual.
[0011] In one possible implementation of the first aspect, generating the first-order and higher-order terms of the plurality of bits may include: generating the first-order terms of each bit; multiplying each bit itself sequentially to obtain a second-order multiplication term to... N Higher-order terms, including first-order chain terms. The first-order terms can be the individual bits themselves. N The number of bits is given. Higher-order terms of any order may include product terms of the bits, and the bits in the same product term are all different.
[0012] It should be understood that when generating the first-order and higher-order terms of the plurality of bits, all first-order and higher-order terms of the plurality of bits can be generated.
[0013] In one possible implementation of the first aspect, the step of multiplying each bit itself one by one yields a product from the second-order product to... N The higher-order terms, including the chained multiplication terms, include: determining the order of the higher-order terms to be generated; determining the number of terms in the higher-order terms of the order; and multiplying each bit by itself according to the number of terms to obtain the higher-order terms of the order.
[0014] For example, when generating higher-order terms of multiple bits, the order of the term to be generated can be determined first, such as third, fourth, or fifth order. Then, for the corresponding order, the number of terms in the higher-order terms is determined, and then all higher-order terms of that order are obtained by multiplying each bit by itself. This ensures that complete higher-order terms are generated without omissions.
[0015] In one example of the first aspect, when the number of the plurality of bits is N , the order is X When the order of the higher-order terms is, the number of terms is item.
[0016] In one possible implementation of the first aspect, constructing the bit matrix based on the plurality of phases, the first-order terms, and the higher-order terms includes: constructing a system of linear equations based on the plurality of phases, the first-order terms, and the higher-order terms; and determining the bit matrix based on the system of linear equations. The linear equation system contains an equal number of equations to the number of phases. The expressions of the phases on one side of the equal sign of the equations are different from each other. The expressions of the first-order terms and the higher-order terms on the other side of the equal sign of the equations are the same. The first-order terms and the higher-order terms in each equation have coefficients, which constitute the coding coefficients.
[0017] In another possible implementation of the first aspect, if the rotation angles of the multiple phases to be encoded are equally spaced, then half of the phase can be obtained by rotating the other half by 180°, that is, multiplying half of the phase by -1 to obtain the other half. Therefore, for multiple phases with equally spaced rotation angles, a simplified calculation method can be used in the process of generating higher-order terms, extracting only the higher-order terms of the odd-numbered terms. Then, based on the multiple phases, the first-order terms, and the extracted higher-order terms of the odd-numbered terms, the linear equation system is constructed.
[0018] In another possible implementation of the first aspect, when determining the bit matrix according to the linear equations, the value of any one bit can be determined first; then, based on the value of the one bit, the values of the other bits are generated to obtain multiple combinations of the values of the multiple bits, and the multiple combinations of the values constitute the bit matrix.
[0019] In one example of the first aspect, the value of any one bit and the other bits can be 1 or -1.
[0020] In one example, one can first determine that any one bit is 1, and then determine the values of the other bits. The values of the other bits should meet the above requirements, that is, the values of the other bits should also be 1 or -1; or one can first determine that any one bit is -1, and then determine the values of the other bits are 1 or -1.
[0021] In one possible implementation of the first aspect, the step of calculating multiple coding coefficients based on the bit matrix and the multiple phases includes: determining a phase vector composed of the multiple phases; calculating the product of the transpose of the phase vector and the inverse of the bit matrix to obtain the transpose of the coefficient vector composed of the multiple coding coefficients; and determining the multiple coding coefficients based on the transpose of the coefficient vector.
[0022] In one possible implementation of the first aspect, the system of linear equations can be represented in matrix computation form, i.e.:
[0023] in, A bit matrix, a vector = ,vector It is a coefficient vector composed of multiple coding coefficients. It is a phase vector composed of multiple phases to be encoded. and Coefficient vectors and phase vector The transpose of .
[0024] The expression for the coding coefficients can be obtained through matrix calculations:
[0025] in, Bit matrix The inverse matrix.
[0026] A second aspect of this application provides a phase encoding apparatus, which may include the following modules: a determining module, a generating module, a constructing module, a calculating module, and an encoding module, wherein: A determining module is used to determine the number of bits required to encode the multiple phases based on the multiple phases to be encoded; The generation module is used to generate the first-order and higher-order terms of the plurality of bits; A construction module is used to construct a bit matrix based on the multiple phases, the first-order term, and the higher-order term, wherein the bit matrix is composed of multiple combinations of values of the multiple bits; The calculation module is used to calculate multiple coding coefficients based on the bit matrix and the multiple phases; The encoding module encodes the multiple phases using the multiple encoding coefficients.
[0027] In one example of the second aspect, when the number of the plurality of phases is At this time, the encoding is described The number of bits required for each phase is N indivual.
[0028] In one possible implementation of the second aspect, the generation module can specifically be used for: Generate a first-order term for each bit, wherein the first-order term can be the bit itself; Multiplying each bit by itself one by one, we obtain the second-order multiplication term to... N Higher-order terms, including chain multiplication terms; among which... N The number of bits is given. Higher-order terms of any order may include product terms of the bits, and the bits in the same product term are all different.
[0029] When generating higher-order terms, the generation module can also be used to: determine the order of the higher-order terms to be generated; determine the number of terms in the higher-order terms of the order; and multiply each bit by itself according to the number of terms to obtain the higher-order terms of the order.
[0030] In one example of the second aspect, when the number of the plurality of bits is N , the order is X When the order of the higher-order terms is, the number of terms is item.
[0031] In one possible implementation of the second aspect, the construction module may specifically be used to: construct a system of linear equations based on the plurality of phases, the first-order terms, and the higher-order terms; and determine the bit matrix based on the system of linear equations. The linear equation system contains an equal number of equations to the number of phases. The expressions of the phases on one side of the equal sign of the equations are different from each other. The expressions of the first-order terms and the higher-order terms on the other side of the equal sign of the equations are the same. The first-order terms and the higher-order terms in each equation have coefficients, which constitute the coding coefficients.
[0032] In another possible implementation of the second aspect, the building module can also be used to: extract the higher-order terms of the odd-numbered terms if the rotation angles of the plurality of phases are equally spaced; and construct the linear equation system based on the plurality of phases and the higher-order terms of the first-order terms and the odd-numbered terms.
[0033] In another possible implementation of the second aspect, the construction module can also be used to: determine the value of any one bit; generate the values of other bits based on the value of the one bit, to obtain multiple combinations of the values of the multiple bits, and the multiple combinations of the values constitute the bit matrix.
[0034] In one example of the second aspect, the value of any one bit and the other bits is 1 or -1.
[0035] In one possible implementation of the second aspect, the calculation module may specifically be used to: determine the phase vector formed by the plurality of phases; calculate the product of the transpose of the phase vector and the inverse of the bit matrix to obtain the transpose of the coefficient vector formed by the plurality of coding coefficients; and determine the plurality of coding coefficients based on the transpose of the coefficient vector.
[0036] The linear equation system can be represented in matrix form, i.e.:
[0037] in, A bit matrix, a vector = ,vector It is a coefficient vector composed of multiple coding coefficients. It is a phase vector composed of multiple phases to be encoded. and Coefficient vectors and phase vector The transpose of .
[0038] The expression for the coding coefficients can be obtained through matrix calculations:
[0039] in, Bit matrix The inverse matrix.
[0040] A third aspect of this application provides a communication device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the phase encoding method as described in any of the first aspects above.
[0041] It should be understood that communication equipment may include any one of base stations, smart reflectors, or routers.
[0042] A fourth aspect of this application provides a computer-readable storage medium storing computer instructions that, when executed on a computer device, cause the computer device to perform the aforementioned method steps to implement the phase encoding method described in any of the first aspects. The aforementioned computer device may include, but is not limited to, communication devices.
[0043] A fifth aspect of this application provides a computer program product that, when run on a computer device, causes the computer device to perform the aforementioned related steps to implement the phase encoding method described in any of the first aspects.
[0044] A sixth aspect of this application provides a chip including a memory and a processor, the processor executing a computer program stored in the memory to implement the phase encoding method as described in any of the first aspects above.
[0045] It is understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0046] Figure 1 This is a schematic diagram of an amplitude-phase encoding method in the prior art; Figure 2 This is a schematic diagram of a beamforming process provided in an embodiment of this application; Figure 3 This is a schematic diagram of a phase encoding method provided in an embodiment of this application; Figure 4 This is a phase diagram of an antenna vibrator provided in an embodiment of this application; Figure 5 This is a schematic flowchart of a phase encoding method provided in an embodiment of this application; Figure 6 This is a schematic diagram of a base station system architecture provided in an embodiment of this application; Figure 7 This is a schematic diagram of the system architecture of an intelligent reflective surface provided in an embodiment of this application; Figure 8 This is a schematic diagram of a beamforming result provided in an embodiment of this application; Figure 9 This is a schematic diagram of a phase encoding device provided in an embodiment of this application. Detailed Implementation
[0047] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and effect. For example, "first phase," "second phase," etc., are merely used to distinguish different phases and do not limit their quantity or execution order.
[0048] It should be noted that in the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0049] The business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0050] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0051] The steps involved in the phase encoding method provided in this application are merely examples. Not all steps are mandatory, and not all content in each step is required. They can be added or removed as needed during use.
[0052] In this application, the same step or a step or message with the same function can be referenced and learned from each other in different embodiments.
[0053] As antenna sizes have increased from hundreds to thousands, pure phase optimization in weight optimization has become a key research focus because it can better save communication costs compared to simultaneous amplitude and phase optimization.
[0054] Among algorithms for solving weight optimization problems, the holographic algorithm is relatively fast. This analytical algorithm solves continuous optimization problems. However, in real-world communication scenarios, the limitations of phase shifters in antenna equipment cause the antenna phase to exhibit discrete characteristics. Applying the holographic algorithm to convert the continuous optimization results to discrete values introduces additional errors, significantly reducing the optimization effect. Another algorithm for solving weight optimization problems is the genetic algorithm, which solves unidirectional beamforming problems by iteratively selecting, crossovering, and mutating in a population formed by all weight combinations. However, optimizing a thousand-level antenna array using a genetic algorithm often takes several days. Faced with the ever-increasing scale of antenna arrays, the optimization speed of the genetic algorithm cannot meet the actual communication needs. Furthermore, both the holographic and genetic algorithms can only perform unidirectional beamforming and cannot support multi-directional enhancement and suppression in the spatial domain. Currently, some research is beginning to use quantum computing to solve such optimization problems. Correspondingly, classical algorithms inspired by quantum computing, i.e., quantum-heuristic algorithms, are also entering the research field, becoming a potential algorithm for quickly solving arbitrary beamforming problems. However, whether applying quantum computing or quantum heuristic algorithms, the phase must first be encoded, and the encoding method used will directly affect the solution quality of the optimization algorithm.
[0055] Quadrature amplitude modulation (QAM) is a common base station weighting method, whose encoding process includes encoding the antenna amplitude and phase. For example... Figure 1 The diagram shown is a schematic of amplitude-phase encoding in the prior art, where I represents the real part and Q represents the imaginary part. Figure 1 Any point in the array represents a discrete signal. According to... Figure 1 The encoding method shown requires equal-interval encoding of the real part I and the imaginary part Q, therefore the base station weights satisfy y = I + Qj. Taking 16-QAM with 16 weights as an example, this encoding method uses two bits to encode the real part and the imaginary part respectively. The spacing between the real part I and the imaginary part Q is determined by... and The overall encoding can be represented by the following formula (1): ……(1) in, and This represents the two bits used to encode the real part. and This represents the two bits used to encode the imaginary part.
[0056] Because amplitude-phase encoding uses separate encoding for the real and imaginary parts, applying this encoding method to simple phase encoding will result in a large amount of redundant encoding when the number of phases exceeds four. This necessitates adding extra bits during weight optimization. Furthermore, the redundant encoding generated by this method will introduce numerous constraints into the optimization process, severely impacting both the speed and quality of optimization.
[0057] To address the above problems, this application provides a phase encoding method. This method is a... N bits to The phase mapping coding method constructs a coding scheme with the minimum number of bits without redundancy or constraints to facilitate rapid optimization of subsequent algorithms and improve the algorithm's ability to solve beamforming problems.
[0058] like Figure 2 The diagram shown is a schematic flowchart of a beamforming process provided in an embodiment of this application. Figure 2 The process shown typically involves four steps: encoding, modeling, optimization, and beamforming. The encoding step can be completed... N bits [ ,…, The mapping from antenna element weights to the weights of the antenna elements is essentially encoding the weights of the antenna elements into... N Each bit has a spin. The weight here refers to the phase of the antenna element, with each bit having a spin of [number missing]. s The value can be After encoding is completed, the electromagnetic field energy in a specific direction in space can be calculated based on the actual application scenario, thus completing the modeling of the beamforming task and obtaining the expression for the electromagnetic field energy in the target direction in terms of bits. Modeling tasks can include beam enhancement or suppression in a specific direction, multi-beam multi-zero lines, etc. Then, in the optimization step, optimization algorithms can be applied to calculate the values of each bit, maximizing or minimizing the value of the aforementioned function H. Practical optimization algorithms can include quantum computing, quantum heuristics, etc. Finally, the weights of each antenna element in the antenna array can be determined based on the optimized bit values. By applying these weights to practical application scenarios, the final beamforming can be completed. Application scenarios requiring beamforming generally include base stations, reconfigurable intelligent surfaces (RIS), and routers, etc. The phase coding method provided in this application embodiment can be applied to... Figure 2 The coding steps of the beamforming process shown are as follows.
[0059] The phase encoding method of this application will now be described in conjunction with specific embodiments.
[0060] Reference Figure 3 The diagram illustrates a phase encoding method provided in an embodiment of this application. This method may specifically include the following steps: S301. Generate all first-order and higher-order terms according to the number of bits required for encoding.
[0061] This method can be applied to communication devices, including base stations, RIS (Real-Time Interchange) systems, routers, etc., meaning that this method can be used to encode phases within these devices. Before encoding, the number of bits required for encoding can be determined first. The number of bits can be determined based on the number of phases to be encoded.
[0062] In one example, if the number of phases to be encoded is If there are , then the number of bits required to encode the aforementioned phases is N That is, by applying the phase encoding method provided in the embodiments of this application, one can use... N Bit pairs Encode each target phase to be encoded. The target phase to be encoded can be used as a vector. = mark.
[0063] After determining the number of bits required for encoding, the first step is to generate... N All first-order and higher-order terms of bits.
[0064] in, N A first-order term of 1 bit can be this N Each bit itself.
[0065] For example, ifN Each bit is respectively Then all the first-order terms are .
[0066] N Higher-order terms of 1 bit can include terms ranging from second-order multiplication to... N All higher-order terms, including chain terms of order 1. Higher-order terms of any order can include chain terms of multiple bits, and each bit in the same chain term must be distinct.
[0067] For example, if N Each bit is respectively Then its second-order terms can include .For example, , , , , , , , , , , The total number of these second-order terms is... indivual.
[0068] Third-order terms may include .For example, , , , , , , , , , The total number of these third-order terms is... indivual.
[0069] Similarly, N Order terms may include , N The number of terms is 1, that is... indivual.
[0070] Therefore, when the number of multiple bits is N There are , with order . X When the order of the higher-order terms is , the number of terms is item.
[0071] N The total number of all first-order and higher-order terms for bits is . item.
[0072] S302. Construct a bit matrix based on all first-order and higher-order terms.
[0073] In generation N After completing all first-order and higher-order terms of each bit, a bit matrix can be constructed, which can be composed of various combinations of multiple bit values.
[0074] In one possible implementation, all first-order and higher-order terms can be combined, utilizing... coefficients c We construct a system of linear equations and determine the bit matrix based on this system of linear equations.
[0075] The linear equation system constructed in this embodiment may include multiple equations, the number of which is equal to the number of phases to be encoded. For example, if the number of phases to be encoded is... The constructed system of linear equations contains . Equations.
[0076] For example, by A system of linear equations consisting of 3 equations can be represented as follows: ……(2) As can be seen from equation (2) above, the expressions for the phases to be encoded, located on the same side of the equal sign of multiple equations, are all different. That is, the right side of the equal sign of each equation in the linear system of equations is an expression for one phase. arrive The expressions for all first-order and higher-order terms, located on the other side of the equals sign in multiple equations, are identical. These first-order and higher-order terms also have coefficients, i.e. All coefficients constitute the coding coefficients used for subsequent coding.
[0077] In the embodiments of this application, it is possible to utilize N There are a total of ways to construct a bit matrix from 10 bits. The values of this matrix can be formed by various combinations of multiple bit values. N The combinations of bit values form the rows of the bit matrix. Correspondingly, each column of the bit matrix corresponds to N The value of a higher-order or first-order term of a bit.
[0078] Since each column of the bit matrix is linearly independent, the final bit matrix is a full-rank square matrix.
[0079] S303. Perform matrix operations on the bit matrix to obtain the coding coefficients.
[0080] Formula (2) in the previous step can be expressed in the form of matrix calculation, i.e., the following formula (3): ……(3) in, A bit matrix, a vector = ,vector It is a coefficient vector composed of multiple coding coefficients. It is a phase vector composed of multiple phases to be encoded. and Coefficient vectors and phase vector The transpose of .
[0081] By processing equation (3) above, the expression for the coding coefficients can be obtained as follows: ……(4) in, Bit matrix The inverse matrix.
[0082] S304. Phase coding is performed using coding coefficients.
[0083] The calculated coding coefficients can be used to encode the phases to be encoded. Specifically, the calculated coding coefficients can be substituted into the linear equation system (2) to complete the encoding of each phase.
[0084] In this embodiment, by introducing higher-order terms to construct the encoding, the coefficient matrix of the linear equation system to be solved can be a full-rank square matrix, thus achieving... N bits to One-to-one encoding of each phase. Applying this method avoids generating a large amount of redundant encoding during the encoding process, which is beneficial for subsequent optimization algorithms. Secondly, the phase encoding method provided in this application can minimize the number of bits required for encoding; compared to the use of QAM for pure phase encoding in the prior art, it can reduce the number of bits by at least half.
[0085] To facilitate understanding, a specific example will be used to introduce the phase encoding method provided in the embodiments of this application.
[0086] like Figure 4 The image shown is a phase diagram of an antenna vibrator provided in an embodiment of this application. Figure 4 The phase to be encoded shown is an 8-phase, that is Figure 4 any marker point Each represents a phase to be encoded. Figure 4 It can be seen that the rotation angle of each phase is equally spaced.
[0087] If the rotation angles of multiple phases to be encoded are equally spaced, then half of the phase can be obtained by rotating the other half by 180°, that is, multiplying half of the phase by -1 to obtain the other half. For example, by rotation... Figure 4 middle With a phase of 180°, we can obtain Phase. Therefore, since the rotation angles for multiple phases are equally spaced, a simplified calculation method can be used in the process of generating higher-order terms, extracting only the higher-order terms of the odd-numbered terms.
[0088] Below, in order to Figure 4 Taking the encoding of eight phases as an example, we will introduce the phase encoding method of this application embodiment.
[0089] Since the number of phases to be encoded is 8, that is... Since there are 3 phases, the number of bits required for encoding is 3. Therefore, this example describes a 3-bit, 8-phase encoding process. Combined with... Figure 4 These 8 phases to be encoded can be represented as = , among which angle It can be represented as: ……(5) According to the encoding process described in the foregoing embodiment, it is first necessary to generate all first-order and higher-order terms of 3 bits. Since this example only needs to extract the higher-order terms of odd-numbered terms, only all first-order and third-order terms are needed in actual encoding. The third-order term can be represented as... .
[0090] Then, construct the bit matrix. The linear equation constructed according to the encoding process described in the foregoing embodiments can be expressed as: ……(6) There are a total of 8 possible combinations of bit values. Because Figure 4 Half of the phase can be obtained by multiplying the other half of the phase by -1, and in this process only all odd-numbered product terms are taken, so the general method described in the foregoing embodiments is correct. Only half of the equations in the system are linearly independent. In this case, a bit matrix can be generated by fixing the value of one bit. .
[0091] For example, suppose we take =1, and the corresponding bit matrix is: ……(7) certainly, Other values can also be selected, for example, selecting... = -1, then the resulting bit matrix can be represented as: ……(8) For angle ,take out = The angle values at each time point are obtained as follows: ……(9) In this way, a phase vector can be generated. P for: ……(10) According to formula (4), the coefficient vector used for encoding can be calculated as follows: ……(11) By substituting the result of equation (11) into equation (6), the phase encoding process is completed.
[0092] In conjunction with the foregoing embodiments, such as Figure 5 The diagram shows a flowchart of a phase encoding method provided in an embodiment of this application. The method may specifically include the following steps: S501. Determine the number of bits required to encode the multiple phases based on the multiple phases to be encoded.
[0093] This method can be applied to communication devices; that is, the execution subject of this application embodiment can be a communication device. For example, the communication device may include a base station, RIS, router, etc., and this application embodiment does not limit the specific type of communication device.
[0094] The number of phases to be encoded can be determined according to actual communication needs. Generally, the number of phases to be encoded can be 2. N The power of 1, that is indivual. The target phase to be encoded can be used as a vector. = mark.
[0095] In this embodiment of the application, when the number of phases to be encoded is At any time, encoding The number of bits required for each phase is N indivual. N Each bit can be represented as .
[0096] S502, Generate the first-order and higher-order terms of the plurality of bits.
[0097] In the embodiments of this application, the first-order and higher-order terms of multiple bits can be generated separately. The first-order term of each bit can be the bit itself. For example, if... N Each bit is respectively Then all the first-order terms are .
[0098] For higher-order terms, we can obtain the result from the second-order multiplication term by multiplying each bit itself. N All higher-order terms, including chain terms of order; wherein, higher-order terms of any order can include chain terms of multiple bits, and the bits in the same chain term are all different.
[0099] For example, in the aforementioned example N bits Its second-order terms may include indivual Third-order terms include indivual ; N Order terms may include indivual .
[0100] In a practical implementation, the order of the higher-order terms to be generated can be determined first, and then the number of terms of the higher-order terms of that order can be determined. Thus, each bit can be multiplied by the number of terms to obtain all the higher-order terms of the corresponding order.
[0101] S503. Based on the multiple phases, the first-order term, and the higher-order term, a bit matrix is constructed, wherein the bit matrix is composed of multiple combinations of the values of the multiple bits.
[0102] The bit matrix in this application embodiment can be the bit matrix in the foregoing embodiments. A system of linear equations can be constructed based on the multiple phases to be encoded and all first-order and higher-order terms of the multiple bits. Then, the bit matrix can be determined based on this system of linear equations. .
[0103] In this embodiment of the application, the number of equations in the linear equation system is equal to the number of multiple phases. The expressions of the phases to be encoded located on one side of the equal sign of the multiple equations are different from each other. The expressions of all first-order terms and higher-order terms of the multiple bits located on the other side of the equal sign of the multiple equations are the same. The first-order terms and higher-order terms in each equation have coefficients, and all coefficients constitute the coding coefficients used for subsequent encoding.
[0104] In one possible implementation of this application, if the rotation angles of the multiple phases to be encoded are equally spaced, half of the phase can be obtained by rotating the other half by 180°, that is, by multiplying half of the phase by -1. Therefore, if the rotation angles of the multiple phases to be encoded are equally spaced, when actually generating higher-order terms, the higher-order terms of the odd-numbered terms can be extracted, and then a system of linear equations can be constructed based on the multiple phases to be encoded and all first-order terms and the higher-order terms of the odd-numbered terms of the multiple bits, thereby simplifying the calculation process.
[0105] In the embodiments of this application, when determining the bit matrix according to the linear equation system, the value of any one bit can be determined first, and then the values of other bits can be generated based on the value of any one bit, thereby obtaining multiple combinations of values for multiple bits. The multiple combinations of values for multiple bits together constitute the bit matrix.
[0106] In one possible implementation of this application embodiment, the value of any one bit and the other bits can be 1 or -1.
[0107] S504. Calculate multiple coding coefficients based on the bit matrix and the multiple phases.
[0108] In this embodiment of the application, in order to calculate the coding coefficients, a phase vector consisting of multiple phases to be encoded can first be determined. Exemplarily, the phase vector can be represented as a vector. = Then calculate the phase vector. P transpose With bit matrix inverse matrix The product of This yields the transpose of a coefficient vector consisting of multiple coding coefficients. For example, if a vector... = If we denote the coefficient vector, then there exists an expression... = According to the transpose of the coefficient vector Multiple coding coefficients can be determined.
[0109] S505. Encode the multiple phases using the multiple coding coefficients.
[0110] The calculated coding coefficients can be used to encode the phase to be encoded.
[0111] The phase encoding method provided in this application can be applied to various communication scenarios. For example, this method can be used for phase encoding in various communication devices that require beamforming. For instance, this method can be used for encoding during beamforming of base stations, smart reflectors, or routers. Alternatively, this method can be used for encoding in any communication scenario where the signal is a discrete value. Furthermore, this method can be used in any other scenario, including but not limited to communication scenarios, where it is necessary to encode discrete values. For example, this method can be applied to any scenario where the object to be encoded is a discrete value. That is, the phase encoding method provided in this application can be applied not only to communication scenarios but also to non-communication scenarios; it can encode not only phases but also other discrete objects.
[0112] like Figure 6 The diagram shown is a schematic representation of a base station system architecture provided in an embodiment of this application. Based on Figure 6 The base station with the system architecture shown can be phase-coded using the phase coding method provided in the embodiments of this application. Compared to traditional base stations, Figure 6 The base station shown adds an encoder / decoder between the transmitter of the transmitted signal and the modulator of the modulated signal. The encoder / decoder's encoding function can be used to complete phase encoding. The encoder / decoder can also calculate the phase distribution of the phase-encoded bits and decode it into phase, which is then applied to the transmitted signal. Correspondingly, considering the future needs of dynamic beamforming optimization, a decoder can be introduced at the base station's receiver to obtain the initial value of the bit spin distribution for subsequent rapid tracking of the target user and beamforming.
[0113] like Figure 7 The diagram shown is a schematic representation of a RIS system architecture provided in an embodiment of this application. Based on Figure 7 The RIS system architecture shown can also be phase-encoded using the phase encoding method provided in this application embodiment. Specifically, based on the optimization of the original RIS codebook, Figure 7 The RIS shown introduces an encoder, decoder, and corresponding optimization modules at the transceiver end, and achieves fast and accurate beamforming by adding dynamic optimization of the transmitter phase.
[0114] Encoding using the phase encoding method provided in the embodiments of this application can achieve good results in subsequent beamforming tasks. For example... Figure 8 The diagram shown illustrates a beamforming result provided in an embodiment of this application. Figure 8The image shows the optimized beamforming result in one direction calculated using a quantum heuristic algorithm after encoding the phase using this method. Figure 8 (a) shows the distribution of spatial electromagnetic field energy at the control direction angle, where, and For three-dimensional space angle, Let be the angle between the radiation direction and the z-axis. Figure 8 In (a), the target forming direction is = , = .exist Figure 8 Based on (a) in the middle, Figure 8 (b) in the middle shows = and = A slice diagram along a direction. From Figure 8 It can be seen that applying this method for encoding can achieve better shaping results in the target direction.
[0115] Furthermore, combining the phase encoding method provided in this application with a quantum heuristic algorithm allows for weight optimization of arrays with a scale of thousands in just a few seconds. Table 1 below shows the time required to optimize the number of oscillators and the number of bits per antenna oscillator for four different array sizes.
[0116] Table 1:
[0117] Where m and n represent the number of elements in the vertical and horizontal directions, respectively, sn represents the number of bits in a single antenna element, and the optimization time t is in seconds (s).
[0118] This application embodiment can divide the communication device into functional modules according to the above method example. For example, each function can be divided into a separate functional module, or one or more functions can be integrated into a single functional module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation. The following description uses the example of dividing each function into a separate functional module.
[0119] Corresponding to the above embodiments, refer to Figure 9This diagram illustrates a structural block diagram of a phase encoding device provided in an embodiment of this application. This device can be applied to the communication devices described in the foregoing embodiments. Specifically, the device may include the following modules: a determining module 901, a generating module 902, a constructing module 903, a calculating module 904, and an encoding module 905, wherein: The determining module 901 is used to determine the number of bits required to encode the multiple phases based on the multiple phases to be encoded; Generation module 902 is used to generate first-order and higher-order terms of the plurality of bits; The construction module 903 is used to construct a bit matrix based on the multiple phases, the first-order term, and the higher-order term, wherein the bit matrix is composed of multiple combinations of values of the multiple bits; Calculation module 904 is used to calculate multiple coding coefficients based on the bit matrix and the multiple phases; The encoding module 905 uses the multiple encoding coefficients to encode the multiple phases.
[0120] In one possible implementation of this application embodiment, when the number of the plurality of phases is At this time, the encoding is described The number of bits required for each phase is N indivual.
[0121] In one possible implementation of this application embodiment, the generation module 902 may specifically be used for: Generate a first-order term for each bit, wherein the first-order term can be the bit itself; Multiplying each bit by itself one by one, we obtain the second-order multiplication term to... N Higher-order terms, including chain multiplication terms; among which... N The number of bits is given. Higher-order terms of any order may include product terms of the bits, and the bits in the same product term are all different.
[0122] In this embodiment of the application, the generation module 902 can also be used to: determine the order of the higher-order term to be generated; determine the number of terms of the higher-order term of the order; and multiply each bit by itself according to the number of terms to obtain the higher-order term of the order.
[0123] In this embodiment of the application, when the number of the plurality of bits is N , the order is X When the order of the higher-order terms is, the number of terms is item.
[0124] In one possible implementation of this application embodiment, the construction module 903 may be specifically used to: construct a system of linear equations based on the plurality of phases, the first-order terms, and the higher-order terms; and determine the bit matrix based on the system of linear equations. The linear equation system contains an equal number of equations to the number of phases. The expressions of the phases on one side of the equal sign of the equations are different from each other. The expressions of the first-order terms and the higher-order terms on the other side of the equal sign of the equations are the same. The first-order terms and the higher-order terms in each equation have coefficients, which constitute the coding coefficients.
[0125] In this embodiment of the application, the construction module 903 can also be used to: extract the higher-order terms of the odd-numbered terms if the rotation angles of the plurality of phases are equally spaced; and construct the linear equation system based on the plurality of phases and the higher-order terms of the first-order terms and the odd-numbered terms.
[0126] In this embodiment of the application, the construction module 903 can also be used to: determine the value of any one bit; generate the values of other bits according to the value of the one bit, and obtain multiple combinations of the values of the multiple bits, wherein the multiple combinations of the values constitute the bit matrix.
[0127] In one possible implementation of this application embodiment, the value of any one bit and the other bits is 1 or -1.
[0128] In one possible implementation of this application embodiment, the calculation module 904 may be specifically used to: determine the phase vector composed of the plurality of phases; calculate the product of the transpose of the phase vector and the inverse of the bit matrix to obtain the transpose of the coefficient vector composed of the plurality of coding coefficients; and determine the plurality of coding coefficients based on the transpose of the coefficient vector.
[0129] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0130] This application also provides a chip, which includes a processor, which can be a general-purpose processor or a dedicated processor. The processor is used to support the communication device in performing the aforementioned steps to implement the phase encoding method in the various embodiments described above.
[0131] Optionally, the chip also includes a transceiver, which is used to receive control from the processor to support the communication device in performing the aforementioned steps to implement the phase encoding method in the above embodiments.
[0132] Optionally, the chip may also include a storage medium.
[0133] It should be noted that the chip can be implemented using the following circuits or devices: one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits capable of performing the various functions described throughout this application.
[0134] Finally, it should be noted that the above description is only a specific implementation of this application, but the protection scope of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the protection scope of this application.
Claims
1. A phase encoding method, characterized in that, include: Based on the multiple phases to be encoded, a first-order term and a higher-order term of multiple bits are generated, and the multiple bits are used to encode the multiple phases; Based on the multiple phases, the first-order term, and the higher-order term, a bit matrix is constructed, wherein the bit matrix is composed of multiple combinations of values of the multiple bits; Calculate multiple coding coefficients based on the bit matrix and the multiple phases; The multiple phases are encoded using the multiple coding coefficients.
2. The method according to claim 1, characterized in that, include: When the number of the plurality of phases is When there are , the number of the plurality of bits is N indivual.
3. The method according to claim 1, characterized in that, The generation of first-order and higher-order terms with multiple bits includes: Generate a first-order term for each bit, wherein each first-order term is the bit itself; Multiplying each bit by itself one by one, we obtain the second-order multiplication term to... N Higher-order terms, including chain multiplication terms; among them... N The number of bits is given. Higher-order terms of any order include multiplication terms of the bits, where each bit in the same multiplication term is distinct.
4. The method according to claim 3, characterized in that, The stepwise multiplication of each bit itself yields a second-order multiplication term. N Higher-order terms, including chain multiplication terms, include: Determine the order of the higher-order terms to be generated; Determine the number of higher-order terms of the given order; By multiplying each bit by the number of terms one by one, we obtain the higher-order terms of the order.
5. The method according to claim 4, characterized in that, Determining the number of higher-order terms of the order includes: When the number of the plurality of bits is N , the order is X When the order of the higher-order terms is, the number of terms is item.
6. The method according to any one of claims 1 to 5, characterized in that, The construction of the bit matrix based on the multiple phases, the first-order term, and the higher-order term includes: Based on the multiple phases, the first-order terms, and the higher-order terms, a system of linear equations is constructed. The bit matrix is determined based on the system of linear equations. The linear equation system contains an equal number of equations to the number of phases. The expressions of the phases on one side of the equal sign of the equations are different from each other. The expressions of the first-order terms and the higher-order terms on the other side of the equal sign of the equations are the same. The first-order terms and the higher-order terms in each equation have coefficients, which constitute the coding coefficients.
7. The method according to claim 6, characterized in that, The construction of a system of linear equations based on the multiple phases, the first-order terms, and the higher-order terms includes: If the rotation angles of the multiple phases are equally spaced, extract the higher-order terms of the odd-numbered terms; The linear equation system is constructed based on the multiple phases and the higher-order terms of the first-order and odd-numbered terms.
8. The method according to claim 6, characterized in that, Determining the bit matrix based on the system of linear equations includes: Determine the value of any single bit; Based on the value of any one bit, the values of the other bits are generated, resulting in multiple combinations of the values of the multiple bits, which constitute the bit matrix.
9. The method according to claim 8, characterized in that, The value of any one bit and all the other bits is 1 or -1.
10. The method according to any one of claims 1 to 5 or 7 to 9, characterized in that, The calculation of multiple coding coefficients based on the bit matrix and the multiple phases includes: Determine the phase vector formed by the plurality of phases; Calculate the product of the transpose of the phase vector and the inverse of the bit matrix to obtain the transpose of the coefficient vector composed of the plurality of coding coefficients; The plurality of coding coefficients are determined based on the transpose of the coefficient vector.
11. A communication device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the phase encoding method as described in any one of claims 1 to 10.
12. The communication device according to claim 11, characterized in that, The communication device includes any one of a base station, a smart reflector, or a router.