CN110516811B - Quantum state determination method, device, equipment and storage medium - Google Patents

Quantum state determination method, device, equipment and storage medium Download PDF

Info

Publication number
CN110516811B
CN110516811B CN201910818376.6A CN201910818376A CN110516811B CN 110516811 B CN110516811 B CN 110516811B CN 201910818376 A CN201910818376 A CN 201910818376A CN 110516811 B CN110516811 B CN 110516811B
Authority
CN
China
Prior art keywords
determining
vector
magnetic resonance
nuclear magnetic
expansion coefficient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910818376.6A
Other languages
Chinese (zh)
Other versions
CN110516811A (en
Inventor
辛涛
鲁大为
李俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southwest University of Science and Technology
Original Assignee
Southwest University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southwest University of Science and Technology filed Critical Southwest University of Science and Technology
Priority to CN201910818376.6A priority Critical patent/CN110516811B/en
Publication of CN110516811A publication Critical patent/CN110516811A/en
Application granted granted Critical
Publication of CN110516811B publication Critical patent/CN110516811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Abstract

The invention discloses a quantum state determination method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring frequency spectrum data after each nuclear magnetic resonance experiment, wherein the times of the nuclear magnetic resonance experiment and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment are predetermined according to the quantum bit number in a nuclear magnetic resonance system; and inputting the spectral data into a preset quantum state reading model, and determining the quantum state corresponding to the nuclear magnetic resonance system according to the output of the preset quantum state reading model. By the technical scheme of the embodiment of the invention, the quantum state can be automatically determined without manual participation, and the calculation efficiency and accuracy are improved.

Description

Quantum state determination method, device, equipment and storage medium
Technical Field
Embodiments of the present invention relate to quantum computing technologies, and in particular, to a quantum state determination method, device, apparatus, and storage medium.
Background
Quantum computing is a new application field of quantum physics. With the rapid development of quantum computing technology, quantum computing can be experimentally performed in various physical systems, such as quantum computing implemented in nuclear magnetic resonance systems.
In a nuclear magnetic resonance system, performing quantum computation tasks may include three steps of initial state preparation, line execution, and final state reading. The last state reading may refer to determining a state (i.e., a quantum state) of the system after the quantum computation is performed, i.e., after the nuclear magnetic resonance is implemented.
In the prior art, the corresponding quantum state is usually calculated manually based on experimental result data after a nuclear magnetic resonance experiment. Because the quantity of the Poillion losses required to be calculated in the quantum state increases exponentially with the increase of the quantity of the quantum bits in the nuclear magnetic resonance system, when the quantity of the quantum bits is large, the calculation efficiency and the calculation accuracy of the quantum state are seriously influenced by a manual calculation mode.
Disclosure of Invention
The embodiment of the invention provides a quantum state determination method, a quantum state determination device, quantum state determination equipment and a storage medium, which are used for automatically determining a quantum state without manual participation and improving the calculation efficiency and accuracy.
In a first aspect, an embodiment of the present invention provides a quantum state determination method, including:
acquiring frequency spectrum data after each nuclear magnetic resonance experiment, wherein the times of the nuclear magnetic resonance experiment and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment are predetermined according to the quantum bit number in a nuclear magnetic resonance system;
and inputting the frequency spectrum data into a preset quantum state reading model, and determining the quantum state corresponding to the nuclear magnetic resonance system according to the output of the preset quantum state reading model.
In a second aspect, an embodiment of the present invention further provides a quantum state determining apparatus, including:
the system comprises a spectrum data acquisition module, a spectrum data acquisition module and a spectrum data acquisition module, wherein the spectrum data is acquired after each nuclear magnetic resonance experiment, and the frequency of the nuclear magnetic resonance experiment and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment are predetermined according to the quantum bit number in a nuclear magnetic resonance system;
and the quantum state determining module is used for inputting the spectrum data into a preset quantum state reading model and determining the quantum state corresponding to the nuclear magnetic resonance system according to the output of the preset quantum state reading model.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a quantum state determination method as provided by any embodiment of the invention.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the quantum state determination method provided in any embodiment of the present invention.
According to the embodiment of the invention, the number of times of nuclear magnetic resonance experiments required for reading quantum states and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment are determined in advance according to the quantum bit number in the nuclear magnetic resonance system. And performing nuclear magnetic resonance experiments of corresponding times based on the target rotating pulse, and acquiring frequency spectrum data in an experiment result obtained after each nuclear magnetic resonance experiment. The spectrum data obtained in each experiment is input into the preset quantum state reading model, and the quantum state corresponding to the nuclear magnetic resonance system can be directly determined according to the output of the preset quantum state reading model, so that the quantum state corresponding to any quantum bit quantity can be automatically determined by utilizing the preset quantum state reading model, manual participation is not needed, and the calculation efficiency and the accuracy are greatly improved.
Drawings
Fig. 1 is a flowchart of a quantum state determination method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for determining a target rotation pulse according to an embodiment of the present invention;
fig. 3 is a flowchart of a quantum state determination method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a quantum state determination device according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a quantum state determination method according to an embodiment of the present invention, which is applicable to determining a quantum state after quantum computation is performed in a nuclear magnetic resonance system. The method may be performed by a quantum state determining apparatus, which may be implemented by software and/or hardware, and integrated in a device with data processing function, such as a notebook computer, a desktop computer, and the like. The method specifically comprises the following steps:
and S110, acquiring spectrum data after each nuclear magnetic resonance experiment, wherein the number of nuclear magnetic resonance experiments and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment are predetermined according to the quantum bit number in the nuclear magnetic resonance system.
The nmr experiment may refer to a quantum computation experiment performed on an nmr system, and may generally include four steps, i.e., system initialization, execution of a quantum computation circuit, application of a spin pulse, and collection of spectral data. The nuclear magnetic resonance system is special, a detection coil is arranged on an xy plane of a sample, so that when a rotation pulse is not applied or the applied rotation pulse is a unit matrix pulse, the expansion coefficient of the Palyy vector corresponding to the xy plane can be directly detected, the expansion coefficients of other Palyy vectors cannot be directly detected, a certain rotation pulse needs to be applied to rotate the Palyy vectors, the Palyy vectors which cannot be directly observed are rotated to a position which can be directly observed, and the expansion coefficients of the corresponding Palyy vectors are obtained. It should be noted that the quantum state in the nmr system can be expanded under the pauli vector, and thus the quantum state can be obtained by measuring the expansion coefficient of each pauli vector. The number of the pauli basis vectors in the quantum state is related to the number of the qubits in the nuclear magnetic resonance system, that is, for a quantum state with the qubit number of n, the total expansion coefficients of 4^n pauli basis vectors need to be measured, while only the expansion coefficients of 2^n pauli basis vectors can be measured in one nuclear magnetic resonance experiment, so that multiple nuclear magnetic resonance experiments need to be performed by using different rotating pulses, so that different spectrum data are output from different angles, that is, different expansion coefficients of the pauli basis vectors are obtained.
In quantum computing, 0 and 1 in quantum information can be represented by two quantum states with different orientations of a particle with a spin of 1/2 in an external field, for example, 0 is represented by quantum state |0> with a spin orientation opposite to the direction of the external field, and 1 is represented by quantum state |1> with a spin orientation the same as the direction of the external field, that is, quantum information of one qubit can be represented by two quantum states with different orientations, and quantum states can have superposition, for example, a quantum system can be in a linear superposition state of α |0> + β |1>, that is, both 0 and 1 information are carried at the same time, so that the computing performance is improved compared with a classical computer.
The rotation pulse in this embodiment may be, but is not limited to, a radio frequency pulse for performing a corresponding rotation of the state of the qubit. The rotation pulses may be designed based on quantum logic gates to achieve the corresponding rotation operation. The target rotation pulse may refer to a pulse used to rotate individual qubits in a nuclear magnetic resonance system. The target rotation pulse may include, but is not limited to, an identity matrix pulse, where the identity matrix pulse may be a pulse that does not rotate each qubit in the rotating nmr system, that is, the situation corresponding to the case where no rotation pulse is applied, so that the expansion coefficient of the pauli vector corresponding to the xy plane may be measured.
Specifically, in this embodiment, each rotation pulse required to be used in each qubit number may be summarized in advance based on experimental experience in the nuclear magnetic resonance system, and a corresponding relationship between the qubit number and the rotation pulse is established, so that each target rotation pulse corresponding to the current to-be-detected qubit number may be obtained based on the corresponding relationship, and the number of the target rotation pulses may be determined as the number of nuclear magnetic resonance experiments to be performed, so that each target rotation pulse is used to perform a corresponding nuclear magnetic resonance experiment. After each nuclear magnetic resonance experiment, the spectrum data in the experiment result needs to be extracted so as to determine the expansion coefficient of the measured Poyley loss in the experiment based on the spectrum data. Note that the nuclear magnetic resonance experiments performed in this example include an experiment in which an identity matrix pulse is applied, that is, an experiment in which rotation is not performed, so that a part of the expansion coefficient of the measurable bleb loss can be directly obtained based on the experiment.
And S120, inputting the spectral data into a preset quantum state reading model, and determining the quantum state corresponding to the nuclear magnetic resonance system according to the output of the preset quantum state reading model.
The preset quantum state reading model may be a preset model for automatically reading a quantum state based on spectrum data, and may be generated based on a script code for implementing a corresponding function.
Specifically, in this embodiment, the spectrum data obtained after each nuclear magnetic resonance experiment may be input into the preset quantum state reading model, the preset quantum state reading model may determine the expansion coefficient of the bully induced depletion measured in the nuclear magnetic resonance experiment based on the spectrum data obtained after each nuclear magnetic resonance experiment, and may integrate the expansion coefficients of the buly induced depletion measured in each experiment to obtain the expansion coefficient of each buly induced depletion in the quantum state of the nuclear magnetic resonance system, and may determine and output a quantum state based on each expansion coefficient, so that the quantum state of the nuclear magnetic resonance system may be directly obtained according to the output of the preset quantum state reading model, and automatic determination of the quantum state is achieved.
It should be noted that, if the preset quantum state reading model cannot completely cover the required wiry-base loss in the quantum state according to the wiry-base vectors measured by the spectrum data obtained in each experiment, that is, all the wiry-base losses in the quantum state are not completely measured, at this time, the preset quantum state reading model may determine the non-measured wiry-base loss and output information of the non-measured wiry-base loss, so as to remind the user that the quantum state fails to be read, and an additional nuclear magnetic resonance experiment needs to be performed.
According to the technical scheme of the embodiment, the number of times of nuclear magnetic resonance experiments required for reading quantum states and the target rotation pulse required to be applied in each nuclear magnetic resonance experiment are determined in advance according to the number of quantum bits in the nuclear magnetic resonance system. And performing nuclear magnetic resonance experiments of corresponding times based on the target rotating pulse, and acquiring frequency spectrum data in an experiment result obtained after each nuclear magnetic resonance experiment. The spectrum data obtained by each experiment is input into the preset quantum state reading model, and the quantum state corresponding to the nuclear magnetic resonance system can be directly determined according to the output of the preset quantum state reading model, so that the quantum state corresponding to any quantum bit quantity can be automatically determined by utilizing the preset quantum state reading model, manual participation is not needed, and the calculation efficiency and the accuracy are greatly improved.
On the basis of the technical scheme, the target rotating pulse required to be applied in each nuclear magnetic resonance experiment can be automatically determined by running a pre-programmed script before the nuclear magnetic resonance experiment, and the target rotating pulse is not required to be obtained based on experience, so that the accuracy of quantum state determination is improved.
For example, determining the number of nuclear magnetic resonance experiments and the target rotation pulse required to be applied for each nuclear magnetic resonance experiment according to the number of qubits in the nuclear magnetic resonance system may include: determining each bubble sharp loss in a quantum state corresponding to the nuclear magnetic resonance system according to the quantum bit number in the nuclear magnetic resonance system, wherein each bubble sharp loss is determined by a bubble sharp matrix on each bit in the quantum bit number; determining a rotation pulse to be selected corresponding to each undetectable bubble sharp loss according to measurable bubble sharp vectors in each bubble sharp vector and a rotation corresponding relation between a single-bit rotation pulse and a bubble sharp matrix; wherein the rotation pulse to be selected is a pulse for converting the undetectable Pauli loss into a measurable Pauli vector; and determining the number of nuclear magnetic resonance experiments required for measuring the respective Poyquist losses and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment according to each rotating pulse to be selected.
Specifically, based on the number of qubits in the nuclear magnetic resonance system, all the Palyy vectors that need to be measured in the quantum states can be determined. For example, for a 2-bit nmr system, there are 16 measured bleb losses in the quantum state of the system, which are: II. IX, IY, IZ, XI, XX, XY, XZ, YI, YX, YY, YZ, ZI, ZX, ZY and ZZ, wherein I, X, Y and Z are respectively a 2 x 2 pauli matrix, and I is a unit matrix, and the two pauli matrices in each pauli matrix are in direct product relationship, i.e., I x I.
The measurable Palyy vector refers to the Palyy vector which can be directly measured without rotation, namely the Palyy vector in a single coherence in a nuclear magnetic resonance system, such as the Palyy loss with one X or Y and the rest being Z or I, such as IX, IY, YI, YZ, XI, XZ, ZX and ZY. The undetectable Palyy loss can refer to the Palyy vector that needs to be rotated to be measured, i.e., the Palyy vector in a NMR system that is bicoherent, such as II, XX, IZ, XX, XY, YX, YY, and ZZ. The single bit rotation pulse may be forA one bit rotation pulse. The single bit rotary pulse may be R I 、R x And R y Wherein R is I Is an identity matrix pulse, i.e. indicates an operation without rotation; r x Representing an operation of rotating 90 about the x-axis based on a right-hand rule; r y Indicating an operation of rotating 90 about the y-axis based on a right-hand rule. The rotational correspondence between the single-bit rotational pulse and the pauli matrix may refer to a correspondence between the pauli matrix before the rotational pulse is applied and the pauli matrix after the application on the single-bit. Illustratively, if a single bit rotation pulse R is applied, with the Poisson matrix at a single bit being I, X, Y and Z, then I The obtained Pouli matrixes are still I, X, Y and Z respectively; if a single bit rotation pulse R is applied x The obtained Pouli matrixes are I, X, Z and-Y respectively; if a single bit rotation pulse R is applied y The pauli matrices obtained thereafter are I, -Z, Y and X, respectively. In this embodiment, it may be determined that each undetectable bleb loss is converted into a candidate rotation pulse required for measurable bleb loss based on the rotation correspondence, for example, if the undetectable bleb loss is XY, a single-bit rotation pulse R may be applied to each bit position x I.e. the candidate spin pulse is determined to be R x R x And converting the undetectable vesicular-Riegy loss XY into a measurable vesicular-Riegy loss XZ by the integrated pulse, so that the expansion coefficient of the undetectable vesicular-Riegy loss XY can be obtained by measuring the expansion coefficient of the measurable vesicular-Riegy loss XZ. It should be noted that the kind of the candidate rotation pulse corresponding to each non-measurable kyanite loss may be one or more, as long as the non-measurable kyanite loss can be converted into any pulse of measurable kyanite vector.
After the rotation pulse to be selected corresponding to each undetectable bubble radix loss is determined, the repetition removal processing can be performed on each rotation pulse to be selected, different rotation pulses to be selected obtained after the repetition removal processing are used as target rotation pulses, the number of the target rotation pulses can be used as the number of nuclear magnetic resonance experiments, and all the bubble radix losses can be measured by using each determined target rotation pulse, so that the expansion coefficient of the bubble radix loss with measurement loss is avoided, and the accuracy of quantum state determination is improved.
On the basis of the above technical solution, as shown in fig. 2, the number of nuclear magnetic resonance experiments required for measuring each pauli loss and the target rotation pulse required to be applied for each nuclear magnetic resonance experiment can be automatically determined according to each rotation pulse to be selected through the following operations of steps S210 to S210:
s210, randomly selecting a current preset number of rotary pulses to be selected from the rotary pulses to be selected, and forming a current rotary pulse group by the selected rotary pulses to be selected;
the current preset number may be a preset number set at the current time, and is used to represent the number of the rotation pulses required for determining each pauli loss in the quantum state. In the first cycle period, the current preset number is the initial preset number. The initial predetermined number may be set based on a quantum bit number of the nmr system, for example, when the quantum bit number is larger, the value of the initial predetermined number may be set smaller, so as to determine the quantum state with the least number of target spin pulses.
Specifically, in this embodiment, based on a random combination manner, a current preset number of rotation pulses to be selected may be randomly selected from the rotation pulses to be selected corresponding to each undetectable kyotosis loss, and each selected rotation pulse to be selected is used as a current rotation pulse group to perform a first cycle operation.
S220, determining whether the current rotating pulse group meets preset complete conditions or not according to the current rotating pulse group, the measurable Paglie basis vector and the rotating corresponding relation between the single-bit rotating pulse and the Paglie matrix, and if so, entering the step S230; if not, the process proceeds to step S240.
The preset complete condition means that the measured bubbly losses of the current rotating pulse group completely cover all the corresponding bubbly losses of the nuclear magnetic resonance system.
Specifically, according to the rotation correspondence between the single-bit rotation pulse and the pauli matrix, each rotation pulse to be selected in the current rotation pulse group is applied to each measurable pauli vector which is not measured by rotation one by one, each obtained pauli vector after each rotation pulse to be selected is determined, then whether all the obtained pauli vectors contain all the pauli losses required by the nuclear magnetic resonance system is detected, if yes, the current rotation pulse group is determined to meet the preset complete condition, and at this time, the operation of S230 may be executed; if not, it is determined that the current rotation pulse set does not meet the preset completeness condition, and at this time, the operation of S240 may be performed.
And S230, determining the number of nuclear magnetic resonance experiments and the target rotation pulse required to be applied in each nuclear magnetic resonance experiment according to the current rotation pulse group.
Specifically, when the current rotating pulse group meets the preset complete condition, it is indicated that the final quantum state can be determined by using the current rotating pulse group, at this time, each to-be-selected rotating pulse in the current rotating pulse group can be determined as a target rotating pulse, and the number of the to-be-selected rotating pulses included in the current rotating pulse group is determined as the number of nuclear magnetic resonance experiments to be performed, so that the quantum state can be determined by using the minimum number of target rotating pulses, the number of experiments is reduced, and the determination efficiency of the quantum state is greatly improved.
S240, detecting whether the current cycle number is less than or equal to a preset number, if so, entering the step S250; if not, the process proceeds to step S260.
The preset times is the times of randomly selecting a current preset number of rotation pulses to be selected from each rotation pulse to be selected, and obtaining a different current rotation pulse group, for example, the current preset number is n, and the times of randomly selecting n rotation pulses to be selected from m rotation pulses to be selected to form a different current rotation pulse group is n
Figure BDA0002186893810000101
I.e. a preset number of times can be set to &>
Figure BDA0002186893810000102
Specifically, when the current rotation pulse group does not meet the preset completeness condition, it indicates that a different current rotation pulse group needs to be determined again, and at this time, it may be determined whether a different current rotation pulse group can be determined based on the current preset number by detecting whether the current cycle number is less than or equal to the preset number; if the current cycle number is less than or equal to the preset number, it indicates that a different current rotation pulse group can be determined based on the current preset number, and at this time, the operation of S250 may be performed; if the current cycle number is greater than the preset number, it indicates that all the different current rotation pulse groups are detected based on the current preset number, and at this time, the operation of S260 may be performed.
And S250, re-selecting the current preset number of rotation pulses to be selected from the rotation pulses to be selected, determining a different current rotation pulse group, accumulating the current cycle times by 1, and returning to the step S220 based on the re-determined current rotation pulse group.
And S260, accumulating the current preset number by 1, and returning to the step S210 based on the updated current preset number.
Specifically, when the current cycle number is greater than the preset number, the number of target rotation pulses may be increased step by adding 1 to the current preset number, so as to minimize the number of nuclear magnetic resonance experiments performed under the condition of ensuring compliance with the preset completeness condition, and improve the quantum state determination efficiency. It should be noted that, at this time, the current cycle count may also be cleared, and the preset count is determined again based on the updated current preset count, so that the cycle operation may be performed accurately until the number of nuclear magnetic resonance experiments and the target rotation pulse required to be applied in each nuclear magnetic resonance experiment are determined.
Example two
Fig. 3 is a flowchart of a quantum state determining method according to a second embodiment of the present invention, and this embodiment describes in detail a processing procedure inside a preset quantum state model based on the above embodiment, where explanations of terms that are the same as or corresponding to the above embodiment are not repeated here.
Referring to fig. 3, the quantum state determination method provided in this embodiment specifically includes the following steps:
and S310, acquiring the frequency spectrum data after each nuclear magnetic resonance experiment, wherein the number of nuclear magnetic resonance experiments and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment are predetermined according to the quantum bit number in the nuclear magnetic resonance system.
And S320, inputting the frequency spectrum data into a preset quantum state reading model.
S330, a preset quantum state reading model performs linear fitting on each input frequency spectrum data, and a first expansion coefficient of each first kynuria measured in each experiment is determined.
Wherein the first vesicular loss may refer to a measurable vesicular loss obtained after application of a target rotational pulse in an experiment. The first expansion coefficient refers to an expansion coefficient corresponding to the first pauli loss, and can be obtained based on the spectrum data. The spectral data may refer to signal peaks in a spectrum of the experimental results.
Specifically, when the preset quantum state reading model detects input spectrum data, the script code for determining the first expansion coefficient is called and executed for each spectrum data, and the corresponding first expansion coefficient of each first bubble edge loss is automatically determined based on the spectrum data.
Exemplarily, S330 may include: performing Lorentzian linear fitting on each signal peak in each input frequency spectrum data to determine a linear signal corresponding to each signal peak; determining a sum of squares of differences between each line type signal and the corresponding signal peak as a fitting error; optimizing each linear signal by minimizing the fitting error, and determining the target amplitude and the target phase corresponding to each optimized linear signal; and determining a first expansion coefficient of each first bubble-Rayleigh loss measured in each experiment according to each target amplitude and each target phase.
Specifically, each signal peak in the spectrum data conforms to a lorentzian line L (a, Φ, τ, ω), where a is the amplitude, Φ is the phase, τ is the full width at half maximum, and ω is the center frequency of the peak. Typically, a and φ are different for each peak. In this embodiment, a least square method may be used to fit each signal peak to a lorentzian line type, and the lorentzian line type signal is optimized, so that the first expansion coefficient of the corresponding first pauli basis vector may be determined according to the amplitude and the phase in the optimized line type signal. Compared with the prior art in which the spectrum data is integrated, the line fitting method in the embodiment has determinacy, and the imaginary part is read repeatedly without adjusting the phase once, so that the method has higher calculation accuracy and efficiency.
Illustratively, for a 4-bit NMR system, 2^ can be obtained from the spectral data (4-1 ) =8 signal peaks, each divided into a real part and an imaginary part, the physical meaning represented can be the expected values of the following operators R and T:
1 st signal peak: real part of
Figure BDA0002186893810000121
Imaginary part +>
Figure BDA0002186893810000122
Signal peak 2: real part of
Figure BDA0002186893810000123
Imaginary part +>
Figure BDA0002186893810000124
Signal peak 3: real part of
Figure BDA0002186893810000125
Imaginary part +>
Figure BDA0002186893810000126
4 th signal peak: real part of
Figure BDA0002186893810000131
Imaginary part->
Figure BDA0002186893810000132
Signal peak 5:real part of
Figure BDA0002186893810000133
Imaginary part->
Figure BDA0002186893810000134
6 th signal peak: real part of
Figure BDA0002186893810000135
Imaginary part +>
Figure BDA0002186893810000136
Signal peak 7: real part of
Figure BDA0002186893810000137
Imaginary part->
Figure BDA0002186893810000138
8 th signal peak: real part of
Figure BDA0002186893810000139
Imaginary part->
Figure BDA00021868938100001310
The expected value of the Palyy vector can be obtained from the observed value of the above operator, for example, the real parts of the above 8 signal peaks are added to obtain the Palyy vector XIII. The present embodiment may determine the sum of squares of the differences between each line-type signal and the corresponding signal peak as the fitting error; the fitting error is minimized by adjusting a, phi, tau, omega, so that the fitted line form is closest to the experimental signal, thereby reducing the measurement error. According to the embodiment, the first expansion coefficient of the corresponding first buzzly losses can be obtained according to the expected value of each signal peak and the corresponding relation between the signal peaks and the first buzzly losses.
S340, presetting a quantum state reading model, and determining a second bubble sharp loss corresponding to each first bubble sharp loss according to each first bubble sharp loss, a rotation corresponding relation between a single-bit rotation pulse and a bubble sharp matrix, and a target rotation pulse.
Wherein the second vesicular loss may be referred to as the vesicular loss prior to application of the target rotational pulse in the experiment.
Specifically, after each first foam lean loss measured in each experiment is determined by the preset quantum state reading model, the script code for determining the second foam lean loss is called and executed, and the second foam lean loss corresponding to each first foam lean loss is automatically determined.
Illustratively, for a 4-bit nmr system, the applied target spin pulse is R for a given nmr experiment x R x R x R x The integrated pulse may automatically determine each second pocky loss before the target rotation pulse is applied based on each first pocky loss obtained after the target rotation pulse is applied and the rotation correspondence between the single-bit rotation pulse and the pocky matrix. For example, applying target rotation pulses R x R x R x R x The first respective pauliq losses obtained thereafter were: XIII, XIIZ, XIZI, XIZZ, XZII, XZIZ, XZZI, XZZZ, YIIII, YIIZ, YIZZ, YZII, YZIZ, YZZI, and YZZZ, the applied pressure R is determined based on the rotational correspondence x R x R x R x The previous second respective pauli losses were: XIII, XIIY, XIYI, XIYY, XYII, XYIY, XYYI, XYYY, ZIII, ZIIY, ZIYI, ZIYY, ZYII, ZYIY, and ZYY.
S350, presetting the quantum state reading model, and determining a second expansion coefficient of each second bubble sharp loss according to the first expansion coefficient of each first bubble sharp loss and the second bubble sharp loss corresponding to each first bubble sharp loss.
Specifically, after the preset quantum state reading model determines the second bubble radix loss corresponding to each first bubble radix loss, the script code for determining the second expansion coefficient can be called and executed, and the second expansion coefficient of each second bubble radix loss is automatically determined.
For example, determining the second expansion coefficient of each second foam lean loss according to the first expansion coefficient of each first foam lean loss and the second foam lean loss corresponding to each first foam lean loss may include: and determining a first expansion coefficient of the first kyeliki loss as a second expansion coefficient of a second kyeliki loss corresponding to the first kyeliki loss.
Specifically, since the observation direction corresponding to the second cavity loss is a direction that cannot be directly measured, the observation direction corresponding to the second cavity loss needs to be rotated under the action of the target rotation pulse to a measurable direction of the first cavity loss, and thus data of the observation direction of the second cavity loss can be measured from the direction of the first cavity loss, and the measured spectrum data is actually data of the second cavity loss although measured from the direction of the first cavity loss. Based on this, in this embodiment, the first expansion coefficient of the first blistering loss may be directly determined as the expansion coefficient of the corresponding second blistering loss based on the corresponding relationship between the first blistering loss and the second blistering loss, so that all the expansion coefficients of the undetectable blistering loss may be determined based on a back-stepping manner.
And S360, a preset quantum state reading model performs duplicate removal processing on the second expansion coefficient of each second bubble litz loss determined in each experiment, and determines a target expansion coefficient corresponding to each bubble litz loss in the quantum state corresponding to the nuclear magnetic resonance system.
Specifically, after the preset quantum state reading model determines the second expansion coefficient of each second foam profit loss, the script code for determining the target expansion coefficient is called and executed, so that the target expansion coefficient corresponding to each foam profit loss in the quantum state is automatically determined.
Exemplarily, S360 may include: detecting whether the same second vesiculigine loss exists in each second vesiculigine loss determined by each experiment; if so, averaging the second expansion coefficients of the same second kyush losses, and taking the obtained average value as a target expansion coefficient of the second kyush losses; if not, directly determining a second expansion coefficient of the second bubble sharp loss as a target expansion coefficient of the second bubble sharp loss.
Specifically, since only 2^n expansion coefficients of the polley vectors can be measured in one nuclear magnetic resonance experiment, and an n-bit quantum state needs to measure 4^n expansion coefficients of the polley vectors, each nuclear magnetic resonance experiment measures the expansion coefficient of the same polley vector, so that the measured expansion coefficients of the same second polley vector can be averaged in an averaging manner, and the obtained average value is used as a target expansion coefficient of the second polley loss, thereby improving the accuracy of quantum state determination.
And S370, the preset quantum state reading model determines and outputs the quantum state corresponding to the nuclear magnetic resonance system according to the target expansion coefficient corresponding to each kynuria loss.
Specifically, after the preset quantum state reading model determines the target expansion coefficient corresponding to each kynuria loss, the script code for determining the quantum state can be called and executed, and the quantum state corresponding to the nuclear magnetic resonance system is automatically determined and output. Illustratively, the respective Palyy vectors with the expansion coefficients may be added, and the addition result may be determined as the quantum state corresponding to the nuclear magnetic resonance system.
For example, for a 4-bit nmr system, by using 17 target rotation pulses, expansion coefficients of 256 pauli vectors can be determined based on a preset quantum state reading model, and corresponding quantum states of the nmr system can be output.
The preset quantum state model in the technical scheme of the embodiment can determine all expansion coefficients of the undetectable bubble-induced depletion by performing linear fitting on each spectrum data and based on a reverse-deducing mode, thereby further improving the calculation accuracy and efficiency of the quantum state.
The following is an embodiment of a quantum state determination apparatus provided in an embodiment of the present invention, and the apparatus and the quantum state determination method in the foregoing embodiments belong to the same inventive concept, and details that are not described in detail in the embodiment of the quantum state determination apparatus may refer to the above embodiment of the quantum state determination method.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a quantum state determining apparatus according to a third embodiment of the present invention, where this embodiment is applicable to determining a quantum state after quantum computation is performed in a nuclear magnetic resonance system, and the apparatus may specifically include: a spectral data acquisition module 410 and a quantum state determination module 420.
The spectrum data acquiring module 410 is configured to acquire spectrum data after each nuclear magnetic resonance experiment, where the number of nuclear magnetic resonance experiments and a target rotation pulse required to be applied in each nuclear magnetic resonance experiment are predetermined according to the number of qubits in the nuclear magnetic resonance system; the quantum state determining module 420 is configured to input each piece of spectrum data into a preset quantum state reading model, and determine a quantum state corresponding to the nuclear magnetic resonance system according to an output of the preset quantum state reading model.
Optionally, the apparatus further comprises:
the bubble sharp-base loss determining module is used for determining each bubble sharp-base loss in a quantum state corresponding to the nuclear magnetic resonance system according to the quantum bit number in the nuclear magnetic resonance system before spectrum data after each nuclear magnetic resonance experiment is obtained, wherein each bubble sharp-base loss is determined by a bubble sharp matrix on each bit in the quantum bit number;
the rotation pulse to be selected determining module is used for determining rotation pulses to be selected corresponding to each undetectable bubble sharp loss according to measurable bubble sharp vectors in the bubble sharp vectors and the rotation corresponding relationship between the single-bit rotation pulses and the bubble sharp matrix; wherein, the rotation pulse to be selected is a pulse for converting the undetectable bubble depletion into measurable bubble vector;
and the target rotating pulse determining module is used for determining the number of times of nuclear magnetic resonance experiments required for measuring the respective Payquist losses and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment according to each rotating pulse to be selected.
Optionally, the target rotation pulse determining module is specifically configured to:
randomly selecting a current preset number of rotary pulses to be selected from each rotary pulse to be selected, and forming a current rotary pulse group by the selected rotary pulses to be selected; determining whether the current rotating pulse group meets a preset complete condition or not according to the current rotating pulse group, the measurable CQV and the corresponding rotating relationship, wherein the preset complete condition means that each CQV corresponding to the nuclear magnetic resonance system is completely covered by the CQV measured by the current rotating pulse group; if so, determining the times of nuclear magnetic resonance experiments and target rotating pulses required to be applied in each nuclear magnetic resonance experiment according to the current rotating pulse group; if not, when the current cycle number is detected to be less than or equal to the preset number, re-selecting the current preset number of rotary pulses to be selected from the rotary pulses to be selected, determining a different current rotary pulse group, accumulating the current cycle number by 1, returning and executing the operation of determining whether the current rotary pulse group meets the preset complete condition according to the current rotary pulse group, the measurable buzzy basis vector and the rotary corresponding relation based on the re-determined current rotary pulse group; and when the current cycle times are detected to be greater than the preset times, accumulating the current preset number by 1, and returning to execute the operation of arbitrarily selecting the preset number of the rotation pulses to be selected from all the rotation pulses to be selected based on the updated current preset number.
Optionally, a quantum state reading model is preset, and the function of determining the quantum state corresponding to the nuclear magnetic resonance system is realized through the following units:
the first expansion coefficient determining unit is used for performing linear fitting on each input frequency spectrum data and determining a first expansion coefficient of each first buzzy loss measured in each experiment, wherein the first buzzy loss refers to the buzzy loss after a target rotating pulse is applied in the experiment;
the second bubble sharp loss determining unit is used for determining a second bubble sharp loss corresponding to each first bubble sharp loss according to each first bubble sharp loss, the rotation corresponding relation between the single-bit rotation pulse and the bubble sharp matrix and the target rotation pulse, wherein the second bubble sharp loss refers to the bubble sharp loss before the target rotation pulse is applied in the experiment;
the second expansion coefficient determining unit is used for determining a second expansion coefficient of each second foam lean loss according to the first expansion coefficient of each first foam lean loss and the second foam lean loss corresponding to each first foam lean loss;
the target expansion coefficient determining unit is used for performing de-duplication processing on the second expansion coefficients of the second bubble litters determined in each experiment to determine the target expansion coefficients corresponding to the second bubble litters in the quantum state corresponding to the nuclear magnetic resonance system;
and the quantum state output unit is used for determining and outputting the quantum state corresponding to the nuclear magnetic resonance system according to the target expansion coefficient corresponding to each kynuria loss.
Optionally, the first expansion coefficient determining unit is specifically configured to: performing Lorentzian linear fitting on each signal peak in each input frequency spectrum data to determine a linear signal corresponding to each signal peak; determining the square sum of the difference between each linear signal and the corresponding signal peak as a fitting error; optimizing each linear signal by minimizing the fitting error, and determining the target amplitude and the target phase corresponding to each optimized linear signal; and determining a first expansion coefficient of each first bubble-Rayleigh loss measured in each experiment according to each target amplitude and each target phase.
Optionally, the second expansion coefficient determining unit is specifically configured to: and determining a first expansion coefficient of the first kyeliki loss as a second expansion coefficient of a second kyeliki loss corresponding to the first kyeliki loss.
Optionally, the target expansion coefficient determining unit is specifically configured to: detecting whether the same second foam loss exists in each second foam loss determined by each experiment; if so, averaging the second expansion coefficients of the same second kyush losses, and taking the obtained average value as a target expansion coefficient of the second kyush losses; if not, directly determining a second expansion coefficient of the second bubble sharp loss as a target expansion coefficient of the second bubble sharp loss.
The quantum state determining device provided by the embodiment of the invention can execute the quantum state determining method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the quantum state determining method.
Example four
Fig. 5 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present invention. Referring to fig. 5, the terminal device includes:
one or more processors 510;
a memory 520 for storing one or more programs;
when executed by the one or more processors 510, cause the one or more processors 510 to implement a method of quantum state determination as provided by any of the embodiments above, the method comprising:
acquiring frequency spectrum data after each nuclear magnetic resonance experiment, wherein the times of the nuclear magnetic resonance experiments and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment are predetermined according to the quantum bit number in a nuclear magnetic resonance system;
and inputting the spectral data into a preset quantum state reading model, and determining the quantum state corresponding to the nuclear magnetic resonance system according to the output of the preset quantum state reading model.
In FIG. 5, a processor 510 is illustrated as an example; the processor 510 and the memory 520 in the terminal device may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The memory 520 may be used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the quantum state determination method in the embodiment of the present invention (for example, the spectrum data obtaining module 410 and the quantum state determination module 420 in the quantum state determination device). The processor 510 executes software programs, instructions and modules stored in the memory 520 to execute various functional applications of the terminal device and data processing, that is, to implement the quantum state determination method described above.
The memory 520 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 520 may further include memory located remotely from processor 510, which may be connected to a terminal device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The terminal device proposed in this embodiment and the quantum state determination method proposed in the foregoing embodiment belong to the same inventive concept, and the technical details that are not described in detail in this embodiment can be referred to the foregoing embodiment, and this embodiment has the same beneficial effects as performing the quantum state determination method.
EXAMPLE five
This fifth embodiment provides a computer readable storage medium, on which a computer program is stored, the program, when executed by a processor, implementing a quantum state determination method as provided by any of the embodiments of the present invention, the method comprising:
acquiring frequency spectrum data after each nuclear magnetic resonance experiment, wherein the times of the nuclear magnetic resonance experiments and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment are predetermined according to the quantum bit number in a nuclear magnetic resonance system;
and inputting the spectral data into a preset quantum state reading model, and determining the quantum state corresponding to the nuclear magnetic resonance system according to the output of the preset quantum state reading model.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (14)

1. A method of quantum state determination, comprising:
acquiring frequency spectrum data after each nuclear magnetic resonance experiment, wherein the times of the nuclear magnetic resonance experiments and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment are predetermined according to the quantum bit number in a nuclear magnetic resonance system;
inputting the frequency spectrum data into a preset quantum state reading model, and determining the quantum state corresponding to the nuclear magnetic resonance system according to the output of the preset quantum state reading model;
the preset quantum state reading model realizes the function of determining the quantum state corresponding to the nuclear magnetic resonance system through the following steps:
performing linear fitting on each input frequency spectrum data, and determining a first expansion coefficient of each first Paly basis vector measured in each experiment, wherein the first Paly basis vector refers to a Paly basis vector after the target rotation pulse is applied in the experiment;
determining a second Paly basis vector corresponding to each first Paly basis vector according to each first Paly basis vector, the rotation corresponding relation between the single-bit rotation pulse and a Pay basis matrix and the target rotation pulse, wherein the second Paly basis vector refers to the Pay basis vector before the target rotation pulse is applied in an experiment;
determining a second expansion coefficient of each second Paly basis vector according to a first expansion coefficient of each first Paly basis vector and a second Pay basis vector corresponding to each first Pay basis vector;
carrying out duplication removal treatment on the second expansion coefficient of each second Palyy vector determined in each experiment, and determining a target expansion coefficient corresponding to each Palyy vector in a quantum state corresponding to the nuclear magnetic resonance system;
and determining and outputting the quantum state corresponding to the nuclear magnetic resonance system according to the target expansion coefficient corresponding to each Paly basis vector.
2. The method of claim 1, wherein determining the number of NMR experiments and the target spin pulse required to be applied for each NMR experiment according to the number of qubits in the NMR system comprises:
determining each Paly-Li-based vector in a quantum state corresponding to a nuclear magnetic resonance system according to the quantum bit number in the nuclear magnetic resonance system, wherein each Paly-Li-based vector is determined by a Pay-Li matrix on each bit in the quantum bit number;
determining a rotation pulse to be selected corresponding to each immeasurable Palyy vector according to the measurable Palyy vector in each Palyy vector and the rotation corresponding relation between the single-bit rotation pulse and the Palyy matrix; wherein the candidate rotation pulses are pulses that convert the non-measurable Palyy vector to the measurable Palyy vector;
and determining the number of nuclear magnetic resonance experiments required for measuring each Pagliy vector and the target rotation pulse required to be applied in each nuclear magnetic resonance experiment according to each rotation pulse to be selected.
3. The method of claim 2, wherein determining, from each of the candidate spin pulses, a number of nmr experiments required to measure each of the poljy vectors and a target spin pulse required to be applied for each nmr experiment comprises:
randomly selecting a current preset number of to-be-selected rotary pulses from each to-be-selected rotary pulse, and forming a current rotary pulse group by using each selected to-be-selected rotary pulse;
determining whether the current rotating pulse group meets a preset complete condition or not according to the current rotating pulse group, the measurable PayRaky basis vectors and the corresponding rotating relation, wherein the preset complete condition means that the measured PayRaky basis vectors of the current rotating pulse group completely cover all the corresponding PayRaky basis vectors of the nuclear magnetic resonance system;
if so, determining the times of nuclear magnetic resonance experiments and target rotating pulses required to be applied in each nuclear magnetic resonance experiment according to the current rotating pulse group;
if not, when the current cycle number is detected to be less than or equal to the preset number, re-selecting the current preset number of rotary pulses to be selected from each rotary pulse to be selected, determining a different current rotary pulse group, accumulating the current cycle number by 1, and returning to execute the operation of determining whether the current rotary pulse group meets the preset complete condition according to the current rotary pulse group, the measurable bubble base vector and the corresponding relation of rotation based on the re-determined current rotary pulse group;
and when the current cycle times are detected to be greater than the preset times, accumulating the current preset number by 1, and returning to execute the operation of arbitrarily selecting the preset number of the rotation pulses to be selected from each rotation pulse to be selected based on the updated current preset number.
4. The method of claim 1, wherein linearly fitting each of the inputted spectrum data to determine a first expansion coefficient of each of the first pauli basis vectors measured experimentally comprises:
performing Lorentzian line type fitting on each signal peak in each input frequency spectrum data to determine a line type signal corresponding to each signal peak;
determining a sum of squares of differences between each of said linear signals and a corresponding said signal peak as a fitting error;
optimizing each linear signal by minimizing the fitting error, and determining a target amplitude and a target phase corresponding to each optimized linear signal;
and determining a first expansion coefficient of each first Paglie basis vector measured in each experiment according to each target amplitude and each target phase.
5. The method according to claim 1, wherein determining a second expansion coefficient of each second pauli-based vector according to a first expansion coefficient of each first pauli-based vector and a second pauli-based vector corresponding to each first pauli-based vector comprises:
and determining a first expansion coefficient of the first Paly basis vector as a second expansion coefficient of a second Paly basis vector corresponding to the first Paly basis vector.
6. The method of claim 1, wherein performing de-duplication on the second expansion coefficient of each second pauli vector determined in each experiment to determine the expansion coefficient corresponding to each pauli vector in the quantum state corresponding to the nmr system comprises:
detecting whether the same second Paglie basis vector exists in the second Paglie basis vectors determined by each experiment;
if so, averaging the second expansion coefficients of the same second Paly basis vectors, and taking the obtained average value as a target expansion coefficient of the second Paly basis vector;
if not, directly determining the second expansion coefficient of the second Palyy basis vector as the target expansion coefficient of the second Palyy basis vector.
7. A quantum state determination apparatus, comprising:
the system comprises a spectrum data acquisition module, a spectrum data acquisition module and a spectrum data acquisition module, wherein the spectrum data is acquired after each nuclear magnetic resonance experiment, and the frequency of the nuclear magnetic resonance experiment and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment are predetermined according to the quantum bit number in a nuclear magnetic resonance system;
the quantum state determining module is used for inputting the spectrum data into a preset quantum state reading model and determining the quantum state corresponding to the nuclear magnetic resonance system according to the output of the preset quantum state reading model;
the preset quantum state reading model realizes the function of determining the quantum state corresponding to the nuclear magnetic resonance system through the following units:
a first expansion coefficient determining unit, configured to perform linear fitting on each input piece of spectrum data, and determine a first expansion coefficient of each first pauli basis vector measured in each experiment, where the first pauli basis vector is a pauli basis vector after the target rotation pulse is applied in the experiment;
a second pauli-based vector determining unit, configured to determine, according to each of the first pauli-based vectors, a rotation correspondence relationship between a single-bit rotation pulse and a pauli matrix, and the target rotation pulse, a second pauli-based vector corresponding to each of the first pauli-based vectors, where the second pauli-based vector is a pauli-based vector before the target rotation pulse is applied in an experiment;
a second expansion coefficient determining unit, configured to determine a second expansion coefficient of each second pauli-based vector according to a first expansion coefficient of each first pauli-based vector and a second pauli-based vector corresponding to each first pauli-based vector;
a target expansion coefficient determining unit, configured to perform deduplication processing on the second expansion coefficient of each second pauli basis vector determined in each experiment, and determine a target expansion coefficient corresponding to each pauli basis vector in a quantum state corresponding to the nuclear magnetic resonance system;
and the quantum state output unit is used for determining and outputting the quantum state corresponding to the nuclear magnetic resonance system according to the target expansion coefficient corresponding to each Palyy vector.
8. The apparatus of claim 7, further comprising:
before obtaining the spectrum data after each nuclear magnetic resonance experiment, determining each Paly basis vector in a quantum state corresponding to the nuclear magnetic resonance system according to the quantum bit number in the nuclear magnetic resonance system, wherein each Pay basis vector is determined by a Pay basis matrix on each bit in the quantum bit number;
the rotation pulse to be selected determining module is used for determining rotation pulses to be selected corresponding to each non-measurable Palyy vector according to measurable Palyy vectors in the Palyy vectors and the rotation corresponding relationship between the single-bit rotation pulses and the Palyy matrix; wherein the candidate rotation pulses are pulses that convert the non-measurable Palyy vector to the measurable Palyy vector;
and the target rotating pulse determining module is used for determining the number of nuclear magnetic resonance experiments required for measuring each Paglie vector and the target rotating pulse required to be applied in each nuclear magnetic resonance experiment according to each to-be-selected rotating pulse.
9. The apparatus of claim 8, wherein the target rotation pulse determination module is specifically configured to:
randomly selecting a current preset number of to-be-selected rotary pulses from each to-be-selected rotary pulse, and forming a current rotary pulse group by using each selected to-be-selected rotary pulse;
determining whether the current rotating pulse group meets a preset complete condition according to the current rotating pulse group, the measurable Pouley basis vectors and the corresponding rotating relationship, wherein the preset complete condition means that the measured Pouley basis vectors of the current rotating pulse group completely cover all the corresponding Pouley basis vectors of the nuclear magnetic resonance system;
if so, determining the times of nuclear magnetic resonance experiments and target rotating pulses required to be applied in each nuclear magnetic resonance experiment according to the current rotating pulse group;
if not, when the current cycle number is detected to be less than or equal to the preset number, re-selecting the current preset number of rotary pulses to be selected from each rotary pulse to be selected, determining a different current rotary pulse group, accumulating the current cycle number by 1, and returning to execute the operation of determining whether the current rotary pulse group meets the preset complete condition according to the current rotary pulse group, the measurable bubble base vector and the corresponding relation of rotation based on the re-determined current rotary pulse group;
and when the current cycle times are detected to be greater than the preset times, accumulating the current preset number by 1, and returning to execute the operation of arbitrarily selecting the preset number of the rotation pulses to be selected from each rotation pulse to be selected based on the updated current preset number.
10. The apparatus according to claim 7, wherein the first expansion coefficient determining unit is specifically configured to:
performing Lorentzian line type fitting on each signal peak in each input frequency spectrum data to determine a line type signal corresponding to each signal peak;
determining as a fitting error the sum of the squares of the differences between each of said linear signals and the corresponding said signal peak;
optimizing each linear signal by minimizing the fitting error, and determining a target amplitude and a target phase corresponding to each optimized linear signal;
and determining a first expansion coefficient of each first Paglie vector measured in each experiment according to each target amplitude and each target phase.
11. The apparatus according to claim 7, wherein the second expansion coefficient determining unit is specifically configured to:
and determining a first expansion coefficient of the first Paly basis vector as a second expansion coefficient of a second Paly basis vector corresponding to the first Paly basis vector.
12. The apparatus according to claim 7, wherein the target expansion coefficient determining unit is specifically configured to:
detecting whether the same second Paglie basis vector exists in the second Paglie basis vectors determined by each experiment;
if so, averaging the second expansion coefficients of the same second Paly basis vectors, and taking the obtained average value as a target expansion coefficient of the second Paly basis vector;
if not, directly determining the second expansion coefficient of the second Palyy basis vector as the target expansion coefficient of the second Palyy basis vector.
13. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the quantum state determination method of any of claims 1-6.
14. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method for quantum state determination according to any one of claims 1 to 6.
CN201910818376.6A 2019-08-30 2019-08-30 Quantum state determination method, device, equipment and storage medium Active CN110516811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910818376.6A CN110516811B (en) 2019-08-30 2019-08-30 Quantum state determination method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910818376.6A CN110516811B (en) 2019-08-30 2019-08-30 Quantum state determination method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110516811A CN110516811A (en) 2019-11-29
CN110516811B true CN110516811B (en) 2023-04-18

Family

ID=68629870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910818376.6A Active CN110516811B (en) 2019-08-30 2019-08-30 Quantum state determination method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110516811B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415011B (en) 2020-02-10 2022-04-26 北京百度网讯科技有限公司 Quantum pulse determination method, device, equipment and readable storage medium
CN111539531A (en) * 2020-04-28 2020-08-14 济南浪潮高新科技投资发展有限公司 Quantum bit resetting method, device, equipment and readable storage medium
CN111709531B (en) * 2020-06-23 2023-06-30 南方科技大学 Quantum state construction method, quantum state construction device, quantum computer equipment and storage medium
CN111814362B (en) * 2020-08-28 2020-12-15 腾讯科技(深圳)有限公司 Quantum noise process analysis method and system, storage medium and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4680546A (en) * 1986-01-27 1987-07-14 General Electric Company Methods of, and pulse sequences for, the supression of undesired resonances by generation of quantum coherence in NMR imaging and spectroscopy
US5235278A (en) * 1991-01-24 1993-08-10 U.S. Philips Corp. Magnetic resonance spectroscopy method and device for performing the method
US5917322A (en) * 1996-10-08 1999-06-29 Massachusetts Institute Of Technology Method and apparatus for quantum information processing
WO2019101295A1 (en) * 2017-11-21 2019-05-31 Huawei Technologies Co., Ltd. Image and video processing apparatuses and methods

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090182542A9 (en) * 2001-12-22 2009-07-16 Hilton Jeremy P Hybrid classical-quantum computer architecture for molecular modeling
KR20050105469A (en) * 2003-02-14 2005-11-04 클리어사이트 시스템즈 인크. Method and programmable apparatus for quantum computing
US20070288684A1 (en) * 2006-04-25 2007-12-13 Magiq Technologies, Inc. Quantum circuit for quantum state discrimination
US10332023B2 (en) * 2017-09-22 2019-06-25 International Business Machines Corporation Hardware-efficient variational quantum eigenvalue solver for quantum computing machines
CN109521038B (en) * 2018-11-30 2021-11-19 华东师范大学 Method for selectively detecting dopamine based on magnetic resonance nuclear spin singlet state

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4680546A (en) * 1986-01-27 1987-07-14 General Electric Company Methods of, and pulse sequences for, the supression of undesired resonances by generation of quantum coherence in NMR imaging and spectroscopy
US5235278A (en) * 1991-01-24 1993-08-10 U.S. Philips Corp. Magnetic resonance spectroscopy method and device for performing the method
US5917322A (en) * 1996-10-08 1999-06-29 Massachusetts Institute Of Technology Method and apparatus for quantum information processing
WO2019101295A1 (en) * 2017-11-21 2019-05-31 Huawei Technologies Co., Ltd. Image and video processing apparatuses and methods

Also Published As

Publication number Publication date
CN110516811A (en) 2019-11-29

Similar Documents

Publication Publication Date Title
CN110516811B (en) Quantum state determination method, device, equipment and storage medium
US11023801B2 (en) Data processing method and apparatus
US20210326728A1 (en) Anomaly detection apparatus, anomaly detection method, and program
CN109342989B (en) Error analysis method and device for electric energy meter
WO2021208079A1 (en) Method and apparatus for obtaining power battery life data, computer device, and medium
US20230359381A1 (en) Deduplication decision based on metrics
JP2017021772A (en) Copula-theory based feature selection
CN111062482B (en) Quantum state reconstruction method, device, system and storage medium
CN106406830B (en) Quasi-periodic signal processing method and device and computer readable storage medium
US10404676B2 (en) Method and apparatus to coordinate and authenticate requests for data
JP2007155715A (en) System and method for verifying metadata during measuring processing
WO2019161032A1 (en) Systems and methods for performing counting and summing using a quantum computer
Noje et al. IoT devices signals processing based on Shepard local approximation operators defined in Riesz MV-algebras
CN109190757B (en) Task processing method, device, equipment and computer readable storage medium
CN111221827B (en) Database table connection method and device based on graphic processor, computer equipment and storage medium
CN110427278A (en) Method for detecting abnormality and device
Muhammad et al. Early Stopping Effectiveness for YOLOv4.
CN110970887B (en) Two-stage linear three-phase state estimation method and device for active power distribution network
Humble et al. Performance models for split-execution computing systems
CN117728586B (en) Fault traveling wave identification method and device based on power special main control chip
CN113792185B (en) Method, apparatus, computer device and storage medium for estimating missing signal
CN113627702B (en) Service path analysis method and device and computing equipment
Aghazadeh et al. Adaptive step size selection for optimization via the ski rental problem
Mak et al. GPU-accelerated and efficient multi-view triangulation for scene reconstruction
CN110019982B (en) Node coordinate determination method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant