Output method, device and equipment of superconducting quantum computer and storage medium
By integrating qubits and slicing them, the decoherence time is extended, which solves the problem of limited number of logic gate operations in superconducting quantum computers and improves the computer's computational efficiency and result fidelity.
Patent Information
- Application Number
- CN202410773120.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Due to the decoherence effect of qubits, existing superconducting quantum computers have a limited number of logic gate operations and cannot meet the needs of complex quantum algorithms, resulting in a decrease in computational efficiency and result fidelity.
By integrating qubits, calculating the minimum value of the decoherence time, slicing the quantum algorithm, reading and converting the quantum state into a classical state, re-preparing the quantum state, extending the decoherence time, increasing the number of logic gate operations and algorithm depth.
It increases the number of quantum logic gate operations of superconducting quantum computers, reduces the impact of decoherence effects on quantum algorithms, and improves the fidelity and computing power of the computer's output results.
Smart Images

Figure CN118734980A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an output method, device, equipment and storage medium for a superconducting quantum computer. Background Art
[0002] Quantum computing is one of the most popular new computing methods and has been applied in many application fields. Compared with the classical bits in classical computing, the quantum bits in quantum computing can be in the |0> state, the |1> state, or the superposition state of |0> and |1>. The existence of the superposition state gives quantum computing the ability to process data in parallel. For the operation of n-bit quantum bits, it is equivalent to the operation of the maximum dimension of 2 n Since quantum computing can perform calculations in a single space, it has the ability to perform parallel computing, thereby improving the efficiency of quantum computing.
[0003] However, during the process of quantum computing, when a quantum bit in a superposition state is read, the quantum superposition state will collapse onto one of the computational basis vectors, thereby destroying the quantum superposition state. In addition, the quantum bit will be affected by decoherence effects (such as energy dissipation and environmental noise interference), resulting in a decrease in the fidelity of the output results of the quantum computing. In addition, the decoherence effect will also limit the number of logic gate operations that can act on the quantum bit, thereby limiting the complexity of the quantum algorithms that can be run by the quantum computer.
[0004] At present, the solutions to suppress the decoherence effect of quantum bits are to increase the decoherence time of quantum bits from aspects such as chip structure and chip materials. However, each quantum bit has a decoherence time, and all quantum logic gates required in the implementation of quantum algorithms must be completed within the decoherence time. However, quantum computing is still in its early stages of development, and the decoherence time of quantum bits still cannot meet the needs of the actual implementation of quantum algorithm circuits. For example, the time used by the most commonly used two-qubit controlled-not gate (CNOT gate) in quantum algorithm implementation is about hundreds of nanoseconds. Therefore, without considering the buffer time required between quantum logic gate operations, the limitation of decoherence time alone determines that the maximum number of CNOT gate operations in one algorithm run is about thousands of times. Obviously, this cannot meet the needs of using quantum computers (such as superconducting quantum computers) to solve practical problems that are difficult to handle with classical computing. Summary of the invention
[0005] In view of this, the purpose of this application is to provide an output method, device, equipment and storage medium of a superconducting quantum computer, which can increase the number of quantum logic gate operations that can be implemented by a quantum computer, reduce the impact of decoherence effects on the implementation of quantum algorithms, increase the depth of quantum algorithm circuits that can be applied by quantum computers, and improve the fidelity and computing power of the output results of quantum computers. The specific scheme is as follows:
[0006] In a first aspect, the present application discloses an output method of a superconducting quantum computer, comprising:
[0007] Determining the quantum bits required to complete the target quantum algorithm, and integrating a plurality of the quantum bits to obtain integrated bits;
[0008] Calculating the decoherence time of each of the quantum bits in the integrated bit respectively, and obtaining the minimum value of each of the decoherence times, and then slicing the quantum circuit corresponding to the target quantum algorithm according to the minimum value to obtain a plurality of circuit slices;
[0009] Reading the quantum state of the integrated bit at the first slice in the line slice to obtain a target quantum state, and converting the quantum state of the integrated bit into a classical state after reading to obtain a read bit;
[0010] Performing an initialization operation on the read bits to obtain initialized bits;
[0011] The initialized bit is re-prepared using a preset quantum state preparation circuit to transform the quantum state of the initialized bit into a quantum state identical to the target quantum state to obtain a prepared bit, and the prepared bit is applied to a next slice connected to the first slice to obtain a quantum state output of the quantum circuit.
[0012] Optionally, respectively calculating the decoherence time of each of the quantum bits in the integrated bit and obtaining the minimum value of the decoherence times includes:
[0013] Calculating the decoherence time of each of the quantum bits in the integrated bit respectively, and creating an array based on each of the decoherence times to obtain a time array;
[0014] The minimum value of the decoherence times is obtained from the time array.
[0015] Optionally, respectively calculating the decoherence time of each of the quantum bits in the integrated bit includes:
[0016] Respectively measuring the relaxation time and dephasing time of each of the quantum bits in the integrated bit to obtain a target relaxation time and a target dephasing time corresponding to each of the quantum bits;
[0017] The decoherence time corresponding to the quantum bit is calculated based on the target relaxation time and the target dephasing time.
[0018] Optionally, the calculation formula of the decoherence time is:
[0019]
[0020] Wherein, T1 represents the target relaxation time corresponding to the quantum bit, represents the target dephasing time corresponding to the quantum bit, and T2 represents the decoherence time of the quantum bit.
[0021] Optionally, respectively measuring the relaxation time and dephasing time of each of the quantum bits in the integrated bit to obtain a target relaxation time and a target dephasing time corresponding to each of the quantum bits includes:
[0022] Using a Pauli X-gate and at a plurality of preset time intervals, each of the qubits is measured multiple times, and the time at which the probability of the |1> state decreases from 1 to 1 / e is recorded to obtain a target relaxation time corresponding to the qubit;
[0023] The qubit is measured multiple times in sequence by using the first X / 2 gate and the second X / 2 gate at the multiple time intervals, and a time variation curve of the probability that the measurement result is the |1> state is recorded, and the time variation curve is fitted by using a fitting calculation formula to obtain a target dephasing time corresponding to the qubit; wherein the frequencies of the first X / 2 gate and the second X / 2 gate are the same, and the microwave frequencies corresponding to the first X / 2 gate and the second X / 2 gate differ from the bit frequency of the qubit by a preset threshold;
[0024] Wherein, the fitting calculation formula is:
[0025]
[0026] Where P(|1>) represents the probability that the measurement result is the |1> state, and t represents time.
[0027] Optionally, the running time of the first segment of the slice is less than or equal to the minimum value, and the running time of the next segment of the slice is less than or equal to the difference between the minimum value and the running time of the preset quantum state preparation circuit.
[0028] Optionally, performing an initialization operation on the read bits to obtain the initialized bits includes:
[0029] The read bits are initialized by thermal relaxation to obtain initialized bits.
[0030] In a second aspect, the present application discloses a machine learning model operation optimization device, comprising:
[0031] A determination module, used to determine the quantum bits required to complete the target quantum algorithm;
[0032] An integration module, used to integrate the plurality of quantum bits to obtain integrated bits;
[0033] A calculation module, used to respectively calculate the decoherence time of each of the quantum bits in the integrated bit, and obtain a minimum value among the decoherence times;
[0034] A circuit partitioning module, used for slicing the quantum circuit corresponding to the target quantum algorithm according to the minimum value to obtain multiple circuit slices;
[0035] A quantum state reading module, used for reading the quantum state of the integrated bit at the first slice in the circuit slice to obtain a target quantum state;
[0036] A quantum state conversion module, used for converting the quantum state of the integrated bit into a classical state after reading to obtain a read bit;
[0037] An initialization module, used for performing an initialization operation on the read bits to obtain initialized bits;
[0038] A re-preparation module is used to re-prepare the initialized bit using a preset quantum state preparation circuit to transform the quantum state of the initialized bit into a quantum state identical to the target quantum state to obtain a prepared bit, and the prepared bit is applied to a next slice connected to the first slice to obtain a quantum state output of the quantum circuit.
[0039] In a third aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein, when the processor executes a computer program stored in the memory, the output method of the aforementioned superconducting quantum computer is implemented.
[0040] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the output method of the aforementioned superconducting quantum computer is implemented.
[0041] It can be seen that the present application first determines the quantum bits required to complete the target quantum algorithm, and integrates multiple quantum bits to obtain integrated bits, then calculates the decoherence time of each quantum bit in the integrated bit, and obtains the minimum value of each decoherence time, and then slices the quantum circuit corresponding to the target quantum algorithm according to the minimum value to obtain multiple circuit slices, and further, reads the quantum state of the integrated bit at the first section of the circuit slice to obtain the target quantum state, and after reading, the quantum state of the integrated bit is converted to a classical state to obtain a read bit, and then the read bit is initialized to obtain an initialized bit, and finally, the initialized bit is re-prepared using a preset quantum state preparation circuit to convert the quantum state of the initialized bit into the same quantum state as the target quantum state to obtain a prepared bit, and the prepared bit is applied to the next section of the slice connected to the first section of the slice to obtain the quantum state output of the quantum circuit. It can be seen that the present application uses the minimum decoherence time to slice the entire quantum circuit, reads the quantum bit at each circuit slice, collapses the quantum state into a classical state after reading, and then uses the pre-created quantum state preparation circuit to re-prepare the quantum state according to the reading result, and applies the quantum bit to the next slice, repeating the above steps until the algorithm application is completed. By collapsing the quantum state into a classical state, the decoherence time of the quantum bit can be recalculated, thereby increasing the number of quantum logic gate operations that can be achieved by the superconducting quantum computer, reducing the impact of the decoherence effect on the implementation of the quantum algorithm, and increasing the circuit depth of the quantum algorithm that can be applied by the superconducting quantum computer, thereby improving the fidelity of the output results and the computing power of the superconducting quantum computer. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0043] Figure 1 A flow chart of an output method of a superconducting quantum computer disclosed in this application;
[0044] Figure 2 A flowchart of a specific output method of a superconducting quantum computer disclosed in this application;
[0045] Figure 3 A flowchart of a specific output method of a superconducting quantum computer disclosed in this application;
[0046] Figure 4A schematic diagram of the structure of a machine learning model calculation optimization device disclosed in this application;
[0047] Figure 5 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0049] The present application embodiment discloses an output method of a superconducting quantum computer, see Figure 1 As shown, the method includes:
[0050] Step S11: Determine the quantum bits required to complete the target quantum algorithm, and integrate multiple quantum bits to obtain integrated bits.
[0051] In this embodiment, the target quantum algorithm to be implemented by the current superconducting quantum computer is first determined, then all the quantum bits required to complete the target quantum algorithm are determined, and then all the quantum bits are integrated to obtain an integrated bit q[1:n], where n is the number of all the quantum bits required to complete the quantum algorithm.
[0052] Step S12: respectively calculating the decoherence time of each of the quantum bits in the integrated bit, and obtaining the minimum value of each of the decoherence times, and then slicing the quantum circuit corresponding to the target quantum algorithm according to the minimum value to obtain a plurality of circuit slices.
[0053] In this embodiment, after integrating the plurality of quantum bits to obtain the integrated bit, further, the decoherence time of each quantum bit in the integrated bit is calculated respectively, and then the minimum value τ, i.e., the minimum decoherence time, is determined from the calculated multiple decoherence times, and then the quantum circuit corresponding to the target quantum algorithm is sliced according to the minimum decoherence time, thereby obtaining a plurality of circuit slices whose lengths are all the minimum values. For example, when the quantum circuit corresponding to the target quantum algorithm is U, the quantum circuit U is sliced, thereby obtaining the sliced circuit U=U1U2U3...U g .
[0054] In this embodiment, the decoherence time of each qubit in the integrated bit is calculated separately, which may specifically include: measuring the relaxation time and dephasing time of each qubit in the integrated bit separately, and obtaining the target relaxation time and target dephasing time corresponding to each qubit; and calculating the decoherence time of the corresponding qubit based on the target relaxation time and the target dephasing time. That is, firstly measuring the relaxation time and dephasing time of each qubit in the integrated bit separately, and then calculating the decoherence time of the corresponding qubit based on the measured relaxation time and dephasing time.
[0055] Specifically, the calculation formula of the decoherence time is:
[0056]
[0057] Wherein, T1 represents the target relaxation time corresponding to the quantum bit, represents the target dephasing time corresponding to the quantum bit, and T2 represents the decoherence time of each of the quantum bits.
[0058] In a specific embodiment, the relaxation time and dephasing time of each of the qubits in the integrated bit are measured respectively to obtain the target relaxation time and target dephasing time corresponding to each of the qubits, which may specifically include: using a Pauli X-gate to measure each of the qubits multiple times at multiple preset time intervals, and recording the time when the probability of the measurement result being the |1> state decreases from 1 to 1 / e, to obtain the target relaxation time corresponding to the qubit; using a first X / 2 gate and a second X / 2 gate to measure the qubit multiple times in sequence at multiple time intervals, and recording the time variation curve of the probability of the measurement result being the |1> state, and then fitting the time variation curve using a fitting calculation formula to obtain the target dephasing time corresponding to the qubit; wherein the frequencies of the first X / 2 gate and the second X / 2 gate are the same, and the microwave frequencies corresponding to the first X / 2 gate and the second X / 2 gate differ from the bit frequency of the qubit by a preset threshold;
[0059] Wherein, the fitting calculation formula is:
[0060]
[0061] Where P(|1>) represents the probability that the measurement result is the |1> state, and t represents time.
[0062] In this embodiment, a Pauli-X gate (equivalent to a logical NOT gate) can be applied to each qubit in the integrated bit. At this time, without other operations, the qubit will change from the |0> state to the |1> state, and as the energy is dissipated, the state of the qubit will decay from the |1> state to the |0> state. In order to measure the relaxation time of the qubit, the above process can be repeated M times, and the number of times the |1> state is obtained m is recorded, and then the probability m / M that the measurement result is the |1> state is obtained. It should be pointed out that the time interval between the Pauli-X gate action and the measurement will be continuously increased during the measurement process. It can be understood that as the time interval increases, the probability of the measurement result being the |1> state will become lower and lower, and the time when the probability of the measurement result being |1> drops from 1 to 1 / e (where e is a natural constant) is the relaxation time T1 of the qubit.
[0063] Further, the dephasing time of each quantum bit is calculated. Specifically, two X / 2 gates with the same frequency can be continuously applied to the quantum bit, namely the first X / 2 gate and the second X / 2 gate, and the microwave frequencies corresponding to the two X / 2 gates differ from the bit frequency of the corresponding quantum bit by a preset threshold d. The quantum bit can be measured immediately after the second X / 2 gate is applied. The above process is repeated F times, and the number of times the |1> state is obtained f times is recorded. The probability f / F that the measurement result is the |1> state can be obtained. In addition, the time interval between the two X / 2 gates is continuously increased during the measurement process. As the time interval increases, the change in the probability that the measurement result is the |1> state can be recorded, thereby obtaining a curve of the probability of the measurement result being the |1> state changing with the time interval, and obtaining a time variation curve. Then, the above time variation curve is fitted using a fitting calculation formula to obtain the dephasing time of the corresponding quantum bit. The fitting calculation formula is:
[0064]
[0065] Where P(|1>) represents the probability that the measurement result is the |1> state, and t represents time.
[0066] Through the above relaxation time T1 and dephasing time of the quantum bit The calculation of , can further calculate the decoherence time T2 of the quantum bit by the following formula:
[0067]
[0068] Step S13: reading the quantum state of the integrated bit at the first slice in the circuit slice to obtain a target quantum state, and converting the quantum state of the integrated bit into a classical state after reading to obtain a read bit.
[0069] In this embodiment, after slicing the quantum circuit corresponding to the target quantum algorithm according to the minimum value, the initial state is The integrated bit q[1:n] acts on U1, and the initial state is The quantum state of the integrated bit q[1:n] is read to obtain the target quantum state after the action U1. After reading, the quantum state of the integrated bit is converted to a classical state, thereby obtaining the read bit. It should be noted that the running time of the first slice U1 is less than or equal to the above minimum value τ, so the reading operation of step S13 is effective, and because the quantum state of the n-bit integrated bit is converted to a classical state after reading, the decoherence time of the quantum bit at this time will be recalculated, thereby increasing the number of quantum logic gate operations that can be achieved by the superconducting quantum computer, reducing the restrictions of the decoherence effect on the application of quantum algorithms by quantum computers, and thus increasing the circuit depth of quantum algorithms that can be applied by superconducting quantum computers, that is, the total number of quantum gate operations in the quantum circuit.
[0070] Step S14: performing an initialization operation on the read bits to obtain initialized bits.
[0071] In this embodiment, after the quantum state of the integrated bit is converted into a classical state to obtain the read bit after reading, an initialization operation is performed on the read bit to obtain the initialized bit.
[0072] In a specific embodiment, the initialization operation is performed on the read bits to obtain the initialized bits, which may specifically include: performing the initialization operation on the read bits by means of thermal relaxation to obtain the initialized bits. That is, the initialization operation can be performed on the n-bit read bits by means of thermal relaxation, thereby resetting the n-bit read bits to the initial state.
[0073] In another specific embodiment, the performing of the initialization operation on the read bits to obtain the initialized bits may specifically include: performing the initialization operation on the read bits by means of feedback reset to obtain the initialized bits. That is, the initialization operation may be performed on the n-bit read bits by means of feedback reset, thereby resetting the n-bit read bits to the initial state.
[0074] Step S15: re-prepare the initialized bit using a preset quantum state preparation circuit to transform the quantum state of the initialized bit into a quantum state identical to the target quantum state to obtain a prepared bit, and apply the prepared bit to a next slice connected to the first slice to obtain a quantum state output of the quantum circuit.
[0075] In this embodiment, as shown in 2, after the initialization operation is performed on the read bit, the quantum state of the read bit is Then, the preset quantum state preparation circuit can be used to re-prepare the above-mentioned initialized bit, so as to transform the quantum state of the initialized bit into the same quantum state as the above-mentioned target quantum state, that is, the quantum state preparation circuit is used to re-prepare the n-bit initialized bit back to state, a prepared bit is obtained, and then the prepared bit is applied to the next slice (i.e., U2) connected to the first slice (i.e., U1), and the re-preparation operation in steps S13 to S15 is repeated. After the action on U2, the quantum state Then, continue to act on the subsequent slices (i.e. U2, U3...U g ), and repeat the re-preparation operation in step S13 to step S15 until the last slice U is applied. g , and finally the quantum state output of the quantum circuit can be obtained in, Figure 2 The horizontal line in the figure represents the quantum circuit, the slash represents multi-bit quantum bits, U represents quantum algorithm circuit slicing, M represents measurement, the double line represents the transmission of bit initialization and reading results, and O represents the preset quantum state preparation circuit.
[0076] It should be noted that the preset quantum state preparation circuit is related to the number of bits after initialization, and the depth of the preset quantum state preparation circuit is less than the implementation circuit of the quantum algorithm (i.e., quantum circuit). In this way, n bits of initialized bits can be re-prepared back to After the state is reached, the next slice U2 is continued to be acted upon, wherein the running time t2 of the next slice U2 is less than or equal to the above minimum value and the running time t p The difference between p .
[0077] It can be seen that the embodiment of the present application first determines the quantum bits required to complete the target quantum algorithm, and integrates multiple quantum bits to obtain integrated bits, then calculates the decoherence time of each quantum bit in the integrated bit, and obtains the minimum value of each decoherence time, and then slices the quantum circuit corresponding to the target quantum algorithm according to the minimum value to obtain multiple circuit slices, and further, reads the quantum state of the integrated bit at the first section of the circuit slice to obtain the target quantum state, and after reading, the quantum state of the integrated bit is converted to a classical state to obtain a read bit, and then the read bit is initialized to obtain an initialized bit, and finally, the initialized bit is re-prepared using a preset quantum state preparation circuit to convert the quantum state of the initialized bit into the same quantum state as the target quantum state to obtain a prepared bit, and the prepared bit is applied to the next section of the slice connected to the first section of the slice to obtain the quantum state output of the quantum circuit. It can be seen that the embodiment of the present application uses the minimum decoherence time to slice the entire quantum circuit, reads the quantum bit at each circuit slice, and collapses the quantum state into a classical state after reading, and then uses the pre-created quantum state preparation circuit to re-prepare the quantum state according to the reading result, and applies the quantum bit to the next slice, repeating the above steps until the algorithm application is completed. By collapsing the quantum state into a classical state, the decoherence time of the quantum bit can be recalculated, thereby increasing the number of quantum logic gate operations that can be implemented by the superconducting quantum computer, reducing the impact of the decoherence effect on the implementation of the quantum algorithm, and improving the circuit depth of the quantum algorithm that can be applied by the superconducting quantum computer, thereby improving the fidelity of the output results of the superconducting quantum computer and the computing power.
[0078] The present application embodiment discloses a specific output method of a superconducting quantum computer, see Figure 3 As shown, the method includes:
[0079] Step S21: Determine the quantum bits required to complete the target quantum algorithm, and integrate multiple quantum bits to obtain integrated bits.
[0080] Step S22: respectively calculating the decoherence time of each of the quantum bits in the integrated bit, and creating an array based on each of the decoherence times to obtain a time array.
[0081] In this embodiment, after integrating the plurality of quantum bits, the decoherence time of each quantum bit in the integrated bit q[1:n] can be calculated respectively, and then an array is created based on all the decoherence times, namely, the time array
[0082] Step S23: acquiring a minimum value of each of the decoherence times from the time array, and slicing the quantum circuit corresponding to the target quantum algorithm according to the minimum value to obtain a plurality of circuit slices.
[0083] In this embodiment, an array is created based on each of the decoherence times to obtain a time array Afterwards, from the above time array The minimum value of all decoherence times is obtained, and then the quantum circuit corresponding to the above target quantum algorithm is sliced according to the minimum value, so as to obtain multiple circuit slices with the same length.
[0084] Step S24: reading the quantum state of the integrated bit at the first slice in the circuit slice to obtain a target quantum state, and converting the quantum state of the integrated bit into a classical state after reading to obtain a read bit.
[0085] Step S25: performing an initialization operation on the read bits to obtain initialized bits.
[0086] Step S26: re-prepare the initialized bit using a preset quantum state preparation circuit to transform the quantum state of the initialized bit into a quantum state identical to the target quantum state to obtain a prepared bit, and apply the prepared bit to a next slice connected to the first slice to obtain a quantum state output of the quantum circuit.
[0087] Among them, for more specific processing procedures of the above steps S21, S24, S25, and S26, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0088] It can be seen that the embodiment of the present application first determines the quantum bits required to complete the target quantum algorithm, and integrates multiple quantum bits to obtain integrated bits, then calculates the decoherence time of each quantum bit in the integrated bit, and creates an array based on each decoherence time to obtain a time array, then obtains the minimum value of each decoherence time from the time array, and slices the quantum circuit corresponding to the target quantum algorithm according to the minimum value to obtain multiple circuit slices, and reads the quantum state of the integrated bit at the first section of the circuit slice to obtain the target quantum state, and after reading, the quantum state of the integrated bit is converted to a classical state to obtain a read bit, and then the read bit is initialized to obtain an initialized bit, and finally the initialized bit is re-prepared using a preset quantum state preparation circuit to convert the quantum state of the initialized bit into the same quantum state as the target quantum state to obtain a prepared bit, and the prepared bit is applied to the next section of the slice connected to the first section of the slice, thereby obtaining the quantum state output of the quantum circuit. It can be seen that the present application obtains the minimum decoherence time from the created decoherence time array, and uses the minimum decoherence time to slice the entire quantum circuit, and then reads the quantum bit at each circuit slice, and collapses the quantum state into a classical state after reading, and then uses the pre-created quantum state preparation circuit to re-prepare the quantum state according to the reading result, and applies the quantum bit to the next slice, repeating the above steps until the algorithm application is completed. By collapsing the quantum state into a classical state, the decoherence time of the quantum bit can be recalculated, thereby reducing the adverse effects of the decoherence effect on the depth of the quantum circuit that can be implemented, and increasing the number of quantum logic gate operations that can be achieved by the quantum computer, as well as the fidelity of the output results of the quantum computer, while meeting the needs of actual quantum circuit implementation.
[0089] Accordingly, the present application also discloses a machine learning model operation optimization device, see Figure 4 As shown, the device comprises:
[0090] A determination module 11, used to determine the quantum bits required to complete the target quantum algorithm;
[0091] An integration module 12, used to integrate the plurality of quantum bits to obtain integrated bits;
[0092] A calculation module 13, used to respectively calculate the decoherence time of each of the quantum bits in the integrated bit, and obtain the minimum value of the decoherence times;
[0093] A circuit partitioning module 14 is used to slice the quantum circuit corresponding to the target quantum algorithm according to the minimum value to obtain multiple circuit slices;
[0094] A quantum state reading module 15, configured to read the quantum state of the integrated bit at the first slice in the circuit slice to obtain a target quantum state;
[0095] A quantum state conversion module 16, used for converting the quantum state of the integrated bit into a classical state after reading to obtain a read bit;
[0096] An initialization module 17, configured to perform an initialization operation on the read bits to obtain initialized bits;
[0097] The re-preparation module 18 is used to re-prepare the initialized bit using a preset quantum state preparation circuit to transform the quantum state of the initialized bit into a quantum state identical to the target quantum state to obtain a prepared bit, and apply the prepared bit to a next slice connected to the first slice to obtain a quantum state output of the quantum circuit.
[0098] Among them, the specific working processes of the above-mentioned modules can refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0099] It can be seen that in the embodiment of the present application, the quantum bits required to complete the target quantum algorithm are first determined, and a plurality of the quantum bits are integrated to obtain an integrated bit, and then the decoherence time of each of the quantum bits in the integrated bit is calculated respectively, and the minimum value of each of the decoherence times is obtained, and then the quantum circuit corresponding to the target quantum algorithm is sliced according to the minimum value to obtain a plurality of circuit slices, and further, the quantum state of the integrated bit is read at the first section of the circuit slice to obtain the target quantum state, and after reading, the quantum state of the integrated bit is converted into a classical state to obtain a read bit, and then the read bit is initialized to obtain an initialized bit, and finally, the initialized bit is re-prepared using a preset quantum state preparation circuit to convert the quantum state of the initialized bit into the same quantum state as the target quantum state to obtain a prepared bit, and the prepared bit is applied to the next section of the slice connected to the first section of the slice to obtain the quantum state output of the quantum circuit. It can be seen that the embodiment of the present application uses the minimum decoherence time to slice the entire quantum circuit, reads the quantum bit at each circuit slice, and collapses the quantum state into a classical state after reading, and then uses the pre-created quantum state preparation circuit to re-prepare the quantum state according to the reading result, and applies the quantum bit to the next slice, repeating the above steps until the algorithm application is completed. By collapsing the quantum state into a classical state, the decoherence time of the quantum bit can be recalculated, thereby increasing the number of quantum logic gate operations that can be implemented by the superconducting quantum computer, reducing the impact of the decoherence effect on the implementation of the quantum algorithm, and improving the circuit depth of the quantum algorithm that can be applied by the superconducting quantum computer, thereby improving the fidelity of the output results of the superconducting quantum computer and the computing power.
[0100] In some specific embodiments, the calculation module 13 may specifically include:
[0101] A first calculation unit, used to respectively calculate the decoherence time of each of the quantum bits in the integrated bit;
[0102] An array creation unit, used to create an array based on each of the decoherence times to obtain a time array;
[0103] A minimum value acquisition unit is used to acquire the minimum value of each decoherence time from the time array.
[0104] In some specific embodiments, the calculation module 13 may specifically include:
[0105] A first measuring unit is used to measure the relaxation time and dephasing time of each of the quantum bits in the integrated bit, respectively, to obtain a target relaxation time and a target dephasing time corresponding to each of the quantum bits;
[0106] A second calculation unit is used to calculate the decoherence time corresponding to the quantum bit based on the target relaxation time and the target dephasing time.
[0107] In some specific embodiments, the calculation formula of the decoherence time is:
[0108]
[0109] Wherein, T1 represents the target relaxation time corresponding to the quantum bit, represents the target dephasing time corresponding to the quantum bit, and T2 represents the decoherence time of the quantum bit.
[0110] In some specific embodiments, the first measuring unit may specifically include:
[0111] A second measurement unit is used to use a Pauli X-gate to perform multiple measurements on each of the quantum bits at preset multiple time intervals, and record the time when the probability of the |1> state decreases from 1 to 1 / e, to obtain a target relaxation time corresponding to the quantum bit;
[0112] A third measurement unit is used to measure the quantum bit multiple times in sequence using the first X / 2 gate and the second X / 2 gate according to the multiple time intervals, and record the time variation curve of the probability that the measurement result is the |1> state, and then fit the time variation curve using a fitting calculation formula to obtain the target dephasing time corresponding to the quantum bit; wherein the frequencies of the first X / 2 gate and the second X / 2 gate are the same, and the microwave frequencies corresponding to the first X / 2 gate and the second X / 2 gate differ from the bit frequency of the quantum bit by a preset threshold;
[0113] Wherein, the fitting calculation formula is:
[0114]
[0115] Where P(|1>) represents the probability that the measurement result is the |1> state, and t represents time.
[0116] In some specific embodiments, the running time of the first segment of the slice is less than or equal to the minimum value, and the running time of the next segment of the slice is less than or equal to the difference between the minimum value and the running time of the preset quantum state preparation circuit.
[0117] In some specific embodiments, the initialization module 17 may specifically include:
[0118] The initialization unit is used to perform an initialization operation on the read bits by using a thermal relaxation method to obtain initialized bits.
[0119] Furthermore, the present application also discloses an electronic device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0120] Figure 5 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the output method of the superconducting quantum computer disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0121] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0122] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0123] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, and may be Windows Server, Netware, Unix, Linux, etc. In addition to computer programs that can be used to complete the output method of the superconducting quantum computer executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 may further include computer programs that can be used to complete other specific tasks.
[0124] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the output method of the superconducting quantum computer disclosed above is implemented. The specific steps of the method can be referred to the corresponding contents disclosed in the above embodiments, and will not be repeated here.
[0125] Furthermore, an embodiment of the present application also discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the output method of the superconducting quantum computer disclosed above.
[0126] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0127] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0128] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0129] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0130] The output method, device, equipment and storage medium of a superconducting quantum computer provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application; at the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An output method for a superconducting quantum computer, characterized in that: include: Determining the quantum bits required to complete the target quantum algorithm, and integrating a plurality of the quantum bits to obtain integrated bits; Calculating the decoherence time of each of the quantum bits in the integrated bit respectively, and obtaining the minimum value of each of the decoherence times, and then slicing the quantum circuit corresponding to the target quantum algorithm according to the minimum value to obtain a plurality of circuit slices; Reading the quantum state of the integrated bit at the first slice in the line slice to obtain a target quantum state, and converting the quantum state of the integrated bit into a classical state after reading to obtain a read bit; Performing an initialization operation on the read bits to obtain initialized bits; The initialized bit is re-prepared using a preset quantum state preparation circuit to transform the quantum state of the initialized bit into a quantum state identical to the target quantum state to obtain a prepared bit, and the prepared bit is applied to a next slice connected to the first slice to obtain a quantum state output of the quantum circuit.
2. The output method of a superconducting quantum computer according to claim 1, characterized in that: The step of respectively calculating the decoherence time of each of the quantum bits in the integrated bit and obtaining the minimum value of the decoherence times comprises: Calculating the decoherence time of each of the quantum bits in the integrated bit respectively, and creating an array based on each of the decoherence times to obtain a time array; The minimum value of the decoherence times is obtained from the time array.
3. The output method of a superconducting quantum computer according to claim 1, characterized in that: The respectively calculating the decoherence time of each of the quantum bits in the integrated bit comprises: Respectively measuring the relaxation time and dephasing time of each of the quantum bits in the integrated bit to obtain a target relaxation time and a target dephasing time corresponding to each of the quantum bits; The decoherence time corresponding to the quantum bit is calculated based on the target relaxation time and the target dephasing time.
4. The output method of a superconducting quantum computer according to claim 3, characterized in that: The calculation formula of the decoherence time is: Wherein, T1 represents the target relaxation time corresponding to the quantum bit, represents the target dephasing time corresponding to the quantum bit, and T2 represents the decoherence time of the quantum bit.
5. The output method of a superconducting quantum computer according to claim 4, characterized in that: The step of respectively measuring the relaxation time and dephasing time of each of the quantum bits in the integrated bit to obtain a target relaxation time and a target dephasing time corresponding to each of the quantum bits includes: Using a Pauli X-gate and at a plurality of preset time intervals, each of the qubits is measured multiple times, and the time at which the probability of the |1> state decreases from 1 to 1 / e is recorded to obtain a target relaxation time corresponding to the qubit; The qubit is measured multiple times in sequence by using the first X / 2 gate and the second X / 2 gate at the multiple time intervals, and a time variation curve of the probability that the measurement result is the |1> state is recorded, and the time variation curve is fitted by using a fitting calculation formula to obtain a target dephasing time corresponding to the qubit; wherein the frequencies of the first X / 2 gate and the second X / 2 gate are the same, and the microwave frequencies corresponding to the first X / 2 gate and the second X / 2 gate differ from the bit frequency of the qubit by a preset threshold; Wherein, the fitting calculation formula is: Wherein, P(|1>) represents the probability that the measurement result is the |1> state, and t represents the time.
6. The output method of a superconducting quantum computer according to claim 1, characterized in that: The running time of the first segment of the slice is less than or equal to the minimum value, and the running time of the next segment of the slice is less than or equal to the difference between the minimum value and the running time of the preset quantum state preparation circuit.
7. The output method of a superconducting quantum computer according to claim 1, characterized in that: The performing an initialization operation on the read bits to obtain the initialized bits includes: The read bits are initialized by thermal relaxation to obtain initialized bits.
8. An output device of a superconducting quantum computer, characterized in that: include: A determination module, used to determine the quantum bits required to complete the target quantum algorithm; An integration module, used to integrate the plurality of quantum bits to obtain integrated bits; A calculation module, used to respectively calculate the decoherence time of each of the quantum bits in the integrated bit, and obtain a minimum value among the decoherence times; A circuit partitioning module, used for slicing the quantum circuit corresponding to the target quantum algorithm according to the minimum value to obtain multiple circuit slices; A quantum state reading module, used for reading the quantum state of the integrated bit at the first slice in the circuit slice to obtain a target quantum state; A quantum state conversion module, used for converting the quantum state of the integrated bit into a classical state after reading to obtain a read bit; An initialization module, used for performing an initialization operation on the read bits to obtain initialized bits; A re-preparation module is used to re-prepare the initialized bit using a preset quantum state preparation circuit to transform the quantum state of the initialized bit into a quantum state identical to the target quantum state to obtain a prepared bit, and the prepared bit is applied to a next slice connected to the first slice to obtain a quantum state output of the quantum circuit.
9. An electronic device, characterized in that: The method comprises a processor and a memory; wherein, when the processor executes the computer program stored in the memory, the output method of the superconducting quantum computer as claimed in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the output method of the superconducting quantum computer according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Quantum circuit and control method thereof, superconducting quantum chip and superconducting quantum computer
CN114595821A
Analysis method and device for quantum bit read data, equipment and medium
CN114861922A
Method and device for determining feature information of system, electronic equipment and medium
CN115630701A
Quantum bit decoherence model determination method and computer readable storage medium
CN115713124A
Template-based automatic software bug question and answer method
US20220043845A1
