# Prepare-and-Send Verifiable Universal Blind Quantum Computation

The example protocol achieves the functionality of Secure Verifiable Delegated Quantum Computation which enables a client with limited quantum technology to delegate a computation to an untrusted but powerful quantum server in such a manner, where the privacy of the computation is maintained. This protocol introduces verifiability as a property and allows the client to verify the correctness of Prepare-and-Send Universal Blind Quantum Computation. The client has an ability to verify whether the server has followed the instructions of the protocol and also can check if the server tried to deviate from the protocol which would have resulted in an incorrect output state.

Tags: Two Party,Universal Task, Quantum Functionality, Quantum Offline communication, Classical Online communication, Measurement Based Quantum Computation (MBQC), Measurement Only UBQC, Pseudo-Secret Random Qubit Generator (PSQRG), Prepare-and-Send Universal Blind Quantum Computation.

## Assumptions

• The protocol assumes perfect state preparation, transmissions, and measurements.
• The client never deviates from the protocol.
• The position of the trap qubit always remains hidden from the server.

## Outline

This protocol is a modified version of Prepare-and-Send Universal Blind Quantum Computation, which is based on (MBQC). Here a powerful adversarial server is delegated with quantum computation which maintains the privacy of the computation. Any computational deviations by this server are detected by high probability. This is achieved by insertion of randomly prepared and blindly isolated single qubits in the computation, which act as a trap (trap qubits), hence assisting the client in verification.

MBQC required a set of the initial state for computation. The brickwork states used in Prepare-and-Send Universal Blind Quantum Computation are modified to cylinder brickwork states which enables the client to embed a trap qubit surrounded by multiple dummy qubits without disrupting the computation. This state is universal and maintains the privacy of the client's preparation. The dummy qubits here do not take part in the actual computation as they are disentangled from the rest of the qubits of the graph state. Hence by adding them to the neighboring nodes of the trap qubits, they are blindly isolated and thus do not interfere with the actual computation. The dummy qubits are added next to the trap qubit in a tape format as seen in cylinder brickwork states.

This protocol is divided into four stages: Client's preparation, server's preparation, interaction and measurement, verification.

• Client's preparation: The partially quantum client prepares the quantum states with embedded traps qubits and sends them to the server for creation of the cylinder brickwork state.
• For the server to create a cylinder brickwork state, the client prepares ${\displaystyle m}$ single qubit states. The first ${\displaystyle n}$ qubit input states are specially encoded and Quantum one time pad is applied to these states with randomly chosen keys.
• Then the client randomly selects one qubit as the trap qubit and corresponding to the graph of cylinder brickwork state, all the other qubits in the tape are set as the dummy qubits. The trap qubit is prepared with the local phase angle set to ${\displaystyle 0}$. The dummy qubits isolate the trap qubit from the graph state.
• The remaining non-input qubit states (not including the dummy states and trap qubit) are prepared with randomly chosen local phase angles.
• The client then sends all the prepared qubits in the respective order to the server so the graph state can be constructed.
• Server's Preparation: The server receives the qubits in a sequential order of rows and columns till all ${\displaystyle m}$ qubits are received. The server then entangles them according to the cylinder brickwork state (using CZ gate).
• Interaction and Measurement: This step is exactly the same as for Prepare-and-Send Universal Blind Quantum Computation.
• For a specific computation, MBQC decides which measurement angle is selected along with some extra Pauli X, Z corrections for every qubit. The correction sets are unique for every graph state and depend on the previous measurement. These can obtained from flow construction. The qubits have a randomly chosen local phase angle and hence the same local phase angle is used for computation as well as for output correction. To hide the state, a randomly chosen ${\displaystyle \pi }$ rotation which may or may not be added. From all the above-mentioned conditions, a final measurement angle is formed and the client sends a classical message to the server to inform the server about the final measurement basis (in (X, Y) plane) in which they should measure the corresponding qubit. Thus it reveals no information about the underlying computation.
• The server sends the classical output of each non-input qubit's measurement to the client. The client considers the ${\displaystyle \pi }$ rotation to get the corrected output. The client also uses this to calculate the measurement angle for the next qubit and thus repeats the process until the last output qubits are reached.
• Verification: The verification is carried on by the client by comparing the outcome of the trap qubit measurements with the expected outcome.
• For Quantum outputs:
• The server sends all the output qubits to the client.
• From these output qubits, the client performs a measurement on the trap qubit. If the output is equal to the expected outcome, the computation is verified. Otherwise, it is rejected.
• If the computation is accepted, output correction is performed on the other output qubits (except the trap qubit).
• For Classical outputs:
• The server continues performing measurements on the output qubits with the measurement angles sent by the server.
• The client compares the output of the trap qubit with the expected output. If it is equal, computation is verified. Otherwise, it is rejected. If the computation is accepted, the client accepts the other output measurement results as the computation result.

## Notation

• ${\displaystyle n}$: Total number of input qubits. Also total number of output qubits in quantum outputs.
• ${\displaystyle m}$: Total number of qubits in the graph state.
• ${\displaystyle |I\rangle }$: ${\displaystyle n}$ qubit input state.
• ${\displaystyle |e\rangle }$: Encoded ${\displaystyle n}$ qubit input state.
• ${\displaystyle x}$: Set of random bits used in encoding ${\displaystyle |I\rangle }$ via quantum one time pad.
• ${\displaystyle t}$: Trap qubit position vertex in the graph state.
• ${\displaystyle D}$: Set of all position vertices in the tape of the cylinder brickwork state.
• ${\displaystyle \theta _{i}}$: Random local phase angles for qubit ${\displaystyle i}$.
• ${\displaystyle |+\rangle _{\theta _{i}}}$: ${\displaystyle {\frac {1}{\sqrt {2}}}(|0\rangle +e^{i\theta _{i}}|1\rangle )}$
• ${\displaystyle \phi _{i}}$: True measurement angle for qubit ${\displaystyle i}$. This is assigned corresponding to the graph state.
• ${\displaystyle r\in \{0,1\}}$: randomly chosen parameter for ${\displaystyle \pi }$ rotation in order to hide classical output.
• ${\displaystyle N_{g}(k)}$: Denotes neighborhood of vertex k in graph state
• ${\displaystyle f}$: Function which defines flow from measured qubits to noninput qubits, ${\displaystyle f:}$ output vertices ${\displaystyle {\xrightarrow {}}}$ input vertices
• ${\displaystyle \theta _{i}^{'}}$: Updated version of Random local phase angle for qubit ${\displaystyle i}$.
• ${\displaystyle \delta _{i}}$: Final measurement angle for qubit ${\displaystyle i}$.
• ${\displaystyle b_{i}}$: Measurement output by the server.
• ${\displaystyle s}$: Sequence of length m describing the result of the nonoutput measurements. ${\displaystyle s_{i}\in \{0,1\}}$

## Requirements

• Quantum computation resources for the server.
• A quantum channel from the client to the server to transfer initial quantum states.
• Classical channel from the client to the server to transfer measurement angles and outputs.
• Measurement devices for the server.
• Measurement devices for the client in case of quantum outputs.

## Properties

• The client is partially quantum and should be able to prepare the given initial quantum states.
• Security: This protocol is secure against malicious adversary setting and also detects a cheating server.
• Universality: This protocol is universal in nature. The universality of the cylinder brickwork state guarantees that the server’s knowledge about the graph does not reveal anything about the underlying computation.
• Correctness If Client and Server follow the protocol as described above, the outcome will be correct.
• Blindness: This protocol is blind in nature, only revealing ${\displaystyle n}$ and ${\displaystyle m}$.
• This protocol requires no quantum memory for the client.
• This protocol is ${\displaystyle 1-{\frac {1}{2m}}}$ verifiable in quantum output case.
• This protocol is ${\displaystyle 1-{\frac {1}{m}}}$ verifiable in classical output case.
• The trap qubit in the tape format of the cylinder brickwork state remains disentangled from the rest of the graph.
• Every qubit of the underlying graph could potentially be an isolated trap qubit.

## Protocol Description

Protocol for quantum output case:

Stage 1: Client's preparation:

Input: Cylindrical brickwork state, ${\displaystyle |I\rangle }$.
Output: Server: ${\displaystyle m}$ qubits sequentially.

• The client prepares ${\displaystyle |e\rangle =X_{1}^{x1}Z_{1}(\theta _{1})\otimes ...\otimes X_{n}^{xn}Z_{n}(\theta _{n})|I\rangle }$ using QOTP.
• Client randomly chooses ${\displaystyle t}$, where ${\displaystyle t\in D}$.
• For ${\displaystyle i=n+1,n+2,....m}$ (non-input qubits):
• if ${\displaystyle i\in D}$:
• if ${\displaystyle i!=t}$ then state ${\displaystyle |0\rangle }$ or ${\displaystyle |1\rangle }$ is prepared
• if ${\displaystyle i==t}$ then ${\displaystyle |+\rangle _{\theta _{i}}}$ is prepared
• else ${\displaystyle |+\rangle _{\theta _{i}}}$ is prepared
• ${\displaystyle \forall l\epsilon \{1,..,n\}}$, Client sends all qubits to server.

Stage 2: Server's preparation:
Input: ${\displaystyle m}$ qubits sequentially.
Output: entangled graph state with a disentangled trap qubit.

• Server creates an entangled state from all received qubits using CZ operations according to their indices and creates the cylinder brickwork state.

Stage 3: Interaction and Measurement:
Input: ${\displaystyle \delta _{i}}$
Output: ${\displaystyle s_{i}}$

• For ${\displaystyle i=1,2,...m-n}$ (received qubits):
• Client computes ${\displaystyle \phi _{i}}$.
• if ${\displaystyle i==t}$, then ${\displaystyle \phi _{i}=0}$
• Client randomly selects ${\displaystyle r_{i}}$ and generates ${\displaystyle \theta '_{i}=\theta _{i}+r_{i}}$.
• Client then computes the angle ${\displaystyle \delta _{i}=(-1)^{x_{i}+s_{f^{-1}(i)}}\phi _{i}+\sum _{j:i\in N_{g}(f(j)}\theta '_{i}+s_{i}\pi }$ and sends ${\displaystyle \delta _{i}}$ to server.
• Server measures ${\displaystyle i}$ and sends ${\displaystyle b_{i}}$ to client.
• Client sets the value ${\displaystyle s_{i}=b_{i}\oplus r_{i}}$ in ${\displaystyle s}$

Stage 4: Verification:
Input: Output qubits ${\displaystyle m-n+1}$ to ${\displaystyle m}$
Output: Verification result

• For ${\displaystyle i=m-n+1,...m}$ (output qubits):
• Server sends ${\displaystyle i}$ to client.
• Client measures the output trap qubit ${\displaystyle t}$ (which was disentangled) with angle ${\displaystyle \delta _{t}=\phi _{t}+r_{t}\pi }$.
• Client obtains the result ${\displaystyle b_{t}}$.
• If ${\displaystyle b_{t}==r_{t}}$, then computation is accepted.
• else, computation is rejected.

## Further Information

*contributed by Rhea Parekh