qiskit-documentation/docs/api/qiskit/0.31/qiskit.aqua.utils.summarize...

37 lines
1.2 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: summarize_circuits (v0.31)
description: API reference for qiskit.aqua.utils.summarize_circuits in qiskit v0.31
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.aqua.utils.summarize_circuits
---
<span id="qiskit-aqua-utils-summarize-circuits" />
# qiskit.aqua.utils.summarize\_circuits
<Function id="qiskit.aqua.utils.summarize_circuits" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/aqua/utils/circuit_utils.py" signature="summarize_circuits(circuits)">
## Summarize circuits based on QuantumCircuit, and five metrics are summarized.
* Number of qubits
* Number of classical bits
* Number of operations
* Depth of circuits
* Counts of different gate operations
The average statistic of the first four is provided if multiple circuits are provided.
**Parameters**
**circuits** ([*QuantumCircuit*](qiskit.circuit.QuantumCircuit "qiskit.circuit.QuantumCircuit") *or \[*[*QuantumCircuit*](qiskit.circuit.QuantumCircuit "qiskit.circuit.QuantumCircuit")*]*) the to-be-summarized circuits
**Returns**
a formatted string records the summary
**Return type**
str
</Function>