@property
def state_preparation(self) -> QuantumCircuit:
    'The subcircuit implementing the A operator or Hadamards.'
    if (self._state_preparation is not None):
        return self._state_preparation
    num_state_qubits = (self.oracle.num_qubits - self.oracle.num_ancillas)
    hadamards = QuantumCircuit(num_state_qubits, name='H')
    hadamards.h(self.reflection_qubits)
    return hadamards
The subcircuit implementing the A operator or Hadamards.
@property
def state_preparation(self) -> QuantumCircuit:
    
    if (self._state_preparation is not None):
        return self._state_preparation
    num_state_qubits = (self.oracle.num_qubits - self.oracle.num_ancillas)
    hadamards = QuantumCircuit(num_state_qubits, name='H')
    hadamards.h(self.reflection_qubits)
    return hadamards