2021\savesymbolMOD \savesymbolC \savesymbolEXP \savesymbolp \savesymbolR \savesymbolA \restoresymbolCOMMOD \restoresymbolCOMC \restoresymbolCOMEXP \restoresymbolCOMp \restoresymbolCOMR \restoresymbolCOMA
[1]\fnmWei Zheng \surTeo
[1]\orgdivDepartment of Computer Science, \orgnameColumbia University, \orgaddress\street500 W 120th St, \cityNew York, \postcode10027, \stateNY, \countryUSA
2]\orgdivMathematics of AI, \orgnameIBM Research, \orgaddress\street1101 Kitchawan Rd, \cityYorktown Heights, \postcode10598, \stateNY, \countryUSA
Creating quantum-resistant classical-classical OWFs from quantum-classical OWFs
Abstract
One-way functions (OWF) are one of the most essential cryptographic primitives, the existence of which results in wide-ranging ramifications such as private-key encryption and proving (Impagliazzo89, ; Goldreich00, ). These OWFs are often thought of as having classical input and output (i.e. binary strings), however, recent work proposes OWF constructions where the input and/or the output can be quantum (Buhrman01, ; Gottesman01, ; Behera18, ; Shang20, ). In this paper, we demonstrate that quantum-classical (i.e. quantum input, classical output) OWFs can be used to produce classical-classical (i.e. classical input, classical output) OWFs that retain the one-wayness property against any quantum polynomial adversary (i.e. quantum-resistant). We demonstrate this in two ways. Firstly, we propose a definition of quantum-classical OWFs and show that the existence of such a quantum-classical OWF would imply the existence of a classical-classical OWF. Secondly, we take a proposed quantum-classical OWF and demonstrate how to turn it into a classical-classical OWF. In summary, this paper showcases another possible route into proving the existence of classical-classical OWFs (assuming intermediate quantum computations are allowed) using a “domain-shifting” technique between classical and quantum information, with the added bonus that such OWFs are also going to be quantum-resistant.
keywords:
one-way functions, quantum computation, quantum cryptography1 Introduction
One-way functions (OWFs) are one of the most important entities in computational complexity and cryptography. Proving the existence of classical-classical OWFs (i.e. classical input, classical output) would imply as well as prove the existence of private-key cryptography. We first define the notion of a classical-classical OWF in the usual manner (Goldreich00, ):
Definition 1.
Let be a deterministic and efficiently computable function, where is a polynomial. Then is a one-way function if
where is the uniform distribution over -bit strings, is a negligible function, and is any probabilistic polynomial time (ppt) algorithm.
In other words, given a uniformly random , we obtain and give it to as input. should not be able to produce an output that is a valid preimage of with non-negligible probability. Next, we define a quantum-resistant OWF, which is basically the same as Definition 1 but with a quantum polynomial adversary.
Definition 2.
Let be a deterministic and efficiently computable function, where is a polynomial. Then is a quantum-resistant one-way function if
where is the uniform distribution over -bit strings, is a negligible function, and is any quantum polynomial time algorithm.
In the following sections, we explore two different ways to construct quantum-resistant OWFs using quantum-classical OWFs. Section 2 proposes a definition of quantum-classical OWFs which can then be easily extended to classical-classical OWFs. Section 3 makes use of the candidate quantum-classical OWF as proposed by Behera18 to construct an algorithm implementing a classical-classical OWF. The key idea behind these constructions is to base the security of the classical-classical OWFs on the quantum-classical OWFs used in their construction. Since the quantum-classical OWFs are, by definition, secure against quantum polynomial adversaries, then the resulting classical-classical OWFs must be secure against such adversaries as well.
2 Classical-classical OWF through composition
Interactions between classical and quantum computations have the potential to introduce one-wayness. This is demonstrated by the existing constructions for both classical-quantum OWFs (Gottesman01, ; Buhrman01, ) (i.e. classical input, quantum output) and quantum-classical OWFs (Behera18, ) (i.e. quantum input, classical output). Shang20 proposed a quantum-quantum OWF by simply using a composition of a quantum-classical OWF and a classical-quantum OWF. The input quantum state to the quantum-quantum OWF is first given to the quantum-classical OWF as input to obtain a classical output, and this classical output is then given to the classical-quantum OWF to produce another quantum state as output. Inspired by this approach, we wanted to study whether the same approach can be used to produce a classical-classical OWF – given a classical input, it is first given to a classical-quantum OWF as input to obtain a quantum state, and this state is then given to a quantum-classical OWF to produce the final classical output. We also investigate the question of whether we need both constituent functions to be one-way or if we can just have one of them be one-way.
2.1 Constructing a classical-classical OWF
Let us consider the following construction of a classical-classical function. Let be some finite set of -qubit states. Let be a classical-quantum function. Let be a quantum-classical function. Let be defined by . For now, we consider only the case where and (and hence ) are deterministic.
Next, we want to consider what happens if and/or is a OWF. First, we require definitions of classical-quantum and quantum-classical OWFs.
Definition 3.
is a classical-quantum OWF if
where again is the uniform distribution over -bit strings, is a negligible function, is any quantum polynomial time adversary, and refers to the outcome where independent repetitions of the swap test between the two states all pass and is polynomial sized.
It is important to note the use of the swap test in the definition.
We would like to know whether the -qubit states and are equal.
Gottesman01 proposed to use the swap test as the test for equality, as there is no perfect equality test for two quantum states.
In the swap test, we use a qubit as the control qubit in a controlled-swap operation between the two states that are to be compared (denoted and ).
We then apply a Hadamard gate to the control qubit and measure it.
The swap test is passed if we measure and failed otherwise.
If , we will measure with probability 1.
However, if and , then the swap test passes with probability at most , i.e. the swap test, serving as an equality test, has a probability of failure if the states are unequal.
With this in mind, it would be ideal for the outputs of to be close to orthogonal, so that the swap test has a larger probability of failing if the states are unequal.
Using the swap test as the equality test also means that we require a large enough number of copies of the challenge state (say, copies), such that we can perform enough independent swap tests to eventually end up with a negligible probability that unequal states pass all the swap tests.
Next, we define a quantum-classical OWF.
Definition 4.
is a quantum-classical OWF if
where represents the uniform distribution over the set , is a negligible function, and is any quantum polynomial time adversary. Furthermore, for any , the distribution of should not have any output occurring with non-negligible probability.
While we do not need to define an equality test like in the classical-quantum case, we do need to consider the possibility of producing a state not in . was defined to be deterministic only for states in the domain . Therefore, on input states outside of , there is no longer a guarantee that the output will be deterministic. This opens up the possibility of producing a state that is not in , but when given as input to , results in a non-negligible probability of outputting a certain string. When this happens, we can consider this as a kind of ‘cheating’, since did not actually find a preimage in the domain , but just managed to find some other state that makes output the desired string with non-negligible probability. One way to overcome this would be to simply define a successful inversion where must produce a state in . However, the definition we adopted was to simply mandate the function to not produce any output with non-negligible probability when given any state not in , demotivating from ‘cheating’. Note that there is potential for an extensive discussion on the best way to resolve the issue with ‘cheating’. For example, we can imagine more relaxed versions of the ‘no cheating’ property, e.g. if a state close enough to the preimage but not in also produces the output string with non-negligible probability, we might want to consider that as a successful inversion as well and thus allow such a behavior from , while defining it to be difficult to find such a state to retain the one-way property. However, regardless of the method of choice we use to prevent the adversary from ‘cheating’, if we were to consider the use of such a function for the purposes of building a classical-classical OWF as in Theorem 1, the adversary in the proof of Theorem 1 does not cheat, and hence we can consider definitions without the ‘no cheating’ property (i.e. it is only difficult to find a preimage in but it may not be difficult to find a preimage outside of ). The question about the feasibility of alternative quantum-classical OWF definitions and their potential cryptographic applications will be left as an open question for now. The question of whether quantum-classical functions exhibiting the ‘no cheating’ property as defined exists is also left unanswered for now.
With these definitions, we can now prove our first theorem.
Theorem 1.
If a quantum-classical OWF as defined in Definition 4 exists, then a quantum-resistant classical-classical OWF exists.
Proof: Recall the construction of shown above,
where the function signatures are
and is some finite set of -qubit states. Let be a quantum-classical OWF. Then must be a quantum-resistant classical-classical OWF. Suppose is not a quantum-resistant OWF. Then there exists an adversary that, when given some , is able to find with non-negligible probability in quantum polynomial time such that . We can then make use of to construct an algorithm that inverts with non-negligible probability. The algorithm for is simply to first execute and obtain a string from . With non-negligible probability, we would have . Next, we calculate . Then must be a valid preimage of with respect to , since . This means that has successfully inverted with probability equal to the success probability of (i.e. non-negligible). Furthermore, did not ‘cheat’ and has found a valid preimage of in the domain , since is also the range of . We therefore arrive at a contradiction if we assumed that is supposed to be a quantum-classical OWF. Note that we require the assumption that should be at least . If , then random guessing can give us a non-negligible probability of inverting , and thus is not a OWF anymore.
Applying a similar construction as the proof above, we do not arrive at a contradiction if we instead set to be a OWF and not . Suppose , when given , can find an inverse such that . Let , . Clearly and can be different, i.e. is not necessarily a preimage of with respect to . Therefore, even if we assume is not one-way, we do not contradict being a OWF. Note that we have only ruled out one way of constructing classical-classical OWFs from classical-quantum OWFs. Whether classical-quantum OWFs can lead to classical-classical OWFs remains an open question.
Next, we aim to explore whether a quantum-classical OWF following the definition in Definition 4 can exist. While we do not show with certainty that such a function exists, we explore a non-exhaustive list of ways that do not result in a quantum-classical OWF.
2.2 Constructing a quantum-classical OWF
Indeed, proving the existence of a quantum-classical OWF as defined in Definition 4 would almost certainly give us a quantum-resistant classical-classical OWF due to Theorem 1, provided a suitable and efficient classical-quantum function can be found. For now, we attempt to provide a non-exhaustive list of methods that do not work in giving us a quantum-classical OWF. The methods listed here are generally simple methods which only apply a unitary operation and make some kind of measurement at the end of the unitary operation.
2.2.1 How not to construct a quantum-classical OWF
-
1.
Passing a state through a quantum circuit and deterministically measuring all qubits to produce the classical output. Using the classical output, we can reconstruct the final state before measurement, and pass this final state through the reverse circuit to obtain the original input state. Therefore such quantum-classical functions are not one-way.
-
2.
Same as 1, but only measuring some of the qubits, and it is easy to fill in for the unknown qubits at the final state. Suppose we want to use the same method as in 1 to send the final state through the reverse circuit to obtain the original input state. If we only measured (and thus know) some of the qubits at the final state, we will need to find substitutes for the unknown qubits. Now, if it is not difficult to find these substitute qubits, such that the computed input state is in , then the function is invertible. Note that we observe an interesting circular argument in this construction — given a circuit that ends off by measuring a portion of the qubits, if this circuit is to implement a quantum-classical OWF, then it must be difficult to find suitable substitute qubits for the unknown qubits at the final state. Observe that the problem of finding the substitute qubits is very similar to the quantum-classical OWF problem statement itself — given classical information, it is difficult to find a certain suitable state.
-
3.
Have , and the classical output is obtained by measurement on some or all of the qubits at the end of all quantum computation. Using the same idea as above (i.e. reconstructing the final state before measurement and sending it through the reverse circuit), we note that if , then even if there are unknown qubits in the final state, using any kind of qubits for the substitute qubits will still allow the computed input state to be in . Note that this still holds true even if the circuit implements a probabilistic function, although so far we have mainly assumed that quantum-classical OWFs are deterministic.
Note that methods 1 and 2 above also do not satisfy the ‘no cheating’ property as described in Definition 4. This is because for a state not in but close to some other state in , we can still have a high (non-negligible) probability of producing the same measurements that produces, simply because we are only executing a simple unitary operation , and measuring has a high probability of projecting to if and are close.
3 Classical-classical OWF from candidate quantum-classical OWF
In this section, we will mainly be building on the candidate quantum-classical OWF as proposed by Behera18 to create a classical-classical quantum-resistant OWF. We first briefly go through the candidate quantum-classical OWF, before describing how to turn it into a classical-classical OWF.
3.1 Candidate quantum-classical OWF
Behera18 proposed a quantum-classical OWF that is different from Definition 4. In this approach, the OWF itself is defined dynamically based on the input state. To formally define this OWF, we have to first introduce GCH states. An -qubit GCH state is a tensor product (in any order) of qubits in either the standard basis , the Hadamard basis , or GHZ states containing 2 to qubits , where . Now we can define the function signature of the candidate quantum-classical OWF:
where refers to the set of -qubit GCH states.
Theorem 2.
Given an input state , we can define a function based on that is one-way, i.e. for any efficient adversary and public parameters (which includes , the classical output and the implementation of ),
where is a negligible function.
Here we briefly explain the construction of such an for a given input state.
-
•
We generate a circuit by adding several layers of parallel CNOT gates (called OWF gate operations) which are randomly placed while following a set of rules. CNOT gates can only be used on two compatible qubits, such that if a GCH state is given to an OWF gate operation as an input, then the output is also a GCH state.
-
•
In the final OWF gate operation, we mark one qubit per CNOT gate using some fixed rules based on the type of qubit at each position, and choose of the marked qubits for measurement. The rules ensure that the marked qubits will either be or qubits.
-
•
Finally, we perform a POVM measurement on these marked qubits (hence not collapsing the state with measurement) to obtain the classical output. The classical output describes the state of each of the marked qubits (i.e. one of ).
-
•
We repeat the whole circuit generation procedure for times (which is possible since the measurement did not collapse the state, hence we can apply the reverse circuit to obtain the original input), i.e. we have such randomly generated circuits to produce sets of classical outputs. The final output of is the concatenation of all sets of classical outputs.
-
•
The user is given the classical output as well as all circuits used. It will be difficult for the user to find an input GCH state by various methods of random guessing that produces the same output, except with negligible probability.
In short, the function involves repetitions of passing the input state through a circuit, measuring, and passing the state through the reverse circuit, where is the number of input qubits. In fact, we can imagine this whole process as a single circuit with intermediate non-destructive measurements, and therefore future mentions of the term ‘circuit’ will be referring to the one implementing the entire instead of just one of the circuits used in some iteration of the algorithm.
3.2 Constructing a classical-classical OWF from the proposed quantum-classical OWF
The first thing to consider is to find a way to encode the input GCH states in binary. Fortunately, this can be easily done. One way to do this is to encode the circuit producing a GCH state in binary. Figure 1 shows a possible circuit for encoding a GCH state. We can encode such a circuit in the following manner:
-
•
First bits: describes the initial qubits ( or ).
-
•
Next bits: describes which positions have the Hadamard gate applied.
-
•
Next bits: describes all the positions of CNOT gates. We can enforce certain rules for valid classical encodings at this part. Firstly, the control qubit of each CNOT gate must be on a qubit that is currently a . Secondly, for a set of qubits that are supposed to be entangled in the same GHZ state, all the CNOT gates used for entangling all of these qubits must have their control qubit be the qubit with the smallest-numbered position. For example, if qubits 6, 7, 8 are to be entangled, we must have two CNOT gates with (control, target) qubits be (6, 7) and (6, 8). Enforcing these rules will give us a bijective mapping from the set of valid encodings to the GCH states. Lastly, we use bits because there are at most CNOT gates since each qubit can only be the target qubit of each CNOT gate once, and the location of each CNOT gate can be described by two strings for the position of the two qubits. More precisely, we use at most bits for this section.

The next obstacle to overcome when converting the quantum-classical OWF of Behera18 to a deterministic classical-classical OWF is that, given a function sampled according to the proposed algorithm, this function produces deterministic output on states with the same basis as the chosen input state but may produce non-deterministic output on states with a basis different from the chosen input state. At this stage, we make the following key observations:
-
•
A circuit (where ‘circuit’ refers to the entire implementation of as explained in the previous subsection) sampled based on an input state has deterministic output on all states with the same basis as . Therefore, if we are able to use a circuit family instead of just a single circuit, where each circuit in the circuit family caters to states of a certain basis, then the function implemented by the whole circuit family would be entirely deterministic.
-
•
Sampling the circuit is efficient since its size complexity is as proved by Behera18 , and so we only have to perform samplings. This means that at runtime, it is efficient to generate the appropriate circuit from the circuit family based on the basis of the input state. Clearly it is also efficient to know the basis of the input state since we need to generate the actual quantum state, and knowledge of the state automatically gives us knowledge of the basis.
Using these observations, we come up with the following algorithm. We require the use of a seeded pseudorandom number generator (PRNG) that we denote , where is the seed.
Input: A valid encoding of a GCH state
build circuit from and generate GCH state;
basis of ;
execute algorithm from Behera18 to sample circuit using as source of randomness // i.e. all states with the same basis produce the same circuit
// classical output from quantum-classical OWF
encoding of
Output:
The only part of Algorithm 1 that has not been explained yet is the addition of an encoding of to the output . The adversary considered by Behera18 does indeed not only have access to the classical output, but also the implementation of the circuit . Therefore, by including information about the circuit in , we ensure that our adversary has access to the same information as the one considered by Behera18 , allowing us to simply adopt their security guarantee. Another benefit of appending the encoding of to the output is to prevent collisions. Since states with different bases will produce different circuits, the encoding of these circuits will also be different, which means the only possible collisions must come from states of the same basis. However, these collisions should occur on a low enough frequency such that the one-wayness of the quantum-classical function is not affected, otherwise this would contradict the results of Behera18 . Lastly, we do not cover in detail how to encode the circuit , since it should be clear that such a polynomial-sized circuit can be encoded efficiently. One possible method of encoding a constituent circuit (instead of the whole circuit representing ; these encodings of each consituent circuit can then be concatenated eventually) is to simply produce a list of CNOT gate positions ordered first by layer, then by lexicographic order according to the control and target positions of the CNOT gates in each layer. The marked and measured qubits at the end of the circuit can each be encoded using bits. Using this method of encoding will give us a unique encoding for each circuit. In short, Algorithm 1 creates the input state, generates the appropriate circuit, executes the circuit to obtain the classical outputs, then returns the classical outputs along with an encoding of the circuit. If Algorithm 1 was not one-way, we can clearly see that we will be able to violate the one-wayness of the candidate quantum-classical OWF and contradict the results of Behera18 . This leads us to our final theorem:
Theorem 3.
Proof: [Proof sketch] Suppose the candidate quantum-classical OWF by Behera18 is secure against a quantum polynomial adversary, and the classical-classical function from Algorithm 1 is not a quantum-resistant OWF. Then a quantum polynomial adversary can do the following steps to invert the candidate quantum-classical OWF:
-
•
knows the classical output and the circuit used. encodes the circuit in the same way that Algorithm 1 encodes the circuit.
-
•
now has a valid classical output for the classical-classical function implemented by Algorithm 1. Since this function is assumed to be not a quantum-resistant OWF, is able to obtain a valid preimage with non-negligible probability.
-
•
can then use the valid preimage to produce a GCH state that is a valid preimage for the candidate quantum-classical OWF, i.e. inverting it. This contradicts the assumption that the candidate quantum-classical OWF is secure.
4 Discussion
We have seen above that quantum-classical OWFs can give rise to quantum-resistant classical-classical OWFs, which can ultimately lead to important breakthroughs in proving the existence of private key cryptography and other computational complexity problems such as proving .
In Section 2, we attempted to produce a classical-classical OWF by composing a classical-quantum and a quantum-classical function, where the quantum-classical function is one-way. We also introduced the idea of a ‘no cheating’ property for such quantum-classical OWFs. While a ‘no cheating’ property is not required if this quantum-classical OWF is only going to be used in the composition of a classical-classical OWF, such a property could still have important cryptographic properties that could be useful in other contexts. We also currently do not have any potential candidates for such quantum-classical OWFs, so this would be a possible area of further research.
In Section 3, we showed that if the candidate quantum-classical OWF proposed by Behera18 is secure against a quantum polynomial adversary, then a quantum-resistant classical-classical OWF exists. The main gap with this result is showing that the candidate quantum-classical OWF is indeed secure. The proof presented by Behera18 only considers a few ways an adversary might perform an inversion, which mainly involves random guessing and a negligible success probability. However, this is far from a general proof of security, which requires proving the function to be secure against any efficient adversarial algorithm. One way to do this is to show that being able to invert the candidate quantum-classical OWF would violate a proven cryptographic theorem. Even if we only show that inverting the candidate quantum-classical OWF violates certain hardness assumptions (e.g. by reducing some hard problem like LWE to inverting the candidate quantum-classical OWF), it will be useful to better understand the difficulty of inversion. Therefore, we take this opportunity to highlight the need to further study the one-wayness property of functions that are produced in a manner similar to that of Behera18 , and determine whether such functions can indeed by secure against an arbitrary quantum polynomial adversary.
5 Future Work
In this paper, we have shown that quantum-classical OWFs of varying definitions have the potential to give us quantum-resistant OWFs. We have also surfaced the following problems that are worthy of further research:
-
•
Do classical-quantum OWFs imply classical-classical OWFs?
-
•
What other definitions of quantum-classical OWFs have potentially useful cryptographic applications?
-
•
Does there exist a function satisfying Definition 4 or any other similar definitions (e.g. with varying definitions of ‘no cheating’)?
-
•
Is the quantum-classical OWF proposed by Behera18 truly one-way against any quantum polynomial adversary?
Resolving either of the last two questions would most likely give us a quantum-classical OWF and subsequently a quantum-resistant classical-classical OWF.
References
- \bibcommenthead
- (1) Impagliazzo, R., Luby, M.: One-way functions are essential for complexity based cryptography. In: 30th Annual Symposium on Foundations of Computer Science, pp. 230–235 (1989). IEEE Computer Society
- (2) Goldreich, O.: Foundations of Cryptography: Basic Tools. Cambridge University Press, USA (2000)
- (3) Buhrman, H., Cleve, R., Watrous, J., de Wolf, R.: Quantum Fingerprinting. Phys. Rev. Lett. 87, 167902 (2001). https://doi.org/10.1103/PhysRevLett.87.167902
- (4) Gottesman, D., Chuang, I.: Quantum Digital Signatures. arXiv (2001). https://doi.org/10.48550/ARXIV.QUANT-PH/0105032. https://arxiv.org/abs/quant-ph/0105032
- (5) Behera, A., Paul, G.: Quantum to Classical One Way Function and Its Applications in Quantum Money Authentication. arXiv (2018). https://doi.org/10.48550/ARXIV.1801.01910. https://arxiv.org/abs/1801.01910
- (6) Shang, T., Tang, Y., Chen, R., Liu, J.: Full quantum one-way function for quantum cryptography. Quantum Engineering 2(1), 32 (2020) https://onlinelibrary.wiley.com/doi/pdf/10.1002/que2.32. https://doi.org/10.1002/que2.32