atlas_q.vqe_qaoa.HardwareEfficientAnsatz#
- class atlas_q.vqe_qaoa.HardwareEfficientAnsatz(n_qubits, n_layers, device='cuda', dtype=torch.complex128)[source]#
Bases:
objectHardware-efficient ansatz for VQE.
Layer = [Ry(θ) on all qubits] + [CZ on neighboring pairs]
Methods
prepare_hf_state([chi_max])apply
get_param_shift
Methods
__init__(n_qubits, n_layers[, device, dtype])apply(mps, params)prepare_hf_state([chi_max])