hierarqcal.qiskit.qiskit_circuits.U2(bits, symbols=None, circuit=None, **kwargs)

Default cycle circuit, a simple 2 qubit circuit with a single parameter.

Parameters
  • bits (list(string or int)) – List of qubit indices/labels, if int then the qubits will be named f"q{bits[0]}" and f"q{bits[1]}"

  • symbols (tuple(Parameter)) – Tuple of symbol values (rotation angles) as a Qiskit Parameter object, can be symbolic or numeric.

  • circuit (qiskit.QuantumCircuit) – QuantumCircuit object to add operations to, if None then a new QuantumCircuit object will be created.

Returns:s

circuit (qiskit.QuantumCircuit): QuantumCircuit object

hierarqcal.qiskit.qiskit_circuits.U3(bits, symbols=None, circuit=None, **kwargs)
hierarqcal.qiskit.qiskit_circuits.V2(bits, symbols=None, circuit=None, **kwargs)

Default mask circuit, a simple 2 qubit circuit with no parameters and a controlled controlled operation.

Parameters
  • bits (list(string or int)) – List of qubit indices/labels, if int then the qubit will be named f"q{bits[0]}" and f"q{bits[1]}"

  • symbols (tuple(Parameter)) – Tuple of symbol values (rotation angles) as a Qiskit Parameter object, can be symbolic or numeric.

  • circuit (qiskit.QuantumCircuit) – QuantumCircuit object to add operations to, if None then a new QuantumCircuit object will be created.

Returns

QuantumCircuit object

Return type

circuit (qiskit.QuantumCircuit)

hierarqcal.qiskit.qiskit_circuits.V4(bits, symbols=None, circuit=None, **kwargs)