question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

assign_parameters and bind_parameters do almost the same thing. Can they be merged?

See original GitHub issue

mostly 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:open
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
1ucian0commented, Sep 23, 2021

Let’s allow some time for discussion on the preferred direction first, if you don’t mind.

0reactions
wyqian1027commented, Dec 13, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found