-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have
QuantumCircuit.store
do integer-literal type promotion (#12201)
* Have `QuantumCircuit.store` do integer-literal type promotion `QuantumCircuit.store` does convenience lifting of arbitary values to `expr.Expr` nodes. Similar to the binary-operation creators, it's convenient to have `QuantumCircuit.store` correctly infer the required widths of integer literals in the rvalue. This isn't full type inference, just a small amount of convenience. * Add integer-literal widening to `add_var` * Add no-widen test of `QuantumCircuit.add_var`
- Loading branch information
1 parent
b442b1c
commit aacd493
Showing
3 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters