0
$\begingroup$

I am using 'Two local' form of QISKIT as a waveform ansatz in VQE to compute ground state. QISKIT documentation does not provide references to all the entangling options. Is there any other place where I can find references for different entangling structure: 'Full', 'Linear', 'Circular' etc?

$\endgroup$

1 Answer 1

0
$\begingroup$

here you go, for references check: https://github.com/Qiskit/qiskit-terra/issues/8219

from qiskit.circuit.library import TwoLocal
from qiskit import QuantumCircuit
qubit_num = 3
two_full = TwoLocal(qubit_num, ['ry','rz'], 'cz', 'full', reps=2, insert_barriers=True)
two_linear = TwoLocal(qubit_num, ['ry','rz'], 'cz', 'linear', reps=2, insert_barriers=True)
two_circular = TwoLocal(qubit_num, ['ry','rz'], 'cz', 'circular', reps=2, insert_barriers=True)
two_sca = TwoLocal(qubit_num, ['ry','rz'], 'cz', 'sca', reps=2, insert_barriers=True)

print("two_full: ")
display(two_full.decompose().draw('mpl'))
print("two_linear: ")
display(two_linear.decompose().draw('mpl'))
print("two_circular: ")
display(two_circular.decompose().draw('mpl'))
print("two_sca: ")
display(two_sca.decompose().draw('mpl'))

'full' entanglement is each qubit is entangled with all the others: full

'linear' entanglement is qubit $i$ entangled with qubit $i + 1$,for all $i \in \{0, 1, ... , n - 2\}$, where $n$ is the total number of qubits: linear

'circular' entanglement is linear entanglement but with an additional entanglement of the first and last qubit before the linear part: circular

'sca' (shifted-circular-alternating) entanglement is a generalized and modified version of the proposed circuit 14 in Sim et al..It consists of circular entanglement where the 'long' entanglement connecting the first with the last qubit is shifted by one each block. Furthermore the role of control and target qubits are swapped every block (therefore alternating): sca

$\endgroup$
5
  • $\begingroup$ Sorry, if the question was not clear, I was looking for the reference articles for different wavefunction ansatz. They only have references for 'sca'. Looking at other articles in the arxiv, it seems these are all variations of Hardware-Efficient Ansatz (HEA) first introduced in this paper: nature.com/articles/nature23879. But I could not be sure if this the correct paper to refer to. $\endgroup$
    – Anyon
    Jun 22 at 3:59
  • $\begingroup$ @Anyon I think only code owner knows the correct reference, I will help you open an issue on qiskit-terra about it, $\endgroup$
    – poig
    Jun 22 at 4:19
  • $\begingroup$ thanks, appreciate your help and effort. $\endgroup$
    – Anyon
    Jun 22 at 4:39
  • $\begingroup$ @Anyon github.com/Qiskit/qiskit-terra/issues/8219 $\endgroup$
    – poig
    Jun 22 at 4:45
  • $\begingroup$ @Anyon seems like code owner had respawned the question. $\endgroup$
    – poig
    Jun 22 at 17:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.