Skip to content

Commit

Permalink
Use np.complex128 for simulating xeb circuits
Browse files Browse the repository at this point in the history
  • Loading branch information
eliottrosenberg committed Jul 20, 2024
1 parent df20ade commit 03a8527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cirq-core/cirq/experiments/xeb_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def simulate_2q_xeb_circuits(
# Need an actual object; not np.random or else multiprocessing will
# fail to pickle the closure object:
# https://github.com/quantumlib/Cirq/issues/3717
simulator = sim.Simulator(seed=np.random.RandomState())
simulator = sim.Simulator(seed=np.random.RandomState(), dtype=np.complex128)
_simulate_2q_xeb_circuit = _Simulate_2q_XEB_Circuit(simulator=simulator)

tasks = tuple(
Expand Down

0 comments on commit 03a8527

Please sign in to comment.