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.

qiskit.ignis.verification.AccreditationCircuits

class AccreditationCircuits(target_circ, two_qubit_gate='cx', coupling_map=None, seed=None)

GitHub

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/1367-2630/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__

__init__(target_circ, two_qubit_gate='cx', coupling_map=None, seed=None)

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

generate_circuits(num_trap)

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 post-processing v_zero (int): position of target circuit

Return type

tuple

target_circuit

target_circuit(target_circ, two_qubit_gate='cx', coupling_map=None)

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]])
Was this page helpful?
Report a bug or request content on GitHub.