37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
---
|
||
title: summarize_circuits (v0.31)
|
||
description: API reference for qiskit.utils.summarize_circuits in qiskit v0.31
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.utils.summarize_circuits
|
||
---
|
||
|
||
<span id="qiskit-utils-summarize-circuits" />
|
||
|
||
# qiskit.utils.summarize\_circuits
|
||
|
||
<Function id="qiskit.utils.summarize_circuits" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/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>
|
||
|