Expressibility and Entanglement Capability of the Parameterized Quantum Circuits

Today we will learn about how to compare different ansatz structure by measuring their expressibility and entanglement capabilities. Things covered in this blog is inspired from [1].

 

Designing Ansatze

Ansatze are simply a parameterized quantum circuits (PQC), which play an essential role in the performance of many variational hybrid quantum-classical (HQC) algorithms. Major challenge while designing an asatz is to choose an effective template circuit that well represents the solution space while maintaining a low circuit depth and number of parameters. Here, we make a choice of two ansatze, one randomly and another inspired from the given hint.

 

Ansatz 1 (Random Choice)

     ┌─────────────┐     ┌──────────────┐
q_0: ┤ RX(0.74906) ├──■──┤ RZ(-0.10279) ├
     ├─────────────┤┌─┴─┐├─────────────┬┘
q_1: ┤ RX(0.40493) ├┤ X ├┤ RZ(-2.3803) ├─
     └─────────────┘└───┘└─────────────┘ 
c: 2/════════════════════════════════════
                                         

 

Ansatz 2 (From Hint)

     ┌───┐     ┌────────┐
q_0: ┤ H ├──■──┤ RX(pi) ├
     └───┘┌─┴─┐└────────┘
q_1: ─────┤ X ├──────────
          └───┘          
c: 2/════════════════════
                         

 

Checking Expressibility of Ansatze

We quantify expressibility of ansatze using the Hilbert-Schmidt norm of A defined as:

A=Haar|ψψ|dψθ|ψθψθ|dθ

This quantity needs to be taken with a pinch of salt as it is an oversimplification of the A which actually has to be calculated with the definition of an ϵ-approximate state t-design [1].

Here, the first term, i.e. a Haar integral, is the integral over a group of unitaries distributed randomly according to the Haar measure. Whereas, the second term, is taken over all states over the measure induced by uniformly sampling the parameters θ of the PQC.

 

Sanity Check (Comparing Two Haar Integrals)

 

Ansatz 1 (Random Choice)

 

Ansatz 2 (From Hint)

 

Ansatz 3 (Empty Circuit)

 

Clearly, expressibility are in the order: Ansatz 3 < Ansatz 2 < Ansatz 1, i.e. the power to probe Hilbert space is much more for our randomly chosen ansatz, which is guessable.

 

Checking Entangling Capability of Ansatze

We quantify entanlging capability [1] of ansatze by calculating the average Meyer-Wallach entanglement, Q, of the states generated by it:

Q=2|S|θiS(11nk=1nTr(ρk2(θi)))

Here, ρk is the density operator for the kth qubit after tracing out the rest, and S is the set of sampled parameters. The quantity within the first summation can also be called as the average subsystem linear entropy for the system, and to calculate it we make use of qiskit's partial_trace.

 

Sanity Check (Empty circuit aka Ansatz 3)

 

Ansatz 1 (Random Choice)

 

Ansatz 2 (From Hint)

 

Clearly, the entangling capability are in the order: Ansatz 3 < Ansatz 1 < Ansatz 2. Therefore, we can guess limited expressibility of Ansatz 2 is compensated by its higher entangling capability.