n_bodyΒΆ

N Body Library (:cls:`qurry.recipe.library.n_body`)

class qurry.recipe.n_body.OneBody(*regs, name: str | None = None)[source]ΒΆ

The product state circuit one_body. This is an abstract class.

property num_qubits: intΒΆ

The number of qubits.

Returns:

The number of qubits in the circuit.

class qurry.recipe.n_body.TwoBody(*regs, name: str | None = None)[source]ΒΆ

The entangled circuit two_body. This is an abstract class.

property num_qubits: intΒΆ

The number of qubits.

Returns:

The number of qubits in the circuit.