qiskit.ignis.verification.AccreditationCircuits¶

class
AccreditationCircuits
(target_circ, two_qubit_gate='cx', coupling_map=None, seed=None)[source]¶ This class generates accreditation circuits from a target.
Implementation follows the methods from Samuele Ferracin, Theodoros Kapourniotis and Animesh Datta New Journal of Physics, Volume 21, November 2019 https://iopscience.iop.org/article/10.1088/13672630/ab4fd6
Initialize the circuit generation class parse into layers
 Parameters
target_circ (QuantumCircuit) – a qiskit circuit to accredit
two_qubit_gate (string) – a flag as to which 2 qubit gate to compile with, can be cx or cz
coupling_map (list) – some particular device topology as list of list (e.g. [[0,1],[1,2],[2,0]])
seed (int) – seed to the random number generator

__init__
(target_circ, two_qubit_gate='cx', coupling_map=None, seed=None)[source]¶ Initialize the circuit generation class parse into layers
 Parameters
target_circ (QuantumCircuit) – a qiskit circuit to accredit
two_qubit_gate (string) – a flag as to which 2 qubit gate to compile with, can be cx or cz
coupling_map (list) – some particular device topology as list of list (e.g. [[0,1],[1,2],[2,0]])
seed (int) – seed to the random number generator
Methods
__init__
(target_circ[, two_qubit_gate, …])Initialize the circuit generation class parse into layers
generate_circuits
(num_trap)Generate quantum circuits for accreditation
target_circuit
(target_circ[, …])Load target circuit in to class, and parse into layers

generate_circuits
(num_trap)[source]¶ Generate quantum circuits for accreditation
 Parameters
num_trap (int) – number of trap circuits
 Returns
 A tuple of the form
(
circuit_list
, postp_list`,v_zero
) where: circuit_list (list): accreditation circuits postp_list (list): strings used for classical postprocessing v_zero (int): position of target circuit
 Return type
tuple

target_circuit
(target_circ, two_qubit_gate='cx', coupling_map=None)[source]¶ Load target circuit in to class, and parse into layers
 Parameters
target_circ (QuantumCircuit) – a qiskit circuit to accredit
two_qubit_gate (string) – a flag as to which 2 qubit gate to compile with, can be cx or cz
coupling_map (list) – some particular device topology as list of list (e.g. [[0,1],[1,2],[2,0]])