Commit bfa2331
authored
Don't reject non-const duration in constructors. (#14009)
Originally, I thought it'd make the most sense to reject
construction of operations that'd have a duration type
but also be non-const expressions. But, a user can
currently create a `Var` with a duration type, so this
seems like an incomplete restriction.1 parent 07e61c8 commit bfa2331
2 files changed
Lines changed: 0 additions & 24 deletions
File tree
- qiskit/circuit/classical/expr
- test/python/circuit/classical
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | 686 | | |
691 | 687 | | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | 688 | | |
697 | 689 | | |
698 | 690 | | |
| |||
761 | 753 | | |
762 | 754 | | |
763 | 755 | | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | 756 | | |
769 | 757 | | |
770 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | 811 | | |
819 | 812 | | |
820 | 813 | | |
| |||
924 | 917 | | |
925 | 918 | | |
926 | 919 | | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
0 commit comments