assign_parameters and bind_parameters do almost the same thing. Can they be merged?
See original GitHub issuemostly the title, can qiskit.circuit.quantumcircuit.QuantumCircuit.assign_parameters
and qiskit.circuit.quantumcircuit.QuantumCircuit.bind_parameters
be merged? Their names do not highlight their differences.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Specifying parameters in the Using clause of an Oracle Merge ...
The Using clause is generated in a C# StringBuilder to accomodate a varying number of worker Id/Option pairs, while at the same time...
Read more >MERGE using parameter variables - Oracle Communities
Hi All, Can we use merge statement without using physical table as source? I will be passing all values as an input parameter...
Read more >SQL Bind Variables/Parameters in Databases
Bind parameters —also called dynamic parameters or bind variables—are an alternative way to pass data to the database. Instead of putting the values...
Read more >Merge parameters or variables of stored procedure into ...
One way to access input parameters of a stored procedure in a query within the stored procedure is to terminate the string in...
Read more >Merge Scripting and Parameterization phases in dynamic sql
So <bind /> will not work in loops as expected. My proposal is to extract any sql parameter in the scripting phase and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Let’s allow some time for discussion on the preferred direction first, if you don’t mind.
I would not want them to be merged. For example, suppose you have an ansatz that takes two Parameters. With assign_parameters, I can use assign to get a different quantum circuit each time without the need to rebuild the circuit. With bind_parameters, the circuit is now concrete, I could not reuse it to bind some other parameter. Then I will have to rebuild it from scratch. I think these two methods are different and both useful.