本文整理汇总了Python中sympy.physics.quantum.operator.Operator.set方法的典型用法代码示例。如果您正苦于以下问题:Python Operator.set方法的具体用法?Python Operator.set怎么用?Python Operator.set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sympy.physics.quantum.operator.Operator
的用法示例。
在下文中一共展示了Operator.set方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Application
# 需要导入模块: from sympy.physics.quantum.operator import Operator [as 别名]
# 或者: from sympy.physics.quantum.operator.Operator import set [as 别名]
""" associating a root with our class"""
calculator = Application(root)
"""adding text"""
# calculator.add_text( None,"Please enter a mathematical expression, we will try to simplify it for you.", "Verdana 10 bold")
""" adding an entry where we put mathematical expressions"""
#calculator.add_rectangle(30,03,380,30,0,185)
#calculator.add_rectangle(30,03,380,30,385,185)
#calculator.add_rectangle(30,03,380,30,0,220)
#calculator.add_rectangle(30,03,380,30,385,220)
calculator.add_text_move(None, "Please provide the entries to below operator-matrices.", "Verdana 9 bold", 20, 0)
K_1entry = entry()
K_1 = StringVar(None)
K_1.set('K_1')
K_1entry.add_entry(50,35, K_1,20, rClicker)
M_1entry = entry()
M_1 = StringVar(None)
M_1.set('M_1')
M_1entry.add_entry(190,35, M_1,20, rClicker)
L_1entry = entry()
L_1 = StringVar(None)
L_1.set('L_1')
L_1entry.add_entry(50,75, L_1,20, rClicker)
Q_1entry = entry()
Q_1 = StringVar(None)
Q_1.set('Q_1-1')
Q_1entry.add_entry(190,75, Q_1,20, rClicker)
calculator.add_img("bra.gif", 30, 25)