You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QSystem.copy() does not create copies of entire term list, instead only copying over the last created term added to the system
How can we reproduce the issue?
q = qg.Qubit(frequency=1)
c = qg.Cavity(frequency=1)
total_system = q + c
total_system.createTerm(qSystem=[q, c], operator=[qg.sigmam, qg.create])
total_system.createTerm(qSystem=[q, c], operator=[qg.sigmap, qg.destroy])
total_system_copy = total_system.copy()
print(total_system.terms)
print(total_system_copy.terms)
print()
print([term.operator for term in total_system.terms.values()])
print([term.operator for term in total_system_copy.terms.values()])
What should happen?
All of the terms of the original system should be copied over
Please put error messages in this block
No response
Any suggestions?
No response
The text was updated successfully, but these errors were encountered:
Platform and Environment
What is happening?
QSystem.copy() does not create copies of entire term list, instead only copying over the last created term added to the system
How can we reproduce the issue?
What should happen?
All of the terms of the original system should be copied over
Please put error messages in this block
No response
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: