Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.synthesis.generate_basic_approximations

generate_basic_approximations(basis_gates, depth, filename=None)[source]

Generates a list of GateSequence``s with the gates in ``basic_gates.

প্যারামিটার
  • basis_gates (list[str | Gate]) -- The gates from which to create the sequences of gates.

  • depth (int) -- The maximum depth of the approximations.

  • filename (str | None) -- If provided, the basic approximations are stored in this file.

রিটার্নস

List of GateSequences using the gates in basic_gates.

রেইজেস

ValueError -- If basis_gates contains an invalid gate identifier.

রিটার্ন টাইপ

list[GateSequence]