cirq-core 1.5.0.dev20240830211827__py3-none-any.whl → 1.5.0.dev20240830235756__py3-none-any.whl
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.
Potentially problematic release.
This version of cirq-core might be problematic. Click here for more details.
- cirq/_version.py +1 -1
- cirq/_version_test.py +1 -1
- cirq/experiments/xeb_fitting_test.py +5 -2
- cirq/experiments/xeb_simulation_test.py +5 -2
- {cirq_core-1.5.0.dev20240830211827.dist-info → cirq_core-1.5.0.dev20240830235756.dist-info}/METADATA +1 -1
- {cirq_core-1.5.0.dev20240830211827.dist-info → cirq_core-1.5.0.dev20240830235756.dist-info}/RECORD +9 -9
- {cirq_core-1.5.0.dev20240830211827.dist-info → cirq_core-1.5.0.dev20240830235756.dist-info}/LICENSE +0 -0
- {cirq_core-1.5.0.dev20240830211827.dist-info → cirq_core-1.5.0.dev20240830235756.dist-info}/WHEEL +0 -0
- {cirq_core-1.5.0.dev20240830211827.dist-info → cirq_core-1.5.0.dev20240830235756.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
cirq/_version_test.py
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
|
+
|
|
14
15
|
import itertools
|
|
15
16
|
import multiprocessing
|
|
16
17
|
from typing import Iterable
|
|
@@ -36,6 +37,8 @@ from cirq.experiments.xeb_fitting import (
|
|
|
36
37
|
)
|
|
37
38
|
from cirq.experiments.xeb_sampling import sample_2q_xeb_circuits
|
|
38
39
|
|
|
40
|
+
_POOL_NUM_PROCESSES = min(4, multiprocessing.cpu_count())
|
|
41
|
+
|
|
39
42
|
|
|
40
43
|
@pytest.fixture(scope='module')
|
|
41
44
|
def circuits_cycle_depths_sampled_df():
|
|
@@ -229,7 +232,7 @@ def test_characterize_phased_fsim_parameters_with_xeb():
|
|
|
229
232
|
characterize_phi=False,
|
|
230
233
|
)
|
|
231
234
|
p_circuits = [parameterize_circuit(circuit, options) for circuit in circuits]
|
|
232
|
-
with multiprocessing.Pool() as pool:
|
|
235
|
+
with multiprocessing.Pool(_POOL_NUM_PROCESSES) as pool:
|
|
233
236
|
result = characterize_phased_fsim_parameters_with_xeb(
|
|
234
237
|
sampled_df=sampled_df,
|
|
235
238
|
parameterized_circuits=p_circuits,
|
|
@@ -270,7 +273,7 @@ def test_parallel_full_workflow(use_pool):
|
|
|
270
273
|
)
|
|
271
274
|
|
|
272
275
|
if use_pool:
|
|
273
|
-
pool = multiprocessing.Pool()
|
|
276
|
+
pool = multiprocessing.Pool(_POOL_NUM_PROCESSES)
|
|
274
277
|
else:
|
|
275
278
|
pool = None
|
|
276
279
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
|
+
|
|
14
15
|
import multiprocessing
|
|
15
16
|
from typing import Dict, Any, Optional
|
|
16
17
|
from typing import Sequence
|
|
@@ -23,6 +24,8 @@ import cirq
|
|
|
23
24
|
import cirq.experiments.random_quantum_circuit_generation as rqcg
|
|
24
25
|
from cirq.experiments.xeb_simulation import simulate_2q_xeb_circuits
|
|
25
26
|
|
|
27
|
+
_POOL_NUM_PROCESSES = min(4, multiprocessing.cpu_count())
|
|
28
|
+
|
|
26
29
|
|
|
27
30
|
def test_simulate_2q_xeb_circuits():
|
|
28
31
|
q0, q1 = cirq.LineQubit.range(2)
|
|
@@ -42,7 +45,7 @@ def test_simulate_2q_xeb_circuits():
|
|
|
42
45
|
assert len(row['pure_probs']) == 4
|
|
43
46
|
assert np.isclose(np.sum(row['pure_probs']), 1)
|
|
44
47
|
|
|
45
|
-
with multiprocessing.Pool() as pool:
|
|
48
|
+
with multiprocessing.Pool(_POOL_NUM_PROCESSES) as pool:
|
|
46
49
|
df2 = simulate_2q_xeb_circuits(circuits, cycle_depths, pool=pool)
|
|
47
50
|
|
|
48
51
|
pd.testing.assert_frame_equal(df, df2)
|
|
@@ -130,7 +133,7 @@ def test_incremental_simulate(multiprocess):
|
|
|
130
133
|
cycle_depths = np.arange(3, 100, 9, dtype=np.int64)
|
|
131
134
|
|
|
132
135
|
if multiprocess:
|
|
133
|
-
pool = multiprocessing.Pool()
|
|
136
|
+
pool = multiprocessing.Pool(_POOL_NUM_PROCESSES)
|
|
134
137
|
else:
|
|
135
138
|
pool = None
|
|
136
139
|
|
{cirq_core-1.5.0.dev20240830211827.dist-info → cirq_core-1.5.0.dev20240830235756.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cirq-core
|
|
3
|
-
Version: 1.5.0.
|
|
3
|
+
Version: 1.5.0.dev20240830235756
|
|
4
4
|
Summary: A framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
|
|
5
5
|
Home-page: http://github.com/quantumlib/cirq
|
|
6
6
|
Author: The Cirq Developers
|
{cirq_core-1.5.0.dev20240830211827.dist-info → cirq_core-1.5.0.dev20240830235756.dist-info}/RECORD
RENAMED
|
@@ -4,8 +4,8 @@ cirq/_compat_test.py,sha256=Qq3ZcfgD-Nb81cEppQdJqhAyrVqXKtfXZYGXT0p-Wh0,34718
|
|
|
4
4
|
cirq/_doc.py,sha256=yDyWUD_2JDS0gShfGRb-rdqRt9-WeL7DhkqX7np0Nko,2879
|
|
5
5
|
cirq/_import.py,sha256=p9gMHJscbtDDkfHOaulvd3Aer0pwUF5AXpL89XR8dNw,8402
|
|
6
6
|
cirq/_import_test.py,sha256=6K_v0riZJXOXUphHNkGA8MY-JcmGlezFaGmvrNhm3OQ,1015
|
|
7
|
-
cirq/_version.py,sha256=
|
|
8
|
-
cirq/_version_test.py,sha256=
|
|
7
|
+
cirq/_version.py,sha256=f5oLqyBAUdRa36UE8hw7XZVryCysVQbeVszuMyuOZ30,1206
|
|
8
|
+
cirq/_version_test.py,sha256=Za4raE_X44VsxbqCxuBN34gb7cTUDSbyoAIG1gzxBUU,147
|
|
9
9
|
cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
|
|
10
10
|
cirq/json_resolver_cache.py,sha256=ytePZtNZgKjOF2NiVpUTuotB-JKZmQNOFIFdvXqsxHw,13271
|
|
11
11
|
cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
|
|
@@ -199,11 +199,11 @@ cirq/experiments/t2_decay_experiment_test.py,sha256=DFR0BGn0Id4qNPfqIExj70TEAqf7
|
|
|
199
199
|
cirq/experiments/two_qubit_xeb.py,sha256=N2X9N1A6hRS2Xe4zcmLJTyZ80DKDB0Pmv2fN4-UOU_s,19943
|
|
200
200
|
cirq/experiments/two_qubit_xeb_test.py,sha256=ZeZvClUAB8ir42Bd3PWr-s0_-QKWbFdYqfvvOMawsm0,10204
|
|
201
201
|
cirq/experiments/xeb_fitting.py,sha256=tD678gTY495cDA6b55YIPdwq22VQFbB2AlnkeX_X9P0,29332
|
|
202
|
-
cirq/experiments/xeb_fitting_test.py,sha256=
|
|
202
|
+
cirq/experiments/xeb_fitting_test.py,sha256=zjLAPc_0O2Qj-0nzd7qIwPtHBsZV3Fq_CUnHizz7628,15384
|
|
203
203
|
cirq/experiments/xeb_sampling.py,sha256=6ZOidGi7Kt6p4cMQCjK7qQuIUXVHCYl47B2GnL8M-Bw,14987
|
|
204
204
|
cirq/experiments/xeb_sampling_test.py,sha256=0XkQGvcURsug3IblE_wZrHVDoOQV3WuQilrqCJbDHjI,6784
|
|
205
205
|
cirq/experiments/xeb_simulation.py,sha256=yML2NAnYTRFG1wsQHvxtNEGEMXuExbWjrE2JYuCqnrk,5076
|
|
206
|
-
cirq/experiments/xeb_simulation_test.py,sha256=
|
|
206
|
+
cirq/experiments/xeb_simulation_test.py,sha256=C2aVmUNwmqZAtduHUuBQUbgxMMgb1wnugIlNq9uEFe0,5547
|
|
207
207
|
cirq/interop/__init__.py,sha256=zYD7hdcL5qUZ2MDzmCRZ7CgfCZ048fMKtJXCW7GMK_Y,722
|
|
208
208
|
cirq/interop/quirk/__init__.py,sha256=rGKgFDaKFSHdGTEw5iD4GCg_SKzbAfA1qcr4t2lPlZI,1092
|
|
209
209
|
cirq/interop/quirk/url_to_circuit.py,sha256=1ToWnFJdJIhCko9q62BEvOoCGxCpOUl8891IdCa52MM,14211
|
|
@@ -1184,8 +1184,8 @@ cirq/work/sampler.py,sha256=JEAeQQRF3bqlO9AkOf4XbrTATDI5f5JgyM_FAUCNxao,19751
|
|
|
1184
1184
|
cirq/work/sampler_test.py,sha256=B2ZsuqGT854gQtBIAh8k0LiG9Vj5wSzcGvkxOUoTcW4,13217
|
|
1185
1185
|
cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
|
|
1186
1186
|
cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
|
|
1187
|
-
cirq_core-1.5.0.
|
|
1188
|
-
cirq_core-1.5.0.
|
|
1189
|
-
cirq_core-1.5.0.
|
|
1190
|
-
cirq_core-1.5.0.
|
|
1191
|
-
cirq_core-1.5.0.
|
|
1187
|
+
cirq_core-1.5.0.dev20240830235756.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1188
|
+
cirq_core-1.5.0.dev20240830235756.dist-info/METADATA,sha256=kZva72qLSpg4tMC2pUsxtnuJS2H0T0eT9F2JH21-8Tc,1992
|
|
1189
|
+
cirq_core-1.5.0.dev20240830235756.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
1190
|
+
cirq_core-1.5.0.dev20240830235756.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1191
|
+
cirq_core-1.5.0.dev20240830235756.dist-info/RECORD,,
|
{cirq_core-1.5.0.dev20240830211827.dist-info → cirq_core-1.5.0.dev20240830235756.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_core-1.5.0.dev20240830211827.dist-info → cirq_core-1.5.0.dev20240830235756.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|