-
Notifications
You must be signed in to change notification settings - Fork 376
Add a parameters method to the operators #1090
Comments
Hi @Cryoris |
It's a method here: https://github.com/Qiskit/qiskit-terra/blob/76f21b011171486ccc77775ea29f51be196755e2/qiskit/circuit/quantumcircuit.py#L1645 In an |
I see that the OperatorBase class can accept coefficients of different types like int, float etc. Is the code expected to return all those coefficients for this feature request? Also, if it does contain the ParamterExpression, is it supposed to return the ParamterExpression object? |
It's supposed to only return the |
Closed as solved by #1194 |
What is the expected behavior?
Calling
QuantumCircuit.parameters
returns a set of theParameter
objects in the circuit.The
OperatorBase
should support this too, since it too can be parameterized.The text was updated successfully, but these errors were encountered: