quri_parts.cirq.circuit.circuit_converter module#

CirqSetTranspiler()#

CircuitTranspiler to convert a circit configuration suitable for Cirq.

class U1(psi)#

Bases: Gate

Define a cirq U1 gate.

Parameters:

psi (float) –

num_qubits()#

The number of qubits this gate acts on.

Return type:

int

class U2(phi, psi)#

Bases: Gate

Define a cirq U2 gate.

Parameters:
  • phi (float) –

  • psi (float) –

num_qubits()#

The number of qubits this gate acts on.

Return type:

int

class U3(theta, phi, psi)#

Bases: Gate

Define a cirq U3 gate.

Parameters:
  • theta (float) –

  • phi (float) –

  • psi (float) –

num_qubits()#

The number of qubits this gate acts on.

Return type:

int

convert_gate(gate)#

Converts a QuantumGate to cirq.Operation.

Parameters:

gate (QuantumGate) –

Return type:

Operation

convert_circuit(circuit)#

Converts a NonParametricQuantumCircuit to cirq.Circuit.

Parameters:

circuit (NonParametricQuantumCircuit) –

Return type:

Circuit