Ansatz¶
- class Ansatz[source]¶
Bases:
ABCAbstract base class for all VQE ansätze.
Attributes Summary
Returns the human-readable name of the ansatz.
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)Returns the number of parameters required by the ansatz for one layer.
Attributes Documentation
- name¶
Returns the human-readable name of the ansatz.
Methods Documentation