Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

qiskit.ignis.verification.QOTP

QOTP(circ, num, two_qubit_gate='cx', coupling_map=None, seed=None)

GitHub

Performs a QOTP (or random compilation) on a generic circuit.

This is similar to randomized compiling, but follows the methods in [1].

Parameters

  • circ (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

Was this page helpful?
Report a bug or request content on GitHub.