Skip to content

Commit eab6819

Browse files
committed
Add warning when using real quantum theory
1 parent 5859000 commit eab6819

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inflation/sdp/InflationSDP.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ def __init__(self,
210210
+ " inflation, \nbut have not specified classical_sources=`all`." \
211211
+ "\nNote that the `commuting` keyword argument has been deprecated as of release 2.0.0"
212212
if real_qt:
213+
warn("Support for real quantum theory is experimental. " +
214+
"Use at your own risk.")
213215
assert not self.all_operators_commute, \
214216
"You appear to be requesting inflation assuming real quantum theory," \
215217
+ " but this is meaningless without noncommuting operators."

0 commit comments

Comments
 (0)