QCCAnsatz

class QCCAnsatz[source]

Bases: Ansatz

Qubit Coupled Cluster ansatz.

Hartree-Fock X flips on occupied orbitals, then per-layer single-qubit RY rotations followed by Pauli-word exponentials (XX, YY, ZZ) on adjacent qubit pairs.

Methods Summary

build(params, n_qubits, n_layers, **kwargs)

Builds the ansatz circuit and returns a list of operations.

n_params_per_layer(n_qubits, **kwargs)

n_qubits single-qubit RY rotations plus 3 * (n_qubits - 1) entangler parameters (one XX, YY, ZZ per adjacent pair).

Methods Documentation

build(params, n_qubits, n_layers, **kwargs)[source]

Builds the ansatz circuit and returns a list of operations.

Parameters:
  • params – Parameter array for the ansatz.

  • n_qubits (int) – Number of qubits in the circuit.

  • n_layers (int) – Number of ansatz layers.

  • **kwargs – Additional arguments specific to the ansatz.

Returns:

The ansatz circuit on n_qubits qubits.

Return type:

QuantumCircuit

static n_params_per_layer(n_qubits, **kwargs)[source]

n_qubits single-qubit RY rotations plus 3 * (n_qubits - 1) entangler parameters (one XX, YY, ZZ per adjacent pair).

Return type:

int