supermarq.features
Functions
|
Compute the communication feature of the input circuit. |
|
Compute the depth feature of the input circuit. |
|
Compute the entanglement feature of the input circuit. |
|
Compute the liveness feature of the input circuit. |
|
Compute the measurement feature of the input circuit. |
|
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.