Open stand-by opened 3 weeks ago
Add new method .clone() to make a deep copy of our c++ bindings fp.Pauli fp.PauliString fp.PauliOp fp.SummedPauliOp
.clone()
fp.Pauli fp.PauliString fp.PauliOp fp.SummedPauliOp
op = fp.PauliOp(["XYZ", "ZYX"]) op2 = op.clone() op2.coeffs[0] = 2.0 op2.coeffs[1] = 3.0 assert all(op2.coeffs != op.coeffs)
Summary/Motivation
Add new method
.clone()
to make a deep copy of our c++ bindingsfp.Pauli fp.PauliString fp.PauliOp fp.SummedPauliOp
Details of the Feature