in utilities/Microsoft.Quantum.Katas/CheckKataMagic.cs [21:53]
public CheckKataMagic(IOperationResolver resolver, ICompilerService compiler, ILogger<KataMagic> logger)
{
this.Name = $"%check_kata";
this.Documentation = new Microsoft.Jupyter.Core.Documentation
{
Summary = "Checks the reference implementation for a single kata's test.",
Description =
"Substitutes the reference implementation for a " +
"single task into the cell, and reports whether the test " +
"passed successfully using the reference implementation.",
Examples = new []
{
"To check a test called `Test`:\n" +
"```\n" +
"In []: %check_kata T101_StateFlip \n" +
" operation StateFlip (q : Qubit) : Unit is Adj + Ctl {\n" +
" // The Pauli X gate will change the |0⟩ state to the |1⟩ state and vice versa.\n" +
" // Type X(q);\n" +
" // Then run the cell using Ctrl/⌘+Enter.\n" +
"\n" +
" // ...\n" +
" }\n" +
"Out[]: Success!\n" +
"```\n"
}
};
this.Kind = SymbolKind.Magic;
this.Execute = this.Run;
this.Resolver = resolver;
this.Compiler = compiler;
this.Logger = logger;
}