cunqa.circuit.is_parametric

cunqa.circuit.is_parametric(circuit)

Function to determine weather a cirucit has gates that accept parameters, not necesarily parametric <class ‘qiskit.circuit.quantumcircuit.QuantumCircuit’>. For example, a circuit that is composed by hadamard and cnot gates is not a parametric circuit; but if a circuit has any of the gates defined in parametric_gates we consider it a parametric circuit for our purposes.

Args:

circuit (<class ‘qiskit.circuit.quantumcircuit.QuantumCircuit’>, dict or str): the circuit from which we want to find out if it’s parametric.

Return:

True if the circuit is considered parametric, False if it’s not.