stimcirq 1.15.dev1743876136__tar.gz → 1.15.dev1743893588__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/PKG-INFO +1 -1
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/setup.py +1 -1
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/__init__.py +1 -1
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_cirq_to_stim_test.py +7 -4
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq.egg-info/PKG-INFO +1 -1
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/README.md +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/setup.cfg +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_cirq_to_stim.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_cx_swap_gate.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_cx_swap_test.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_cz_swap_gate.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_cz_swap_test.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_det_annotation.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_det_annotation_test.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_ii_gate.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_measure_and_or_reset_gate.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_measure_and_or_reset_gate_test.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_obs_annotation.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_obs_annotation_test.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_shift_coords_annotation.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_shift_coords_annotation_test.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_stim_sampler.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_stim_sampler_test.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_stim_to_cirq.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_stim_to_cirq_test.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_sweep_pauli.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_sweep_pauli_test.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_two_qubit_asymmetric_depolarize.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_two_qubit_asymmetric_depolarize_test.py +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq.egg-info/SOURCES.txt +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq.egg-info/dependency_links.txt +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq.egg-info/requires.txt +0 -0
- {stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq.egg-info/top_level.txt +0 -0
|
@@ -183,7 +183,7 @@ def test_frame_simulator_sampling_noisy_gates_agrees_with_cirq_data(gate: cirq.G
|
|
|
183
183
|
allowed_variation = 5 * (expected_rate * (1 - expected_rate) / sample_count) ** 0.5
|
|
184
184
|
if not 0 <= expected_rate - allowed_variation <= 1:
|
|
185
185
|
raise ValueError("Not enough samples to bound results away from extremes.")
|
|
186
|
-
assert abs(expected_rate - actual_rate)
|
|
186
|
+
assert abs(expected_rate - actual_rate) <= allowed_variation, (
|
|
187
187
|
f"Sample rate {actual_rate} is over 5 standard deviations away from {expected_rate}.\n"
|
|
188
188
|
f"Gate: {gate}\n"
|
|
189
189
|
f"Test circuit:\n{circuit}\n"
|
|
@@ -230,7 +230,7 @@ def test_tableau_simulator_sampling_noisy_gates_agrees_with_cirq_data(gate: cirq
|
|
|
230
230
|
allowed_variation = 5 * (expected_rate * (1 - expected_rate) / sample_count) ** 0.5
|
|
231
231
|
if not 0 <= expected_rate - allowed_variation <= 1:
|
|
232
232
|
raise ValueError("Not enough samples to bound results away from extremes.")
|
|
233
|
-
assert abs(expected_rate - actual_rate)
|
|
233
|
+
assert abs(expected_rate - actual_rate) <= allowed_variation, (
|
|
234
234
|
f"Sample rate {actual_rate} is over 5 standard deviations away from {expected_rate}.\n"
|
|
235
235
|
f"Gate: {gate}\n"
|
|
236
236
|
f"Test circuit:\n{circuit}\n"
|
|
@@ -336,8 +336,11 @@ def test_on_loop():
|
|
|
336
336
|
repetitions=3,
|
|
337
337
|
)
|
|
338
338
|
)
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
result_normal = cirq.Simulator().run(c)
|
|
340
|
+
result_stim = stimcirq.StimSampler().run(c)
|
|
341
|
+
assert result_normal.records.keys() == result_stim.records.keys()
|
|
342
|
+
for k in result_normal.records.keys():
|
|
343
|
+
assert result_stim.records[k].shape == result_normal.records[k].shape
|
|
341
344
|
|
|
342
345
|
|
|
343
346
|
def test_multi_moment_circuit_operation():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_det_annotation_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_measure_and_or_reset_gate.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_obs_annotation_test.py
RENAMED
|
File without changes
|
{stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq/_shift_coords_annotation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stimcirq-1.15.dev1743876136 → stimcirq-1.15.dev1743893588}/stimcirq.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|