mindquantum.algorithm.nisq.Ansatz
- class mindquantum.algorithm.nisq.Ansatz(name, n_qubits, *args, **kwargs)[source]
Base class for Ansatz.
- Parameters
- property circuit: mindquantum.core.circuit.circuit.Circuit
Get the quantum circuit of this ansatz.
- Returns
Circuit, the quantum circuit of this ansatz.