PurifiedMixedStateRequirements function


This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.

Namespace: Microsoft.Quantum.Preparation

Package: Microsoft.Quantum.Standard

Returns the total number of qubits that must be allocated in order to apply the operation returned by PurifiedMixedState function.

function PurifiedMixedStateRequirements (targetError : Double, nCoefficients : Int) : Microsoft.Quantum.Preparation.MixedStatePreparationRequirements


targetError : Double

The target error $\epsilon$.

nCoefficients : Int

The number of coefficients to be specified in preparing a mixed state.

Output : MixedStatePreparationRequirements

A description of how many qubits are required in total, and for each of the index and garbage registers used by the PurifiedMixedState function function.

See Also