简体   繁体   中英

qsharp and python: remove 'preparing qsharp environment' message from console

I started tutorial of qsharp and i wrote my first qsharp and python (host) codes. But when i run qsharp codes in console, gets some messages in console.

qsharp-messgaes

I want console shows only qsharp outputs.

Vscode / Anaconda gives similar output. The last line is what i added to print output.

Microsoft.Quantum.Runtime.Core, Version=0.12.0.0, Culture=neutral, PublicKeyToken=40866b40fd95c7f5 Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed Microsoft.Quantum.IQSharp.Jupyter, Version=0.12.0.0, Culture=neutral, PublicKeyToken=40866b40fd95c7f5 Microsoft.Quantum.IQSharp.AzureClient, Version=0.12.0.0, Culture=neutral, PublicKeyToken=40866b40fd95c7f5 Microsoft.Quantum.Simulation.QCTraceSimulatorRuntime, Version=0.12.0.0, Culture=neutral, PublicKeyToken=40866b40fd95c7f5 Microsoft.Quantum.Standard, Version=0.12.0.0, Culture=neutral, PublicKeyToken=40866b40fd95c7f5 Microsoft.Quantum.Simulation.Common, Version=0.12.0.0, Culture=neutral, PublicKeyToken=40866b40fd95c7f5 Preparing Q# environment... The random number generated is 36

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM