mindquantum.nn.Evolution

class mindquantum.nn.Evolution(*args, **kwargs)[source]

Inputs of this operation is generated by MindQuantum framework.

Inputs:
  • n_qubits (int) - The qubit number of quantum simulator.

  • param_names (list[str]) - The parameters names.

  • gate_names (list[str]) - The name of each gate.

  • gate_matrix (list[list[list[list[float]]]]) - Real part and image part of the matrix of quantum gate.

  • gate_obj_qubits (list[list[int]]) - Object qubits of each gate.

  • gate_ctrl_qubits (list[list[int]]) - Control qubits of each gate.

  • gate_params_names (list[list[str]]) - Parameter names of each gate.

  • gate_coeff (list[list[float]]) - Coefficient of eqch parameter of each gate.

  • gate_requires_grad (list[list[bool]]) - Whether to calculate gradient of parameters of gates.

  • hams_pauli_coeff (list[list[float]]) - Coefficient of pauli words.

  • hams_pauli_word (list[list[list[str]]]) - Pauli words.

  • hams_pauli_qubit (list[list[list[int]]]) - The qubit that pauli matrix act on.

Outputs:
  • Quantum state (Tensor) - The quantum state after evolution.

Supported Platforms:

CPU