mindquantum.algorithm.nisq.Ansatz

View Source On Gitee
class mindquantum.algorithm.nisq.Ansatz(name, n_qubits, *args, **kwargs)[source]

Base class for Ansatz.

Parameters
  • name (str) – The name of this ansatz.

  • n_qubits (int) – How many qubits this ansatz act on.

property circuit: mindquantum.core.circuit.circuit.Circuit

Get the quantum circuit of this ansatz.

Returns

Circuit, the quantum circuit of this ansatz.