Skip to main contentIBM Quantum Documentation Mirror

TrivialOccupationInitializeModesSynthesis

class TrivialOccupationInitializeModesSynthesis

Bases: object

A F2QSynthesisPlugin for transpiling InitializeModes with trivial occupation.

Warning

This transpilation pass plugin makes the following assumptions:

  • an occupation-basis encoding (like Jordan-Wigner)
  • a trivial fermion-to-qubit layout (i.e. no change in their register lengths)
  • a 1-to-1 mapping of fermionic mode indices to qubit indices

Methods

run

run(in_node, out_dag, *, f2q_layout)

Runs this transpilation plugin.

Parameters

Return type

None

See also

The documentation of F2QSynthesisPlugin for more detailed explanations of the arguments.

Raises

NotImplementedError – when in_node acts on fermionic modes that are spread across multiple FermionicRegister instances.

Parameters

Return type

None