supermarq.features

Functions

compute_communication(→ float)

Compute the communication feature of the input circuit.

compute_depth(→ float)

Compute the depth feature of the input circuit.

compute_entanglement(→ float)

Compute the entanglement feature of the input circuit.

compute_liveness(→ float)

Compute the liveness feature of the input circuit.

compute_measurement(→ float)

Compute the measurement feature of the input circuit.

compute_parallelism(→ float)

Compute the parallelism feature of the input circuit.

Module Contents

supermarq.features.compute_communication(circuit: cirq.Circuit) float

Compute the communication feature of the input circuit.

This function acts a wrapper which first converts the input cirq.Circuit into a qiskit.QuantumCircuit before calculating the feature value.

Parameters:

circuit – A quantum circuit.

Returns:

The value of the communication feature for this circuit.

supermarq.features.compute_depth(circuit: cirq.Circuit) float

Compute the depth feature of the input circuit.

This function acts a wrapper which first converts the input cirq.Circuit into a qiskit.QuantumCircuit before calculating the feature value.

Parameters:

circuit – A quantum circuit.

Returns:

The value of the depth feature for this circuit.

supermarq.features.compute_entanglement(circuit: cirq.Circuit) float

Compute the entanglement feature of the input circuit.

This function acts a wrapper which first converts the input cirq.Circuit into a qiskit.QuantumCircuit before calculating the feature value.

Parameters:

circuit – A quantum circuit.

Returns:

The value of the entanglement feature for this circuit.

supermarq.features.compute_liveness(circuit: cirq.Circuit) float

Compute the liveness feature of the input circuit.

This function acts a wrapper which first converts the input cirq.Circuit into a qiskit.QuantumCircuit before calculating the feature value.

Parameters:

circuit – A quantum circuit.

Returns:

The value of the liveness feature for this circuit.

supermarq.features.compute_measurement(circuit: cirq.Circuit) float

Compute the measurement feature of the input circuit.

This function acts a wrapper which first converts the input cirq.Circuit into a qiskit.QuantumCircuit before calculating the feature value.

Parameters:

circuit – A quantum circuit.

Returns:

The value of the measurement feature for this circuit.

supermarq.features.compute_parallelism(circuit: cirq.Circuit) float

Compute the parallelism feature of the input circuit.

This function acts a wrapper which first converts the input cirq.Circuit into a qiskit.QuantumCircuit before calculating the feature value.

Parameters:

circuit – A quantum circuit.

Returns:

The value of the parallelism feature for this circuit.