Spanish
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.depth

QuantumCircuit.depth(filter_function=<function QuantumCircuit.<lambda>>)[fuente]

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

Parámetros

filter_function (callable) – a function to filter out some instructions. Should take as input a tuple of (Instruction, list(Qubit), list(Clbit)). By default filters out «directives», such as barrier or snapshot.

Devuelve

Depth of circuit.

Tipo del valor devuelto

int

Notas

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