Skip to content

Commit 6858eeb

Browse files
dwierichsQottmann
andauthored
Fix reference formatting in KAK demo (#1395)
I used nested formatting in reference links in #1372. ReST does not support this. Here we remove the nested formatting (and adjust two small wordings that struck me as suboptimal upon re-reading) --------- Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
1 parent 9fc9c65 commit 6858eeb

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

demonstrations/tutorial_unitary_synthesis_kak.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77
],
88
"dateOfPublication": "2025-05-30T09:00:00+00:00",
9-
"dateOfLastModification": "2025-05-30T09:00:00+00:00",
9+
"dateOfLastModification": "2025-06-03T09:00:00+00:00",
1010
"categories": [
1111
"Quantum Computing"
1212
],

demonstrations/tutorial_unitary_synthesis_kak.py

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Crucially, we will not just go through these three techniques separately, but we will explain
2222
how they are variants of the same underlying mathematical factorization, which is called
2323
a recursive KAK, or Cartan, decomposition [#Wierichs_CartanSynthesis]_.
24-
One of the recursion steps will be implemented by a Cosine-Sine Decomposition (CSD), maybe the
24+
One of the recursion steps will be implemented by a Cosine-Sine Decomposition (CSD), which may be the
2525
most well-known KAK decomposition.
2626
2727
In the appendix, we will derive the CNOT and rotation gate counts for all three decompositions,
@@ -31,7 +31,7 @@
3131
for example using :doc:`our introductory demo </demos/tutorial_kak_decomposition>` or our
3232
:doc:`demo on compiling Hamiltonian simulation variationally
3333
</demos/tutorial_fixed_depth_hamiltonian_simulation_via_cartan_decomposition>`,
34-
which follows [#Kökcü_FDHS]_.
34+
which follows reference [#Kökcü_FDHS]_.
3535
3636
3737
KAK decompositions
@@ -649,58 +649,61 @@ def demultiplex(U, V):
649649
# .. [#Khaneja_Glaser]
650650
#
651651
# Navin Khaneja, Steffen Glaser (2000) *Cartan Decomposition of SU(2^n), Constructive
652-
# Controllability of Spin systems and Universal Quantum Computing.* arXiv preprint
653-
# `quant-ph/0010100 <https://doi.org/10.48550/arXiv.quant-ph/0010100>`__.
652+
# Controllability of Spin systems and Universal Quantum Computing.*
653+
# `arXiv:quant-ph/0010100 <https://doi.org/10.48550/arXiv.quant-ph/0010100>`__.
654654
#
655655
# .. [#Shende_QSD]
656656
#
657657
# Vivek V Shende, Stephen S Bullock, Igor L Markov (2006)
658-
# *Synthesis of Quantum Logic Circuits.* IEEE Trans. on Computer-Aided Design,
659-
# `Vol. 25, No. 6 <https://doi.org/10.1109/TCAD.2005.855930>`__.
658+
# *Synthesis of Quantum Logic Circuits.*
659+
# `arXiv:quant-ph/0406176 <https://doi.org/10.48550/arXiv.quant-ph/0406176>`__,
660+
# `IEEE Trans. on Computer-Aided Design, Vol. 25, No. 6 <https://doi.org/10.1109/TCAD.2005.855930>`__.
660661
#
661662
# .. [#Krol_BlockZXZ]
662663
#
663664
# Anna M Krol, Zaid Al-Ars (2024) *Beyond Quantum Shannon: Circuit Construction for General
664-
# n-Qubit Gates Based on Block ZXZ-Decomposition.* arXiv preprint
665-
# `2403.13692 <https://doi.org/10.48550/arXiv.2403.13692>`__.
665+
# n-Qubit Gates Based on Block ZXZ-Decomposition.*
666+
# `arXiv:2403.13692 <https://doi.org/10.48550/arXiv.2403.13692>`__.
666667
#
667668
# .. [#Mansky_Linnhoff-Popien]
668669
#
669670
# Maximilian Balthasar Mansky, Santiago Londoño Castillo, Victor Ramos Puigvert, Claudia Linnhoff-Popien (2023).
670671
# *Near-optimal quantum circuit construction via Cartan decomposition.*
671-
# arXiv preprint `2212.12934 <https://arxiv.org/abs/2212.12934>`__.
672-
# `Phys. Rev. A **108**, 052607 <https://doi.org/10.1103/PhysRevA.108.052607>`__.
672+
# `arXiv:2212.12934 <https://arxiv.org/abs/2212.12934>`__,
673+
# `Phys. Rev. A 108, 052607 <https://doi.org/10.1103/PhysRevA.108.052607>`__.
673674
#
674675
# .. [#Wierichs_CartanSynthesis]
675676
#
676677
# David Wierichs, Maxwell West, Roy T. Forestano, M. Cerezo, Nathan Killoran (2025)
677-
# *Recursive Cartan decompositions for unitary synthesis.* arXiv preprint
678-
# `2503.19014 <https://doi.org/10.48550/arXiv.2503.19014>`__.
678+
# *Recursive Cartan decompositions for unitary synthesis.*
679+
# `arXiv:2503.19014 <https://doi.org/10.48550/arXiv.2503.19014>`__.
679680
#
680681
# .. [#Kökcü_FDHS]
681682
#
682683
# Efekan Kökcü, Thomas Steckmann, Yan Wang, J K Freericks, Eugene F Dumitrescu,
683684
# Alexander F. Kemper (2021) *Fixed Depth Hamiltonian Simulation via Cartan Decomposition.*
684-
# arXiv preprint `2104.00728 <https://doi.org/10.48550/arXiv.2104.00728>`__. Phys. Rev. Lett. **129**, 070501
685+
# `arXiv:2104.00728 <https://doi.org/10.48550/arXiv.2104.00728>`__,
686+
# `Phys. Rev. Lett. 129, 070501 <https://doi.org/10.1103/PhysRevLett.129.070501>`__
685687
#
686688
# .. [#Bullock_Note]
687689
#
688690
# Stephen S Bullock (2004) *Note on the Khaneja Glaser Decomposition.*
689-
# arXiv preprint `quant-ph/0403141 <https://doi.org/10.48550/arXiv.quant-ph/0403141>`__.
691+
# `arXiv:quant-ph/0403141 <https://doi.org/10.48550/arXiv.quant-ph/0403141>`__,
692+
# `Quantum Inf. Comput., Vol. 4, No. 5, 396-400 <https://doi.org/10.26421/QIC4.5-5>`__.
690693
#
691694
# .. [#Dagli_Framework]
692695
#
693696
# Mehmet Dagli, Domenico D'Alessandro, Jonathan D H Smith (2007) *A General Framework
694697
# for Recursive Decompositions of Unitary Quantum Evolutions.*
695-
# arXiv preprint `quant-ph/0701193 <https://doi.org/10.48550/arXiv.quant-ph/0701193>`__.
696-
# `J. Phys. A: Math. Theor. **41** 155302 <https://iopscience.iop.org/article/10.1088/1751-8113/41/15/155302>`__.
698+
# `arXiv:quant-ph/0701193 <https://doi.org/10.48550/arXiv.quant-ph/0701193>`__,
699+
# `J. Phys. A: Math. Theor. 41 155302 <https://iopscience.iop.org/article/10.1088/1751-8113/41/15/155302>`__.
697700
#
698701
# .. [#Shende_Minimal]
699702
#
700703
# Vivek V Shende, Igor L Markov, Stephen S Bullock (2003) *Minimal Universal Two-qubit
701704
# Quantum Circuits.*
702-
# arXiv preprint `quant-ph/0308033 <https://doi.org/10.48550/arXiv.quant-ph/0308033>`__.
703-
# Phys. Rev. A **69**, 062321.
705+
# `arXiv:quant-ph/0308033 <https://doi.org/10.48550/arXiv.quant-ph/0308033>`__,
706+
# `Phys. Rev. A 69, 062321 <https://doi.org/10.1103/PhysRevA.69.062321>`__.
704707
#
705708
# Appendix: Gate counts
706709
# ---------------------

0 commit comments

Comments
 (0)