mindquantum.algorithm.nisq.RYFull

class mindquantum.algorithm.nisq.RYFull(n_qubits: int, depth: int, prefix: str = '', suffix: str = '')[source]

HEA with RY as single qubit gate and fully mapped CNOT gate as entanglement gate.

../../_images/RYFull.png

For more information about this ansatz, please refer to Challenges in the Use of Quantum Computing Hardware-Efficient Ansätze in Electronic Structure Theory.

Parameters
  • n_qubits (int) – total qubits number of this ansatz.

  • depth (int) – depth of ansatz.

  • prefix (str) – prefix of parameters. Default: ''.

  • suffix (str) – suffix of parameters. Default: ''.

Examples

>>> from mindquantum.algorithm.nisq import RYFull
>>> RYFull(3, 2, prefix='a').circuit
      ┏━━━━━━━━━━┓                   ┏━━━━━━━━━━┓                   ┏━━━━━━━━━━┓
q0: ──┨ RY(a_p0) ┠───■─────■─────────┨ RY(a_p3) ┠───■─────■─────────┨ RY(a_p6) ┠───
      ┗━━━━━━━━━━┛   ┃     ┃         ┗━━━━━━━━━━┛   ┃     ┃         ┗━━━━━━━━━━┛
      ┏━━━━━━━━━━┓ ┏━┻━┓   ┃         ┏━━━━━━━━━━┓ ┏━┻━┓   ┃         ┏━━━━━━━━━━┓
q1: ──┨ RY(a_p1) ┠─┨╺╋╸┠───╂─────■───┨ RY(a_p4) ┠─┨╺╋╸┠───╂─────■───┨ RY(a_p7) ┠───
      ┗━━━━━━━━━━┛ ┗━━━┛   ┃     ┃   ┗━━━━━━━━━━┛ ┗━━━┛   ┃     ┃   ┗━━━━━━━━━━┛
      ┏━━━━━━━━━━┓       ┏━┻━┓ ┏━┻━┓ ┏━━━━━━━━━━┓       ┏━┻━┓ ┏━┻━┓ ┏━━━━━━━━━━┓
q2: ──┨ RY(a_p2) ┠───────┨╺╋╸┠─┨╺╋╸┠─┨ RY(a_p5) ┠───────┨╺╋╸┠─┨╺╋╸┠─┨ RY(a_p8) ┠───
      ┗━━━━━━━━━━┛       ┗━━━┛ ┗━━━┛ ┗━━━━━━━━━━┛       ┗━━━┛ ┗━━━┛ ┗━━━━━━━━━━┛