qiskit_circuit_specific_nodes

qiskit_circuit_specific_nodes#

iqm.qaoa.circuits.qiskit_circuit_specific_nodes(qaoa, starting_qubits)[source]#

Constructs a QuantumCircuit for the RCC of given qubits, ignoring details of the QPU.

The reverse causal cone (RCC) of a set of qubits contains all the gates and qubits which have any influence on the measurement results on the initial set of qubits. This method constructs a QuantumCircuit containing these gates and extra qubits.

Parameters:
  • qaoa (QUBOQAOA) – A QUBOQAOA object whose angles and interaction strengths are used in the construction of the QuantumCircuit.

  • starting_qubits (set[int]) – A set of the starting qubits for which we construct the RCC circuit.

Returns:

A QuantumCircuit representing the RCC.

Return type:

QuantumCircuit