Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.depth

QuantumCircuit.depth(filter_function=<function QuantumCircuit.<lambda>>)[código fonte]

Return circuit depth (i.e., length of critical path).

Parâmetros

filter_function (callable) – A function to filter instructions. Should take as input a tuple of (Instruction, list(Qubit), list(Clbit)). Instructions for which the function returns False are ignored in the computation of the circuit depth. By default filters out «directives», such as barrier or snapshot.

Retorno

Depth of circuit.

Tipo de retorno

int

Notes

The circuit depth and the DAG depth need not be the same.