cirq-core 1.4.0.dev20240119173356__py3-none-any.whl → 1.4.0.dev20240119190122__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "1.4.0.dev20240119173356"
1
+ __version__ = "1.4.0.dev20240119190122"
@@ -693,7 +693,9 @@ def _create_parallel_rb_circuit(
693
693
  num_moments = max(len(sequence) for sequence in sequences_to_zip)
694
694
  for q, sequence in zip(qubits, sequences_to_zip):
695
695
  if (n := len(sequence)) < num_moments:
696
- sequence.extend([ops.SingleQubitCliffordGate.I(q)] * (num_moments - n))
696
+ sequence.extend(
697
+ [ops.SingleQubitCliffordGate.I.to_phased_xz_gate()(q)] * (num_moments - n)
698
+ )
697
699
  moments = zip(*sequences_to_zip)
698
700
  return circuits.Circuit.from_moments(*moments, ops.measure_each(*qubits))
699
701
 
@@ -230,12 +230,12 @@ def test_tomography_plot_raises_for_incorrect_number_of_axes():
230
230
 
231
231
 
232
232
  def test_single_qubit_cliffords_gateset():
233
- qubit = GridQubit(0, 0)
233
+ qubits = [GridQubit(0, i) for i in range(4)]
234
234
  clifford_group = cirq.experiments.qubit_characterizations._single_qubit_cliffords()
235
235
  c = cirq.experiments.qubit_characterizations._create_parallel_rb_circuit(
236
- (qubit,), 3, clifford_group.c1_in_xy
236
+ qubits, 5, clifford_group.c1_in_xy
237
237
  )
238
238
  device = cirq.testing.ValidatingTestDevice(
239
- qubits=(qubit,), allowed_gates=(cirq.ops.PhasedXZGate, cirq.MeasurementGate)
239
+ qubits=qubits, allowed_gates=(cirq.ops.PhasedXZGate, cirq.MeasurementGate)
240
240
  )
241
241
  device.validate_circuit(c)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.4.0.dev20240119173356
3
+ Version: 1.4.0.dev20240119190122
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
@@ -4,7 +4,7 @@ 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=iIX_LFjLprYH7Bgqssa5oJFNQ3thWlb2RDrFtOghqzM,40
7
+ cirq/_version.py,sha256=fHQ4y1pxGTu4CFZx0IykevoZ6_MyMssLXp957XAHRNo,40
8
8
  cirq/_version_test.py,sha256=yYS6xm5-nuBRQJa9R3n41WdvFtVyY7Lb5Q8bea3VgBI,133
9
9
  cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
10
10
  cirq/json_resolver_cache.py,sha256=S0HaPOCUIck-vNSQlS6KxnQtle6w-2dGuSxkUbJQY9Y,13168
@@ -184,8 +184,8 @@ cirq/experiments/n_qubit_tomography.py,sha256=9M_kf2-1hvFxfZOWND7ACwHYgD9SJU5nYF
184
184
  cirq/experiments/n_qubit_tomography_test.py,sha256=wHfV2OpGYSDXfoyEh-B5dc1Dv8sxKNFbUoHyjIWZoFk,4362
185
185
  cirq/experiments/purity_estimation.py,sha256=6D1UwFlQRzHeajXMTyTUfBYAc0jJQ8Cfz4lteFKeUaM,2467
186
186
  cirq/experiments/purity_estimation_test.py,sha256=xlBGp0NOBYR0IhTy3bckHPgi81FkGSGxKqk9hwXG-I8,923
187
- cirq/experiments/qubit_characterizations.py,sha256=iYPLe-intFggpB_znX2WYcWoR0rldvCzoXbkRm29v4U,36714
188
- cirq/experiments/qubit_characterizations_test.py,sha256=ZjNBq2Cy2HHk1i7YaC1OHAcYTk-nP5TnU6rj0_DmHuY,9716
187
+ cirq/experiments/qubit_characterizations.py,sha256=W7Ab4hvKOyfWIZYyk_fNaeSBOB1XgdSiGa7IlD4Gj_A,36764
188
+ cirq/experiments/qubit_characterizations_test.py,sha256=b_ONqxyW6s01Ts8T65BEdb4e8Xy24Qp4zTGXWesL0ic,9733
189
189
  cirq/experiments/random_quantum_circuit_generation.py,sha256=R_w7z35plUHEYBY0-F80bPcWJSSSjNQDaP2GbxVBEZg,28143
190
190
  cirq/experiments/random_quantum_circuit_generation_test.py,sha256=1rvgN8-Ajedn_70FyYKVzjvzR6NVpHj6KQgo6tra-Jc,15995
191
191
  cirq/experiments/readout_confusion_matrix.py,sha256=gsRjGJTDcxRPtY7G63t-nYoJ1BcByC1jl02zHh2B8fQ,17278
@@ -1148,8 +1148,8 @@ cirq/work/sampler.py,sha256=JEAeQQRF3bqlO9AkOf4XbrTATDI5f5JgyM_FAUCNxao,19751
1148
1148
  cirq/work/sampler_test.py,sha256=B2ZsuqGT854gQtBIAh8k0LiG9Vj5wSzcGvkxOUoTcW4,13217
1149
1149
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1150
1150
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1151
- cirq_core-1.4.0.dev20240119173356.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1152
- cirq_core-1.4.0.dev20240119173356.dist-info/METADATA,sha256=XOF7CnueGthx-R1W3hKkySIuSqIHJbEi8aM-iuCP8vk,2075
1153
- cirq_core-1.4.0.dev20240119173356.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
1154
- cirq_core-1.4.0.dev20240119173356.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1155
- cirq_core-1.4.0.dev20240119173356.dist-info/RECORD,,
1151
+ cirq_core-1.4.0.dev20240119190122.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1152
+ cirq_core-1.4.0.dev20240119190122.dist-info/METADATA,sha256=MylPYYTlqHSpDs9LmO5IGZC0xjdeJjOXnMULthxXXfQ,2075
1153
+ cirq_core-1.4.0.dev20240119190122.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
1154
+ cirq_core-1.4.0.dev20240119190122.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1155
+ cirq_core-1.4.0.dev20240119190122.dist-info/RECORD,,