SecondOrderExpansion.construct_circuit¶
- SecondOrderExpansion.construct_circuit(x, qr=None, inverse=False)¶
Construct the second order expansion based on given data.
- Parameters
x (Union(numpy.ndarray, list[Parameter], ParameterVector)) – 1-D to-be-transformed data.
qr (QuantumRegister, optional) – the QuantumRegister object for the circuit, if None, generate new registers with name q.
inverse (bool, optional) – whether or not inverse the circuit
- Returns
a quantum circuit transform data x.
- Return type
- Raises
TypeError – invalid input
ValueError – invalid input