35 lines
1.6 KiB
Plaintext
35 lines
1.6 KiB
Plaintext
---
|
||
title: QOTP
|
||
description: API reference for qiskit.ignis.verification.QOTP
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.ignis.verification.QOTP
|
||
---
|
||
|
||
# qiskit.ignis.verification.QOTP
|
||
|
||
<Function id="qiskit.ignis.verification.QOTP" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-ignis/tree/stable/0.6/qiskit/ignis/verification/accreditation/qotp.py" signature="QOTP(circ, num, two_qubit_gate='cx', coupling_map=None, seed=None)">
|
||
Performs a QOTP (or random compilation) on a generic circuit.
|
||
|
||
This is essentially the same protocol as used in randomized compiling, but follows the methods in Samuele Ferracin, Theodoros Kapourniotis and Animesh Datta New Journal of Physics, Volume 21, November 2019 [https://iopscience.iop.org/article/10.1088/1367-2630/ab4fd6](https://iopscience.iop.org/article/10.1088/1367-2630/ab4fd6)
|
||
|
||
**Parameters**
|
||
|
||
* **circ** ([*QuantumCircuit*](qiskit.circuit.QuantumCircuit "qiskit.circuit.QuantumCircuit")) – A generic quantum circuit
|
||
* **num** (*int*) – the number of one-time pads to return
|
||
* **two\_qubit\_gate** (*string*) – a flag as to which 2 qubit gate to compile with, can be cx or cz
|
||
* **coupling\_map** (*list*) – a particular device topology as a list of list (e.g. \[\[0,1],\[1,2],\[2,0]])
|
||
* **seed** (*int*) – seed to the random number generator
|
||
|
||
**Returns**
|
||
|
||
**a tuple of type (`qotp_circ`, `qotp_postp`) where:**
|
||
|
||
qotp\_circs (list): a list of circuits with qotp applied qotp\_postps (list): a list of arrays specifying the one time pads
|
||
|
||
**Return type**
|
||
|
||
tuple
|
||
</Function>
|
||
|