classiq 0.80.0__py3-none-any.whl → 0.80.1__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.
@@ -3,5 +3,5 @@ from packaging.version import Version
3
3
  # This file was generated automatically
4
4
  # Please don't track in version control (DONTTRACK)
5
5
 
6
- SEMVER_VERSION = '0.80.0'
6
+ SEMVER_VERSION = '0.80.1'
7
7
  VERSION = str(Version(SEMVER_VERSION))
@@ -429,19 +429,14 @@ def _dicke_split_cycle_shift(k: int, qvar: QArray[QBit]) -> None:
429
429
 
430
430
  @qfunc
431
431
  def prepare_dicke_state_unary_input(max_k: int, qvar: QArray[QBit]) -> None:
432
- """
433
- assumes the input is encoded in qvar in unary encoding. should work for every value
434
- smaller than max_k
435
- """
436
432
  """
437
433
  [Qmod Classiq-library function]
438
434
 
439
435
  Prepares a Dicke state with a variable number of excitations based on an unary-encoded input.
440
436
 
441
437
  The Dicke state is defined to be:
442
- $$
443
- \\mathrm{Dicke}(n, k) = \frac{1}{\\sqrt{\binom{n}{k}}} \\sum_{x \\in \\{0,1\\}^n,\\, |x| = k} |x\rangle
444
- $$
438
+
439
+ $$\\mathrm{Dicke}(n, k) = \\frac{1}{\\sqrt{\\binom{n}{k}}} \\sum_{x \\in \\{0,1\\}^n,\\, |x| = k} |x\\rangle$$
445
440
 
446
441
  The input register `qvar` is expected to already be initialized in a unary encoding:
447
442
  the value k is represented by a string of k ones followed by zeros, e.g., k = 3 -> |11100...0>.
@@ -465,14 +460,15 @@ def prepare_dicke_state(k: int, qvar: QArray[QBit]) -> None:
465
460
  Prepares a Dicke state with k excitations over the provided quantum register.
466
461
 
467
462
  A Dicke state of n qubits with k excitations is an equal superposition of all basis states
468
- with exactly k qubits in the |1> state and (n - k) qubits in the |0? state.
469
- For example, Dicke(2, 1) = (|01> + |10>) / sqrt(2). In the general case it is define to be:
470
- $$
471
- \\mathrm{Dicke}(n, k) = \frac{1}{\\sqrt{\binom{n}{k}}} \\sum_{x \\in \\{0,1\\}^n,\\, |x| = k} |x\rangle
472
- $$
463
+ with exactly k qubits in the $|1\\rangle$ state and $(n - k)$ qubits in the $|0\\rangle$ state.
464
+ For example, $\\mathrm{Dicke}(2, 1) = (|01\\rangle + |10\\rangle) / \\sqrt(2)$.
465
+
466
+ In the general case it is defined to be:
467
+
468
+ $$\\mathrm{Dicke}(n, k) = \\frac{1}{\\sqrt{\\binom{n}{k}}} \\sum_{x \\in \\{0,1\\}^n,\\, |x| = k} |x\\rangle$$
473
469
 
474
470
  Args:
475
- k: The number of excitations (i.e., number of qubits in state |1>).
471
+ k: The number of excitations (i.e., number of qubits in state $|1\\rangle$).
476
472
  qvar: The quantum register (array of qubits) to initialize. Must be uninitialized and have length >= k.
477
473
  """
478
474
  if k > 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: classiq
3
- Version: 0.80.0
3
+ Version: 0.80.1
4
4
  Summary: Classiq's Python SDK for quantum computing
5
5
  License: Proprietary
6
6
  Keywords: quantum computing,quantum circuits,quantum algorithms,QAD,QDL
@@ -92,7 +92,7 @@ classiq/execution/qnn.py,sha256=BjwJw0LXr_I_eeZuXrFTpNVcs6pFBCvzsys8ZraRZZg,2373
92
92
  classiq/execution/user_budgets.py,sha256=FY21S7fh6KwBFw5YcZhzWzIktIMifMOLc-fO772EmxE,1184
93
93
  classiq/executor.py,sha256=uLr1640-DZtdPP0T6fCsmUf1Jj7QPumyoE09mJ8lVo0,2308
94
94
  classiq/interface/__init__.py,sha256=cg7hD_XVu1_jJ1fgwmT0rMIoZHopNVeB8xtlmMx-E_A,83
95
- classiq/interface/_version.py,sha256=her2eLdzZqx-ZTzaN5ndZ-ik1OLRQOAcVwLEfa4DNVM,197
95
+ classiq/interface/_version.py,sha256=WvHLSPaohOmaRmCRRU3SRY9rIATVWgdnwUHc8jUXGtA,197
96
96
  classiq/interface/analyzer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
97
97
  classiq/interface/analyzer/analysis_params.py,sha256=dM5rwSks798cxk4FWe4_X5ToRYtgZQh34F1u0XrFkK8,3881
98
98
  classiq/interface/analyzer/cytoscape_graph.py,sha256=MpeRBIYS1TfwYwiFpgTO51IE0KoxhY510pmEM3S0rbw,2361
@@ -483,7 +483,7 @@ classiq/open_library/functions/qaoa_penalty.py,sha256=Uz_ZSn7fRwynP5w2eSOEcft2z4
483
483
  classiq/open_library/functions/qft_functions.py,sha256=7pdPBq48QvyQkxHrF3rEKTf0J50qUu_2bN17lfSc7I0,1382
484
484
  classiq/open_library/functions/qpe.py,sha256=e7MBpOthBn73BdqhWpNGT0lkd6Jw3ZG7tE6n--IM0jc,2140
485
485
  classiq/open_library/functions/qsvt.py,sha256=wpLq0P-pmhdTaRQJJWRHwbTZqRnE1M58MfQ2y1C0YUI,14271
486
- classiq/open_library/functions/state_preparation.py,sha256=J0sQGO0Btfmlwbb2GWoAGLtaL1BabZpHYCSQcL3qzbo,16188
486
+ classiq/open_library/functions/state_preparation.py,sha256=Tx9Nn1Xg9yEKal9_bdKda7TUlkzULvmiPWrjmp32o5Q,16112
487
487
  classiq/open_library/functions/swap_test.py,sha256=hAjiJjZGeJP2qzEkVYmBVlEK44VcNibWZ-KqJwPEcFY,1048
488
488
  classiq/open_library/functions/utility_functions.py,sha256=-0r7dUdh1KJa93QORRlmPFM8ZDObyreB5Q5Jx4d9RBM,2539
489
489
  classiq/open_library/functions/variational.py,sha256=KYoqPKYRjgUXk_10RvogV0YiCG5kl7GZBHBJeeX82II,1715
@@ -555,6 +555,6 @@ classiq/qmod/write_qmod.py,sha256=QddTcpXsjLahq3ZATGTIKZW3aj99RtG6MPUHZTKaw38,35
555
555
  classiq/quantum_program.py,sha256=q4vTnRqNr4VWjrZPJVreX3L_C3s60Nnb1GOp3Wv3SJ0,2088
556
556
  classiq/synthesis.py,sha256=nP8lMJ5FqCuR8tJoOgrytm7lRsKtWbXW6mooDfgJxFI,8650
557
557
  classiq/visualization.py,sha256=q-GepvUJf2-tDqof0isaNwWAlf3W3_1dxvlsak1U0ng,983
558
- classiq-0.80.0.dist-info/METADATA,sha256=XsbjXmKKWFjPVoZ2TkRfFHxNxVHLF_Ev-oMBCAE6vhs,3382
559
- classiq-0.80.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
560
- classiq-0.80.0.dist-info/RECORD,,
558
+ classiq-0.80.1.dist-info/METADATA,sha256=6F7kGmLgDCcVeWlj-SPQRB-iQQq5DZQApueozfi9Ps4,3382
559
+ classiq-0.80.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
560
+ classiq-0.80.1.dist-info/RECORD,,