qiskit.ml.circuit.library.RawFeatureVector.num_connected_components¶
-
RawFeatureVector.
num_connected_components
(unitary_only=False)¶ How many non-entangled subcircuits can the circuit be factored to.
- Parameters
unitary_only (bool) – Compute only unitary part of graph.
- Returns
Number of connected components in circuit.
- Return type
int