qiskit-documentation/docs/api/qiskit/0.31/qiskit.ignis.verification.c...

39 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: count_gates (v0.31)
description: API reference for qiskit.ignis.verification.count_gates in qiskit v0.31
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.ignis.verification.count_gates
---
<span id="qiskit-ignis-verification-count-gates" />
# qiskit.ignis.verification.count\_gates
<Function id="qiskit.ignis.verification.count_gates" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-ignis/tree/stable/0.6/qiskit/ignis/verification/randomized_benchmarking/rb_utils.py" signature="count_gates(qobj, basis, qubits)">
Take a compiled qobj and output the number of gates in each circuit.
**Parameters**
* **qobj** (*QasmQObj*) compiled qobj.
* **basis** (*list*) gates basis for the qobj.
* **qubits** (*list*) qubits to count over.
**Returns**
n x l x m list of number of gates.
> * n: number of circuits,
> * l: number of qubits,
> * m: number of gates in basis.
**Return type**
list
## Additional Information:
nQ gates are counted in each qubits set of gates.
</Function>