# Cross-Platform verification of Intermediate Scale Quantum Devices

This protocol is used to perform cross-platform verification of quantum simulators and quantum computers. This is used to directly measure the overlap and purities of two quantum states prepared in two different physical platforms and thus used to measure the fidelity of two possibly mixed states. This protocol infers the cross-platform fidelity of two quantum states from statistical correlations between the randomized measurements performed on the two different devices.

**Tags:** Certification Protocol, Cross-Platform Fidelity, Building Trust, Two devices

## Contents

## Assumptions[edit]

- There are no prior assumptions on the quantum states.
- The spin values for the two quantum devices are known.

## Outline[edit]

The aim here to perform cross-platform verification by measuring the overlap of quantum states produced with two different experimental setups, potentially realized on very different physical platforms, without any prior assumptions on the quantum states themselves. This can be used to whether two quantum devices have prepared the same quantum state. Here, the cross-platform fidelity is inferred from the statistical correlations between randomized measurements performed on the first and second device.

This protocol to measure the cross-platform fidelity of two quantum states requires only classical communication of random unitaries and measurement outcomes between the two platforms, with the experiments possibly taking place at very different points in time and space.

This protocol consists of the following steps:

- We start with two quantum devices which are based on different physical platforms, each consisting of two different spins. Two quantum operations are prepared in these quantum devices, which are each described by a density matrix.
- We find the reduced density matrices for the sub-systems of identical size for each device using partial trace operator over that sub-system.
- We apply a same random unitary is applied to the two quantum states. This random unitary is defined as the product of local random unitaries acting on all spins of the subsystem. Here, the local random unitaries are sampled independently from a unitary 2-design defined on the local Hilbert space and sent via classical communication to both devices.
- Now projective measurements in a computational basis are performed for both the systems.
- Repeating these measurements for the fixed random unitary provides us with the estimates of probability of measurement outcomes for the both the states.
- This entire procedure is then repeated for many different random unitaries.
- Finally we estimate the density matrix from the second order cross-correlations between the two platforms using the ensemble average of probabilities over random unitaries from the above procedure.
- The purities for the two sub systems are obtained as second-order auto-correlations of the probabilities.

## Notation[edit]

- : Finite number of projective measurements performed per random unitary
- : Finite number of random unitaries used to infer overlap
- : Fixed value of statistical error
- : Two devices realised on different physical platforms
- : Spins consisted in and respectively
- : Quantum operation prepared in and respectively
- : Density matrices of and respectively
- : Reduced density matrices
- : Sub system of identical size where
- : Size of subset . Subsets and have the equal size
- : Associated Hilbert space dimension,
- : Random unitary
- : Local random unitaries acting on spins . Here, the are sampled independently from a unitary 2-design defined on the local Hilbert space
- : Spin
- : This denotes a string of possible measurement outcomes for spins.
- : Estimate of probabilities of measurement outcome for different spins.
- : The ensemble average over random unitaries of the form
- : Hamming distance between two strings is defined as the number of spins where i.e.
- : Cross platform fidelity between two quantum states

## Hardware Requirements[edit]

- Two quantum devices on two different physical platforms
- Trusted Measurement device.
- Classical communication channel

## Properties[edit]

**Figure of merit**: Cross-platform fidelity of two quantum states- We can estimate the density matrix overlap of two quantum states here as well as their purities.
- The present protocol scales, although exponentially, much more favorably with the (sub)system size, allowing practical cross-platform verification for (sub)systems involving tens of qubits on state-of-the-art quantum devices.
- This protocol can be used to perform fidelity estimation towards known target theoretical states, as an experiment-theory comparison.
- In practice, from a finite number of projective measurements performed per random unitary (), a statistical error of the estimated fidelity arises. With that, a finite number () of random unitaries used to infer overlap and purities can also cause a statistical error while estimating fidelity. Therefore, the scaling of the total number of experimental runs , which are required to reduce this statistical error below a fixed value of
- In the regime and , the average statistical error . For unit target fidelity, the optimal allocation of the total measurement budget is thus to keep small and fixed.
- The fidelity estimation of PR (entangled) states is thus less prone to statistical errors which we attribute to the fact that fluctuations across random unitaries are reduced due to the mixedness of the subsystems.
- The optimal allocation of vs. for given depends on the quantum states, in particular their fidelity and the allowed statistical error ,and is thus a priori not known
- In larger quantum systems, it gives access to the fidelities of all possible subsystems up to a given size – determined by the accepted statistical error and the measurement budget – and thus enables a fine-grained comparison of large quantum systems.

## Protocol Description[edit]

**Input**: with spins

**Output**: Cross platform fidelity

- Prepare with density matrices in and respectively.
- Denote in as for
- For
- For spin :
- Sample independently from a unitary 2-design
- Send classically to and

- For :
- Apply to in
- For :
- Perform projective measurements in a computational basis in
- Obtain

- Get estimates of probabilities

- For spin :
- Obtain and
- Define Tr
- For density matrix overlap:
- Substitute , to get Tr

- For the purities of the quantum states:
- Substitute for Tr
- Substitute for Tr

- Calculate using:

## Further Information[edit]

- In principle, the cross-platform fidelity can be determined from full quantum state tomography of the two quantum devices. However due to the exponential scaling with the (sub)system size, this approach is limited to only a few degrees of freedom, In contrast, as demonstrated below, the present protocol scales, although exponentially, much more favorably with the (sub)system size, allowing practical cross-platform verification for (sub)systems involving tens of qubits on state-of-the-art quantum devices.
- Significantly fewer measurements are required here than full quantum state tomography.

## Related Papers[edit]

- A.Elben et al (2020) arXiv:1909.01282: Cross-Platform Verification of Intermediate Scale Quantum Devices

**contributed by Rhea Parekh*