The invention discloses a shared
key establishment method in a
quantum computing environment, which relates to the technical field of shared
key establishment, and comprises the following steps: acquiring the cost of each
quantum state, generating random numbers by using a
quantum random
number generator, and counting the average length of the random numbers of different quantum states and the generation quantity per unit time. Preparing a corresponding
quantum state key according to the coded random number, and recording the average preparation time of different
quantum state keys; calculating error rates of different quantum states; calculating a first
key establishment evaluation coefficient according to the random number average length and the unit time generation quantity, calculating a second key establishment evaluation coefficient according to the average preparation time and the error rate, and calculating a comprehensive evaluation index of each
quantum state according to the first key establishment evaluation coefficient, the second key establishment evaluation coefficient and the cost of each quantum state, and the key establishment quantum state is determined, so that different application scenes and requirements can be adapted.