atlas_q.vqe_qaoa.HardwareEfficientAnsatz#

class atlas_q.vqe_qaoa.HardwareEfficientAnsatz(n_qubits, n_layers, device='cuda', dtype=torch.complex128)[source]#

Bases: object

Hardware-efficient ansatz for VQE.

Layer = [Ry(θ) on all qubits] + [CZ on neighboring pairs]

Methods

prepare_hf_state([chi_max])

apply

get_param_shift

__init__(n_qubits, n_layers, device='cuda', dtype=torch.complex128)[source]#

Methods

__init__(n_qubits, n_layers[, device, dtype])

apply(mps, params)

get_param_shift(k)

prepare_hf_state([chi_max])

apply(mps, params)[source]#
get_param_shift(k)[source]#
prepare_hf_state(chi_max=64)[source]#