How do I do Wick contraction with Dirac bracket?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












So I would like to be able to draw Wick contraction with Dirac bracket, the Dirac bracket is produced with package physics, and the mwe is



documentclassarticle

usepackagephysics

begindocument
$$
mathcalM_hats sim mel**k , k'overlinepsi_x psi _x overlinepsi_y psi _yp , p'
$$
enddocument


The kind of effect I would like to achieve with this bracket is



wick contraction



The reason why I would like to use this package physics is, it is the only package I know that would nicely adjust the height of the angled bracket as well as the vertical lines in Dirac bracket, so I would like to stay with this package.



The problem with drawing the Wick contractions is, neither simplewick nor simpler-wick would work, so I am wondering if there is really a solution.



Also, I know it is always possible to do anything with tikz and that is something I could do, but I would appreciate if someone could offer a neater solution.










share|improve this question

























    up vote
    1
    down vote

    favorite












    So I would like to be able to draw Wick contraction with Dirac bracket, the Dirac bracket is produced with package physics, and the mwe is



    documentclassarticle

    usepackagephysics

    begindocument
    $$
    mathcalM_hats sim mel**k , k'overlinepsi_x psi _x overlinepsi_y psi _yp , p'
    $$
    enddocument


    The kind of effect I would like to achieve with this bracket is



    wick contraction



    The reason why I would like to use this package physics is, it is the only package I know that would nicely adjust the height of the angled bracket as well as the vertical lines in Dirac bracket, so I would like to stay with this package.



    The problem with drawing the Wick contractions is, neither simplewick nor simpler-wick would work, so I am wondering if there is really a solution.



    Also, I know it is always possible to do anything with tikz and that is something I could do, but I would appreciate if someone could offer a neater solution.










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      So I would like to be able to draw Wick contraction with Dirac bracket, the Dirac bracket is produced with package physics, and the mwe is



      documentclassarticle

      usepackagephysics

      begindocument
      $$
      mathcalM_hats sim mel**k , k'overlinepsi_x psi _x overlinepsi_y psi _yp , p'
      $$
      enddocument


      The kind of effect I would like to achieve with this bracket is



      wick contraction



      The reason why I would like to use this package physics is, it is the only package I know that would nicely adjust the height of the angled bracket as well as the vertical lines in Dirac bracket, so I would like to stay with this package.



      The problem with drawing the Wick contractions is, neither simplewick nor simpler-wick would work, so I am wondering if there is really a solution.



      Also, I know it is always possible to do anything with tikz and that is something I could do, but I would appreciate if someone could offer a neater solution.










      share|improve this question













      So I would like to be able to draw Wick contraction with Dirac bracket, the Dirac bracket is produced with package physics, and the mwe is



      documentclassarticle

      usepackagephysics

      begindocument
      $$
      mathcalM_hats sim mel**k , k'overlinepsi_x psi _x overlinepsi_y psi _yp , p'
      $$
      enddocument


      The kind of effect I would like to achieve with this bracket is



      wick contraction



      The reason why I would like to use this package physics is, it is the only package I know that would nicely adjust the height of the angled bracket as well as the vertical lines in Dirac bracket, so I would like to stay with this package.



      The problem with drawing the Wick contractions is, neither simplewick nor simpler-wick would work, so I am wondering if there is really a solution.



      Also, I know it is always possible to do anything with tikz and that is something I could do, but I would appreciate if someone could offer a neater solution.







      brackets






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 18 at 21:32









      zyy

      640613




      640613




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote













          A solution with pstricks . I also defined a Dirac braket with DeclarePairedDelimiter from mathtools:



          documentclass[svgnames]article
          usepackagemathtools
          usepackagepst-node, auto-pst-pdf

          DeclarePairedDelimiterXDirbraket[3]langlerangle%
          #1,delimsizevert,mathopen#2,delimsizevert,mathopen#3

          begindocument

          beginpostscript
          [
          mathcalM_hats sim Dirbraket*rnodekk , rnodek1k'rnodeopxoverlinepsi_x rnodepsxpsi_x rnodeopyoverlinepsi_y rnodepsypsi_yrnodepvphantomk p , rnodep1p'
          ]
          pssetangle=90, linewidth=0.5pt, linecolor=IndianRed, nodesep=2pt, arm=3mm, linejoin=1
          ncbar[offsetB=-8pt]kopx
          ncbar[arm=2mm]k1psy
          ncbar[offsetA=2pt]opyp1
          ncbar[offsetA=1pt, arm=4.5mm]psxp
          endpostscript

          enddocument


          enter image description here






          share|improve this answer




















          • Perfect work. I like very much. (+1)
            – Sebastiano
            Nov 18 at 23:17

















          up vote
          2
          down vote













          langle and rangle will scale and work with simpler-wick:



          documentclassarticle

          usepackagesimpler-wick

          begindocument
          [
          mathcalM_hats sim
          langle
          wick
          c1 k, c2 k'
          vert
          overlinec1 psi_x psi_x overlinepsi_y c2 psi_y
          vert
          p, p'

          rangle
          ]
          enddocument


          enter image description here






          share|improve this answer




















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "85"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460657%2fhow-do-i-do-wick-contraction-with-dirac-bracket%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote













            A solution with pstricks . I also defined a Dirac braket with DeclarePairedDelimiter from mathtools:



            documentclass[svgnames]article
            usepackagemathtools
            usepackagepst-node, auto-pst-pdf

            DeclarePairedDelimiterXDirbraket[3]langlerangle%
            #1,delimsizevert,mathopen#2,delimsizevert,mathopen#3

            begindocument

            beginpostscript
            [
            mathcalM_hats sim Dirbraket*rnodekk , rnodek1k'rnodeopxoverlinepsi_x rnodepsxpsi_x rnodeopyoverlinepsi_y rnodepsypsi_yrnodepvphantomk p , rnodep1p'
            ]
            pssetangle=90, linewidth=0.5pt, linecolor=IndianRed, nodesep=2pt, arm=3mm, linejoin=1
            ncbar[offsetB=-8pt]kopx
            ncbar[arm=2mm]k1psy
            ncbar[offsetA=2pt]opyp1
            ncbar[offsetA=1pt, arm=4.5mm]psxp
            endpostscript

            enddocument


            enter image description here






            share|improve this answer




















            • Perfect work. I like very much. (+1)
              – Sebastiano
              Nov 18 at 23:17














            up vote
            3
            down vote













            A solution with pstricks . I also defined a Dirac braket with DeclarePairedDelimiter from mathtools:



            documentclass[svgnames]article
            usepackagemathtools
            usepackagepst-node, auto-pst-pdf

            DeclarePairedDelimiterXDirbraket[3]langlerangle%
            #1,delimsizevert,mathopen#2,delimsizevert,mathopen#3

            begindocument

            beginpostscript
            [
            mathcalM_hats sim Dirbraket*rnodekk , rnodek1k'rnodeopxoverlinepsi_x rnodepsxpsi_x rnodeopyoverlinepsi_y rnodepsypsi_yrnodepvphantomk p , rnodep1p'
            ]
            pssetangle=90, linewidth=0.5pt, linecolor=IndianRed, nodesep=2pt, arm=3mm, linejoin=1
            ncbar[offsetB=-8pt]kopx
            ncbar[arm=2mm]k1psy
            ncbar[offsetA=2pt]opyp1
            ncbar[offsetA=1pt, arm=4.5mm]psxp
            endpostscript

            enddocument


            enter image description here






            share|improve this answer




















            • Perfect work. I like very much. (+1)
              – Sebastiano
              Nov 18 at 23:17












            up vote
            3
            down vote










            up vote
            3
            down vote









            A solution with pstricks . I also defined a Dirac braket with DeclarePairedDelimiter from mathtools:



            documentclass[svgnames]article
            usepackagemathtools
            usepackagepst-node, auto-pst-pdf

            DeclarePairedDelimiterXDirbraket[3]langlerangle%
            #1,delimsizevert,mathopen#2,delimsizevert,mathopen#3

            begindocument

            beginpostscript
            [
            mathcalM_hats sim Dirbraket*rnodekk , rnodek1k'rnodeopxoverlinepsi_x rnodepsxpsi_x rnodeopyoverlinepsi_y rnodepsypsi_yrnodepvphantomk p , rnodep1p'
            ]
            pssetangle=90, linewidth=0.5pt, linecolor=IndianRed, nodesep=2pt, arm=3mm, linejoin=1
            ncbar[offsetB=-8pt]kopx
            ncbar[arm=2mm]k1psy
            ncbar[offsetA=2pt]opyp1
            ncbar[offsetA=1pt, arm=4.5mm]psxp
            endpostscript

            enddocument


            enter image description here






            share|improve this answer












            A solution with pstricks . I also defined a Dirac braket with DeclarePairedDelimiter from mathtools:



            documentclass[svgnames]article
            usepackagemathtools
            usepackagepst-node, auto-pst-pdf

            DeclarePairedDelimiterXDirbraket[3]langlerangle%
            #1,delimsizevert,mathopen#2,delimsizevert,mathopen#3

            begindocument

            beginpostscript
            [
            mathcalM_hats sim Dirbraket*rnodekk , rnodek1k'rnodeopxoverlinepsi_x rnodepsxpsi_x rnodeopyoverlinepsi_y rnodepsypsi_yrnodepvphantomk p , rnodep1p'
            ]
            pssetangle=90, linewidth=0.5pt, linecolor=IndianRed, nodesep=2pt, arm=3mm, linejoin=1
            ncbar[offsetB=-8pt]kopx
            ncbar[arm=2mm]k1psy
            ncbar[offsetA=2pt]opyp1
            ncbar[offsetA=1pt, arm=4.5mm]psxp
            endpostscript

            enddocument


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 18 at 23:00









            Bernard

            162k767192




            162k767192











            • Perfect work. I like very much. (+1)
              – Sebastiano
              Nov 18 at 23:17
















            • Perfect work. I like very much. (+1)
              – Sebastiano
              Nov 18 at 23:17















            Perfect work. I like very much. (+1)
            – Sebastiano
            Nov 18 at 23:17




            Perfect work. I like very much. (+1)
            – Sebastiano
            Nov 18 at 23:17










            up vote
            2
            down vote













            langle and rangle will scale and work with simpler-wick:



            documentclassarticle

            usepackagesimpler-wick

            begindocument
            [
            mathcalM_hats sim
            langle
            wick
            c1 k, c2 k'
            vert
            overlinec1 psi_x psi_x overlinepsi_y c2 psi_y
            vert
            p, p'

            rangle
            ]
            enddocument


            enter image description here






            share|improve this answer
























              up vote
              2
              down vote













              langle and rangle will scale and work with simpler-wick:



              documentclassarticle

              usepackagesimpler-wick

              begindocument
              [
              mathcalM_hats sim
              langle
              wick
              c1 k, c2 k'
              vert
              overlinec1 psi_x psi_x overlinepsi_y c2 psi_y
              vert
              p, p'

              rangle
              ]
              enddocument


              enter image description here






              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                langle and rangle will scale and work with simpler-wick:



                documentclassarticle

                usepackagesimpler-wick

                begindocument
                [
                mathcalM_hats sim
                langle
                wick
                c1 k, c2 k'
                vert
                overlinec1 psi_x psi_x overlinepsi_y c2 psi_y
                vert
                p, p'

                rangle
                ]
                enddocument


                enter image description here






                share|improve this answer












                langle and rangle will scale and work with simpler-wick:



                documentclassarticle

                usepackagesimpler-wick

                begindocument
                [
                mathcalM_hats sim
                langle
                wick
                c1 k, c2 k'
                vert
                overlinec1 psi_x psi_x overlinepsi_y c2 psi_y
                vert
                p, p'

                rangle
                ]
                enddocument


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 18 at 22:40









                daniel

                3199




                3199



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460657%2fhow-do-i-do-wick-contraction-with-dirac-bracket%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown






                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?