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
Pauli sum 0.091*Z(0)*Z(1)+0.232*I
Cirq [(0.31926170580659224+0j)]
Cirq only first term [(0.08682648737150046+0j)]
qsim [(0.08682648737150046+0j)]
Qiskit [0.31926171]
Cirq's simulator output is consistent with Qiskit's. While qsim's output is as if the 0.232*I term is nonexistent.
The text was updated successfully, but these errors were encountered:
rht
changed the title
simulate_expectation_values: qsimcirq outputs wrong result when one qubit is left intact / unused
simulate_expectation_values: qsimcirq outputs wrong result when the Pauli sum contains an identity Pauli string
Sep 27, 2023
I tested with a new circuit, circuit = cirq.Circuit(cirq.ry(0.3).on(q0), cirq.ry(0.2).on(q1)), where all qubits are used. Even with this, qsim's result ignores 0.232*I.
This is on qsimcirq==0.13.3. Sorry, I'm still on an outdated qsimcirq because of the RAM requirement of the latest qsimcirq (#612). On latest qsim, this is no longer a problem.
This is my code to test the problem:
Output:
Cirq's simulator output is consistent with Qiskit's. While qsim's output is as if the
0.232*I
term is nonexistent.The text was updated successfully, but these errors were encountered: